[issue7610] Cannot use both read and readline method in same ZipExtFile object

2010-01-18 Thread Nir Aides
Nir Aides added the comment: Right, removed MAX_N from read(); remains in read1(). If good, what versions of Python is this patch desired for? -- Added file: http://bugs.python.org/file15949/zipfile_7610_py27_v6.diff ___ Python tracker

[issue6293] Have regrtest.py echo back sys.flags

2010-01-18 Thread Brian Curtin
Brian Curtin added the comment: Seems like a good idea to me, but maybe not as the default? -- keywords: +needs review nosy: +brian.curtin priority: -> normal ___ Python tracker ___

[issue3426] os.path.abspath with unicode argument should call os.getcwdu

2010-01-18 Thread Brian Curtin
Brian Curtin added the comment: Passes on Windows, Mac, and Linux. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue7472] email.encoders.encode_7or8bit(): typo "iso-2202". "iso-2022" is correct.

2010-01-18 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list m

[issue7472] email.encoders.encode_7or8bit(): typo "iso-2202". "iso-2022" is correct.

2010-01-18 Thread R. David Murray
R. David Murray added the comment: Hmm. I suspect that that typo is fortunate rather than the source of a bug. As far as I can see, if a message contains valid iso-2022 characters, it will always encode to ASCII successfully and therefore be given a content-transfer-encoding of 7bit. If on

[issue7737] Patch all tests to change assertTrue(a [not] in b [, c]) -> assert[Not]In(a, b [, c])

2010-01-18 Thread Benjamin Peterson
Benjamin Peterson added the comment: Thanks for the patch! Applied in r77604. -- nosy: +benjamin.peterson resolution: -> accepted status: open -> closed ___ Python tracker ___ _

[issue7737] Patch all tests to change assertTrue(a [not] in b [, c]) -> assert[Not]In(a, b [, c])

2010-01-18 Thread Brian Curtin
Changes by Brian Curtin : -- keywords: +needs review nosy: +brian.curtin priority: -> low stage: -> patch review type: -> feature request versions: +Python 2.7 ___ Python tracker _

[issue7736] ctypes freezes/deadlocks process

2010-01-18 Thread Nikolaus Rath
Changes by Nikolaus Rath : Added file: http://bugs.python.org/file15948/call_hello.py ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue7736] ctypes freezes/deadlocks process

2010-01-18 Thread Nikolaus Rath
Changes by Nikolaus Rath : Removed file: http://bugs.python.org/file15947/call_hello.py ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue7736] ctypes freezes/deadlocks process

2010-01-18 Thread Nikolaus Rath
Nikolaus Rath added the comment: Reproduced with Python 3.1 -- versions: +Python 3.1 ___ Python tracker ___ ___ Python-bugs-list maili

[issue7736] ctypes freezes/deadlocks process

2010-01-18 Thread Nikolaus Rath
Changes by Nikolaus Rath : Removed file: http://bugs.python.org/file15943/call_hello.py ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue7736] ctypes freezes/deadlocks process

2010-01-18 Thread Nikolaus Rath
Changes by Nikolaus Rath : Added file: http://bugs.python.org/file15947/call_hello.py ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue7610] Cannot use both read and readline method in same ZipExtFile object

2010-01-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch looks rather good. Is `self.MAX_N` still necessary in read()? I guess it's rare to read more than 2GB at once, though... -- ___ Python tracker __

[issue7736] ctypes freezes/deadlocks process

2010-01-18 Thread Nikolaus Rath
Changes by Nikolaus Rath : Added file: http://bugs.python.org/file15946/libfuse28.py ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue7736] ctypes freezes/deadlocks process

2010-01-18 Thread Nikolaus Rath
Changes by Nikolaus Rath : Added file: http://bugs.python.org/file15945/libfuse26.py ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue7736] ctypes freezes/deadlocks process

2010-01-18 Thread Nikolaus Rath
Changes by Nikolaus Rath : Added file: http://bugs.python.org/file15944/hello_ll.c ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue7736] ctypes freezes/deadlocks process

2010-01-18 Thread Nikolaus Rath
Changes by Nikolaus Rath : Added file: http://bugs.python.org/file15943/call_hello.py ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue7737] Patch all tests to change assertTrue(a [not] in b [, c]) -> assert[Not]In(a, b [, c])

2010-01-18 Thread Dave Malcolm
New submission from Dave Malcolm : In many places throughout the existing test suite, there are assertions of the form: self.assertTrue(chips in menu) and of the form: self.assertTrue(cheese not in shop) If these fail, the error message will merely tell you that the condition failed,

[issue7736] ctypes freezes/deadlocks process

2010-01-18 Thread Nikolaus Rath
New submission from Nikolaus Rath : The following is a very subtle bug and it took me a couple of days to reduce it to a manageable test case. So please bear with me even if it's tedious. The problem is that in some cases the use of ctypes for a callback function freezes the entire process. Ev

[issue7735] python creates IPv6 DNS requests even when built with --disable-ipv6

2010-01-18 Thread Brian Curtin
Changes by Brian Curtin : -- components: +Library (Lib) -None priority: -> normal stage: -> test needed type: -> behavior versions: -Python 2.5 ___ Python tracker ___

[issue7735] python creates IPv6 DNS requests even when built with --disable-ipv6

2010-01-18 Thread Martin v . Löwis
Martin v. Löwis added the comment: Can you propose a patch? I personally consider this not worth the effort. Unless there is a DNS problem, this cases shouldn't really be noticable, as the socket module will immediately report that IPv6 is not supported (without even consulting the operating

[issue7735] python creates IPv6 DNS requests even when built with --disable-ipv6

2010-01-18 Thread Evan Teran
New submission from Evan Teran : I have encountered an issue where python will do a request even when built without IPv6. This becomes an issue because on some configurations this seems to cause a 5 second delay on DNS lookups (that is a separate issue of course). Basically here is what I

[issue7734] discuss mark-as-invalid trick in heapq docs

2010-01-18 Thread Eric Smith
Eric Smith added the comment: Assigning to Raymond, per his request in the c.l.p. thread. -- assignee: georg.brandl -> rhettinger nosy: +eric.smith ___ Python tracker ___ ___

[issue7734] discuss mark-as-invalid trick in heapq docs

2010-01-18 Thread Joshua Bronson
New submission from Joshua Bronson : Though the heapq module does not support changing the priority of a particular element of the heap (a necessary operation for the A* search family of algorithms), such an element can be marked as invalid and a new element can be added with different priorit

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-01-18 Thread Jason R. Coombs
Changes by Jason R. Coombs : Removed file: http://bugs.python.org/file15939/smime.p7s ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-01-18 Thread Jason R. Coombs
Changes by Jason R. Coombs : Removed file: http://bugs.python.org/file15938/smime.p7s ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue7610] Cannot use both read and readline method in same ZipExtFile object

2010-01-18 Thread Nir Aides
Nir Aides added the comment: Uploaded an updated patch with read() which calls underlying stream enough times to satisfy required read size. -- Added file: http://bugs.python.org/file15941/zipfile_7610_py27_v5.diff ___ Python tracker

[issue6963] Add worker process lifetime to multiprocessing.Pool - patch included

2010-01-18 Thread Charles Cazabon
Charles Cazabon added the comment: No problem, Jesse, I realize you're busy. I've updated the patch very slightly to handle an issue I had where the worker maintainer hung once. -- Added file: http://bugs.python.org/file15940/worker-lifetime-python2.6.2.patch __

[issue6963] Add worker process lifetime to multiprocessing.Pool - patch included

2010-01-18 Thread Charles Cazabon
Changes by Charles Cazabon : Removed file: http://bugs.python.org/file14987/worker-lifetime-python2.6.2.patch ___ Python tracker ___ ___ Python

[issue1596321] KeyError at exit after 'import threading' in other thread

2010-01-18 Thread Christian Walther
Christian Walther added the comment: I have the impression we're tracking two completely unrelated problems in this tracker item. As to "needs patch" regarding my problem: Here's the solution I proposed in my original post in patch form - I'm just not sure if it is correct. I don't recommend

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-01-18 Thread Martin v . Löwis
Martin v. Löwis added the comment: > If there is a skip test, it should be dependent on the specific permission > required. Terminology: it's a "privilege", not a "permission". Permissions (in Windows) are stored in ACLs on objects, granted by the owner of the object. Privileges are held by us

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-01-18 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Given that there is a specific permission that can be assigned to the > buildslave user, it seems appropriate that the tests that attempt to > create symlinks should fail if the user does not have that > permission. No, the test should *not* fail. A failing

[issue1670765] email.Generator: no header wrapping for multipart/signed

2010-01-18 Thread R. David Murray
R. David Murray added the comment: Heh. Copy and paste error. I copied the issue number I wanted to reference, then copied the issue number I needed to open in order to paste the reference, and then promptly forgot that I had to recopy the issue number to paste it... Anyway, the correct cro

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

2010-01-18 Thread Tomas Hoger
Tomas Hoger added the comment: Has anyone else had an opportunity to have a look at the change proposed in #msg90336? -- ___ Python tracker ___ _

[issue1670765] email.Generator: no header wrapping for multipart/signed

2010-01-18 Thread Martin von Gagern
Martin von Gagern added the comment: Wrong issue number again, or did you deliberately try to catch me in an infinite see-also loop? ;-) I've tried to work out what issue you meant, but failed so far. -- ___ Python tracker

[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2010-01-18 Thread Daniel
Daniel added the comment: Sorry, I am on others problems and i don't have any time to look at a solution :( Daniel. -- ___ Python tracker ___ __

[issue1670765] email.Generator: no header wrapping for multipart/signed

2010-01-18 Thread R. David Murray
R. David Murray added the comment: See issue 1670765 for more discussion of the whitespace issues. -- ___ Python tracker ___ ___ Py

[issue7717] Compilation fixes for IRIX

2010-01-18 Thread Brian Curtin
Brian Curtin added the comment: http://www.python.org/psf/contrib/ has the relevant contributor agreement. -- nosy: +brian.curtin ___ Python tracker ___ _

[issue7717] Compilation fixes for IRIX

2010-01-18 Thread Stuart Shelton
Stuart Shelton added the comment: As-per 7718 I'm happy to complete any relevant paperwork: these patches (which are by now of my own creation: Frank Everdij helped sort out the N32.s fixes, but these were no longer required by 2.6.4 and 2.7) are already posted in the public Gentoo bug-tracke

[issue7718] Build shared libpythonX.Y.so on IRIX

2010-01-18 Thread Stuart Shelton
Stuart Shelton added the comment: I've no objection to signing the relevant paperwork if that's what's needed to get this committed - if someone could point me in the direction of what I needed to do in order to do so? -- nosy: +srcshelton ___ Pyth

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-01-18 Thread Jason R. Coombs
Jason R. Coombs added the comment: Eric: I concur. The function to skip tests will test for the presence of the particular permission. -- Added file: http://bugs.python.org/file15939/smime.p7s ___ Python tracker

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-01-18 Thread Jason R. Coombs
Jason R. Coombs added the comment: If you want support for symlinks in Python 2.6, see http://pypi.python.org/pypi/jaraco.windows . It even has a method to monkey patch the os module to provide forward compatibility to the 3.2 functionality. -- Added file: http://bugs.python.org/file1

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-01-18 Thread Eric Smith
Eric Smith added the comment: My concern about testing is that we're adding a feature that won't be tested by the buildbots. Although I don't have any suggestions (other than possibly adding the specific permission to the buildbots). If there is a skip test, it should be dependent on the spec

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-01-18 Thread Eric Smith
Eric Smith added the comment: No, it won't be backported to 2.6. It's clearly a new feature. -- ___ Python tracker ___ ___ Python-b

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-01-18 Thread sorin
sorin added the comment: BTW, Is there any hope to add this to Python 2.6? - this is the standard on Windows and I see this issue more like a bug resolution than a new feature ;) -- ___ Python tracker _

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-01-18 Thread Jason R. Coombs
Jason R. Coombs added the comment: Great suggestion. I'll do that. -- title: Add os.link() and os.symlink() and os.path.islink() support for Windows -> Add os.link() and os.symlink() and os.path.islink() support for Windows ___ Python tracker

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-01-18 Thread Brian Curtin
Brian Curtin added the comment: You could use the test skipping functionality present in trunk and beyond. Write a function to test whether the user has the necessary privileges, then use @unittest.skipUnless(has_admin_privs(), "can't test as regular user") -- ___

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-01-18 Thread Jason R. Coombs
Jason R. Coombs added the comment: When I consider that the buildslaves are probably donated and not designated exclusively for Python testing, it makes good sense that they typically run under a restricted account. Given that there is a specific permission that can be assigned to the builds

[issue6095] os.curdir as the default argument for os.listdir

2010-01-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- priority: -> normal stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue7732] imp.find_module crashes Python if there exists a directory named "__init__.py"

2010-01-18 Thread Florent Xicluna
Florent Xicluna added the comment: Removed the EnvironmentVarGuard from the test. It does not make sense. -- Added file: http://bugs.python.org/file15937/issue7732_find_module.diff ___ Python tracker __

[issue7732] imp.find_module crashes Python if there exists a directory named "__init__.py"

2010-01-18 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file15936/issue7732_find_module.diff ___ Python tracker ___ ___ Python-bugs-l

[issue7732] imp.find_module crashes Python if there exists a directory named "__init__.py"

2010-01-18 Thread Florent Xicluna
Changes by Florent Xicluna : -- keywords: +patch Added file: http://bugs.python.org/file15936/issue7732_find_module.diff ___ Python tracker ___ ___

[issue7732] imp.find_module crashes Python if there exists a directory named "__init__.py"

2010-01-18 Thread Florent Xicluna
Florent Xicluna added the comment: Patch proposed. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue7732] imp.find_module crashes Python if there exists a directory named "__init__.py"

2010-01-18 Thread R. David Murray
R. David Murray added the comment: Confirmed that this does not affect py3k. -- nosy: +brett.cannon, r.david.murray priority: -> high ___ Python tracker ___

[issue7732] imp.find_module crashes Python if there exists a directory named "__init__.py"

2010-01-18 Thread Florent Xicluna
Florent Xicluna added the comment: Confirmed on trunk. ~ $ mkdir foo.py ~ $ ./python -c 'import imp;imp.find_module("foo", ["."])' *** glibc detected *** ./python: double free or corruption (!prev): 0x024a7390 *** === Backtrace: = (...) -- nosy: +flox stage: -> ne

[issue7733] asyncore docs reference is unclear

2010-01-18 Thread djc
New submission from djc : http://docs.python.org/library/asyncore.html has this bit (for bind()): (The format of address depends on the address family — see above.) The only way this makes sense is if it points back to the "family" argument used in the create_socket() documentation, but ev

[issue7732] imp.find_module crashes Python if there exists a directory named "__init__.py"

2010-01-18 Thread Trundle
New submission from Trundle : Create a directory "__init__.py" and execute >>> import imp >>> imp.find_module('__init__', ['.']) to reproduce that issue. It will crash because Python tries to double-close a file pointer: `call_find_module` will call `PyFile_FromFile`, but `PyFile_FromFile` cl

[issue7731] Search is sluggish

2010-01-18 Thread anatoly techtonik
anatoly techtonik added the comment: I would keep this ticket open until the issue is fixed for docs.python.org -- ___ Python tracker ___

[issue843590] 'macintosh' encoding alias for 'mac_roman'

2010-01-18 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Here's another reference I found: http://developer.apple.com/legacy/mac/library/documentation/mac/Text/Text-30.html It appears that the "macintosh" encoding is the same as the MacRoman one, but without the character D9-FF. The document also suggests that

[issue7731] Search is sluggish

2010-01-18 Thread Ezio Melotti
Ezio Melotti added the comment: Since you opened a new ticket in the sphinx bug tracker I'll close this one. -- nosy: +ezio.melotti priority: -> normal resolution: -> duplicate stage: -> committed/rejected status: open -> closed type: -> behavior ___

[issue7731] Search is sluggish

2010-01-18 Thread anatoly techtonik
anatoly techtonik added the comment: It appears the doctools project is outdated and development for documentation generation tools moved to Sphinx project. Patch for Sphinx is in Sphinx bug tracker at http://bitbucket.org/birkenfeld/sphinx/issue/322/improve-search-responsiveness --

[issue7708] test_xmlrpc fails with non-ascii path

2010-01-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue7731] Search is sluggish

2010-01-18 Thread anatoly techtonik
New submission from anatoly techtonik : docs.python.org site search is sluggish or may seem not working at all. The reason is that before search starts, it requires a 800k+ index file to be loaded http://docs.python.org/searchindex.js This file is usually cached. You might not notice sluggishn

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-01-18 Thread sorin
sorin added the comment: Maybe it's useful to know that Administrator privileges are not required in order be able to create symlinks. You just need a specific permission that by default is assigned only to Administrators. How to set SeCreateSymbolicLinkPrivilege on Windows Vista or newer: ht

[issue7730] ssl has bad coding style

2010-01-18 Thread djc
djc added the comment: Thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailma

[issue3341] "Suggest a change" link

2010-01-18 Thread anatoly techtonik
anatoly techtonik added the comment: This functionality is specific request for python documentation, so adjustments should be made to Sphinx customization layer for docs.python.org if Sphinx itself doesn't provide such feature. Is there a bug tracker for python.org infrastructure? -

[issue7729] min() working incorrectly for decimal and float values

2010-01-18 Thread Florent Xicluna
Changes by Florent Xicluna : -- superseder: -> float compared to decimal is silently incorrect. ___ Python tracker ___ ___ Python-bugs

[issue7730] ssl has bad coding style

2010-01-18 Thread Ezio Melotti
Ezio Melotti added the comment: Ok, done in r77595 (trunk), r77596 (release26-maint), r77597 (py3k) and r77598 (release31-maint). -- assignee: -> ezio.melotti resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 2.6, Python 3.1, Python 3.2

[issue4137] update SIG web pages

2010-01-18 Thread Ezio Melotti
Ezio Melotti added the comment: There's no bug tracker for the website, but you can send emails to [1]. [1]: http://wiki.python.org/moin/PythonWebsiteCreatingNewTickets -- nosy: +ezio.melotti ___ Python tracker _

[issue7730] ssl has bad coding style

2010-01-18 Thread Martin v . Löwis
Martin v. Löwis added the comment: I think dropping the spaces after the function names is fine in this case; the module is inconsistent in this matter. -- nosy: +loewis status: pending -> open ___ Python tracker

[issue7730] ssl has bad coding style

2010-01-18 Thread Ezio Melotti
Ezio Melotti added the comment: There should be no space between the name of the function and the '(' in both the cases. However the PEP 8 also says that "Consistency within one module or function is most important" and we usually avoid this kind of refactoring because they just make svn blam

[issue4137] update SIG web pages

2010-01-18 Thread anatoly techtonik
anatoly techtonik added the comment: By the way, where is the tracker for python.org websites? -- ___ Python tracker ___ ___ Python-bu

[issue7730] ssl has bad coding style

2010-01-18 Thread djc
Changes by djc : -- type: -> feature request ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue7730] ssl has bad coding style

2010-01-18 Thread djc
New submission from djc : Sorry to be nitpicking here, but it kind of sticks out when you take your first look at ssl.py. While PEP 8 only talks about whitespace before the function call argument list parenthesis, I think this should also go for function definition. ssl has a lot of definition

[issue7729] min() working incorrectly for decimal and float values

2010-01-18 Thread Ezio Melotti
Ezio Melotti added the comment: Closing as duplicate of #2531. -- nosy: +ezio.melotti, mark.dickinson priority: -> normal resolution: -> duplicate stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue7729] min() working incorrectly for decimal and float values

2010-01-18 Thread Umit Oztosun
New submission from Umit Oztosun : On MacOSX (10.5) Intel, Python 2.6.4 >>> from decimal import Decimal >>> min(Decimal('3.0'), 10.2) 10.199 On Win32, Python 2.6.4 >>> from decimal import Decimal >>> min(Decimal('3.0'), 10.2) Decimal('3.0') On Linux 32 bit, Python 2.6.4 >>> from