[issue8087] Unupdated source file in traceback

2011-10-10 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: (just reviewing the idea here, not the current patch) The problem of stale code (i.e. what was executed doesn't match what is displayed in the traceback) is a tricky and subtle one. There are a few different cases: 1. Source displayed does

[issue2945] bdist_rpm does not list dist files (should effect upload)

2011-10-10 Thread Carl Robben
Carl Robben carl.rob...@gmail.com added the comment: Here's a patch for test_bdist_rpm.py and to check the contents of dist.dist_files -- Added file: http://bugs.python.org/file23363/test_bdist_rpm.patch ___ Python tracker rep...@bugs.python.org

[issue2945] bdist_rpm does not list dist files (should effect upload)

2011-10-10 Thread Carl Robben
Carl Robben carl.rob...@gmail.com added the comment: Adding a patch for 2.7 -- Added file: http://bugs.python.org/file23364/bdist_rpm-2.7.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2945

[issue12753] \N{...} neglects formal aliases and named sequences from Unicode charnames namespace

2011-10-10 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: Removed file: http://bugs.python.org/file23355/issue12753-4.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12753 ___

[issue12753] \N{...} neglects formal aliases and named sequences from Unicode charnames namespace

2011-10-10 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: Added file: http://bugs.python.org/file23365/issue12753-4.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12753 ___

[issue11776] types.MethodType() params and usage is not documented

2011-10-10 Thread Guandalino
Changes by Guandalino guandal...@gmail.com: -- nosy: +guandalino ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11776 ___ ___ Python-bugs-list

[issue13143] os.path.islink documentation is ambiguous

2011-10-10 Thread Eric V. Smith
Changes by Eric V. Smith e...@trueblade.com: -- nosy: +eric.smith, jason.coombs ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13143 ___ ___

[issue1673007] urllib2 requests history + HEAD support

2011-10-10 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Attached an updated patch that addresses the comments of Éric in the review and adds an entry to the whatsnew. -- assignee: orsenthil - ezio.melotti keywords: +needs review nosy: -BreamoreBoy stage: patch review - commit review

[issue13144] Global Module Index link in the offline documentation is incorrect

2011-10-10 Thread Graeme Glass
New submission from Graeme Glass graemegl...@gmail.com: On my machine (Ubuntu 11.04) the link to Python Module Index from the index page is incorrect in the Indices and tables section (it links to modindex.html instead of py-modindex.html). It links to the correct place in the navigation

[issue13062] Introspection generator and function closure state

2011-10-10 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: No, the naming problem had occurred to me as well. Given the 'vars' builtin, perhaps 'getclosurevars' would do as the name? -- ___ Python tracker rep...@bugs.python.org

[issue13145] Documentation of PyNumber_ToBase() wrong

2011-10-10 Thread Sven Marnach
New submission from Sven Marnach s...@marnach.net: The documentation of PyNumber_ToBase() [1] states When base is not 2, 8, 10, or 16, the format is 'x#num' where x is the base. In reality, the function does not accept any bases different from 2, 8, 10, or 16, as can be seen in the

[issue1673007] urllib2 requests history + HEAD support

2011-10-10 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: Hi Ezio, I had probably overlooked this one. But It's a very interesting one for me. Do you mind if I commit it ? On Oct 10, 2011 7:20 PM, Ezio Melotti rep...@bugs.python.org wrote: Ezio Melotti ezio.melo...@gmail.com added the comment:

[issue13143] os.path.islink documentation is ambiguous

2011-10-10 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Thanks Garen for the detailed analysis and writeup. The short answer to your question is supported by the Python runtime. Allow me to provide a bit of history. Symlink awareness under Windows was added to Python in Python 3.2, so the

[issue13062] Introspection generator and function closure state

2011-10-10 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: perhaps 'getclosurevars' would do as the name? I like vars. Updated patch attached. -- Added file: http://bugs.python.org/file23368/issue13062-3.patch ___ Python tracker rep...@bugs.python.org

[issue13143] os.path.islink documentation is ambiguous

2011-10-10 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Symlink awareness under Windows was added to Python in Python 3.2 If they are not available on Windows with 2.7, the doc should get an availability: unix or something similar (depending on where they are actually supported), or mention

[issue1673007] urllib2 requests history + HEAD support

2011-10-10 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I made some more comments. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1673007 ___ ___

[issue11776] types.MethodType() params and usage is not documented

2011-10-10 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- keywords: +easy versions: +Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11776 ___

[issue3902] Packages containing only extension modules have to contain __init__.py

2011-10-10 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: You did not reply to my first question on apiref.rst, and you did not rewrap your lines to 80 chars :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3902

[issue13055] Distutils tries to handle null versions but fails

2011-10-10 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The bug was encountered while trying to install a package. As it turns out, a dependency was incorrectly installed, resulting in a null version being passed around which quickly caused a crash in setup.py. While this is definitely not a normal

[issue2945] bdist_rpm does not list dist files (should effect upload)

2011-10-10 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Looks good. Do you have rpm on your machine? If yes, have you run the tests successfully? -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org

[issue12436] Missing items in installation/setup instructions

2011-10-10 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks, I will take all contributions and suggestions and propose one patch. -- assignee: docs@python - eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12436

[issue12602] Missing cross-references in Doc/using

2011-10-10 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: For new doc editors, it would be nicer if the filename (directory name, actually) had been changed to 'py_setup' or even 'py_usage'. py_setup would conflict with pysetup, the installer part of distutils2/packaging. py_ seems redundant to me,

[issue13062] Introspection generator and function closure state

2011-10-10 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: In reviewing Meador's patch (which otherwise looks pretty good), I had a thought about the functionality and signature of getclosurevars(). Currently, it equates closure to nonlocal scope, which isn't really true - the function's closure is

[issue12393] Packaging should provide support for extensible categories

2011-10-10 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Can you add tests? https://bitbucket.org/vinay.sajip/pythonv/changeset/f7c5098e3c3b -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12393

[issue13119] Newline for print() is \n on Windows, and not \r\n as expected

2011-10-10 Thread M. Zilmer
M. Zilmer mzdkm...@gmail.com added the comment: Just to make it clear: I have not observed any problems on the Windows terminal (cmd) with \n newline, but at least Notepad does not break lines correctly if only \n is used. -- ___ Python tracker

[issue3902] Packages containing only extension modules have to contain __init__.py

2011-10-10 Thread Mike Hoy
Mike Hoy mho...@gmail.com added the comment: Responded to first question in apiref and uploaded a new patch that wraps lines at 80 characters. -- Added file: http://bugs.python.org/file23369/apiref-setupscript-v3.diff ___ Python tracker

[issue8087] Unupdated source file in traceback

2011-10-10 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8087 ___ ___ Python-bugs-list

[issue12602] Missing cross-references in Doc/using

2011-10-10 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I was not necessary suggesting that the filename actually be changed, just that the mapping between docs and filenames is not always obvious. I will somedays look at the dev docs doc page and see if I have any further suggestions to help. Add

[issue13146] Writing a pyc file is not atomic

2011-10-10 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: One of the buildbots recently showed the following failure: == ERROR: test_rapid_restart (test.test_multiprocessing.WithProcessesTestManagerRestart)

[issue12659] Add tests for packaging.tests.support

2011-10-10 Thread Francisco Martín Brugué
Francisco Martín Brugué franci...@email.de added the comment: The patch is updated. Let me know if I've understood your review. Thanks ! -- Added file: http://bugs.python.org/file23370/issue12659_v3.patch ___ Python tracker rep...@bugs.python.org

[issue13062] Introspection generator and function closure state

2011-10-10 Thread Ron Adam
Changes by Ron Adam ron3...@gmail.com: -- nosy: +ron_adam ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13062 ___ ___ Python-bugs-list mailing

[issue13055] Distutils tries to handle null versions but fails

2011-10-10 Thread Ben Gamari
Ben Gamari bgam...@gmail.com added the comment: Sorry, no log is available. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13055 ___ ___

[issue13147] Multiprocessing Pool.map_async() does not have an error_callback parameter

2011-10-10 Thread Jakub Gedeon
New submission from Jakub Gedeon kazagis...@gmail.com: Multiprocessing Pool.map_async() does not have an error_callback paramter as described here http://docs.python.org/library/multiprocessing.html#multiprocessing.pool.multiprocessing.Pool.map_async I assume this is an old configuration that

[issue6715] xz compressor support

2011-10-10 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: *Very* good news for lzma on windows: The precompiled static library liblzma.a works very well with MSVC (tested with VS2008 on Windows XP, 32bit). This was a surprise for me... Here is a patch for the win32 build files, to be

[issue12602] Missing cross-references in Doc/using

2011-10-10 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Don't feel bad about not recognising the context - this stuff wasn't documented at all for a long time, and it wasn't until Georg pointed me to the usage docs that I realised adding it there would be the right place. I should have remembered

[issue13148] simple bug in mmap size check

2011-10-10 Thread Maxim Yanchenko
New submission from Maxim Yanchenko maxim.yanche...@gs.com: The condition contradicts the exception text: if (offset = st.st_size) { PyErr_SetString(PyExc_ValueError, mmap offset is greater than file size); return NULL;

[issue8065] Memory leak in readline.get_current_history_length

2011-10-10 Thread Garrett Cooper
Garrett Cooper yaneg...@gmail.com added the comment: As a note for future reference, FreeBSD/NetBSD/OpenBSD doesn't use the term bug, but instead uses the term problem report (the NetBSD website says bug though BTW). The PR system for NetBSD can be accessed here:

[issue13148] simple bug in mmap size check

2011-10-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Well, you have to understand what this code does: it tries to prevent non-meaningful offsets. If the offset is equal to the file size, mapping from that offset would not map anything in the file (and the system call may actually fail).

[issue13149] optimization for append-only StringIO

2011-10-10 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: io.StringIO is quite slower than ''.append() when used for mass concatenation (around 5x slower). This patch brings it to similar performance by deferring construction of the internal buffer until needed. The problem is that it's very easy to

[issue13148] simple bug in mmap size check

2011-10-10 Thread Maxim Yanchenko
Maxim Yanchenko maxim.yanche...@gs.com added the comment: First of all, it doesn't fail (at least on Linux), I tested it before posting. And the latest, it's not like I'm just stalking around and reading Python sources for fun. It's a real and pretty valid case, I hit it while upgrading our

[issue13148] simple bug in mmap size check

2011-10-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I don't think it makes sense to accept mmap'ing empty contents when at offset n but not at offset n + 1. Either we remove the check entirely and let people deal with the consequences, or we keep the check as-is. -- nosy: +neologix

[issue13148] simple bug in mmap size check

2011-10-10 Thread Maxim Yanchenko
Maxim Yanchenko maxim.yanche...@gs.com added the comment: Well, n+1 is clearly outside the file, wile n is within and therefore valid. Also, if your position is to forbid zero-size mmapping completely, then the checks inside if (map_size == 0) { don't make any sense, especially as they may or

[issue12753] \N{...} neglects formal aliases and named sequences from Unicode charnames namespace

2011-10-10 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: Removed file: http://bugs.python.org/file23365/issue12753-4.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12753 ___

[issue12753] \N{...} neglects formal aliases and named sequences from Unicode charnames namespace

2011-10-10 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: Added file: http://bugs.python.org/file23374/issue12753-4.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12753 ___

[issue13146] Writing a pyc file is not atomic

2011-10-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here is a patch for import.c. -- keywords: +patch Added file: http://bugs.python.org/file23375/importrename.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13146

[issue12753] \N{...} neglects formal aliases and named sequences from Unicode charnames namespace

2011-10-10 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: (I had to re-upload the patch a couple of time to get the review button to work. Apparently if there are some conflicts rietveld fails to apply the patch, whereas hg is able to merge files without problems here. Sorry for the noise.)

[issue1673007] urllib2 requests history + HEAD support

2011-10-10 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- assignee: ezio.melotti - orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1673007 ___

[issue13150] Most of Python's startup time is sysconfig

2011-10-10 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: sysconfig is imported and used by site.py. $ time ./python -S -c '' real0m0.019s user0m0.013s sys 0m0.005s $ time ./python -S -c 'import sysconfig' real0m0.047s user0m0.046s sys 0m0.002s $ time ./python -S -c 'import

[issue13150] Most of Python's startup time is sysconfig

2011-10-10 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13150 ___ ___

[issue1673007] urllib2 requests history + HEAD support

2011-10-10 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: We have discussed the API a bit on IRC and these are the outcomes: 1) should method always have priority or should 'POST' always be used whenever data is passed? 2) if the method is e.g. 'GET' and data is passed, should an error be raised?

[issue12602] Missing cross-references in Doc/using

2011-10-10 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: That was the page I said I would look at. My suggest is that one or more of the directory entries could have either a bit more information about the directory or a More info link to a separate page. As a remember, files for modules were named

[issue1673007] urllib2 requests history + HEAD support

2011-10-10 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: Our discussion stemmed from this point. If you look at the change proposed, Request class is taking a new parameter by name 'method' and it is initialized to None: class Request: def __init__(self, url, data=None, headers={}, -