[issue5901] missing meta-info in documentation pdf

2009-05-01 Thread Vito De Tullio
New submission from Vito De Tullio : from http://docs.python.org/download.html and http://docs.python.org/3.0/download.html you can download the python documentation in many formats (html, pdf, txt), I think auto-generated by the .rst source. While html and txt does not, the pdf format, supports

[issue5084] unpickling does not intern attribute names

2009-05-01 Thread Jake McGuire
Jake McGuire added the comment: This fell through the cracks. But the following unit test seems like it does the right thing (fails with the old module, works with the new ones). -- Added file: http://bugs.python.org/file13835/pickletester.diff ___

[issue3959] Add Google's ipaddr.py to the stdlib

2009-05-01 Thread Guido van Rossum
Changes by Guido van Rossum : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/

[issue3959] Add Google's ipaddr.py to the stdlib

2009-05-01 Thread Matthew Smart
Matthew Smart added the comment: Woo! On May 1, 2009 5:48 PM, "Gregory P. Smith" wrote: Gregory P. Smith added the comment: I merged ipaddr into py3k. I can't lookup the revision number (r72186?) at the moment since svn.python.org is having problems. anyways, thanks pmoody & other ipaddr d

[issue3959] Add Google's ipaddr.py to the stdlib

2009-05-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: I merged ipaddr into py3k. I can't lookup the revision number (r72186?) at the moment since svn.python.org is having problems. anyways, thanks pmoody & other ipaddr developers! Now that the library is -in- (before the 3.1 beta cutoff :), non-API changing

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

2009-05-01 Thread Glyph Lefkowitz
Glyph Lefkowitz added the comment: Antoine, The problem is that apparently every program that embeds Python calls PySys_SetArgv and does not understand the consequences of doing so. For example, a user running 'gedit' to edit some files in a potentially insecure directory may not expect that s

[issue3959] Add Google's ipaddr.py to the stdlib

2009-05-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Not at all, it's just nicer. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue3959] Add Google's ipaddr.py to the stdlib

2009-05-01 Thread pmoody
pmoody added the comment: well, sent it for review anyway. is this a showstopper for submission? On Fri, May 1, 2009 at 1:19 PM, pmoody wrote: > > pmoody added the comment: > > I'll submit a change for this to trunk in a second. > > On Fri, May 1, 2009 at 1:16 PM, Antoine Pitrou wrote: >> >

[issue5900] Ensure RUNPATH is added to extension modules with RPATH if GNU ld is used

2009-05-01 Thread Floris Bruynooghe
New submission from Floris Bruynooghe : The build_ext command does accept a handy --rpath option to encode an RPATH in the built extension modules. However RPATH is superseded by RUNPATH since the former can not be overwritten by the LD_LIBRARY_PATH environment varialbe, while the later can. Wh

[issue5890] Subclassing property doesn't preserve the auto __doc__ behavior

2009-05-01 Thread R. David Murray
R. David Murray added the comment: Fixes from review on #python-dev by Benjamin. It looks like I also need to look at property_copy. -- Added file: http://bugs.python.org/file13832/issue5890.patch ___ Python tracker

[issue5890] Subclassing property doesn't preserve the auto __doc__ behavior

2009-05-01 Thread R. David Murray
Changes by R. David Murray : Removed file: http://bugs.python.org/file13831/issue5890.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue5867] No way to create an abstract classmethod

2009-05-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: Please ask questions like this first on python-list or the c.l.p or gmane mirrors. -- nosy: +tjreedy ___ Python tracker ___

[issue2181] optimize out local variables at end of function

2009-05-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Given that it is unlikely to give any speedup in real-world code, I don't think we should add complexity to the compiler. Recommend closing. -- nosy: +pitrou ___ Python tracker ___

[issue5084] unpickling does not intern attribute names

2009-05-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: (s/string/still/, of course...) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue5084] unpickling does not intern attribute names

2009-05-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Jake, are you string working on a test? -- priority: -> normal stage: -> needs patch versions: +Python 2.7, Python 3.1 ___ Python tracker ___

[issue5890] Subclassing property doesn't preserve the auto __doc__ behavior

2009-05-01 Thread R. David Murray
R. David Murray added the comment: What is happening here is that when __doc__ is looked up, it is found first among the attributes of the class type. __doc__ is special, and types define it to be None if it not set to anything specific. So the docstring for an instance of a subclass of proper

[issue5006] Duplicate UTF-16 BOM if a file is open in append mode

2009-05-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +lemburg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue1443504] locale.getpreferredencoding() dies when setlocale fails

2009-05-01 Thread Martin v. Löwis
Martin v. Löwis added the comment: > Let me start with the basic question: is our setlocale() supposed to > mirror POSIX' operations/semantics? Yes, it is. -- ___ Python tracker

[issue3002] shutil.copyfile blocks indefinitely on named pipes

2009-05-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r72178, r72179. Thanks! -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue2116] weakref copy module interaction

2009-05-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Raymond, Guido, any opinion on this one? -- assignee: tim_one -> nosy: +gvanrossum, rhettinger stage: -> patch review versions: +Python 2.7, Python 3.1 -Python 2.5 ___ Python tracker

[issue5596] memory leaks in 3.1

2009-05-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file13459/py3k_fix_leak_of_fileio.patch ___ Python tracker ___ ___ Python-bugs

[issue5596] memory leaks in 3.1

2009-05-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file13460/py3k_fix_leak_of_test_socket.patch ___ Python tracker ___ ___ Pytho

[issue5899] test_capi crashes when called more than once

2009-05-01 Thread Antoine Pitrou
New submission from Antoine Pitrou : This happens when looking for reference leaks: $ ./python -m test.regrtest -R3:2 test_capi Could not find '/home/antoine/py3k/debug/Lib/test' in sys.path to remove it test_capi beginning 5 repetitions 12345 test test_capi crashed -- : test_lazy_hash_inheritan

[issue5410] msvcrt bytes cleanup

2009-05-01 Thread Benjamin Peterson
Benjamin Peterson added the comment: Applied in r72185. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Pyt

[issue5726] ld_so_aix does exit successfully even in case of failure

2009-05-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed, thanks! -- resolution: accepted -> fixed status: open -> closed ___ Python tracker ___ __

[issue3672] Ill-formed surrogates not treated as errors during encoding/decoding

2009-05-01 Thread Benjamin Peterson
Benjamin Peterson added the comment: http://codereview.appspot.com/52081/diff/1/5 File Doc/library/codecs.rst (right): http://codereview.appspot.com/52081/diff/1/5#newcode326 Line 326: In addition, the following error handlers are specific to only selected "In addition, the following error hand

[issue5596] memory leaks in 3.1

2009-05-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Current status here: test_multiprocessing leaked [24, 0] references, sum=24 test_urllib2 leaked [227, 227] references, sum=454 test_urllib2_localnet leaked [3, 3] references, sum=6 -- ___ Python tracker

[issue1443504] locale.getpreferredencoding() dies when setlocale fails

2009-05-01 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Sorry, I was actually off by a method last night. It turns out the problem lies in _localemodule.c. Let me start with the basic question: is our setlocale() supposed to mirror POSIX' operations/semantics? -- ___

[issue5883] detach() implementation

2009-05-01 Thread Benjamin Peterson
Benjamin Peterson added the comment: Applied in r72175. -- resolution: -> accepted status: open -> closed ___ Python tracker ___ ___

[issue5898] Hang in Popen.wait() when another process has been created

2009-05-01 Thread François Granade
François Granade added the comment: Note that I use this wait(), otherwise, on CygWin, proc1 does not properly dies, and leaves opened (undeletable - that's windows !) files around -- ___ Python tracker ___

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

2009-05-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: I wanted to read the patch at https://bugzilla.redhat.com/attachment.cgi?id=334888 but apparently its access is restricted... -- ___ Python tracker

[issue1443504] locale.getpreferredencoding() dies when setlocale fails

2009-05-01 Thread Martin v. Löwis
Martin v. Löwis added the comment: > But I am curious about your thoughts about the _parse_localename() > method being called from setlocale() raising a ValueError, whereas a > setlocale(LC_CTYPE, "") should not fail at all, which it currently does > if the locale in the environment is not valid

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

2009-05-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: What is the problem exactly? An user can run arbitrary Python code from a file in his own account -- well, sure, that's a feature. Unless I'm misunderstanding something. -- nosy: +pitrou ___ Python tracker

[issue3959] Add Google's ipaddr.py to the stdlib

2009-05-01 Thread pmoody
pmoody added the comment: I'll submit a change for this to trunk in a second. On Fri, May 1, 2009 at 1:16 PM, Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > > Is there any chance the test methods in test_ipaddr can be PEP8-ified? > > -- > > _

[issue3959] Add Google's ipaddr.py to the stdlib

2009-05-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Is there any chance the test methods in test_ipaddr can be PEP8-ified? -- ___ Python tracker ___ ___

[issue5898] Hang in Popen.wait() when another process has been created

2009-05-01 Thread François Granade
New submission from François Granade : If I remove the "proc2.stdin.close()" in the script below, the "proc1.wait()" will hang. Tested on MacOS, Linux, CygWin on 2.5.2 and 2.6. Is it a bug ? from subprocess import Popen, PIPE proc1 = Popen('cat -', shell=True, stdin=PIPE, stdout=PIPE) proc2 = Po

[issue1443504] locale.getpreferredencoding() dies when setlocale fails

2009-05-01 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: OK, then I'll apply it. But I am curious about your thoughts about the _parse_localename() method being called from setlocale() raising a ValueError, whereas a setlocale(LC_CTYPE, "") should not fail at all, which it currently does if the locale

[issue1662] [patch] assert tp_traverse in PyType_GenericAlloc()

2009-05-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: It would be probably be better to put this check in PyType_Ready() instead. -- nosy: +pitrou versions: +Python 2.7, Python 3.1 -Python 2.6 ___ Python tracker __

[issue3959] Add Google's ipaddr.py to the stdlib

2009-05-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: Committed to trunk (2.7) in r72173. I'll merge it into py3k later this afternoon. -- priority: normal -> release blocker versions: -Python 2.7 ___ Python tracker __

[issue1443504] locale.getpreferredencoding() dies when setlocale fails

2009-05-01 Thread Martin v. Löwis
Martin v. Löwis added the comment: The patch looks fine to me. -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing

[issue3672] Ill-formed surrogates not treated as errors during encoding/decoding

2009-05-01 Thread Martin v. Löwis
Martin v. Löwis added the comment: Fixed indexing error. -- Added file: http://bugs.python.org/file13830/surrogates.diff ___ Python tracker ___ __

[issue3672] Ill-formed surrogates not treated as errors during encoding/decoding

2009-05-01 Thread Martin v. Löwis
Changes by Martin v. Löwis : Removed file: http://bugs.python.org/file13827/surrogates.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue5650] Obsolete RFC's should be removed from doc of urllib.urlparse

2009-05-01 Thread Georg Brandl
Georg Brandl added the comment: Yes, you've probably a better understanding of what differentiates an URL and URI than me :) -- ___ Python tracker ___ ___

[issue5893] Add support to pydoc to output .rst restructured text

2009-05-01 Thread Georg Brandl
Georg Brandl added the comment: I'd like to note that what Sphinx can't do -- or better, doesn't do at the moment, is to output full reStructuredText documents when using autodoc. It directly integrates the docstrings into the doctree that will become the output. So, for the Python documentati

[issue5897] No library reference tree in chm help file

2009-05-01 Thread Georg Brandl
Georg Brandl added the comment: This is already tracked in #5764. -- resolution: -> duplicate status: open -> closed superseder: -> 2.6.2 Python Manuals CHM file seems broken ___ Python tracker __

[issue5897] No library reference tree in chm help file

2009-05-01 Thread Suraj Barkale
New submission from Suraj Barkale : In the windows help file installed with Python 2.6.2, many topics (e.g. "Python Standard Library") are shown are leaf nodes instead of books. After checking source code, `:numbered:` clause was added to many index.rst files in revision 71270. The TOC for these

[issue5896] timeit documentation

2009-05-01 Thread how rabbit feels
New submission from how rabbit feels : It should be noted in the documentation that the 'setup' argument may be a semicolon delimited list of imports: Example: t = timeit.Timer('squeezer.testRegular()', 'import squeezer; from squeezer import myStaticData1, myStaticData2, testRegular') relat

[issue5893] Add support to pydoc to output .rst restructured text

2009-05-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: oh. sphinx can already do this? nevermind then. *goes off to look closer at sphinx* -- resolution: -> rejected status: open -> closed ___ Python tracker __

[issue5895] socketmodule.c on HPUX ia64 without _XOPEN_SOURCE_EXTENDED compiles incorrectly

2009-05-01 Thread Naoyuki Tai
New submission from Naoyuki Tai : Python can build without _XOPEN_SOURCE_EXTENDED on HPUX ia64 but the socket module is bust. This is because APIs like getsockname() do not use socklen_t*. Instead it is defined using int* for some of arguments. In socketmodule.c, it consistently use socklent_t wh

[issue5889] Extra comma in enum - fails on AIX

2009-05-01 Thread Georg Brandl
Georg Brandl added the comment: Yes, in fact it already has been merged. -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue1685453] email package should work better with unicode

2009-05-01 Thread Ben Gamari
Changes by Ben Gamari : -- nosy: +bgamari ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue1555842] email package and Unicode strings handling

2009-05-01 Thread Ben Gamari
Changes by Ben Gamari : -- nosy: +bgamari ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue5889] Extra comma in enum - fails on AIX

2009-05-01 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: Georg, should this fix also be applied to the py3k branch as I am able to repro this on 3.1a2? -- ___ Python tracker ___ ___

[issue5859] Remove implicit '%f' -> '%g' switch from float formatting.

2009-05-01 Thread Mark Dickinson
Mark Dickinson added the comment: Fixed in r72165. -- resolution: -> accepted status: open -> closed ___ Python tracker ___ ___ Pytho

[issue5829] float('1e500') -> inf, complex('1e500') -> ValueError

2009-05-01 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: -> marketdickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue5893] Add support to pydoc to output .rst restructured text

2009-05-01 Thread R. David Murray
R. David Murray added the comment: Personally I think that the Sphinx autodoc extension does a better job of this than having pydoc export .rst would. Is there some regard in which that doesn't solve your problem? -- nosy: +r.david.murray priority: normal -> low __

[issue5859] Remove implicit '%f' -> '%g' switch from float formatting.

2009-05-01 Thread Mark Dickinson
Mark Dickinson added the comment: Here's the patch that actually removes the %f -> %g switch. -- Added file: http://bugs.python.org/file13829/issue5859_stage2.patch ___ Python tracker __

[issue5883] detach() implementation

2009-05-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: The new patch looks good. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5859] Remove implicit '%f' -> '%g' switch from float formatting.

2009-05-01 Thread Eric Smith
Eric Smith added the comment: The patch looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue5859] Remove implicit '%f' -> '%g' switch from float formatting.

2009-05-01 Thread Mark Dickinson
Mark Dickinson added the comment: No new test failures on Linux or OS X, with or without the fallback code. I've committed this in r72161. -- ___ Python tracker ___ ___

[issue5861] test_urllib fails on windows

2009-05-01 Thread Senthil
Senthil added the comment: I had made that change. tested only linux, where it was all pass. Shall address this one soon. -- assignee: -> orsenthil nosy: +orsenthil ___ Python tracker _

[issue1591035] update urlparse to RFC 3986

2009-05-01 Thread Senthil
Changes by Senthil : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue1643370] recursive urlparse

2009-05-01 Thread Senthil
Changes by Senthil : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue5650] Obsolete RFC's should be removed from doc of urllib.urlparse

2009-05-01 Thread Senthil
Senthil added the comment: Georg, shall I take up this one? -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue5859] Remove implicit '%f' -> '%g' switch from float formatting.

2009-05-01 Thread Mark Dickinson
Changes by Mark Dickinson : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5859] Remove implicit '%f' -> '%g' switch from float formatting.

2009-05-01 Thread Mark Dickinson
Mark Dickinson added the comment: Here's a patch which doesn't fix the '%f' -> '%g' switch, but paves the way for that switch by getting rid of the fixed-size buffers in formatfloat in unicodeobject.c, and in the fallback version of PyOS_double_to_string. -- keywords: +patch Added file:

[issue5883] detach() implementation

2009-05-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: > The various structures now contain several 'boolean' flags. It would > improve memory usage to use bitfields. Or would this impact performance > ? Those structures usually allocate a 4KB- or 8KB- buffer each, so I don't think squeezing two or three bytes wo

[issue4587] Need to rework the dbm lib/include selection process

2009-05-01 Thread Matthias Klose
Matthias Klose added the comment: applied on the py3k branch as well -- resolution: -> accepted status: open -> closed ___ Python tracker ___ ___

[issue5894] Lookup of localised language name by ISO 639 language code and reverse look up

2009-05-01 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Babel already provides (almost all of) this. It uses the Unicode CLDR data to present the information you need. See http://babel.edgewall.org/ -- nosy: +asmodai ___ Python tracker

[issue3672] Ill-formed surrogates not treated as errors during encoding/decoding

2009-05-01 Thread Martin v. Löwis
Martin v. Löwis added the comment: rietveld: http://codereview.appspot.com/52081 -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue3672] Ill-formed surrogates not treated as errors during encoding/decoding

2009-05-01 Thread Martin v. Löwis
Martin v. Löwis added the comment: Here is a patch that implements this proposed approach. It introduces a "surrogates" error handler, useful only for the utf-8 codec. If this is accepted, the implementation of PEP 383 can be simplified significantly, essentially removing the need for a separat

[issue5714] CGIHTTPServer._url_collapse_path_split should live elsewhere

2009-05-01 Thread Senthil
Senthil added the comment: Yes, the parsing best be done in urlparse. As this function claims to do step 6 of RFC2396, I am surprised why it cannot be done by using existing urlparse functions itself.(Because, the tests for RFC2396 compliance covers those cases too). -- nosy: +orsenthi

[issue5889] Extra comma in enum - fails on AIX

2009-05-01 Thread Georg Brandl
Georg Brandl added the comment: The comma isn't required, but it's good practice in Python to end lists with a comma (so that you don't forget adding it when adding new items), and this habit probably made it into C code there. Fixed in r72159. -- nosy: +georg.brandl resolution: -> fi

[issue5894] Lookup of localised language name by ISO 639 language code and reverse look up

2009-05-01 Thread Martin v. Löwis
Martin v. Löwis added the comment: I think the pycountry module might be helpful: http://pypi.python.org/pypi/pycountry As it is at version 0.11, I think it is very far away of being ready for inclusion in the standard library. If this doesn't quite do what you want, please cooperate with the

[issue5887] mmap.write_byte out of bounds - no error, position gets screwed up

2009-05-01 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Can you try this with Python2.6.2? I believe this bug got fixed. -- nosy: +ocean-city ___ Python tracker ___

[issue5883] detach() implementation

2009-05-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The various structures now contain several 'boolean' flags. It would improve memory usage to use bitfields. Or would this impact performance ? -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue5894] Lookup of localised language name by ISO 639 language code and reverse look up

2009-05-01 Thread pander
New submission from pander : Hi all, Does a module exist that can look up localised language names for ISO 639 language codes? If not, could one be constructed according to (sort of) the following specifications? 1) Look up a localised language name for an ISO 639-1 language code for a required

[issue5893] Add support to pydoc to output .rst restructured text

2009-05-01 Thread Gregory P. Smith
New submission from Gregory P. Smith : When writing documentation for a module that is already well documented in its docstrings, I really wish pydoc could output .rst directly. It'd mean much less manual editing. -- components: Demos and Tools messages: 86866 nosy: gregory.p.smith prio