[issue2001] Pydoc interactive browsing enhancement

2010-03-02 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2001 ___ ___ Python-bugs-list mailing

[issue5802] The security descriptors of python binaries in Windows are not strict enough

2010-03-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: See also issue 1284316, which is still open, and should probably remain open even though there's no consensus to make a change (yet?). -- nosy: +ezio.melotti, flox, r.david.murray priority: - normal superseder: - Win32:

[issue1284316] Win32: Security problem with default installation directory

2010-03-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Note that Ezio and Flox have been improving the test suite and code to handle paths-with-spaces better. Perhaps we will eventually get to the point where it is possible to fix this, although Tim's point about python being a

[issue1284316] Win32: Security problem with default installation directory

2010-03-02 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: This is similar to an issue I reported to the security team (same underlying issue). My concern was that with an admin installed version of Python an arbitrary user can modify site.py, or create sitecustomize.py, and cause arbitrary

[issue8038] Not all the new assert* unittest.TestCase methods have negative (not) equivalents

2010-03-02 Thread Michael Foord
New submission from Michael Foord mich...@voidspace.org.uk: Originally reported as a bug against unittest2: http://code.google.com/p/unittest-ext/issues/detail?id=3 There are some assert* methods that don't have their assertNot* counterparts. There's assertDictEqual, assertSequenceEqual,

[issue8038] Not all the new assert* unittest.TestCase methods have negative (not) equivalents

2010-03-02 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti priority: - normal stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8038 ___

[issue8038] Not all the new assert* unittest.TestCase methods have negative (not) equivalents

2010-03-02 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Should there be a 'discussion' stage for the tracker? This isn't *really* at the 'test needed' stage, I'm not 100% convinced we should add all these extra methods just 'for the sake of completeness' - but if they are *needed* they

[issue2292] Missing *-unpacking generalizations

2010-03-02 Thread A.M. Kuchling
A.M. Kuchling li...@amk.ca added the comment: Updating version; does someone want to revive this for 3.2? -- nosy: +akuchling versions: +Python 3.2 -Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2292

[issue706392] faster _socket.connect variant desired

2010-03-02 Thread A.M. Kuchling
Changes by A.M. Kuchling li...@amk.ca: -- status: open - languishing ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue706392 ___ ___ Python-bugs-list

[issue8039] precedence rules for ternary operator

2010-03-02 Thread Dirkjan Ochtman
New submission from Dirkjan Ochtman dirk...@ochtman.nl: So http://docs.python.org/reference/expressions.html doesn't currently mention the ternary operator as far as I can see. Maybe this is trivial, but it would be nice to know where it fits into the hierarchy. (I.e., my co-worker just came

[issue8039] precedence rules for ternary operator

2010-03-02 Thread Dirkjan Ochtman
Changes by Dirkjan Ochtman dirk...@ochtman.nl: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8039 ___ ___ Python-bugs-list

[issue2292] Missing *-unpacking generalizations

2010-03-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I believe this would be blocked by the moratorium. Correct me if I'm wrong. -- assignee: twouters - pedronis keywords: +after moratorium nosy: +pedronis, r.david.murray stage: - patch review versions: -Python 3.2

[issue1284316] Win32: Security problem with default installation directory

2010-03-02 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1284316 ___ ___ Python-bugs-list

[issue2292] Missing *-unpacking generalizations

2010-03-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: fix inadvertent reassignment. -- assignee: pedronis - twouters nosy: -pedronis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2292

[issue8040] It would be nice if documentation pages linked to other versions of the same document

2010-03-02 Thread Daniel Stutzbach
New submission from Daniel Stutzbach dan...@stutzbachenterprises.com: Currently, trying to use a web search engine to find something in the Python docs often returns the documentation for only one version of Python. Something a very old version like 2.3. It would be nice if the documentation

[issue8041] No documentation for Py_TPFLAGS_HAVE_STACKLESS_EXTENSION or Py_TPFLAGS_HAVE_VERSION_TAG.

2010-03-02 Thread Daniel Stutzbach
New submission from Daniel Stutzbach dan...@stutzbachenterprises.com: The documentation for Py_TPFLAGS_DEFAULT mentions Py_TPFLAGS_HAVE_STACKLESS_EXTENSION and Py_TPFLAGS_HAVE_VERSION_TAG, but neither of them is documented. They aren't mentioned in the 2.6 documentation (presumably because

[issue1284316] Win32: Security problem with default installation directory

2010-03-02 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: I personally make heavy use of the command line and continue to install python to %ProgramFiles%. I find the space in the pathname to be a non-issue. After %programfiles%\Python26 and %programfiles%\Python26\Scripts are added to the path,

[issue8040] It would be nice if documentation pages linked to other versions of the same document

2010-03-02 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti priority: - normal versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040

[issue7892] refactor test_dict.py using new assertRaises context manager.

2010-03-02 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Done with r78582 and r78583. -- assignee: - flox resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue1284316] Win32: Security problem with default installation directory

2010-03-02 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: I've tried installations of Python to Program Files in recent years (Python 2.4 and 2.5) and found many scripts/tools unable to cope with the space in the path. I always ended up reinstalling. (Usually using sys.executable in

[issue8037] multiprocessing.Queue's put() not atomic thread wise

2010-03-02 Thread Vilnis Termanis
Vilnis Termanis vilnis.terma...@googlemail.com added the comment: I couldn't see the wood for the trees: If put() is thread-blocking, multiprocessing.Queue is reduced to the same functionality as multiprocessing.queues.SimpleQueue, if I'm not mistaken. So maybe there should be a warning in the

[issue8037] multiprocessing.Queue's put() not atomic thread wise

2010-03-02 Thread Vilnis Termanis
Changes by Vilnis Termanis vilnis.terma...@googlemail.com: Removed file: http://bugs.python.org/file16412/lock_suggestion.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8037 ___

[issue8037] multiprocessing.Queue's put() not atomic thread wise

2010-03-02 Thread Vilnis Termanis
Changes by Vilnis Termanis vilnis.terma...@googlemail.com: Removed file: http://bugs.python.org/file16409/queue_example.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8037 ___

[issue8037] multiprocessing.Queue's put() not atomic thread wise

2010-03-02 Thread Vilnis Termanis
Changes by Vilnis Termanis vilnis.terma...@googlemail.com: Added file: http://bugs.python.org/file16413/queue_example.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8037 ___

[issue8037] multiprocessing.Queue's put() not atomic thread wise

2010-03-02 Thread Vilnis Termanis
Vilnis Termanis vilnis.terma...@googlemail.com added the comment: Alternative suggestion (since SimpleQueue doesn't provide buffering): Allow option to force immediate pickling of the object to be en-queued, i.e. pickling when adding to internal buffer instead of as part of Connection.send()

[issue2292] Missing *-unpacking generalizations

2010-03-02 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I would like to see this revisited when the moratorium is lifted. Added 3.3 as a surrogate for that. As per GvR above, it will need a PEP to pin down details, alternatives, and use cases and discussion on python-ideas list. --

[issue2292] Missing *-unpacking generalizations

2010-03-02 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Whoops, just noticed newish 'after moratorium' keyword. Good idea. -- versions: -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2292

[issue5315] signal handler never gets called

2010-03-02 Thread Andrew McNabb
Andrew McNabb amcn...@mcnabbs.org added the comment: I'm seeing something very similar to this. In my case, I have a single-threaded program, and select fails to be interrupted by SIGCHLD. I'm still tracking down more details, so I'll report back if I find more information. --

[issue8037] multiprocessing.Queue's put() not atomic thread wise

2010-03-02 Thread Vilnis Termanis
Vilnis Termanis vilnis.terma...@googlemail.com added the comment: Performance comparison before/after suggested change (adding/removing 1000-item list 1 times). Inline 1.926 class 'multiprocessing.queues.Queue' 1.919 class 'queues_pickled.Queue' 1.907 class 'queues_pickled.Queue'

[issue8037] multiprocessing.Queue's put() not atomic thread wise

2010-03-02 Thread Vilnis Termanis
Changes by Vilnis Termanis vilnis.terma...@googlemail.com: Removed file: http://bugs.python.org/file16414/pickle_suggestion.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8037 ___

[issue8037] multiprocessing.Queue's put() not atomic thread wise

2010-03-02 Thread Vilnis Termanis
Changes by Vilnis Termanis vilnis.terma...@googlemail.com: Added file: http://bugs.python.org/file16416/queue_perf.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8037 ___

[issue8042] mmap buffer implementation does not respect seek pos

2010-03-02 Thread Matt Gattis
New submission from Matt Gattis gat...@gmail.com: If you do: import io,mmap b = io.BytesIO(abc) m = mmap.mmap(-1,10) m.seek(5) b.readinto(m) M is now: 'abc\x00\x00\x00\x00\x00\x00\x00' Basically there is no way to readinto/recv_into an arbitary position in an mmap object without creating a

[issue5315] signal handler never gets called

2010-03-02 Thread Andrew McNabb
Andrew McNabb amcn...@mcnabbs.org added the comment: Sorry for the noise. It turns out that my problem was unrelated. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5315 ___

[issue1284316] Win32: Security problem with default installation directory

2010-03-02 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I propose that people in favor of changing the default install location write a PEP proposing that this be done. Notice that this is independent of the issue at hand, which is about the ACLs on c:\pythonXY. I have tried fixing it, and

[issue8040] It would be nice if documentation pages linked to other versions of the same document

2010-03-02 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: It think it's also extremely difficult to implement, since the switchover to a new documentation generator. Contributions are welcome. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org

[issue1284316] Win32: Security problem with default installation directory

2010-03-02 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Martin: Would it be sufficient to copy the ACLs from %programfiles%, or would it be better to hard-code the permissions from %programfiles% from a known standard configuration? Is it known if the ACLs on %programfiles% in WinXP differ from

[issue1284316] Win32: Security problem with default installation directory

2010-03-02 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Martin: Would it be sufficient to copy the ACLs from %programfiles%, or would it be better to hard-code the permissions from %programfiles% from a known standard configuration? Is it known if the ACLs on %programfiles% in WinXP differ

[issue8043] ntpath.realpath munges os.devnull

2010-03-02 Thread Jason R. Coombs
New submission from Jason R. Coombs jar...@jaraco.com: On Python 2.6 and Python 2.7a, calling ntpath.realpath(os.devnull) returns 'nul' (two backslashes followed by nul), which is not a valid filename. This appears to have been fixed in Python 3.1, as on 3.1.1, ntpath.realpath(os.devnull)

[issue2973] _ssl compiler warnings

2010-03-02 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I commited grooverdan's patch: r78596 (trunk), r78597 (2.6), r78598 (py3k), 78599 (3.1). The API was changed in... 2004, 6 years ago! I hope that everybody upgraded to the new OpenSSL version since that. Anyway, the warning should

[issue2973] _ssl compiler warnings

2010-03-02 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2973 ___

[issue8043] ntpath.realpath munges os.devnull

2010-03-02 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: This might be related to #7909. -- components: +Library (Lib) nosy: +ezio.melotti priority: - normal stage: - test needed type: - behavior ___ Python tracker rep...@bugs.python.org

[issue6560] socket sendmsg(), recvmsg() methods

2010-03-02 Thread David Watson
David Watson bai...@users.sourceforge.net added the comment: OK, here's a new version as a work in progress. A lot of the new stuff is uncommented (particularly the support code for the tests), but there are proper docs this time and a fairly complete test suite (but see below). There are a

[issue5380] pty.read raises IOError when slave pty device is closed

2010-03-02 Thread Albert Hopkins
Changes by Albert Hopkins mar...@python.net: -- nosy: +marduk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5380 ___ ___ Python-bugs-list mailing

[issue7820] parser: restores all bytes in the right order if check_bom() fails

2010-03-02 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Commited: r78603 (trunk), r78608 (py3k), r78609 (3.1). Delay the fix in 2.6 after the release of 2.6.5. This issue is far from being critical, I don't want to introduce a regression after an RC :-) --

[issue7909] os.path.abspath(os.devnull) returns \\\\nul should be nul?

2010-03-02 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: This bug does not exhibit in Python 3.1.1. -- nosy: +jaraco versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7909 ___

[issue8043] ntpath.realpath munges os.devnull

2010-03-02 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8043 ___ ___

[issue8043] ntpath.realpath munges os.devnull

2010-03-02 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Indeed, this is a duplicate. My search failed probably because ntpath.abspath is ntpath.realpath. -- status: open - closed ___ Python tracker rep...@bugs.python.org

[issue3299] Direct calls to PyObject_Del/PyObject_DEL are broken for --with-pydebug

2010-03-02 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: thread fix commited: r78610 (trunk), r78611 (py3k), r78612 (3.1). Delay the backport to 2.6 after the 2.6.5 release. -- ___ Python tracker rep...@bugs.python.org

[issue7449] A number tests crash if python is compiled --without-threads

2010-03-02 Thread Jerry Seutter
Jerry Seutter jseut...@gmail.com added the comment: In the test_xmlrpc.py case I changed the value from URL to 'http:' because the code that sets URL to a valid url relies on threading. When threading is disabled, URL is set to None and the test will fail. The two ServerProxy test cases

[issue7449] A number tests crash if python is compiled --without-threads

2010-03-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I haven't reviewed the whole patch, but I would suggest that instead of making a test_support.skip_if_no (or any other name), you use use @unittest.skipUnless(threading) (note that lack of quotes around threading...you seem to already

[issue8043] ntpath.realpath munges os.devnull

2010-03-02 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- resolution: - duplicate ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8043 ___ ___

[issue7449] A number tests crash if python is compiled --without-threads

2010-03-02 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: In the test_xmlrpc.py case I changed the value from URL to 'http:' because the code that sets URL to a valid url relies on threading. When threading is disabled, URL is set to None and the test will fail. I would prefer

[issue8044] Py_EnterRecursiveCall and Py_LeaveRecursiveCall are undocumented

2010-03-02 Thread Daniel Stutzbach
New submission from Daniel Stutzbach dan...@stutzbachenterprises.com: Here's the original message proposing the addition of these routines to the C API, which might serve as the basis of documentation: http://mail.python.org/pipermail/python-dev/2003-October/039445.html -- assignee:

[issue8045] test_tcl aborts on OS X 10.6 with The application with bundle ID org.python.python is running setugid(), which is not allowed.

2010-03-02 Thread Ned Deily
New submission from Ned Deily n...@acm.org: potential 2.6.5 release blocker The changes introduced for Issue7999 in r78546, r78547, r78548, r78549 cause test_tcl to fail when it is run after test_os, as is normal under regrtest. The problem is that the posixmodule was modified to accept

[issue8045] test_tcl aborts on OS X 10.6 with The application with bundle ID org.python.python is running setugid(), which is not allowed.

2010-03-02 Thread Ned Deily
Ned Deily n...@acm.org added the comment: (Thanks to Tom Loredo for bringing up the issue on the pythonmac-sig list.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8045 ___

[issue7999] setregid does not work with -1 as argument

2010-03-02 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Apparently there is a side effect on OS X 10.6 of setting to -1. See Issue8045. -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7999

[issue7909] os.path.abspath(os.devnull) returns \\\\nul should be nul?

2010-03-02 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Attaching a test against trunk which elicits the error reported in this bug. -- keywords: +patch Added file: http://bugs.python.org/file16419/issue7909-test.patch ___ Python tracker

[issue8045] test_tcl aborts on OS X 10.6 with The application with bundle ID org.python.python is running setugid(), which is not allowed.

2010-03-02 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: Just disabling those two tests is the best thing for the 2.6.5 release if we don't get around to the actual fix: Since calling setreuid(-1, -1) is apparently not such a no-op on all systems these tests would be better if we ran them in a

[issue8046] mmap.mmap as a context manager

2010-03-02 Thread Brian Curtin
New submission from Brian Curtin cur...@acm.org: Most file or file-like objects operate as context managers, except for mmap (and maybe a few others?). Attached is a patch with tests and documentation. The patch also introduces an additional attribute to mmap, closed. -- components:

[issue5802] The security descriptors of python binaries in Windows are not strict enough

2010-03-02 Thread Hong Chen
Hong Chen cn.hongc...@gmail.com added the comment: Sure. Thank you for the information! Hong On Tue, Mar 2, 2010 at 4:26 AM, R. David Murray rep...@bugs.python.org wrote: R. David Murray rdmur...@bitdance.com added the comment: See also issue 1284316, which is still open, and should

[issue8047] Serialiser in ElementTree returns unicode strings in Py3k

2010-03-02 Thread Stefan Behnel
New submission from Stefan Behnel sco...@users.sourceforge.net: The xml.etree.ElementTree package in the Python 3.x standard library breaks compatibility with existing ET 1.2 code. The serialiser returns a unicode string when no encoding is passed. Previously, the serialiser was guaranteed to