[issue5760] __getitem__ error message hard to understand

2009-04-14 Thread Chris Rebert
New submission from Chris Rebert : Prompted by http://mail.python.org/pipermail/python-ideas/2009-April/004048.html The current error message issued when trying to use the get item ([]) operator on an object that does not define __getitem__ can be hard to understand: >>> class A(object): pass .

[issue4291] Allow Division of datetime.timedelta Objects

2009-04-14 Thread Jeremy Banks
Jeremy Banks added the comment: Redundant with #2706 and others. -- nosy: -belopolsky, haypo, marketdickinson status: open -> closed ___ Python tracker ___ _

[issue5735] Segfault when loading not recompiled module

2009-04-14 Thread Leonid Vasilev
Leonid Vasilev added the comment: Thanks for patch, it works now: Python compiled with --with-pydebug throws an ImportError when trying to import modules compiled without --with-pydebug, as it should: ImportError: /usr/local/lib/python3.0/site-packages/ext23.so: undefined symbol: PyModule_Crea

[issue5759] Do not call __float__ to classec derived from str

2009-04-14 Thread Alexandr Zamaraev
New submission from Alexandr Zamaraev : Test case: [code] class S: def __init__(self, v): self.data = v def __int__(self): print("S.INT called") return int(str(self.data)) def __float__(self): print("S.FLOAT called") return float(str(self.data)

[issue5758] fileinput.hook_compressed returning bytes from gz file

2009-04-14 Thread Michael Newman
New submission from Michael Newman : The attached ZIP file contains "test.bat" which runs "test.py" with Python 2.6 and Python 3.0. Python 2.6 behaves as expected (see "py26.out"), since it returns strings from both "mike.txt" and "mike.txt.gz". However, the same test with Python 3.0 returns byt

[issue5757] Documentation error for Condition.notify()

2009-04-14 Thread Piet van Oostrum
New submission from Piet van Oostrum : The documentation for Condition.notify() in module threading (Library Reference) contains an error: The second sentence (Wait until notified or until a timeout occurs.) shouldn't be there. Apparently it was copied and pasted from wait(). -- assignee

[issue5754] Shelve module writeback parameter does not act as advertised

2009-04-14 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> aleax nosy: +aleax ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue5756] idle pydoc et al removed from 3.1 without versioned replacements

2009-04-14 Thread David Ripton
David Ripton added the comment: issue1590 was only supposed to fix "make altinstall", which is a secondary install target intended specifically to not break the primary Python on a system. I agree with Ned that if it changed the behavior of "make install" then the change was broken. --

[issue5735] Segfault when loading not recompiled module

2009-04-14 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Normally, modules compiled with incompatible settings should generate a link-time error (like: Undefined symbol PyModule_Create). This used to work with 2.x, but a typo in a macro broke this for 3.x. Patch attached. -- keywords: +needs review, p

[issue1590] "make altinstall" installs pydoc, idle, smtpd.py

2009-04-14 Thread Ned Deily
Ned Deily added the comment: r71400 breaks installer builds. See issue5756. -- nosy: +nad ___ Python tracker ___ ___ Python-bugs-list

[issue5756] idle pydoc et al removed from 3.1 without versioned replacements

2009-04-14 Thread Ned Deily
Changes by Ned Deily : -- nosy: +benjamin.peterson, ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue5756] idle pydoc et al removed from 3.1 without versioned replacements

2009-04-14 Thread Ned Deily
New submission from Ned Deily : RELEASE BLOCKER r71400 and r71401 changed py3k setup.py to comment out the installation of the scripts for pydoc, idle, 2to5, and smtpd.py. This was in response to issue1590 noting that python3 should not overwrite python2 versions of the scripts. However, un

[issue5154] OSX broken poll testing doesn't work

2009-04-14 Thread Nicolas Dumazet
Changes by Nicolas Dumazet : -- nosy: +nicdumz ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue5755] "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++"

2009-04-14 Thread Zooko O'Whielacronx
New submission from Zooko O'Whielacronx : A user of the Tahoe-LAFS project submitted a bug report to us, saying: """ I get lots of "cc1plus: warning: command line option "-Wstrict- prototypes" is valid for Ada/C/ObjC but not for C++" when compiling """ A little googling shows that this gets rep

[issue5754] Shelve module writeback parameter does not act as advertised

2009-04-14 Thread Jorge Herskovic
New submission from Jorge Herskovic : The shelve module documentation states that "by default, mutations to persistent-dictionary mutable entries are not automatically written back. If the optional writeback parameter is set to True, all entries accessed are cached in memory, and written back at

[issue2587] PyString_FromStringAndSize() to be considered unsafe

2009-04-14 Thread Petr Splichal
Petr Splichal added the comment: Justin, is there any reproducer available for this issue? Thanks! -- nosy: +psss ___ Python tracker ___ _

[issue2588] PyOS_vsnprintf() underflow leads to memory corruption

2009-04-14 Thread Petr Splichal
Petr Splichal added the comment: Justin, is there any reproducer available for this issue? Thanks! -- nosy: +psss ___ Python tracker ___ _

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

2009-04-14 Thread Petr Splichal
Changes by Petr Splichal : -- nosy: +psss ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue1006238] cross compile patch

2009-04-14 Thread Thomas Heller
Changes by Thomas Heller : -- nosy: +theller ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

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

2009-04-14 Thread Jan Lieskovsky
Jan Lieskovsky added the comment: Just drop into /tmp and run (you will need the zenity package installed): python3.1 ./test.py or gedit# unfixed gedit in that directory. -- Added file: http://bugs.python.org/file13686/py_umspath_test.tar.gz ___

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

2009-04-14 Thread Jan Lieskovsky
Jan Lieskovsky added the comment: As no longer work of "python ./foo.py" after patch utilization may cause, the update won't be acceptable, could you guys review the above patch and potentially provide an another one? -- ___ Python tracker

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

2009-04-14 Thread Jan Lieskovsky
Jan Lieskovsky added the comment: To sum up the behavior, the following table displays whether modules are read from the current working directory for various ways how the python scripts can be launched (unfixed/fixed version): unfixed fixed run as ~~

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

2009-04-14 Thread Jan Lieskovsky
New submission from Jan Lieskovsky : Common Vulnerabilities and Exposures assigned an identifier CVE-2008-5983 (and related CVE ids) to the following vulnerability: Untrusted search path vulnerability in the PySys_SetArgv API function in Python 2.6 and earlier, and possibly later versions, prepe

[issue5752] xml.dom.minidom does not handle newline characters in attribute values

2009-04-14 Thread Tomalak
Changes by Tomalak : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue5752] xml.dom.minidom does not handle newline characters in attribute values

2009-04-14 Thread Tomalak
New submission from Tomalak : Current behavior upon toxml() is: Upon reading the document again, the new line is normalized and collapsed into a space (according to the XML spec, section 3.3.3), which means that it is lost. Better behavior would be something like this (within attribute values

[issue5750] weird seg fault

2009-04-14 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Closing as invalid, for two reasons: - Psyco is not a supported extension module. - This problem is already listed in Psyco's Known Bugs: http://psyco.sourceforge.net/psycoguide/bugs.html -- nosy: +amaury.forgeotdarc resolution: -> invalid status

[issue5751] Typo in documentation of print function parameters

2009-04-14 Thread Nicolas Goutte
New submission from Nicolas Goutte : In http://docs.python.org/library/functions.html#print the print function is documented to have a parameter named end with a default 'n'. However the default should be '\n' as documented in Python 3 ( http://docs.python.org/3.0/library/functions.html#print

[issue5750] weird seg fault

2009-04-14 Thread Peter Lonjers
Peter Lonjers added the comment: Hmm I just remembered I was using psyco with this code. With out it. There is a recursion depth exception not a segfault. Changing the bug to be in Extension modules. If that is the right place. -- components: +Extension Modules -Interpreter Core __