[issue11633] regression: print buffers output when end=''

2012-01-09 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: I've tried to switch to Python 3 once more and stumbled upon this problem once more. Seems like this regression got stale. Last Victor's proposal seems reasonable for me. Should we open a new, more clear bug report and close this one?

[issue13741] *** glibc detected *** python: double free or corruption (!prev): 0x0000000001d53ad0 ***

2012-01-09 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: /usr/lib/python2.7/dist-packages/psycopg2/_psycopg.so(+0xd6aa)[0x7fbd27c806aa] /usr/lib/python2.7/dist-packages/psycopg2/_psycopg.so(+0xde51)[0x7fbd27c80e51]

[issue13703] Hash collision security issue

2012-01-09 Thread Zbyszek Szmek
Changes by Zbyszek Szmek zbys...@in.waw.pl: -- nosy: +zbysz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13703 ___ ___ Python-bugs-list mailing

[issue13742] Add a key parameter (like sorted) to heapq.merge

2012-01-09 Thread Simon Sapin
New submission from Simon Sapin simon.sa...@kozea.fr: Hi, The attached patch adds a 'key' optional parameter to the heapq.merge function that behaves as in sorted(). Related discussion: http://mail.python.org/pipermail/python-ideas/2012-January/013295.html This is my first contribution to

[issue13742] Add a key parameter (like sorted) to heapq.merge

2012-01-09 Thread Simon Sapin
Simon Sapin simon.sa...@kozea.fr added the comment: The attached script benchmarks the basline (current implementation) against 3 new implementations, as suggested on http://mail.python.org/pipermail/python-ideas/2012-January/013296.html On my machine, the output is: merge_baseline

[issue13741] *** glibc detected *** python: double free or corruption (!prev): 0x0000000001d53ad0 ***

2012-01-09 Thread Andrew
Andrew awnyst...@gmail.com added the comment: I'll try Python 2.6, but this says 2.7 is supported: http://initd.org/psycopg/features/ Thanks for the suggestion! -- status: pending - open ___ Python tracker rep...@bugs.python.org

[issue13742] Add a key parameter (like sorted) to heapq.merge

2012-01-09 Thread Eric V. Smith
Changes by Eric V. Smith e...@trueblade.com: -- assignee: - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13742 ___ ___

[issue11633] regression: print buffers output when end=''

2012-01-09 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: No, I don't think so. Another issue will not magically create more time for anyone. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11633

[issue13742] Add a key parameter (like sorted) to heapq.merge

2012-01-09 Thread Simon Sapin
Simon Sapin simon.sa...@kozea.fr added the comment: Oops, the patch to the documentation would also need 'New in 3.3: the key parameter', with the right Sphinx directive. But that depends on whether this change ends up in 3.3 or 3.4. Does 3.3 still get new features? --

[issue5441] Convenience API for timeit.main

2012-01-09 Thread Simon Sapin
Changes by Simon Sapin simon.sa...@kozea.fr: -- nosy: +ssapin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5441 ___ ___ Python-bugs-list mailing

[issue11633] regression: print buffers output when end=''

2012-01-09 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: On Mon, Jan 9, 2012 at 2:03 PM, Terry J. Reedy rep...@bugs.python.orgwrote: Terry J. Reedy tjre...@udel.edu added the comment: No, I don't think so. Another issue will not magically create more time for anyone. But anyone will

[issue9637] docs do not say that urllib uses HTTP_PROXY

2012-01-09 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: This patch is now more than a year old with no comment. What needs to happen to get this bug fixed? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9637

[issue13703] Hash collision security issue

2012-01-09 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Marc-Andre Lemburg wrote: Marc-Andre Lemburg m...@egenix.com added the comment: Christian Heimes wrote: Marc-Andre: Have you profiled your suggestion? I'm interested in the speed implications. My gut feeling is that your idea could

[issue13743] xml.dom.minidom.Document class is not documented

2012-01-09 Thread Sandro Tosi
New submission from Sandro Tosi sandro.t...@gmail.com: Hello, following up http://mail.python.org/pipermail/docs/2012-January/007026.html I noticed the whole Document class (and relative methods) is not documented. Maybe it is a choice to not document it, or maybe it's just a missing doc,

[issue13744] raw byte strings are described in a confusing way

2012-01-09 Thread Barry A. Warsaw
New submission from Barry A. Warsaw ba...@python.org: The lexical analysis documentation says this: http://docs.python.org/py3k/reference/lexical_analysis.html?highlight=raw%20bytes Bytes literals are always prefixed with 'b' or 'B';... Both string and bytes literals may optionally be

[issue4630] IDLE no longer respects .Xdefaults insertOffTime

2012-01-09 Thread Jelle Geerts
Jelle Geerts jellegee...@gmail.com added the comment: I, too, would like to see this as an option in IDLE, as I also find blinking cursors distracting. I can confirm that tkinter.Text's insertofftime option works on Windows as well, so the proposed patch should work on Windows. --

[issue13734] Add a generic directory walker method to avoid symlink attacks

2012-01-09 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13734 ___ ___ Python-bugs-list mailing list

[issue4489] shutil.rmtree is vulnerable to a symlink attack

2012-01-09 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4489 ___ ___ Python-bugs-list mailing list

[issue13735] The protocol 0 of cPickle does not given stable dictionary values

2012-01-09 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13735 ___ ___ Python-bugs-list mailing list

[issue13642] urllib incorrectly quotes username and password in https basic auth

2012-01-09 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: Patch attached. Note that now unquote is called with host using map(), and b64 encoded strings are no more hardcoded. Please tell me if those changes are acceptable - anyway they don't break any other unit tests. -- nosy:

[issue13744] raw byte strings are described in a confusing way

2012-01-09 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: On Jan 09, 2012, at 03:15 PM, Antoine Pitrou wrote: Antoine Pitrou pit...@free.fr added the comment: Either Python should accept both spellings +1. Been annoyed several times by this. The $64k question: is this a new feature or a bug? :)

[issue13744] raw byte strings are described in a confusing way

2012-01-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The $64k question: is this a new feature or a bug? :) Most certainly a feature... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13744

[issue13745] configuring --with-dbmliborder=bdb doesn't build the gdbm extension

2012-01-09 Thread Matthias Klose
New submission from Matthias Klose d...@debian.org: configuring --with-dbmliborder=bdb doesn't build the gdbm extension. this option should only affect the build of the dbm extension, not the build of the gdbm extension. -- messages: 150943 nosy: doko priority: low severity: normal

[issue13744] raw byte strings are described in a confusing way

2012-01-09 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: On Jan 09, 2012, at 03:35 PM, Antoine Pitrou wrote: Antoine Pitrou pit...@free.fr added the comment: The $64k question: is this a new feature or a bug? :) Most certainly a feature... In that case, since we can only add the new prefixes to

[issue13682] Documentation of os.fdopen() refers to non-existing bufsize argument of builtin open()

2012-01-09 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13682 ___ ___ Python-bugs-list

[issue13631] readline fails to parse some forms of .editrc under editline (libedit) emulation on Mac OS X

2012-01-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the analysis and patch. Have you tested that your patch does not break the readline module when linking against GNU readline? If not, I can do it. -- keywords: +needs review nosy: +eric.araujo, r.david.murray stage: -

[issue12207] Document ast.PyCF_ONLY_AST

2012-01-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: FWIW this issue was also noted by Terry in #4118, but there was no reply. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12207 ___

[issue1612012] builtin compile() doc needs PyCF_DONT_IMPLY_DEDENT

2012-01-09 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1612012 ___ ___ Python-bugs-list

[issue13677] correct docstring for builtin compile

2012-01-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The compiler flags are not really documented in the ast module doc or anywhere: see #12207 and #1612012. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13677

[issue11906] test_argparse failure in interactive mode

2012-01-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: If you don’t have easy access to a command line, you can run the test suite from a Python or IDLE shell: from test import autotest I discovered that after our discussion in this report and added it to the devguide in c18fd0ee23ed. BTW I

[issue13733] Change required to sysconfig.py for Python 2.7.2 on OS/2

2012-01-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The first diff hunk looks a clear typo fix for all versions. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13733 ___

[issue13746] ast.Tuple's have an inconsistent col_offset value

2012-01-09 Thread Igor Bronshteyn
New submission from Igor Bronshteyn igor.bronst...@gmail.com: Consider the following snippet (the file is attached): code starts a = [1, 3.14, 'abc', u'XYZ'] b = (1, 3.14, 'abc', u'XYZ') c = {1 : 3.14, 'abc' : u'XYZ'} = code ends = The list has correct position: (1,4), the

[issue13746] ast.Tuple's have an inconsistent col_offset value

2012-01-09 Thread Igor Bronshteyn
Igor Bronshteyn igor.bronst...@gmail.com added the comment: I mean, that AST generated with standard ast.parse has nodes with confusing positions. Sorry for the first indistinct message. -- ___ Python tracker rep...@bugs.python.org

[issue4489] shutil.rmtree is vulnerable to a symlink attack

2012-01-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: In case you want opinions on pathlib: I, for one, disliked Jason Orendorff’s path module, because it did not distinguish between pure string operations and I/O-inducing operations, and also because it duplicated os/os.path functions. Your API

[issue9253] argparse: optional subparsers

2012-01-09 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- Removed message: http://bugs.python.org/msg150758 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9253 ___

[issue9253] argparse: optional subparsers

2012-01-09 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- Removed message: http://bugs.python.org/msg150815 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9253 ___

[issue9253] argparse: optional subparsers

2012-01-09 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- Removed message: http://bugs.python.org/msg150820 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9253 ___

[issue9253] argparse: optional subparsers

2012-01-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for persevering in the face of VCS complications :) I have added a warning to the obsolete Git wiki page; I can’t do anything for the argparse Google code page. Anyway, trust us that argparse in the 3.3 stdlib is the place where

[issue13742] Add a key parameter (like sorted) to heapq.merge

2012-01-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Yes, 3.3 is still in the early development stage, and new features will be accepted until the first beta (in June, see PEP 398). “.. versionadded:: 3.3 The *key* parameter” will do. -- nosy: +eric.araujo versions: -Python 3.4

[issue11633] Document that print buffers output when end=''

2012-01-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: You must realize that the most common use case for print(..., end!='\n') is when you want to notify user about intermediate progress of a very long operation. References needed. -- keywords: -3.2regression, patch nosy: +eric.araujo

[issue13718] Format Specification Mini-Language does not accept comma for percent value

2012-01-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: FTR the doc for ',' was added in a6e7ed52df9b and fa16acb2ffdd. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13718 ___

[issue13631] readline fails to parse some forms of .editrc under editline (libedit) emulation on Mac OS X

2012-01-09 Thread Zvezdan Petkovic
Zvezdan Petkovic zvez...@zope.com added the comment: I did not test against a readline build. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13631 ___

[issue13741] *** glibc detected *** python: double free or corruption (!prev): 0x0000000001d53ad0 ***

2012-01-09 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: I'll try Python 2.6, but this says 2.7 is supported (OOps, mixed up psyco and psycopg). Anyway, if you look at the backtrace, you'll see it segfaults inside psycopg. You should report this crash to this project. Closing. --

[issue13703] Hash collision security issue

2012-01-09 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- Removed message: http://bugs.python.org/msg150846 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13703 ___

[issue9637] docs do not say that urllib uses HTTP_PROXY

2012-01-09 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Senthil, any comment on this? -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9637 ___

[issue9637] docs do not say that urllib uses HTTP_PROXY

2012-01-09 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: Sorry, this escaped for so long. First thing is, having different values for HTTP_PROXY and HTTP_proxy and http_proxy is plain wrong at the user side. They all should be same and in that case the possible problem which Kirikaza and Neil

[issue11633] Document that print buffers output when end=''

2012-01-09 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Making documentation for simple print() statement overloaded with low level buffering details makes language seem overly complicated for new users. Why don't anybody require references for that? --

[issue13718] Format Specification Mini-Language does not accept comma for percent value

2012-01-09 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: [[fill]align][sign][#][0][width][,][.precision][type] The ',' must be before [.precision]: '{:,.2%}'.format(55.537568) '5,553.76%' In my opinion this is not a bug. -- nosy: +skrah ___

[issue13742] Add a key parameter (like sorted) to heapq.merge

2012-01-09 Thread Daniel Stutzbach
Changes by Daniel Stutzbach stutzb...@google.com: -- nosy: +stutzbach ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13742 ___ ___ Python-bugs-list

[issue13747] ssl_version documentation error

2012-01-09 Thread Ben Darnell
New submission from Ben Darnell ben.darn...@gmail.com: The ssl module docs claim that the default ssl_version for client-side operation is SSLv3, but it is actually SSLv23. The exact behavior depends on the version of openssl: starting in 1.0 the connection is limited by default to SSLv3 or

[issue13748] Allow rb literals as an equivalent to br

2012-01-09 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: As mentioned in issue13744, it is not easy to remember that br is an allowed bytes literal but not rb. Here is a patch to allow both forms. -- components: Interpreter Core files: rb.patch keywords: patch messages: 150964 nosy: barry,

[issue13749] socketserver can't stop

2012-01-09 Thread K Richard Pixley
New submission from K Richard Pixley r...@noir.com: Once I've instantiated my server class, along with a handler class, called server.serve_forever(), handler.handle() has been called, I've done my work, and I'm ready to shut the whole thing down... How do I do that? The doc says

[issue13749] socketserver can't stop

2012-01-09 Thread K Richard Pixley
K Richard Pixley r...@noir.com added the comment: It appears as though the problem is that shutdown() blocks waiting for the serve_forever loop to terminate, which won't happen as long as the process is blocked on shutdown. I'd like to propose that the library be changed to eliminate the

[issue13748] Allow rb literals as an equivalent to br

2012-01-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Updated patch with doc. -- Added file: http://bugs.python.org/file24189/rb2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13748 ___

[issue13749] socketserver can't stop

2012-01-09 Thread K Richard Pixley
K Richard Pixley r...@noir.com added the comment: On second thought, my proposal is likely to break existing code, so I withdraw it. I don't know how to exit the server in a way that both works in all conditions and also continues to support existing semantics. I expect we'll need to create

[issue13742] Add a key parameter (like sorted) to heapq.merge

2012-01-09 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Simon, please keep the original version fast by creating two code paths: if key is None: original_code else: new_code using the key_function -- priority: normal - low

[issue13739] os.fdlistdir() is not idempotent

2012-01-09 Thread Charles-François Natali
Changes by Charles-François Natali neolo...@free.fr: -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13739 ___

[issue13750] queue broken when built without-thread

2012-01-09 Thread Charles-François Natali
New submission from Charles-François Natali neolo...@free.fr: Commit 190ad17f5a87481a006434a2a3d3a8e1e954a6db broke the fedora without-threads buildbot: ./python ./Tools/scripts/run_tests.py -j 1 -u all -W --timeout=3600 Traceback (most recent call last): File

[issue13750] queue broken when built without-thread

2012-01-09 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13750 ___ ___

[issue11633] Document that print may need explicit flushing

2012-01-09 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: The current doc says print([object, ...], *, sep=' ', end='\n', file=sys.stdout) Print object(s) to the stream file, separated by sep and followed by end. sep, end and file, if present, must be given as keyword arguments. All non-keyword

[issue13729] Evaluation order for dics key/value

2012-01-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: This is a duplicate of issue11205. -- nosy: +amaury.forgeotdarc resolution: - duplicate status: open - closed superseder: - Evaluation order of dictionary display is different from reference manual.

[issue13750] queue broken when built without-thread

2012-01-09 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Fixed in changeset 32eae3c48631. Thanks for the report. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13750

[issue13748] Allow rb literals as an equivalent to br

2012-01-09 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: On Jan 09, 2012, at 07:27 PM, Antoine Pitrou wrote: Updated patch with doc. Nicely done. +1 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13748

[issue13751] multiprocessing.pool hangs if any worker raises an Exception whose constructor requires a parameter

2012-01-09 Thread Faheem Mitha
New submission from Faheem Mitha fah...@faheem.info: See my question at http://stackoverflow.com/questions/8785899/hang-in-python-script-using-sqlalchemy-and-multiprocessing I can't improve on the analysis by Lorenzo Bolla, so I reproduce his example below. This example hangs if BadExc is

[issue13747] ssl_version documentation error

2012-01-09 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 3db0abf3058b by Antoine Pitrou in branch '2.7': Issue #13747: fix documentation error about the default SSL version. http://hg.python.org/cpython/rev/3db0abf3058b New changeset 4f14c249f3de by Antoine Pitrou in

[issue13747] ssl_version documentation error

2012-01-09 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 7ae0f71862f9 by Antoine Pitrou in branch '3.2': Issue #13747: fix documentation error about the default SSL version. http://hg.python.org/cpython/rev/7ae0f71862f9 New changeset b4194af97948 by Antoine Pitrou in

[issue13748] Allow rb literals as an equivalent to br

2012-01-09 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: I would be happier if there was precedent for this with ur = ru in 2.x, which is not true. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13748

[issue13748] Allow rb literals as an equivalent to br

2012-01-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I would be happier if there was precedent for this with ur = ru in 2.x, which is not true. In my experience, raw unicode literals were very rare while raw bytes literals are quite frequent (mainly for regular expressions). --

[issue13747] ssl_version documentation error

2012-01-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Thanks for noticing. I've now fixed the docs. It would be nice if the default mode were SSLv23 with SSL_OP_NO_SSLv2 set so the defaults would be safe even with older versions of openssl Mmmh, perhaps, although wouldn't someone deploying a new

[issue11205] Evaluation order of dictionary display is different from reference manual.

2012-01-09 Thread Sandro Tosi
Changes by Sandro Tosi sandro.t...@gmail.com: -- nosy: +sandro.tosi ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11205 ___ ___ Python-bugs-list

[issue13751] multiprocessing.pool hangs if any worker raises an Exception whose constructor requires a parameter

2012-01-09 Thread sbt
sbt shibt...@gmail.com added the comment: This is not specific to multiprocessing. It is really an issue with the pickling of exceptions: import cPickle class BadExc(Exception): ... def __init__(self, a): ... '''Non-optional param in the constructor.''' ...

[issue12760] Add create mode to open()

2012-01-09 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset bf609baff4d3 by Charles-François Natali in branch 'default': Issue #12760: Add a create mode to open(). Patch by David Townshend. http://hg.python.org/cpython/rev/bf609baff4d3 -- nosy: +python-dev

[issue13742] Add a key parameter (like sorted) to heapq.merge

2012-01-09 Thread Simon Sapin
Simon Sapin simon.sa...@kozea.fr added the comment: Raymond, please have a look at merge_3 in benchmark_heapq_merge.py. It is implemented as you say. Do you think the speed is worth the code duplication? -- ___ Python tracker rep...@bugs.python.org

[issue13645] import machinery vulnerable to timestamp collisions

2012-01-09 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: I'm not suggesting two stat calls (in the general case); you would call one or the other depending on the magic number of the pyc file. Anyway, it would probably be best to have some method that is expected to return a specific object which

[issue13645] import machinery vulnerable to timestamp collisions

2012-01-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I'm not suggesting two stat calls (in the general case); you would call one or the other depending on the magic number of the pyc file. The proposal is to store both mtime and size, actually, to make false positives less likely. --

[issue6727] ImportError when package is symlinked on Windows

2012-01-09 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: I've filed a support incident with the Microsoft Support team to try to push this issue determine a fix or workaround. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6727

[issue6727] ImportError when package is symlinked on Windows

2012-01-09 Thread Alex Regueiro
Alex Regueiro alex...@gmail.com added the comment: That's great, thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6727 ___ ___

[issue11906] test_argparse failure in interactive mode

2012-01-09 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset b950267efd59 by Terry Jan Reedy in branch '3.2': #11906 Make test_argparse work interactively by removing extra space http://hg.python.org/cpython/rev/b950267efd59 -- nosy: +python-dev

[issue13718] Format Specification Mini-Language does not accept comma for percent value

2012-01-09 Thread Eric V. Smith
Eric V. Smith e...@trueblade.com added the comment: Good point. I hadn't looked at the string closely enough. Closing. -- resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue11906] test_argparse failure in interactive mode

2012-01-09 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset ec32e6ec16fc by Terry Jan Reedy in branch '2.7': #11906 Make test_argparse work interactively by removing extra space http://hg.python.org/cpython/rev/ec32e6ec16fc -- ___

[issue11906] test_argparse failure in interactive mode

2012-01-09 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- assignee: - terry.reedy resolution: - fixed stage: - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11906 ___

[issue13734] Add a generic directory walker method to avoid symlink attacks

2012-01-09 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: OK, os.walkfd is sounding good: - accepts a file descriptor, byte sequence or string for top - produces 4-tuples, with the dirfd added at the end - documents clearly that the dirfd is normally only valid until the next iteration step, so you

[issue13241] llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7)

2012-01-09 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: On my system (Snow Leopard OSX 10.6.8, Xcode 4.1) there are several different versions of gcc available in /usr/bin/. Some are symlinks to others; in particular gcc links to llvm-gccc-4.2. By using ./configure CC=gcc-4.2 I get a working

[issue11948] Tutorial/Modules - small fix to better clarify the modules search path

2012-01-09 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Sandro, I think you can apply this. -- versions: -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11948 ___

[issue13241] llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7)

2012-01-09 Thread Ned Deily
Ned Deily n...@acm.org added the comment: That works for Xcode 4.1, which is now out-of-date. The current releases of Xcode, 4.2.x for 10.7 Lion and optionally for 10.6 Snow Leopard, no longer include gcc-4.2, only llvm-gcc and clang. I am working on completing an extensive set of regression

[issue13747] ssl_version documentation error

2012-01-09 Thread Ben Darnell
Ben Darnell ben.darn...@gmail.com added the comment: Not necessarily. If I want to run python 2.7 or 3.x on an older linux distribution (e.g. Ubuntu 10.04 LTS, which has python 2.6 and openssl 0.9.8), I need to build from source, but I wouldn't think to update/rebuild all the dependencies

[issue13752] add a casefold() method

2012-01-09 Thread Benjamin Peterson
New submission from Benjamin Peterson benja...@python.org: See http://mail.python.org/pipermail/python-ideas/2012-January/013292.html -- components: Unicode messages: 150996 nosy: benjamin.peterson, ezio.melotti priority: low severity: normal status: open title: add a casefold() method

[issue11418] Method's global scope is module containing function definition, not class.

2012-01-09 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: This paragraph follows a discussion and example of the fact that methods do *not* have to be defined within a class statement. Any objections to changing The global scope associated with a method is the module containing the class

[issue13168] Python 2.6 having trouble finding modules when invoked via a symlink

2012-01-09 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13168 ___

[issue12736] Request for python casemapping functions to use full not simple casemaps per Unicode's recommendation

2012-01-09 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: New patch. I implemented it the way Antoine desired. It seems rather inefficient to be copying around so much data... -- Added file: http://bugs.python.org/file24190/full-casemapping.patch ___

[issue13753] str.join description contains an incorrect reference to argument

2012-01-09 Thread py.user
New submission from py.user port...@yandex.ru: http://docs.python.org/py3k/library/stdtypes.html#str.join str.join(iterable)¶ Return a string which is the concatenation of the strings in the iterable iterable. A TypeError will be raised if there are any non-string values in seq,

[issue13754] str.ljust and str.rjust do not exactly describes original string return

2012-01-09 Thread py.user
New submission from py.user port...@yandex.ru: http://docs.python.org/py3k/library/stdtypes.html#str.ljust str.ljust(width[, fillchar])¶ Return the string left justified in a string of length width. Padding is done using the specified fillchar (default is a space). The original string is

[issue13754] str.ljust and str.rjust do not exactly describes original string return

2012-01-09 Thread py.user
py.user port...@yandex.ru added the comment: str.zfill also -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13754 ___ ___ Python-bugs-list

[issue13755] str.endswith and str.startswith do not take lists of strings

2012-01-09 Thread py.user
New submission from py.user port...@yandex.ru: 'abcd'.endswith(['a', 'b']) Traceback (most recent call last): File stdin, line 1, in module TypeError: Can't convert 'list' object to str implicitly it would be nice like in str.join ''.join(('a', 'b')) 'ab' ''.join(['a', 'b']) 'ab'

[issue13751] multiprocessing.pool hangs if any worker raises an Exception whose constructor requires a parameter

2012-01-09 Thread Faheem Mitha
Faheem Mitha fah...@faheem.info added the comment: Thanks to sbt for his helpful and clear explanation. The following bug report appears relevant, http://bugs.python.org/issue1692335. It seems the proposed fix was never applied because it caused breakage to existing gcode. It is not clear to me

[issue11418] Method's global scope is module containing function definition, not class.

2012-01-09 Thread INADA Naoki
INADA Naoki songofaca...@gmail.com added the comment: Any objections to changing The global scope associated with a method is the module containing the class definition. (The class itself is never used as a global scope.) to The global scope associated with a method is the module

[issue13642] urllib incorrectly quotes username and password in https basic auth

2012-01-09 Thread Joonas Kuorilehto
Joonas Kuorilehto jones...@derbian.fi added the comment: Michele, in your patch: +authorization = (Authorization: Basic %s\r\n % + b64encode('a%20b:c%20d')) This is wrong. See the original report by me and RFC 2617. The username and password MUST NOT be

[issue13241] llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7)

2012-01-09 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: The version of clang included in Xcode 4.2.1 (the current release) still miscompiles Python 3.3 and both C files included in this issue. The same is true for the Xcode 4.3 beta. Python 2.7 seems to work fine with the same compiler,

[issue13241] llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7)

2012-01-09 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I've filed an issue in Apple's tracker, #10667893. Filing more issues would be helpful, if more issues in their tracker mention this bug it is more likely to get fixed. -- ___ Python tracker

[issue12760] Add create mode to open()

2012-01-09 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Committed. David, thanks for the patch! -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

  1   2   >