Giter Club home page Giter Club logo

Comments (3)

moreati avatar moreati commented on June 2, 2024

I believe the behaviour was introduced in #137. I don't (yet) know what a fix would look like, I'll update if I figure something out.

I happened to come across it while trying something similar for https://github.com/moreati/scanwalk (not ready for use by anyone, just a toy for now), specifically https://github.com/moreati/scanwalk/tree/franken-posixmodule

from scandir.

benhoyt avatar benhoyt commented on June 2, 2024

Thanks for the report. This is strange. Yeah, it's got to be due to #137, but I can't see how just changing that "unnamed field" string to const and renaming it could cause a behavioral difference. If this is important to you, feel free to dig in and come up with a fix. Would be interesting to see if this happens on Linux too.

I have limited time (and desire) to work on scandir these days, now that it's included in Python itself (has been since 3.5). Another approach would be to switch to using os.scandir directly (you may have to monkey-patch if it's a 3rd party library that's using scandir).

from scandir.

moreati avatar moreati commented on June 2, 2024

I've no pressing need for a fix, sorry for not making that clear. This report was mainly so people had a reference in case they hit it too. Thanks for shipping scandir all these years.

Confirm it also happens on Linux

(v) pi@rpi1:~/src $ python3 -c"import scandir; print(list(scandir.scandir('.'))[0].stat())"
scandir.stat_result(st_mode=16877, ..., unnamed field=1657451693, unnamed field=1657456796, unnamed field=1657456796)

from scandir.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.