Comments (11)
If you do get it working and submit a pull request, I'll be happy to take a look.
from fuckitpy.
Your "assignment dereference" won't work in Python 3.
from fuckitpy.
@asmeurer What do you mean by "assignment dereference"? I only found this in the original source:
source <- True # Dereference assignment to fix truthiness
Could anyone explain what it means? This bit is syntactically equivalent to source < -True
, and subsequently source < -1
. Such a comparison in Python 3 will throw a TypeError exception saying str() and int() are unorderable. Because this statement is essentially doing nothing. I simply removed it.
from fuckitpy.
That's the one.
from fuckitpy.
from fuckitpy.
@asmeurer Right... But that still does not explain why it's there. What race condition, and how this would help to fix a race condition?
from fuckitpy.
The whole thing is clearly a joke, as evidenced by the comment. It's just a shame that it will have to be a removed.
from fuckitpy.
You could always dereference the pointer the C way source*=True
from fuckitpy.
Thanks for all the discussion! Python3 compatibility is finally added in 4dc8167.
As for the discussion on the dereference assignment: I wasn't able to reproduce the race condition it addresses in Python 3, so I made the assignment only on Python 2.
from fuckitpy.
Awesome. Will you do a release on PyPI?
from fuckitpy.
Done in b7e0ccd. Thanks for the reminder!
from fuckitpy.
Related Issues (20)
- fuckit with logging errors HOT 9
- AttributeError: 'NoneType' object has no attribute 'read'. HOT 2
- fuckit is amazing HOT 1
- No promises<sup id="a0">[0](#f0)</sup>
- doesn't fucking put out HOT 1
- fuckit.py screws up function calls within a namespace, hides errors HOT 3
- Fails to import packages HOT 3
- Fucked code catches breakpoints in wrong locations. HOT 2
- Doesn't catch BaseException HOT 1
- tag versions in git HOT 3
- Context manager behaves differently than function decorator HOT 2
- Division by zero should be 0 HOT 1
- [Issue] Fuckit does not execute remaining entries in a tuple upon error.
- Version number is incorrect
- This module could be a better suppress from contextlib, maybe
- does it support 'edit and resume'?
- does it support 'edit and resume'?
- What about async fuckit? HOT 1
- setup.py relies on README.md, but README.md isn't available in the sdist on pypi HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fuckitpy.