[issue16741] `int()`, `float()`, etc think python strings are null-terminated

2012-12-20 Thread ganges master
New submission from ganges master: I'm not sure if it's a bug or just an inconvenience, but when a string containing \x00 is passed to int/float/etc, they return a misleading exception: int(abc) Traceback (most recent call last): File stdin, line 1, in module ValueError

[issue14737] subprocess.Popen pipes not working

2012-05-06 Thread ganges master
New submission from ganges master gangesmas...@users.sourceforge.net: Attempting to read from stdout of a running process seems broken on Python3.2. I've been able to reproduce this on Ubuntu 11.4 and Windows 7 (with /bin/sh installed as part of git for windows) Python 3.2 (r32:88445, Dec 8

[issue14737] subprocess.Popen pipes not working

2012-05-06 Thread ganges master
ganges master gangesmas...@users.sourceforge.net added the comment: hmm, it does work when i call flush, but it works perfectly fine without flushing on python2.x... i guess this has to do with str/bytes again. maybe this should be documented somewhere? thanks for the tip though

[issue7902] relative import broken

2010-02-10 Thread ganges master
New submission from ganges master gangesmas...@users.sourceforge.net: the relative-import mechanism is broken... at least on python2.6 but i'd guess on later versions as well. consider this package layout: /tmp/foo/ /tmp/foo/__init__.py /tmp/foo/bar.py where bar.py is: # note

[issue7902] relative import broken

2010-02-10 Thread ganges master
ganges master gangesmas...@users.sourceforge.net added the comment: i believe brett is in charge of this, adding him to the noisy. sorry if it's not you :) -- nosy: +brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue5508] maximum recursion depth exceeded in __subclasscheck__

2009-03-18 Thread ganges master
New submission from ganges master gangesmas...@users.sourceforge.net: this is similar to bug #5370, but this for is a different reason. also, i have seen several sites on google that mention it, so it has happened to quite a few people. the bug is that when calling dir() on a object, it looks

[issue1615] descriptor protocol bug

2008-12-03 Thread ganges master
ganges master [EMAIL PROTECTED] added the comment: here's a short example of the bug class Foo(object): ... def __getattr__(self, name): ... return 42 ... @property ... def bacon(self): ... return int.lalala ... @property ... def eggs(self): ... return 17 ... f = Foo

[issue3219] repeated keyword arguments

2008-06-27 Thread ganges master
New submission from ganges master [EMAIL PROTECTED]: under python 2.5 (and possibly 2.6 beta), the following code runs successfully: def f(**kwargs): ... print kwargs ... f(a=5,b=7,a=8) {'a': 8, 'b': 7} while in python 2.4, it fails as expected (complaining that a is given twice) http