[issue6415] warnings.warn segfaults on bad formatted string

2009-07-16 Thread Brett Cannon
Brett Cannon added the comment: Here is a patch for test_warning to test for the failure. Hirokazu, since you found the fix, do you want to do the commit, or do you want me to handle it since this will need to be applied to all active branches? -- assignee: brett.cannon -> ocean-city

[issue6449] Improve/update python.org/dev/

2009-07-16 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue6449] Improve/update python.org/dev/

2009-07-16 Thread Brett Cannon
Brett Cannon added the comment: OK, fixed in r12412 for pydotorg sans the IRC stuff (don't feel comfortable pointing people that way when IRC is not under our control). Thanks for the fixes, Ezio. -- ___ Python tracker

[issue6415] warnings.warn segfaults on bad formatted string

2009-07-16 Thread Brett Cannon
Changes by Brett Cannon : -- components: +Interpreter Core priority: -> release blocker stage: -> patch review ___ Python tracker ___ ___

[issue1424152] urllib/urllib2: HTTPS over (Squid) Proxy fails

2009-07-16 Thread Senthil
Senthil added the comment: This is actually fixed in Py2.7 and I am trying to get it Py3.2 before marking this as fixed. Based on the comments, should this be backported to Py2.6? -- ___ Python tracker

[issue6026] test_(zipfile|zipimport|gzip|distutils|multiprocessing|xmlrpc|docxmlrpc) fail if zlib is not available

2009-07-16 Thread Ezio Melotti
Ezio Melotti added the comment: The 3 new failures (test_multiprocessing, test_xmplrpc and test_docxmlrpc) were introduced in r73638 and I opened a new issue about that (#6499). I'll wait to see if and how they should be fixed (and possibly open a new issue for them). The attached patch fixes t

[issue6498] Py_Main() does not return on SystemExit

2009-07-16 Thread Raphaela
Raphaela added the comment: I'm having the same problem. The source of the problem seem to be in PyRun_InteractiveOneFlags(). It prints and clears the last error. -- nosy: +Rakeka ___ Python tracker ___

[issue6267] Cumulative patcc:h to http and xmlrpc

2009-07-16 Thread Ezio Melotti
Ezio Melotti added the comment: xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer cannot be imported after r73638 if zlib is missing, see #6499. -- nosy: +ezio.melotti ___ Python tracker ___

[issue6499] Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available

2009-07-16 Thread Ezio Melotti
New submission from Ezio Melotti : I'm working on #6026 and I noticed that the patch for #6267 introduced an "import gzip" in Lib/xmlrpclib.py in r73638. gzip tries to import zlib, and if it's not available the import fails. This led to 3 new tests failures in the trunk: test_xmlrpc, test_docxmlr

[issue1424152] urllib/urllib2: HTTPS over (Squid) Proxy fails

2009-07-16 Thread R. David Murray
R. David Murray added the comment: Note that this bug is also of concern to Ubuntu. See for example https://bugs.launchpad.net/python/+bug/94130. -- nosy: +r.david.murray ___ Python tracker

[issue6026] test_(zipfile|zipimport|gzip|distutils|multiprocessing|xmlrpc|docxmlrpc) fail if zlib is not available

2009-07-16 Thread Ezio Melotti
Ezio Melotti added the comment: Now (Python2.7a0 trunk:74029) there are 3 more tests that fail because zlib is not available: test_multiprocessing, test_xmlrpc and test_docxmlrpc. -- title: test_(zipfile|zipimport|gzip|distutils) fail if zlib is not available -> test_(zipfile|zipimport

[issue6498] Py_Main() does not return on SystemExit

2009-07-16 Thread Rogi
New submission from Rogi : >From teh docs: http://docs.python.org/c-api/veryhigh.html int Py_Main(int argc, char **argv)¶ The main program for the standard interpreter. This is made available for programs which embed Python. The argc and argv parameters should be prepared exactly as those

[issue6431] Fraction fails equality test with a user-defined type

2009-07-16 Thread Case Van Horsen
Case Van Horsen added the comment: On Thu, Jul 16, 2009 at 11:34 AM, Mark Dickinson wrote: > > Mark Dickinson added the comment: > > Thanks again, casevh!  The patch looks good.  I've added to it a bit, > though---see issue6431.patch.  In detail: > > - don't use subtraction with unknown types f

[issue2622] Import errors in email.message.py

2009-07-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: applied with r37952 (trunk), r37953 (2.6) and r37978 (py3k, docstrings only). Thanks for the patch! -- resolution: accepted -> fixed status: open -> closed ___ Python tracker

[issue6431] Fraction fails equality test with a user-defined type

2009-07-16 Thread Jeffrey Yasskin
Jeffrey Yasskin added the comment: If you think it's better, I'm happy to make the other tradeoff. -- ___ Python tracker ___ ___ Pytho

[issue6473] hmac sha384/sha512 fails test vectors

2009-07-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Indeed, the provided test file passes on all python versions I have. Iain, does this script fail on some version? -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue6431] Fraction fails equality test with a user-defined type

2009-07-16 Thread Mark Dickinson
Mark Dickinson added the comment: [Jeffrey] > In particular, the idea was that all Reals would (by default) be > comparable to each other, even if they didn't know about each other. Understood, but I don't think this is an attainable goal. I don't see any reasonable way to make it happen with

[issue6487] Some index entries appear in black

2009-07-16 Thread Georg Brandl
Changes by Georg Brandl : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue6482] PATCH: tiny simplification for subprocess

2009-07-16 Thread Georg Brandl
Georg Brandl added the comment: Very true. Since there was no indication that the previous version was faulty, reverted in r74029. -- ___ Python tracker ___ _

[issue6490] os.popen documentation in 2.6 is probably wrong

2009-07-16 Thread Georg Brandl
Georg Brandl added the comment: That is not really a documentation for the function, but a pointer to a section in which there is no documentation for popen. -- ___ Python tracker __

[issue6496] 2to3 generates "from urllib.parse import pathname2url"

2009-07-16 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: Attaching fix. Might have to merge to 2.6/2.7 -- keywords: +patch Added file: http://bugs.python.org/file14511/fix6496.patch ___ Python tracker

[issue6497] Support for digital Cinema/film DPX and Kodak Cineon image file formats in imghdr module

2009-07-16 Thread Walter Arrighetti
New submission from Walter Arrighetti : In the Digital Intermediate (DI) post-production world, as well as in digital cinema/film technologies, video frames -especially those coming from a film scanner- are stored in sequences of image files, whose two primary formats are the Digital Picture Exch

[issue6490] os.popen documentation in 2.6 is probably wrong

2009-07-16 Thread krawyoti
krawyoti added the comment: Georg, please note that os.popen *is* documented in 3.1. See attached screen shot. -- Added file: http://bugs.python.org/file14509/docs.png ___ Python tracker ___

[issue6496] 2to3 generates "from urllib.parse import pathname2url"

2009-07-16 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar : Both pathname2url and url2pathname are in the urllib.request module, but 2to3 thinks they are in urllib.parse module. sridh...@double:~/tmp/eric1$ cat foo.py from urllib import pathname2url, url2pathname sridh...@double:~/tmp/eric1$ /opt/ActivePython-3

[issue6482] PATCH: tiny simplification for subprocess

2009-07-16 Thread David Goodger
David Goodger added the comment: To clarify my last message: the log message for r74028 ('simplify "except: raise" to "finally:"') implies a nonexistent equivalence. So was the log message in error, or the change itself? -- ___ Python tracker

[issue6482] PATCH: tiny simplification for subprocess

2009-07-16 Thread David Goodger
David Goodger added the comment: r74028 changes the logic of the code. The "finally" clause always executes, regardless of whether or not an exception was raised. The previous behavior only executed when there was an exception. I don't know if the previous logic was correct, or the new logic,

[issue6431] Fraction fails equality test with a user-defined type

2009-07-16 Thread Jeffrey Yasskin
Jeffrey Yasskin added the comment: The fallback behavior in Fraction was meant to demonstrate the suggested fallback behavior for user-defined types. In particular, the idea was that all Reals would (by default) be comparable to each other, even if they didn't know about each other. Unfortuna

[issue1524938] PEP MemoryError with a lot of available memory gc not called

2009-07-16 Thread Mark Matusevich
Mark Matusevich added the comment: It looks like the severity of this problem is underestimated here. A programmer working with a significant amount of data (e.g SciPy user) and uses OOP will face this problem. Most OOP designs result in existence of some loops (e.g. two way connections). Some

[issue6487] Some index entries appear in black

2009-07-16 Thread Mitchell Model
Mitchell Model added the comment: doh. sorry. I was in a reading mode, not a "using" mode, and wasn't thinking of the entries as links, though of course I use them that way all the time. The pages just seemed oddly sprinkled with black items. All I said is that I couldn't find any pattern -- doe

[issue6473] hmac sha384/sha512 fails test vectors

2009-07-16 Thread Hagen Fürstenau
Hagen Fürstenau added the comment: Seems like this has already been fixed as issue 1385. -- nosy: +hagen ___ Python tracker ___ ___ Py

[issue6482] PATCH: tiny simplification for subprocess

2009-07-16 Thread Georg Brandl
New submission from Georg Brandl : Thanks, committed in r74028. -- nosy: +georg.brandl resolution: -> accepted status: open -> closed ___ Python tracker ___ _

[issue1327594] Static Windows Build fails to locate existing installation

2009-07-16 Thread Martin v . Löwis
Martin v. Löwis added the comment: I think it would be nice to support it, atleast in the C files (not necessarily, but possibly, in the project files as well). The point of a static Python library is that you can embed it into an application without requiring an additional DLL. That also allow

[issue6431] Fraction fails equality test with a user-defined type

2009-07-16 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks again, casevh! The patch looks good. I've added to it a bit, though---see issue6431.patch. In detail: - don't use subtraction with unknown types for <, <=, >, >=; this is dangerous, since the unknown type may well do a lossy conversion, and compa

[issue1327594] Static Windows Build fails to locate existing installation

2009-07-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Do we want to support this? What is the use of a static build? -- nosy: +amaury.forgeotdarc ___ Python tracker ___

[issue4147] xml.dom.minidom toprettyxml: omit whitespace for text-only elements

2009-07-16 Thread Jim Garrison
Jim Garrison added the comment: To clarify: ... it should never alter the content of (i.e. insert whitespace into) existing text elements that contain non-whitespace characters. -- ___ Python tracker _

[issue6490] os.popen documentation in 2.6 is probably wrong

2009-07-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: By the way, shouldn't the various posix.spawnv* functions be officiall deprecated as well? -- nosy: +amaury.forgeotdarc ___ Python tracker ___

[issue6490] os.popen documentation in 2.6 is probably wrong

2009-07-16 Thread Guido van Rossum
Guido van Rossum added the comment: I am guessing the reason to keep os.popen() (albeit now reimplemented using subprocess) is that it is a convenient wrapper for a common use case and also familiar. I see no problem with this. (Indeed the big problem was with the proliferation of popenN wi

[issue6493] Can not set value for structure members larger than 32 bits

2009-07-16 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : Added file: http://bugs.python.org/file14507/ctypes_workaround_2.patch ___ Python tracker ___ ___ Python-bugs-li

[issue6433] multiprocessing: pool.map hangs on empty list

2009-07-16 Thread Jesse Noller
Changes by Jesse Noller : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue6433] multiprocessing: pool.map hangs on empty list

2009-07-16 Thread Jesse Noller
Jesse Noller added the comment: committed r74023 on trunk -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue6493] Can not set value for structure members larger than 32 bits

2009-07-16 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: What's your platform? I could reproduce this on windows. And I found attached patch can workaround this. -- keywords: +patch nosy: +ocean-city Added file: http://bugs.python.org/file14506/ctypes_workaround.patch

[issue6490] os.popen documentation in 2.6 is probably wrong

2009-07-16 Thread Benjamin Peterson
Benjamin Peterson added the comment: I have no idea either. It seems os.popen is now a hacked up to use subprocess, so it seems intentional to keep it. Guido, you made this change; is os.peopen supposed to be gone in 3.x? -- nosy: +gvanrossum ___ Pyt

[issue6444] multiline exception logging via syslog handler

2009-07-16 Thread R. David Murray
R. David Murray added the comment: I can confirm the issue with syslog-ng, and also that it works fine with FreeBSD's syslogd. That said, in the googling I did I ran across code from another project that splits log lines at newlines and also if the logged line is too long...apparently some impl

[issue6495] particular variable's name case exception attributeError

2009-07-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Well, "Errors should never pass silently." In this case, it is possible to replace "Person.population" by "self.__class__.population". This said, it could be interesting to cleanup modules in a more predictive way, for example in the reverse order of thei

[issue6495] particular variable's name case exception attributeError

2009-07-16 Thread Mark Dickinson
Mark Dickinson added the comment: This has to do with the order that things are deleted/cleaned-up on interpreter shutdown. In the reported case, it just happens that the 'Person' entry in the globals() dict is deleted *before* __del__ is called on the last Person instance, causing problems

[issue6495] particular variable's name case exception attributeError

2009-07-16 Thread R. David Murray
R. David Murray added the comment: You examples both work for me. Please go to python-list or python-tutor for help debugging your code. In particular you need to learn more about __del__ and why you probably don't want to be using it. rdmur...@maestro:~/python/trunk>./python Python 2.7a0 (

[issue6495] particular variable's name case exception attributeError

2009-07-16 Thread tq0fqeu
New submission from tq0fqeu : To create a instance of Class Person [code] rosss = Person('ross') rosss.sayHi() rosss.howMany() [/code] It's OK But [code] ross = Person('ross') ross.sayHi() ross.howMany() [/code] It has exception, get that: Exception AttributeError: "'NoneType' object has no attr

[issue6412] Titlecase as defined in Unicode Case Mappings not followed

2009-07-16 Thread Christoph Burgmer
Christoph Burgmer added the comment: Casing algorithms should follow Section 3.13 "Default Case Algorithms" in the standard itself, not UTR#21. See http://www.unicode.org/Public/5.2.0/ucd/DerivedCoreProperties-5.2.0d11. Unicode 5.2. A nice mail on the Unicode mail list has a bit explanation to

[issue6481] PATCH: typo in subprocess documentation

2009-07-16 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r74022. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue6487] Some index entries appear in black

2009-07-16 Thread Georg Brandl
Georg Brandl added the comment: I'm not sure which items you refer to. The only unlinked items I see are some with subterms, where the parent term has no index entry. -- resolution: -> works for me status: open -> pending ___ Python tracker

[issue3341] "Suggest a change" link

2009-07-16 Thread Georg Brandl
Georg Brandl added the comment: Since this will be handled by Sphinx, it is not an issue for this tracker. -- resolution: -> out of date status: open -> closed ___ Python tracker __

[issue6486] Library doc introduction strangely points to "Built-in Objects" as a starting point

2009-07-16 Thread Georg Brandl
Georg Brandl added the comment: I moved the link target to the "built-in functions" section in r74021. For the other issue, I wanted to restructure the builtins docs anyway for a long time, this will be part of it. -- resolution: -> fixed status: open -> closed __

[issue6490] os.popen documentation in 2.6 is probably wrong

2009-07-16 Thread Georg Brandl
Georg Brandl added the comment: Actually popen() isn't documented anymore in the 3.1 docs. However, I don't know about the "real" deprecation status. Benjamin? -- assignee: georg.brandl -> benjamin.peterson nosy: +benjamin.peterson ___ Python track

[issue5910] kqueue for more than one event is broken.

2009-07-16 Thread Georg Brandl
Georg Brandl added the comment: Patch looks good, committed with test in r74020. -- assignee: christian.heimes -> georg.brandl nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue5753] CVE-2008-5983 python: untrusted python modules search path

2009-07-16 Thread Tomas Hoger
Tomas Hoger added the comment: This is not really the same thing as issue 946373. That one seems to be about adding script's directory as the first thing in sys.path. Comments there seem to mix both interactive ('' in sys.path) and non-interactive (os.path.dirname(os.path.abspath(sys.argv[0]))