[issue9808] Implement os.getlogin on Windows
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: The patch looks good. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9808 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2175] Expat sax parser silently ignores the InputSource protocol
Georg Brandl ge...@python.org added the comment: I'll have a look. -- assignee: loewis - georg.brandl nosy: +georg.brandl priority: normal - critical ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2175 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2193] Cookie Colon Name Bug
Georg Brandl ge...@python.org added the comment: I'll have a look. -- assignee: akuchling - georg.brandl nosy: +georg.brandl priority: normal - critical ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2193 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9801] Can not use append/extend to lists in a multiprocessing manager dict
Georg Brandl ge...@python.org added the comment: Changing to doc issue. -- components: +Documentation -Library (Lib) nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9801 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9919] gdbinit lineno result is one line in excess
qpatata qpat...@gmail.com added the comment: Well, me also I'm not expert in gdb. Solution looks nice and previous testcase now gives the correct answer. Thanks a lot for your help. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9919 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9924] sqlite3 SELECT does not BEGIN a transaction, but should according to spec
Changes by Ned Deily n...@acm.org: -- nosy: +ghaering versions: -Python 2.5, Python 2.6, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9924 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9920] test_cmath on atan fails on AIX
Sébastien Sablé sa...@users.sourceforge.net added the comment: Thanks for the quick reply Mark. I tried with pydebug and got the same error. Here is the trace for your last question: Python 3.2a2+ (py3k:84969M, Sep 23 2010, 10:55:24) [C] on aix6 Type help, copyright, credits or license for more information. from cmath import tanh [52276 refs] tanh(complex(-0.0, 0.0)) (-0+0j) [52281 refs] -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9920 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1743] IDLE fails to launch
Stephan Bellegy stephan.bell...@gmail.com added the comment: Reproduced today with Python 2.6.6 and 2.7 on Win7 32 bits. Deleting .idlerc directory made it. Doesn't look like fixed guys ! ;-) -- nosy: +Stephan.Bellegy versions: +Python 2.6 -Python 2.5, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1743 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9922] subprocess.getstatusoutput can fail with utf8 UnicodeDecodeError
Ned Deily n...@acm.org added the comment: In Python 3, subprocess.Popen returns stdout as bytes rather than string so it seems reasonable that subprocess.getstatusoutput should do the same. subprocess.Popen(['dd if=/dev/random bs=1024 count=1'], shell=True, stdout=subprocess.PIPE).communicate()[0] 1+0 records in 1+0 records out 1024 bytes transferred in 0.000142 secs (7218432 bytes/sec) b'\x11\xfb\xe1w ... The problem is reproducible on 3.1 and py3k. The attached patch for py3k (with a backport to 3.1) corrects getstatusoutput to return bytes. It also includes a test case and updates the docs to show byte output. -- keywords: +patch nosy: +astrand, ned.deily stage: - patch review title: subprocess.getstatusoutput and bytes - subprocess.getstatusoutput can fail with utf8 UnicodeDecodeError versions: +Python 3.1 Added file: http://bugs.python.org/file18971/issue9922-py3k.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9922 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9922] subprocess.getstatusoutput can fail with utf8 UnicodeDecodeError
Changes by Ned Deily n...@acm.org: Added file: http://bugs.python.org/file18972/issue9922-31.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9922 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1175004] Export more libreadline API functions
Changes by strank str...@strank.info: -- nosy: +strank ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1175004 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9582] documentation line needs rewording
MunSic JEONG rus...@gmail.com added the comment: uploaded patch. patch could be applied to 2.7-maint and p3k successfuly. single word insert. -- nosy: +ruseel Added file: http://bugs.python.org/file18973/issue9582.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9582 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1743] IDLE fails to launch
Martin v. Löwis mar...@v.loewis.de added the comment: Please submit this as a new bug issue, preferably with precise instructions on how to reproduce it. Can you provide some clue how the file became hidden in the first place? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1743 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9920] test_cmath on atan fails on AIX
Mark Dickinson dicki...@gmail.com added the comment: Thanks; so it's probably not an optimization bug, but rather a math library bug somewhere. And thanks for the tanh result; unfortunately I asked the wrong question---I meant to ask about atanh(complex(-0.0, 0.0)) :( Analysis: atan(z) is computed internally as atanh(iz) / i. So if the imaginary part of atan is coming out wrong, it's probably because the real part of atanh is incorrect. So I'd expect atanh(complex(-0.0, 0.0)) to produce 0.0j (instead of the correct answer of -0.0 + 0.0j). The real part of atanh(x + iy) is computed (for a region of the complex plane containing 0.0) using the formula: real_part = log1p(4.*z.real/((1-z.real)*(1-z.real) + z.imag * z.imag))/4.; My best guess is that the log1p function is dropping the sign on a negative zero. But in that case I'd expect test_math to fail on your system, too. Could you try the following experiments, and let me know what you get? (Feel free to stop as soon as your results start to differ from what's below.) import math, cmath math.log1p(-0.0) -0.0 z = complex(-0.0, 0.0) 4. * z.real -0.0 (1 - z.real) * (1 - z.real) + z.imag * z.imag 1.0 4. * z.real / ((1 - z.real) * (1 - z.real) + z.imag * z.imag) -0.0 math.log1p(4. * z.real / ((1 - z.real) * (1 - z.real) + z.imag * z.imag)) -0.0 math.log1p(4. * z.real / ((1 - z.real) * (1 - z.real) + z.imag * z.imag)) / 4. -0.0 cmath.atanh(z).real -0.0 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9920 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9924] sqlite3 SELECT does not BEGIN a transaction, but should according to spec
Gerhard Häring g...@ghaering.de added the comment: Yes Mike. Avoiding unnecessary locks was exactly the reason for this behaviour. I agree that for serializable transactions I'd need to make some changes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9924 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9922] subprocess.getstatusoutput can fail with utf8 UnicodeDecodeError
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9922 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9890] Visual C++ Runtime Library Error is there a fix?
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Can you try to open a Command Prompt and type (with the quotes): C:\Program Files\Python\python.exe C:\Program Files\Python\Lib\idle\idle.py Do you see error messages? -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9890 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9920] test_cmath on atan fails on AIX
Sébastien Sablé sa...@users.sourceforge.net added the comment: No problem; I tried with a different compiler this time (gcc instead of xlc) and with -O0 just to be sure it is not a compiler issue. I had the same error. I tried your test and you are right, the problem happens with log1p dropping the sign: import math, cmath [52601 refs] math.log1p(-0.0) 0.0 I also tried test_math but it seems to work fine: ./python -E ./Lib/test/test_math.py testAcos (__main__.MathTests) ... ok testAcosh (__main__.MathTests) ... ok testAsin (__main__.MathTests) ... ok testAsinh (__main__.MathTests) ... ok testAtan (__main__.MathTests) ... ok testAtan2 (__main__.MathTests) ... ok testAtanh (__main__.MathTests) ... ok testCeil (__main__.MathTests) ... ok testConstants (__main__.MathTests) ... ok testCopysign (__main__.MathTests) ... ok testCos (__main__.MathTests) ... ok testCosh (__main__.MathTests) ... ok testDegrees (__main__.MathTests) ... ok testExp (__main__.MathTests) ... ok testFabs (__main__.MathTests) ... ok testFactorial (__main__.MathTests) ... ok testFloor (__main__.MathTests) ... ok testFmod (__main__.MathTests) ... ok testFrexp (__main__.MathTests) ... ok testFsum (__main__.MathTests) ... ok testHypot (__main__.MathTests) ... ok testIsfinite (__main__.MathTests) ... ok testIsinf (__main__.MathTests) ... ok testIsnan (__main__.MathTests) ... ok testLdexp (__main__.MathTests) ... ok testLog (__main__.MathTests) ... ok testLog10 (__main__.MathTests) ... ok testLog1p (__main__.MathTests) ... ok testModf (__main__.MathTests) ... ok testPow (__main__.MathTests) ... ok testRadians (__main__.MathTests) ... ok testSin (__main__.MathTests) ... ok testSinh (__main__.MathTests) ... ok testSqrt (__main__.MathTests) ... ok testTan (__main__.MathTests) ... ok testTanh (__main__.MathTests) ... ok test_exceptions (__main__.MathTests) ... ok test_mtestfile (__main__.MathTests) ... ok test_testfile (__main__.MathTests) ... ok test_trunc (__main__.MathTests) ... ok ./Lib/test/ieee754.txt Doctest: ieee754.txt ... ok -- Ran 41 tests in 10.467s OK -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9920 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9924] sqlite3 SELECT does not BEGIN a transaction, but should according to spec
Changes by Randall Nortman rnpythonb...@wonderclown.net: -- nosy: +rnortman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9924 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9868] test_locale leaves locale changed
Michael Foord mich...@voidspace.org.uk added the comment: unittest *can't* know which setUp methods have already been called if an error occurs in one of them (because they are called explicitly by the sub-classes and not by unittest itself). Given this, the specific fix suggested seems good. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9868 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9925] Idle doesn't launch
New submission from Stephan Bellegy stephan.bell...@gmail.com: Environment is Win7, 32bits. User has Admin rights. I haven't coded in Python at the office for a while and had a little script to write. Thus, I decided to upgrade from 2.6 to 2.7 (that is : 2.6 was already there and functionnal as far as I remind it and was the first install of Python on the new PC) 2.7 installation run without problems nor warnings, as usual. But then Idle didn't launch. No message. No Python process running in the background. So I launched it via a shell and grabbed an error message : IOError: [Errno 13] Permission denied: 'C:\\Users\\Foobar\\.idlerc\\recent-files.lst' Then I googled and found http://bugs.python.org/issue1743 Deleting ~\.idlerc\ did the trick and now Idle runs fine. So the bug 1743 isn't clearly solved and this is what I suspect : My Windows is localized in French. From the DOS Shell, the User Dir is C:\Users\FOOBAR but Windows Explorer displays in its address bar : C:\Utilisateurs\FOOBAR Maybe the problem comes from here ? -- components: IDLE, Installation messages: 117184 nosy: Stephan.Bellegy priority: normal severity: normal status: open title: Idle doesn't launch versions: Python 2.6, Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9925 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1743] IDLE fails to launch
Stephan Bellegy stephan.bell...@gmail.com added the comment: New bug reported here http://bugs.python.org/issue9925 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1743 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9552] ssl build under Windows always rebuilds OpenSSL
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Hello. Probably I found the better solution for this issue. * build_ssl.py always runs before _ssl.vcproj or _hashlib.vcproj is built. (If entire solution is built, run only onece) * When OpenSSL sources are modified, because build_ssl.py always runs, correctly OpenSSL are rebuilt. * Module/_ssl.c or Module/_hashlib.c are rebuilt if they or include files refereed by them are not modified. Can you try this? (Only Debug|Win32 and Release|Win32 are implemented) -- Added file: http://bugs.python.org/file18974/py3k_better_build_ssl.zip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9552 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9552] ssl build under Windows always rebuilds OpenSSL
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: -- resolution: fixed - status: closed - open versions: +Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9552 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9582] documentation line needs rewording
Brian Curtin cur...@acm.org added the comment: Committed in r84971 and r84972. Thanks. -- assignee: d...@python - brian.curtin nosy: +brian.curtin resolution: - fixed stage: needs patch - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9582 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5497] openssl compileerror with original source
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: PCBuild on py3k have fix for this. We'll need to investigate/merge in other branches and version. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5497 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9552] ssl build under Windows always rebuilds OpenSSL
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: - Module/_ssl.c or Module/_hashlib.c are rebuilt + Module/_ssl.c or Module/_hashlib.c won't be rebuilt -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9552 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9582] documentation line needs rewording
Changes by Benjamin Peterson benja...@python.org: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9582 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9868] test_locale leaves locale changed
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: unittest *can't* know which setUp methods have already been called if an error occurs in one of them (because they are called explicitly by the sub-classes and not by unittest itself). Well, C++ constructor/destructor behaves like that when constructor of subclass raised exception. Destructors of super classes are called in reverse order. The benefit of it is implementator of subclass don't have to care about finalization of super class. It is done automatically. But if explicit call is essential for us, my proposal is not needed. Given this, the specific fix suggested seems good. Thanks, I'll commit this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9868 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9868] test_locale leaves locale changed
Michael Foord mich...@voidspace.org.uk added the comment: Destructors are special cased in many languages and tearDown is not a destructor. More importantly though the change you suggest would be backwards incompatible. The 'correct' way to do this in new code is to use cleanUp functions which *are* called even if an exception is raised during setUp. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9868 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue678250] test_mmap failling on AIX
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file18953/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue678250 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue678250] test_mmap failling on AIX
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file18954/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue678250 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue678250] test_mmap failling on AIX
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file18955/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue678250 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue678250] test_mmap failling on AIX
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file18956/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue678250 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue678250] test_mmap failling on AIX
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file18957/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue678250 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9926] Wrapped TestSuite subclass does not get __call__ executed
New submission from Martin v. Löwis mar...@v.loewis.de: In Python 3.2, when inheriting from TestSuite, it is no longer possible to override __call__ (e.g. to introduce a TestSuite setUp and tearDown). The __call__ method will not be called anymore. Instead, if the object has a _wrapped_run defined (which it will, since it inherits from TestSuite), then this is called instead. Overriding _wrapped_run is a work-around, however, this being a private method, overriding it is probably not a good idea. -- assignee: michael.foord messages: 117192 nosy: loewis, michael.foord priority: normal severity: normal status: open title: Wrapped TestSuite subclass does not get __call__ executed versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9926 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9925] Idle doesn't launch
Martin v. Löwis mar...@v.loewis.de added the comment: Is that problem reproducible? I.e. what did you do, in what order, and: when you do it again, will the problem occur again? -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9925 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9868] test_locale leaves locale changed
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Destructors are special cased in many languages and tearDown is not a destructor. Yes, but they are similar. More importantly though the change you suggest would be backwards incompatible. The 'correct' way to do this in new code is to use cleanUp functions which *are* called even if an exception is raised during setUp. I must admit I'm not familiar with unittest framework. Probably better way exists. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9868 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5762] AttributeError: 'NoneType' object has no attribute 'replace'
Brian Bernstein bernie9...@gmail.com added the comment: Experiencing this issue too. It occurs when an xml element contains a blank xmlns attribute, e.g.: {{{ element xmlns=/ }}} When toxml() is called on a minidom document with this attribute, the exception occurs. I am including a simple script that causes this crash. -- nosy: +bernie9998 Added file: http://bugs.python.org/file18975/minidomcrash.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5762 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5762] AttributeError: 'NoneType' object has no attribute 'replace'
Changes by Brian Bernstein bernie9...@gmail.com: -- versions: +Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5762 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6608] asctime does not check its input
MunSic JEONG rus...@gmail.com added the comment: As alexandre.vassalotti pointed in msg107596, I added precondition check. * extracted the range check from time_strftime as is_valid_tm. * time_asctime, time_strftime call is_valid_tm * testcase for both asctime and strftime (abbeyj's work) I splited patch just for unittest files(Lib/test/test_time.py) and (Modules/timemodule.c) -- keywords: +patch nosy: +ruseel Added file: http://bugs.python.org/file18976/issue6608-timemodule.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6608 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6608] asctime does not check its input
Changes by MunSic JEONG rus...@gmail.com: Added file: http://bugs.python.org/file18977/issue6608-timemodule.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6608 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6608] asctime does not check its input
Changes by MunSic JEONG rus...@gmail.com: Removed file: http://bugs.python.org/file18977/issue6608-timemodule.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6608 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6608] asctime does not check its input
Changes by MunSic JEONG rus...@gmail.com: Added file: http://bugs.python.org/file18978/issue6608-testcase.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6608 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9927] Leak around GetFinalPathNameByHandle (Windows)
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: I've found there are leaks around GetFinalPathNameByHandle in Modules/posixmodule.c. (Leaks when function fails) I hope attached patch will fix this. -- components: Windows files: py3k_fix_leak_around_GetFinalPathNameByHandle.patch keywords: patch messages: 117197 nosy: ocean-city priority: normal severity: normal status: open title: Leak around GetFinalPathNameByHandle (Windows) versions: Python 3.2 Added file: http://bugs.python.org/file18979/py3k_fix_leak_around_GetFinalPathNameByHandle.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9927 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9926] Wrapped TestSuite subclass does not get __call__ executed
Michael Foord mich...@voidspace.org.uk added the comment: Right, _wrapped_run is private and not intended to be overridden. Perhaps slightly ironically (for this particular bug report) is that the change was introduced to support class and module level setUp and tearDown (similar to the use-case it now blocks). Another workaround would be to inherit from BaseTestSuite (which would disable the class and module level fixture support). A backwards compatible change would be to rename BaseTestSuite *back* to TestSuite and give the current TestSuite a new name. This means that the new class / module level fixtures would only be supported in code that gets suites from the TestLoader (which uses the new class) or by creating suites using the new class. The disadvantage of this approach is that it is not uncommon for test frameworks to create suites themselves - and doing this could 'break' tests using class / module fixtures. The reason for the change is that in order to tearDown the final class and module level fixtures we need to know when we exit the 'top level' of a run from inside a suite. Any other suggestions or ideas? (Another idea is to add explicit setUp and tearDown hooks to the TestSuite object. This isn't backwards compatible but meets the direct use case. Obviously backwards compatibility is greatly preferable.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9926 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9927] Leak around GetFinalPathNameByHandle (Windows)
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: About buffer size, GetFinalPathNameByHandle may return the length or string or the size of required buffer size (the length of striing + 1) depending on platforms and ANSI/WIDE version. If function returns the length of string buffer size, buf_size + 1 is buffer size. MSDN saids cchFilePath [in] The size of lpszFilePath, in TCHARs. This value does not include a NULL termination character. so we must pass buf_size + 1 for GetFinalPathNameByHandle. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9927 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9927] Leak around GetFinalPathNameByHandle (Windows)
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: -- Removed message: http://bugs.python.org/msg117199 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9927 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9927] Leak around GetFinalPathNameByHandle (Windows)
Changes by Brian Curtin cur...@acm.org: -- components: +Extension Modules nosy: +brian.curtin, jaraco stage: - patch review type: - resource usage ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9927 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9927] Leak around GetFinalPathNameByHandle (Windows)
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I cannot test this directly. Thank you. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9927 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9926] Wrapped TestSuite subclass does not get __call__ executed
Michael Foord mich...@voidspace.org.uk added the comment: Hmmm... 2.7 has already been released and has the same issue, so 'drastic' changes (like renaming BaseTestSuite back to TestSuite) are probably out. -- components: +Library (Lib) versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9926 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9919] gdbinit lineno result is one line in excess
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- components: +Demos and Tools versions: +Python 3.2 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9919 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9801] Can not use append/extend to lists in a multiprocessing manager dict
James Hutchison jamesghutchi...@gmail.com added the comment: Is there a way to get this so it behaves more intuitively? You'd think adding a managed list to a managed dictionary (or another managed list) or making a deep copy would work but it still doesn't. When you get an item from a managed data structure, it seems to be returning a data-only copy of the object instead of a handle to the manager of the object. The fact that += (extend) works but .extend() doesn't work also seems to raise a flag for me (although I do understand why this is). I don't think it should behave this way. i.e.: currently: d['l'] - return copy.deepcopy(d['l']) should be: d['l'] - return managerObject(d['l']) where managerObject is a managed object that runs on the same process as the manager it came from Problem: Currently there is no easy way to do random access without copying out and copying back in. I'd think that would be a real efficiency problem. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9801 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9287] Minor fix in test_file2k.OtherFileTests.testOpenDir
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I've committed your fix in r84975. Thank you. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9287 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9925] Idle doesn't launch
Stephan Bellegy stephan.bell...@gmail.com added the comment: it is reproductible. At first, Python 2.6.? was installed. i tried to install 2.7 and got the problem uninstalled 2.7 tried 2.6.6 and got the problem then google, delete dir and got it running -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9925 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9927] Leak around GetFinalPathNameByHandle (Windows)
Brian Curtin cur...@acm.org added the comment: The tests pass here, but I haven't thoroughly reviewed the patch yet. After a quick glance it generally looks ok, although I wish we didn't have so much duplication. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9927 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1675951] Performance for small reads and fix seek problem
Antoine Pitrou pit...@free.fr added the comment: Thank you very much! I have kept the second approach (use PaddedFile at all times), since it is more regular and minimizes the probability for borderline cases. As for the supposed performance slowdown, it doesn't seem significant. On large blocks of data, I expect that compression/decompression cost will be overwhelming anyway. I've added a test case and committed the patch in r84976. Don't hesitate to contribute again. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1675951 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9360] nntplib cleanup
Antoine Pitrou pit...@free.fr added the comment: Yes, unescaped utf-8 is explicitly allowed in headers by RFC 3977: The content of a header SHOULD be in UTF-8. However, if an implementation receives an article from elsewhere that uses octets in the range 128 to 255 in some other manner, it MAY pass it to a client or server without modification. Therefore, implementations MUST be prepared to receive such headers, and data derived from them (e.g., in the responses from the OVER command, Section 8.3), and MUST NOT assume that they are always UTF-8. (I guess this means NNTP is now more modern than SMTP :-)). Actually, there's a test with an actual utf-8 header in the unit tests. (as for “implementations MUST be prepared to receive such headers, and data derived from them”, this is accounted for by using surrogateescape). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9360 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9272] CGIHTTPServer poisons os.environ
R. David Murray rdmur...@bitdance.com added the comment: Anatoly, last we heard you did not wish to sign the contributor agreement and so were not submitting patches. We are respecting your wishes by not applying this. Have you changed your mind? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9272 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9928] weird oddity with bz2 context manager
New submission from Antoine Pitrou pit...@free.fr: I haven't investigated but this is weird (especially the fact that it doesn't *always* happen). There might be a problem with SETUP_WITH or perhaps the method cache: import bz2 f = bz2.BZ2File('foo.bz2', 'wb') with f: pass ... Traceback (most recent call last): File stdin, line 1, in module AttributeError: __exit__ f.__enter__().__exit__(None, None, None) -- components: Interpreter Core, Library (Lib) messages: 117210 nosy: amaury.forgeotdarc, arigo, benjamin.peterson, pitrou priority: normal severity: normal status: open title: weird oddity with bz2 context manager type: behavior versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9928 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9928] weird oddity with bz2 context manager
Antoine Pitrou pit...@free.fr added the comment: Actually, it is because bz2 doesn't call PyType_Ready() but instead sets some field manually. Perhaps we could have a guard somewhere that raises a fatal error when a C extension type hasn't been properly readied? In the meantime, this patch seems to solve the issue: diff -r 843be379fb26 Modules/bz2module.c --- a/Modules/bz2module.c Thu Sep 23 18:45:17 2010 +0200 +++ b/Modules/bz2module.c Thu Sep 23 19:55:19 2010 +0200 @@ -2155,9 +2155,12 @@ PyInit_bz2(void) { PyObject *m; -Py_TYPE(BZ2File_Type) = PyType_Type; -Py_TYPE(BZ2Comp_Type) = PyType_Type; -Py_TYPE(BZ2Decomp_Type) = PyType_Type; +if (PyType_Ready(BZ2File_Type) 0) +return NULL; +if (PyType_Ready(BZ2Comp_Type) 0) +return NULL; +if (PyType_Ready(BZ2Decomp_Type) 0) +return NULL; m = PyModule_Create(bz2module); if (m == NULL) -- versions: +Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9928 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9928] weird oddity with bz2 context manager
Benjamin Peterson benja...@python.org added the comment: 2010/9/23 Antoine Pitrou rep...@bugs.python.org: Antoine Pitrou pit...@free.fr added the comment: Actually, it is because bz2 doesn't call PyType_Ready() but instead sets some field manually. Perhaps we could have a guard somewhere that raises a fatal error when a C extension type hasn't been properly readied? The problem is that there's no one entry point for types to get into the C-API. I suppose we could iterate through a c-module's dictionary after it's initialized... In the meantime, this patch seems to solve the issue: Please apply. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9928 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9929] subprocess.Popen unbuffered not work (windows)
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: Following script hangs on Python3.x. from subprocess import * import sys p = Popen([sys.executable, -c, import sys; print(sys.stdin.read(1))], stdin=PIPE) p.stdin.write(b'x') p.wait() This is because unbuffered functionality of subprocess.Popen is disabled. Is this still needed? I confirmed test_subprocess passes with the attached patch. -- components: Windows files: py3k_fix_unbuffered_in_subprocess.patch keywords: patch messages: 117213 nosy: ocean-city priority: normal severity: normal status: open title: subprocess.Popen unbuffered not work (windows) versions: Python 3.1, Python 3.2 Added file: http://bugs.python.org/file18980/py3k_fix_unbuffered_in_subprocess.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9929 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9929] subprocess.Popen unbuffered not work (windows)
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Interestingly, following code also hangs. Maybe I'm misunderstanding the meaning of *bufsize* from subprocess import * import sys p = Popen([sys.executable, -c, import sys; print(sys.stdin.read(1))], stdin=PIPE) p.stdin.write(b'xx') # size 2 p.wait() -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9929 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9272] CGIHTTPServer poisons os.environ
anatoly techtonik techto...@gmail.com added the comment: I still haven't received answers on the licensing questions in developer's mailing list. After the amount of negative feedback received I decided not to continue. But I am still interested in constructive discussion to get satisfying and full answers to the questions I've asked. You should understand that I can not sign agreements which terms are not clear to me, or if I think that other party fails to fulfill the conditions. I see the contributor's agreement text is changed again, but there is no history of changes, and no electronic signature, and looking through the text I still can't find it to be clear. As for this patch - I hereby release it into public domain, or if copyright law in your country doesn't allow that - I hereby grant you the right to use it on the terms of ISC license or WTFP license. If you still can't use the patch and can't explain me why the paragraph above is not enough, it is still possible to resolve the situation if you have some contacts at Google. I can submit my patch to Google and they'll send it to you. This will work, because I've signed http://code.google.com/legal/individual-cla-v1.0.html But this won't work if they didn't sign your form, of course. P.S. I want to see Python more open for contributions as well as you, but with more attention to details. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9272 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9930] Incorrect semantics of __radd__ method for builtin types
New submission from Mark Shannon ma...@dcs.gla.ac.uk: Attached program fails. See comments in file for details and possible diagnosis -- files: binary_op_mimic.py messages: 117216 nosy: Mark.Shannon priority: normal severity: normal status: open title: Incorrect semantics of __radd__ method for builtin types type: behavior versions: Python 2.5, Python 2.6, Python 2.7, Python 3.1 Added file: http://bugs.python.org/file18981/binary_op_mimic.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9930 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9272] CGIHTTPServer poisons os.environ
Georg Brandl ge...@python.org added the comment: ISTM that the attached patch is trivial enough not to require any contributor agreement or copyright assignment, at least if we change Ma Test CGI Server v1.0 to something neutral. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9272 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9930] Incorrect semantics of __radd__ method for builtin types
R. David Murray rdmur...@bitdance.com added the comment: Could you post some simple examples and an explanation of what you think the problem is? I have no clue what problem your code is trying to show just by looking at it. (Maybe it will be clear to someone else, but still, simple examples are usually better, and easier to turn into unit tests.) -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9930 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9930] Incorrect semantics of __radd__ method for builtin types
Georg Brandl ge...@python.org added the comment: This is indeed weird. PyNumber_Add ends up calling compare_add with the float as its first argument, which is impossible to do from Python. And the wrap_binaryfunc_r check for subtypes means that compare.__radd__ claims it doesn't support floats either. So from Python, it's impossible to add floats and complex numbers via __special__ methods :) Maybe Mark wants to shed some light? -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9930 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9921] os.path.join('x','') behavior
Brian Brazil brian.bra...@gmail.com added the comment: The behaviour is a bit more nuanced: os.path.join('x', '') 'x/' os.path.join('x', '', 'y') 'x/y' os.path.join('x', '', 'y', '', '') 'x/y/' os.path.join('', 'x') 'x' I'm unsure how to word this best, maybe non-trailing empty paths are ignored? -- nosy: +bbrazil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9921 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9930] Incorrect semantics of __radd__ method for builtin types
Mark Dickinson dicki...@gmail.com added the comment: If I understand correctly, the complaint is that (for example) in Python 3.x, we have: Python 3.1.2 (r312:79147, Aug 20 2010, 20:06:00) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin Type help, copyright, credits or license for more information. float.__radd__(3.0, 1) NotImplemented while in Python 2.x: Python 2.6.6 (r266:84292, Aug 28 2010, 18:05:46) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin Type help, copyright, credits or license for more information. float.__radd__(3.0, 1) 4.0 It's not clear to me whether there's any good reason for this change. (I'm deliberately avoiding the original float + complex example, since complex is a little peculiar in 2.x for x = 6 anyway---it's treated as an 'old-style' number (not to be confused with an old-style class)). (Changing versions: 2.5 and 2.6 aren't getting bugfixes any more, and 2.7 appears to be behaving correctly.) -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9930 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9930] Incorrect semantics of __radd__ method for builtin types
Changes by Mark Dickinson dicki...@gmail.com: -- versions: +Python 3.2 -Python 2.5, Python 2.6, Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9930 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9930] Incorrect semantics of __radd__ method for builtin types
Mark Dickinson dicki...@gmail.com added the comment: PyNumber_Add ends up calling compare_add with the float as its first argument, which is impossible to do from Python. [Assuming you mean complex_add.] I think this bit is expected, though. complex_add (or float_add, or whatever) provides both the __add__ and __radd__ methods. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9930 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9930] Incorrect semantics of __radd__ method for builtin types
Georg Brandl ge...@python.org added the comment: Hmm, not sure. I'm referring to Objects/abstract.c, binary_op1, which tries to call both slotv and slotw. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9930 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9815] test_tarfile sometimes ends with error Cannot remove dir
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: -- keywords: +needs review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9815 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9930] Incorrect semantics of __radd__ method for builtin types
Mark Dickinson dicki...@gmail.com added the comment: It looks like Mark is right: the wrap_binaryfunc_r subtype check should just be removed. The corresponding check in 2.x only occurs for types which don't have the Py_TPFLAGS_CHECKTYPES flag set. As of 2.7, *all* of the numeric types have this flag set (in 2.6, the complex type doesn't). I'm not seeing any (relevant) test failures here after removing the check. Actually, I'm not seeing any test failures at all. Hooray! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9930 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9930] Incorrect semantics of __radd__ method for builtin types
Georg Brandl ge...@python.org added the comment: That's encouraging. I would suggest making this fix; the fact that Jython and IronPython also get this right is another reason. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9930 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9808] Implement os.getlogin on Windows
Brian Curtin cur...@acm.org added the comment: Committed in r84983. Thanks! -- components: +Extension Modules -Library (Lib) resolution: accepted - fixed stage: patch review - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9808 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9928] weird oddity with bz2 context manager
Antoine Pitrou pit...@free.fr added the comment: Patch committed in r84980 (3.2), r84981 (3.1) and r84982 (2.7). -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9928 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9815] test_tarfile sometimes ends with error Cannot remove dir
Antoine Pitrou pit...@free.fr added the comment: Adding Michael for review of py3k_fix__AssertRaisesContext.patch. -- nosy: +michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9815 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9931] test_ttk_guionly hangs on XP5
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: test_ttk_guionly hangs on x86 XP5 buldbot. But it doesn't hang on test_tk. Former shows widget but latter doesn't on my machine. http://www.python.org/dev/buildbot/all/builders/x86%20XP-5%203.x/builds/1348/steps/test/logs/stdio -- components: Tests, Tkinter, Windows messages: 117230 nosy: ocean-city priority: normal severity: normal status: open title: test_ttk_guionly hangs on XP5 versions: Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9931 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9932] List of sets initialization behavior problems
New submission from Adam Nemecek adamneme...@gmail.com: I'm not sure if this is the intended behavior, but it seems unusual to me. a = [set([]) for i in range(2)] evaluates to a list [set([]),set([])] and b= 2*[set([])] evaluates to [set([]),set([])]. Nothing wrong here. Nevertheless, if I do a[0].add(1), a has the value [set([1]), set([])] but b[0].add(1) evaluates to [set([1]), set([1])]. I understand that in list b, all of the sets refer to the same object in memory, nevertheless, I do not feel like this is the correct behavior. -- components: None messages: 117231 nosy: adamnemecek priority: normal severity: normal status: open title: List of sets initialization behavior problems versions: Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9932 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9790] ntpath contains imports inside functions
Brian Curtin cur...@acm.org added the comment: Committed to py3k in r84988 using Nick's second suggestion. -- resolution: - fixed stage: needs patch - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9790 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9808] Implement os.getlogin on Windows
Changes by Jon Anglin jang...@fortresgrand.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9808 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9790] ntpath contains imports inside functions
Changes by Brian Curtin cur...@acm.org: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9790 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9401] automatically try forward operations when reverse operations are NotImplemented
R. David Murray rdmur...@bitdance.com added the comment: No, but you could bring it up on python-ideas. (It would have to wait until after the moratorium in any case.) -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9401 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9905] subprocess.Popen fails with stdout=PIPE, stderr=PIPE if standard descriptors (0, 1, 2) are closed.
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9905 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1385] hmac module violates RFC for some hash functions, e.g. sha512
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1385 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2052] Allow changing difflib._file_template character encoding.
R. David Murray rdmur...@bitdance.com added the comment: I believe that charset is the standard default for html, which would make this a feature request. -- assignee: tim_one - nosy: +r.david.murray stage: unit test needed - needs patch type: behavior - feature request versions: +Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2052 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9932] List of sets initialization behavior problems
Eric Smith e...@trueblade.com added the comment: This is well defined in Python and will not change. -- nosy: +eric.smith resolution: - rejected stage: - committed/rejected status: open - closed type: - feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9932 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8879] Implement os.link on Windows
Brian Curtin cur...@acm.org added the comment: Here's a patch of the functionality. The doc change is small and easy, I'll add it shortly. One oddity is that os.path.samefile is False for a link and its source, but True for a symlink and its source. I find that to be quite odd, but stepping through the code I don't see where this is anything we are doing. I haven't been able to figure out if this is really expected behavior from Windows. When the files are open, os.path.sameopenfile shows that the link and its source are the same, which is expected. -- keywords: +needs review, patch stage: needs patch - patch review Added file: http://bugs.python.org/file18982/issue8879.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8879 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2005] posixmodule expects sizeof(pid_t/gid_t/uid_t) = sizeof(long)
R. David Murray rdmur...@bitdance.com added the comment: It appears as though this was fixed as part of issue 1983. Antoine, can you confirm that? -- nosy: +pitrou, r.david.murray -BreamoreBoy versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2005 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8879] Implement os.link on Windows
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: With following implementation, issamefile return True for hard link. I heard GetFinalPathNameByHandle returns different paths for hard links. import nt, os def issamefile(path1, path2): ... fd1 = os.open(path1, os.O_RDONLY) ... fd2 = os.open(path2, os.O_RDONLY) ... fi1 = nt._getfileinformation(fd1) ... fi2 = nt._getfileinformation(fd2) ... os.close(fd1) ... os.close(fd2) ... return fi1 == fi2 ... issamefile(src.txt, lnk.txt) True -- nosy: +ocean-city ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8879 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3873] Unpickling is really slow
Antoine Pitrou pit...@free.fr added the comment: Here is a fixed version of Victor's bench (didn't work on 2.x). -- Added file: http://bugs.python.org/file18983/bench_pickle.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3873 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6706] asyncore's accept() is broken
Dave Malcolm dmalc...@redhat.com added the comment: giampaolo: did you ever rewrite the patch? For reference to other users: http://code.google.com/p/pyftpdlib/source/browse/trunk/pyftpdlib/ftpserver.py Note the complexity of the two handle_accept implementations in that file; both of them begin: try: sock, addr = self.accept() except TypeError: # sometimes accept() might return None (see issue 91) return except socket.error, err: # ECONNABORTED might be thrown on *BSD (see issue 105) if err[0] != errno.ECONNABORTED: logerror(traceback.format_exc()) return else: # sometimes addr == None instead of (ip, port) (see issue 104) if addr == None: return -- nosy: +dmalcolm ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6706 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3873] Unpickling is really slow
Antoine Pitrou pit...@free.fr added the comment: And here is new performance patch (Victor's patch was outdated because of heavy changes incorporated from Unladen Swallow). Results of bench_pickle.py are as follows: * Python 2.7 (cPickle): Protocol 0 - dump: 189.8 ms - load (seekable=False): 318.1 ms - load (seekable=True): 321.2 ms Protocol 1 - dump: 58.2 ms - load (seekable=False): 89.5 ms - load (seekable=True): 89.4 ms Protocol 2 - dump: 58.0 ms - load (seekable=False): 89.1 ms - load (seekable=True): 89.1 ms * Python 3.2 (unpatched): Protocol 0 - dump: 144.5 ms - load (seekable=False): 530.7 ms - load (seekable=True): 530.5 ms Protocol 1 - dump: 27.8 ms - load (seekable=False): 280.4 ms - load (seekable=True): 279.9 ms Protocol 2 - dump: 27.8 ms - load (seekable=False): 280.6 ms - load (seekable=True): 281.9 ms * Python 3.2 + patch: Protocol 0 - dump: 146.4 ms - load (seekable=False): 611.1 ms - load (seekable=True): 194.2 ms Protocol 1 - dump: 27.3 ms - load (seekable=False): 254.7 ms - load (seekable=True): 31.2 ms Protocol 2 - dump: 27.3 ms - load (seekable=False): 254.6 ms - load (seekable=True): 31.2 ms -- Added file: http://bugs.python.org/file18984/unpickleprefetch.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3873 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9905] subprocess.Popen fails with stdout=PIPE, stderr=PIPE if standard descriptors (0, 1, 2) are closed.
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: issue6610 looks very similar. issue9074 may also be related. -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9905 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2005] posixmodule expects sizeof(pid_t/gid_t/uid_t) = sizeof(long)
Antoine Pitrou pit...@free.fr added the comment: The pid_t issue was fixed but not uid_t/gid_t. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2005 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9933] os module does not have the documented EX_NOTFOUND attribute
New submission from Kamil Kisiel kisi...@users.sourceforge.net: The library documentation (http://docs.python.org/library/os.html) states: os.EX_NOTFOUND Exit code that means something like “an entry was not found”. Availability: Unix. New in version 2.3. However, on both my Linux and OS X installs of OS X this happens: python Python 2.6.2 (r262:71600, Oct 24 2009, 03:15:21) [GCC 4.4.1 [gcc-4_4-branch revision 150839]] on linux2 Type help, copyright, credits or license for more information. im import os os.EX_NOTFOUND Traceback (most recent call last): File stdin, line 1, in module AttributeError: 'module' object has no attribute 'EX_NOTFOUND' Unfortunately I don't have another Python version available to test with at the moment so I'm not sure if this affects other versions as well. -- components: Library (Lib) messages: 117245 nosy: kisielk priority: normal severity: normal status: open title: os module does not have the documented EX_NOTFOUND attribute type: behavior versions: Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9933 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9933] os module does not have the documented EX_NOTFOUND attribute
Kamil Kisiel kisi...@users.sourceforge.net added the comment: That should have read Linux and OS X installs of *Python*. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9933 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com