GithubHelp home page GithubHelp logo

Comments (5)

jremes-foss avatar jremes-foss commented on August 17, 2024

Hi. It looks like a classical "gotcha" with Python. Please have a look at this:

In [1]: 02000000
Out[1]: 524288

In [2]: 00004000
Out[2]: 2048

Basically: In Python, leading zeros do convert the number to octal.

from pyinotify.

jremes-foss avatar jremes-foss commented on August 17, 2024

Next question: What are constants IN_CLOEXEC and IN_NONBLOCK supposed to be? Hexadecimal? Decimal?

from pyinotify.

dickkniep avatar dickkniep commented on August 17, 2024

As far as I know they should be octal and then they should start with:

 
0o 

 
So if you prepend the current values with 0o it should work. (BTW. there are 4 values affected in constants.py)

If you want I can send you a patch.

Met vriendelijke groet,
Dick Kniep
Lindix BV
tel. 036-5215580
mob. 06-50991858

 
-----Oorspronkelijk bericht-----
Van:Juha [email protected]
Verzonden:vr 02-10-2015 13:28
Onderwerp:Re: [PyInotify] Under python 3.4 constants.py gives an error at import (#3)
Aan:dsoprea/PyInotify [email protected];
CC:Dick Kniep [email protected];

Next question: What are constants IN_CLOEXEC and IN_NONBLOCK supposed to be? Hexadecimal? Decimal?


Reply to this email directly or view it on GitHub.

 

from pyinotify.

ololduck avatar ololduck commented on August 17, 2024

Hey, thanks for fixing this.

Any idea about when the commit e747615 will be in pypi?

from pyinotify.

dsoprea avatar dsoprea commented on August 17, 2024

Done.

Dustin

On Thu, Jun 2, 2016 at 8:31 AM, Paul Ollivier [email protected]
wrote:

Hey, thanks for fixing this.

Any idea about when the commit e747615
e747615
will be in pypi?


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
#3 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AArram-P8yW2rV5Kay1r4L2W0wO2d6OLks5qHs0dgaJpZM4GGYgW
.

from pyinotify.

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.