[issue6477] Pickling of NoneType raises PicklingError

2009-07-16 Thread Hagen Fürstenau
Hagen Fürstenau hfuerste...@gmx.net added the comment: but I think it is a bug I think it is either a feature request (make NoneType picklable) or a documentation issue (document that it's not). -- nosy: +hagen ___ Python tracker

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

2009-07-16 Thread Tomas Hoger
Tomas Hoger tho...@redhat.com 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

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

2009-07-16 Thread Georg Brandl
Georg Brandl ge...@python.org 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 rep...@bugs.python.org

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

2009-07-16 Thread Georg Brandl
Georg Brandl ge...@python.org 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

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

2009-07-16 Thread Georg Brandl
Georg Brandl ge...@python.org 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

[issue3341] Suggest a change link

2009-07-16 Thread Georg Brandl
Georg Brandl ge...@python.org 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 rep...@bugs.python.org http://bugs.python.org/issue3341

[issue6487] Some index entries appear in black

2009-07-16 Thread Georg Brandl
Georg Brandl ge...@python.org 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

[issue6481] PATCH: typo in subprocess documentation

2009-07-16 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, fixed in r74022. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6481 ___

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

2009-07-16 Thread Christoph Burgmer
Christoph Burgmer cburg...@ira.uka.de 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

[issue6495] particular variable's name case exception attributeError

2009-07-16 Thread tq0fqeu
New submission from tq0fqeu tq0f...@gmail.com: 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'

[issue6495] particular variable's name case exception attributeError

2009-07-16 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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.

[issue6495] particular variable's name case exception attributeError

2009-07-16 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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

[issue6495] particular variable's name case exception attributeError

2009-07-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com 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

[issue6444] multiline exception logging via syslog handler

2009-07-16 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

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

2009-07-16 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org 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

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

2009-07-16 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp 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

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

2009-07-16 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: committed r74023 on trunk -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6433 ___ ___

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

2009-07-16 Thread Jesse Noller
Changes by Jesse Noller jnol...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6433 ___

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

2009-07-16 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: Added file: http://bugs.python.org/file14507/ctypes_workaround_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6493 ___

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

2009-07-16 Thread Guido van Rossum
Guido van Rossum gu...@python.org 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

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

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

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

2009-07-16 Thread Jim Garrison
Jim Garrison jgarri...@troux.com 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 rep...@bugs.python.org

[issue1327594] Static Windows Build fails to locate existing installation

2009-07-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Do we want to support this? What is the use of a static build? -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1327594

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

2009-07-16 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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

[issue1327594] Static Windows Build fails to locate existing installation

2009-07-16 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de 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

[issue6482] PATCH: tiny simplification for subprocess

2009-07-16 Thread Georg Brandl
New submission from Georg Brandl ge...@python.org: Thanks, committed in r74028. -- nosy: +georg.brandl resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6482

[issue6473] hmac sha384/sha512 fails test vectors

2009-07-16 Thread Hagen Fürstenau
Hagen Fürstenau hfuerste...@gmx.net added the comment: Seems like this has already been fixed as issue 1385. -- nosy: +hagen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6473 ___

[issue6487] Some index entries appear in black

2009-07-16 Thread Mitchell Model
Mitchell Model m...@acm.org 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

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

2009-07-16 Thread Mark Matusevich
Mark Matusevich mark...@users.sourceforge.net 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

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

2009-07-16 Thread Jeffrey Yasskin
Jeffrey Yasskin jyass...@gmail.com 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

[issue6482] PATCH: tiny simplification for subprocess

2009-07-16 Thread David Goodger
David Goodger good...@python.org 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,

[issue6482] PATCH: tiny simplification for subprocess

2009-07-16 Thread David Goodger
David Goodger good...@python.org 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

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

2009-07-16 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar sridh...@activestate.com: 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

[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 riemann.ch...@gmail.com: 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

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

2009-07-16 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com 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 rep...@bugs.python.org

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

2009-07-16 Thread krawyoti
krawyoti krawy...@yahoo.com 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 rep...@bugs.python.org

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

2009-07-16 Thread Georg Brandl
Georg Brandl ge...@python.org 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 rep...@bugs.python.org

[issue6482] PATCH: tiny simplification for subprocess

2009-07-16 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Very true. Since there was no indication that the previous version was faulty, reverted in r74029. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6482

[issue6487] Some index entries appear in black

2009-07-16 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6487 ___ ___ Python-bugs-list

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

2009-07-16 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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

[issue6473] hmac sha384/sha512 fails test vectors

2009-07-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com 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 rep...@bugs.python.org

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

2009-07-16 Thread Jeffrey Yasskin
Jeffrey Yasskin jyass...@gmail.com added the comment: If you think it's better, I'm happy to make the other tradeoff. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6431 ___

[issue2622] Import errors in email.message.py

2009-07-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com 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 Case Van Horsen
Case Van Horsen cas...@gmail.com added the comment: On Thu, Jul 16, 2009 at 11:34 AM, Mark Dickinsonrep...@bugs.python.org wrote: Mark Dickinson dicki...@gmail.com added the comment: Thanks again, casevh!  The patch looks good.  I've added to it a bit, though---see issue6431.patch.  In

[issue6498] Py_Main() does not return on SystemExit

2009-07-16 Thread Rogi
New submission from Rogi r...@linuxmail.org: 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

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

2009-07-16 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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 -

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

2009-07-16 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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 rep...@bugs.python.org

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

2009-07-16 Thread Ezio Melotti
New submission from Ezio Melotti ezio.melo...@gmail.com: 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:

[issue6267] Cumulative patcc:h to http and xmlrpc

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

[issue6498] Py_Main() does not return on SystemExit

2009-07-16 Thread Raphaela
Raphaela rakeka_mo...@hotmail.com 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 rep...@bugs.python.org

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

2009-07-16 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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

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

2009-07-16 Thread Senthil
Senthil orsent...@gmail.com 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 rep...@bugs.python.org

[issue6415] warnings.warn segfaults on bad formatted string

2009-07-16 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- components: +Interpreter Core priority: - release blocker stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6415 ___

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

2009-07-16 Thread Brett Cannon
Brett Cannon br...@python.org 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

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

2009-07-16 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6449 ___ ___

[issue6415] warnings.warn segfaults on bad formatted string

2009-07-16 Thread Brett Cannon
Brett Cannon br...@python.org 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: