Closed ildus closed 7 years ago
try
/except
) will do. I'd rather switch to six later, when I'll be really needed.six.MAXSIZE
at all, if sys.maxsize
is present in both in python2 and python3?import help
with import duel.help
, and using os.path.join
. Why is that?I tried a minimal patch (see https://github.com/vuvova/gdb-tools/commit/4f850c83976c480c71a45b86b42a27841265abf9) and it looked like it was sufficient. I could install the package just fine and it worked after that. What am I missing?
1 and 2 depends on you. six
is very common thing.
After all when you publish this repository to PyPI (if you publish it), you can just add six
to dependencies, it will be installed like normal dependency.
Forgot to explain os.path.join, pyc files will be in __pycache__
in python3. Also they can be turned off. You can't rely on pyc
files to do something.
imports - got it, thanks.
PyPi - yes, I'll publish it. Thanks a lot for the help with it.
os.path.join - I used rstrip
meaning, to remove any of the characters 'p', 'y', 'c'. So it works both for .py and .pyc files, and (I've just tested) works with __pycache__
too.
Fixed, pushed. Thanks!
I've added a fix for sys.maxint