[issue14917] Make os.symlink on Win32 detect if target is directory

2012-06-24 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: Note: I can't test this, as I only run Windows XP. But it compiles cleanly on Windows, and on Linux it compiles and passes the test suite fine. -- ___ Python tracker rep...@bugs.python.org

[issue15016] Add special case for latin messages in email.mime.text

2012-06-24 Thread Dmitry Shachnev
Dmitry Shachnev mity...@gmail.com added the comment: This seems to be an enhancement sort of request rather than a bug... so I wonder why Python 3.2 is listed? Fixed. ... although I see nothing in the PEP about how to access that information from Python. You are right, it seems there is

[issue14815] random_seed uses only 32-bits of hash on Win64

2012-06-24 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: I got bored so I made you a patch. -- keywords: +patch Added file: http://bugs.python.org/file26125/larry.random_seed.ssize_t.1.diff ___ Python tracker rep...@bugs.python.org

[issue15118] uname and other os functions should return a struct sequence instead of a tuple

2012-06-24 Thread Larry Hastings
Changes by Larry Hastings la...@hastings.org: -- assignee: - larry stage: - patch review type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15118 ___

[issue13590] extension module builds fail with python.org OS X installers on OS X 10.7 and 10.6 with Xcode 4.2

2012-06-24 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 796d9fc28e95 by Ned Deily in branch 'default': Issue #13590: Improve support for OS X Xcode 4: http://hg.python.org/cpython/rev/796d9fc28e95 -- ___ Python tracker

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

2012-06-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Can I suggest setting a “safe” attribute on the rmtree function object instead of adding another name to the module? -- nosy: +larry ___ Python tracker rep...@bugs.python.org

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

2012-06-24 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: I thought about that too but couldn't find a precedent (I didn't look very long though :)) where we've done that before so I went for an attribute. I'd change it immediately if others agree. -- ___

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

2012-06-24 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: I'm in the process of updating the LBYL support to use a rmtree.avoids_symlink_attacks function attribute rather than the rmtree_is_safe module level attribute. As I said in the hmac.secure_compare function discussion, the words safe and

[issue13512] ~/.pypirc created insecurely

2012-06-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Do you have links to those patches? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13512 ___

[issue14772] Return destination values in some shutil functions

2012-06-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14772 ___ ___ Python-bugs-list mailing

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

2012-06-24 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: Excellent Nick! I discussed the very same thing with David yesterday but somehow we didn't come up with a good name. So we kept it on safe (which predates the secure discussion). -- ___ Python tracker

[issue15056] Have imp.cache_from_source() raise NotImplementedError when cache tag not available

2012-06-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: So sys.dont_write_bytecode is there to prevent bytecode writing but not loading. Ah right. Providing a way to avoid reading them sounds good. If you set sys.implementation.cache_tag to None you stop all bytecode usage (reading and writing)

[issue10053] Don’t close fd when FileIO.__init__ fails

2012-06-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I don’t know; Antoine is the io expert. I just remember that io used to be in C and was moved to _pyio for documentation and experimentation purposes, so I was sure it was a fully standalone lib but I could be mistaken. --

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

2012-06-24 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: Bikeshedding: (os.unlink in os.supports_dir_fd and os.open in os.supports_dir_fd) could be rewritten as { os.open, os.unlink } = os.supports_dir_fd As you were! -- ___ Python tracker

[issue15056] Have imp.cache_from_source() raise NotImplementedError when cache tag not available

2012-06-24 Thread Eric Snow
Eric Snow ericsnowcurren...@gmail.com added the comment: Brett meant the implementation would set it. You'd still expect it to not change values during the execution of the interpreter. I suppose anyone could change that value, but I'd see that more as a consenting adults situation.

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

2012-06-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The code using set operations seems slightly too cryptic for me, even though I’m comfortable with sets and functions as first-class objects. A matter of taste I guess. BTW it sounds a bit strange to me to have the verb in the singular in

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

2012-06-24 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset c2be81151994 by Nick Coghlan in branch 'default': Issue #4489: Rename the feature marker for the symlink resistant rmtree and store it as a function attribute http://hg.python.org/cpython/rev/c2be81151994

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

2012-06-24 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: I guess it’s too late to propose “os.open.supports_dir_fd and os.unlink.supports_dir_fd” (and I don’t know if that is feasible with C functions) :) Where were you when is_implemented was being savagely torn apart last week? ;-)

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

2012-06-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I was at work, and moving out of my apartment, and desperating at the subthreads spawned by my mail about packaging, and agreeing with the people being -1 on is_implemented on Signature objects :-) --

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

2012-06-24 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Éric - there's almost certainly going to be a PEP for 3.4 about doing this kind of feature advertisement in a cleaner and more consistent way. -- ___ Python tracker rep...@bugs.python.org

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

2012-06-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Yep, that is promising. At worst we’ll have a new cool API and three obsolete sets in the os module, not a big deal. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4489

[issue14815] random_seed uses only 32-bits of hash on Win64

2012-06-24 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: LGTM -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14815 ___ ___ Python-bugs-list mailing

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

2012-06-24 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: Okay everyone, let's call it day – after 3,5 years. :) Further enhancement requests please in separate tickets. Thanks to everybody who took part! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed

[issue1767933] Badly formed XML using etree and utf-16

2012-06-24 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: It would be nice to fix this bug before forking of the 3.3.0b1 release clone. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1767933

[issue1470548] Bugfix for #1470540 (XMLGenerator cannot output UTF-16)

2012-06-24 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: It would be nice to fix this bug before forking of the 3.3.0b1 release clone. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1470548

[issue15003] make PyNamespace_New() public

2012-06-24 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: -1. The entire Python API is already accessible from C, so expansions to the public C API need more justification than it's exposed in Python. If new instances of this type end up being used in performance critical third party C extensions,

[issue12268] file readline, readlines readall methods can lose data on EINTR

2012-06-24 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 781b95159954 by Gregory P. Smith in branch '3.2': Fixes issue #12268: File readline, readlines and read() or readall() methods http://hg.python.org/cpython/rev/781b95159954 New changeset 19a6bef57490 by Gregory P.

[issue14315] zipfile.ZipFile() unable to open zip File

2012-06-24 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Any chance to commit the patch before final feature freeze? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14315 ___

[issue12268] file readline, readlines readall methods can lose data on EINTR

2012-06-24 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: I'm leaving this open as I still need to audit the write methods and commit the fix(es) for 2.7. I tried to merge the test into test_io's signals tests but I could not get that to actually work to reproduce the original problem so I kept my

[issue14304] Implement utf-8-bmp codec

2012-06-24 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Any chance to commit the patch before final feature freeze? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14304 ___

[issue15147] Remove packaging from the stdlib

2012-06-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: sysonfig.cfg removed in e989e7586da6. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15147

[issue15100] Race conditions in shutil.copy, shutil.copy2 and shutil.copyfile

2012-06-24 Thread Hynek Schlawack
Changes by Hynek Schlawack h...@ox.cx: -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15100 ___ ___

[issue13520] Patch to make pickle aware of __qualname__

2012-06-24 Thread Hynek Schlawack
Changes by Hynek Schlawack h...@ox.cx: -- nosy: -hynek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13520 ___ ___ Python-bugs-list mailing list

[issue7719] distutils: ignore .nfsXXXX files

2012-06-24 Thread Hynek Schlawack
Changes by Hynek Schlawack h...@ox.cx: -- nosy: -hynek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7719 ___ ___ Python-bugs-list mailing list

[issue14974] rename packaging.pypi to packaging.index

2012-06-24 Thread Hynek Schlawack
Changes by Hynek Schlawack h...@ox.cx: -- nosy: -hynek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14974 ___ ___ Python-bugs-list mailing list

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2012-06-24 Thread Hynek Schlawack
Changes by Hynek Schlawack h...@ox.cx: -- nosy: -hynek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10142 ___ ___ Python-bugs-list mailing list

[issue15133] tkinter.BooleanVar.get() behavior and docstring disagree

2012-06-24 Thread Mark Summerfield
Mark Summerfield m...@qtrac.eu added the comment: I think that BooleanVar.set(x) should do bool(x) on its argument (and raise an exception if this isn't valid) and BooleanVar.get() should return a bool. Similarly I think that IntVar.set(x) should do int(x) and IntVar.get() should return an

[issue15133] tkinter.BooleanVar.get() behavior and docstring disagree

2012-06-24 Thread Mark Summerfield
Mark Summerfield m...@qtrac.eu added the comment: Oh, and I forgot to say that I think StringVar.set(x) should do str(x) and StringVar.get() should return a str. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15133

[issue14315] zipfile.ZipFile() unable to open zip File

2012-06-24 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Strictly speaking, the feature freeze has passed already, so you'll need the time machine. However, this is not the *final* feature freeze - there will be a 3.4 release of Python also. -- ___

[issue15159] Add failover for follow_symlinks and effective_ids where possible

2012-06-24 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: It also passes OS X. There are no patch specific tests though. And alas, I don't have any platform at hand that would benefit from these additions. :( The idea sounds good to me and the code LGTM though. However I can't really say much as I

[issue15118] uname and other os functions should return a struct sequence instead of a tuple

2012-06-24 Thread Hynek Schlawack
Changes by Hynek Schlawack h...@ox.cx: -- nosy: +hynek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15118 ___ ___ Python-bugs-list mailing list

[issue15160] Add support for MIME header parsing to the new provisional email policies

2012-06-24 Thread R. David Murray
New submission from R. David Murray rdmur...@bitdance.com: I've been working on this steadily for a while. I think it is now all working correctly. At least, it passes all the same tests that the existing RFC mime header parser passes, plus a bunch of additional ones. There are a couple of

[issue14815] random_seed uses only 32-bits of hash on Win64

2012-06-24 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 166599219bd4 by Larry Hastings in branch 'default': Issue #14815: Use Py_ssize_t instead of long for the object hash, to http://hg.python.org/cpython/rev/166599219bd4 -- nosy: +python-dev

[issue14815] random_seed uses only 32-bits of hash on Win64

2012-06-24 Thread Larry Hastings
Changes by Larry Hastings la...@hastings.org: -- resolution: - fixed stage: - commit review status: open - closed type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14815

[issue15160] Add support for MIME header parsing to the new provisional email policies

2012-06-24 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 0adccb941200 by R David Murray in branch 'default': #15160: Extend the new email parser to handle MIME headers. http://hg.python.org/cpython/rev/0adccb941200 -- nosy: +python-dev

[issue15160] Add support for MIME header parsing to the new provisional email policies

2012-06-24 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Committed with release manager agreement. -- stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15160

[issue15157] venvs should include pydoc

2012-06-24 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 84db4c3ce318 by Vinay Sajip in branch 'default': Closes #15157: pydoc script added to venvs. http://hg.python.org/cpython/rev/84db4c3ce318 -- nosy: +python-dev resolution: - fixed stage: -

[issue1767933] Badly formed XML using etree and utf-16

2012-06-24 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: I will try to find time to review it before the fork, but since time is tight I don't promise. That said, this patch falls more into the bugfix category than a new feature, so I think it will be OK after beta as well. --

[issue14906] rotatingHandler WindowsError

2012-06-24 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Closed for lack of evidence, please re-open when and if more information is available. -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org

[issue14815] random_seed uses only 32-bits of hash on Win64

2012-06-24 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 4445608cf434 by Larry Hastings in branch 'default': Issue #14815: Bugfix: the PyLong fed into the seed generator must be unsigned. http://hg.python.org/cpython/rev/4445608cf434 --

[issue15147] Remove packaging from the stdlib

2012-06-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The sysconfig module was modified (and sysconfig.cfg was introduced) to serve the needs of the resource system (install_data putting files into system-configured locations and packaging.database finding them); one of the thousand things

[issue15161] add new-style os API to two missing functions

2012-06-24 Thread Georg Brandl
New submission from Georg Brandl ge...@python.org: For pathconf() / fpathconf() and truncate() / ftruncate() the former didn't support fds as path. These two patches should fix it. -- assignee: larry components: Extension Modules files: pathconf.diff keywords: patch messages: 163760

[issue15159] Add failover for follow_symlinks and effective_ids where possible

2012-06-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I don't like this idea. Normally the system calls wrapped by the os module are fairly atomic. Here you're introducing the possibility for potentially nasty race conditions and exploits. -- nosy: +neologix

[issue15161] add new-style os API to two missing functions

2012-06-24 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: Added file: http://bugs.python.org/file26128/truncate.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15161 ___

[issue13512] ~/.pypirc created insecurely

2012-06-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I have a link to the Mageia patch: http://svnweb.mageia.org/packages/cauldron/python/current/SOURCES/python-2.7.3-upstream-pypirc-secure.patch?revision=261722view=markup -- ___ Python tracker

[issue15147] Remove packaging from the stdlib

2012-06-24 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: We should keep sysconfig imo -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15147 ___

[issue444582] Finding programs in PATH, adding shutil.which

2012-06-24 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: From 3.2, os has a function get_exec_path -- shouldn't which() use it instead of rolling its own query of $PATH? -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org

[issue15102] Fix 64-bit building for buildbot scripts (issue 15102)

2012-06-24 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: All Windows buildbots are failing now: C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.MakeFile.Targets(38,5): error MSB3073: The command cd d:\cygwin\home\db3l\buildarea\3.x.bolen-windows\build\PCbuild\

[issue15161] add new-style os API to two missing functions

2012-06-24 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset da416ff1ecf5 by Georg Brandl in branch 'default': Closes #15161: add support for giving path as a fd for truncate() and pathconf(). http://hg.python.org/cpython/rev/da416ff1ecf5 -- nosy: +python-dev

[issue15159] Add failover for follow_symlinks and effective_ids where possible

2012-06-24 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: I think you're right. As Antoine pointed out in irc, for POSIX platforms, modules in os are almost exclusively atomic. This is a useful (if undocumented) feature from a security viewpoint, and we should not break it lightly. Closing as

[issue15102] Fix 64-bit building for buildbot scripts (issue 15102)

2012-06-24 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset fc84ac3e8dfc by Stefan Krah in branch 'default': Issue #15102: Try setting HOST_PYTHON in build-amd64.bat as a temporary http://hg.python.org/cpython/rev/fc84ac3e8dfc --

[issue15102] Fix 64-bit building for buildbot scripts (issue 15102)

2012-06-24 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I'm trying out my suggestion on the 64-bit bot. Will revert if it doesn't work out. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15102

[issue15133] tkinter.BooleanVar.get() behavior and docstring disagree

2012-06-24 Thread klappnase
klappnase klappn...@web.de added the comment: The behavior of Tkinter when handling boolean values appears to be a bit erratic at times, not only BooleanVar.get() returns 0/1 instead of True/False (e.g. see the thread at tkinter-discuss:

[issue7391] Re-title the Using Backslash to Continue Statements anti-idiom

2012-06-24 Thread Pan Yongzhi
Changes by Pan Yongzhi fossi...@users.sourceforge.net: -- nosy: +fossilet ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7391 ___ ___

[issue15102] Fix 64-bit building for buildbot scripts (issue 15102)

2012-06-24 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Well, the path to python_d.exe looks right now, but Perl and nasm aren't found: C:\Users\Buildbot\buildbot.python.org\3.x.kloth-win64\build\PCbuild\amd64\python_d.exe build_ssl.py Release x64 -a Found a working perl at

[issue15102] Fix 64-bit building for buildbot scripts (issue 15102)

2012-06-24 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I'm trying out my suggestion on the 64-bit bot. Will revert if it doesn't work out. Even if it does work out it should be reverted. As HOST_PYTHON is not set, PythonExe should be computed correctly. So we really need to find out why it

[issue15102] Fix 64-bit building for buildbot scripts (issue 15102)

2012-06-24 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: On 24.06.2012 13:22, Stefan Krah wrote: Stefan Krah stefan-use...@bytereef.org added the comment: Well, the path to python_d.exe looks right now, but Perl and nasm aren't found: perl shouldn't be necessary. Not sure why nasm is.

[issue15118] uname and other os functions should return a struct sequence instead of a tuple

2012-06-24 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 460407f35aa9 by Larry Hastings in branch 'default': Issue #15118: Change return value of os.uname() and os.times() from http://hg.python.org/cpython/rev/460407f35aa9 -- nosy: +python-dev

[issue15118] uname and other os functions should return a struct sequence instead of a tuple

2012-06-24 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: Yummy! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15118

[issue14917] Make os.symlink on Win32 detect if target is directory

2012-06-24 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: Martin: does this sound good or bad? -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14917 ___

[issue14917] Make os.symlink on Win32 detect if target is directory

2012-06-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Uh. This was *removed* in a7406565ef1c :) See issue13772. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14917 ___

[issue15061] hmac.secure_compare() leaks information about length of strings

2012-06-24 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset c82451eeb595 by Christian Heimes in branch 'default': Issue #15061: Re-implemented hmac.compare_digest() in C http://hg.python.org/cpython/rev/c82451eeb595 -- ___ Python

[issue14917] Make os.symlink on Win32 detect if target is directory

2012-06-24 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: Well then! Let's close this before the adults notice. -- resolution: - wont fix stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue15162] help() says This is the online help utility. even though it isn't

2012-06-24 Thread Ramchandra Apte
New submission from Ramchandra Apte maniandra...@gmail.com: help() says This is the online help utility. even though it isn't. I think this sentence should be hanged to This is the offline help utility. -- components: Library (Lib) messages: 163782 nosy: ramchandra.apte priority: normal

[issue10910] pyport.h FreeBSD/Mac OS X fix causes errors in C++ compilation

2012-06-24 Thread Barry Alan Scott
Barry Alan Scott barry-sc...@users.sourceforge.net added the comment: I'm happy to review patches or create them for you. I see a related set of errors on Mac OS X that are down to issues in bytes_methods.py that mirror the pyport.h issues. In C++ isspace and friends are functions not macros.

[issue15061] hmac.secure_compare() leaks information about length of strings

2012-06-24 Thread Christian Heimes
Christian Heimes li...@cheimes.de added the comment: Thanks to all for your input and assistance! -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue15162] help() says This is the online help utility. even though it isn't

2012-06-24 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Not sure offline is more true here; maybe integrated is better. Also not sure the sentence deserves the death penalty. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org

[issue15162] help() says This is the online help utility. even though it isn't

2012-06-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: interactive then? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15162 ___ ___

[issue15102] Fix 64-bit building for buildbot scripts (issue 15102)

2012-06-24 Thread Jeremy Kloth
Jeremy Kloth jeremy.kl...@gmail.com added the comment: Hmm, obviously Perl *is* found. That leaves nasm. nasm.exe was installed for myself (hence testing worked). I've now made it available to the buildbot account as well. Note that I have Perl installed but *not* on my PATH (on purpose).

[issue15163] pydoc displays __loader__ as module data

2012-06-24 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: Everything's in the title. __loader__ probably needs to be blacklisted. -- components: Library (Lib) messages: 163788 nosy: brett.cannon, eric.snow, pitrou priority: low severity: normal stage: needs patch status: open title: pydoc

[issue15102] Fix 64-bit building for buildbot scripts (issue 15102)

2012-06-24 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Jeremy Kloth rep...@bugs.python.org wrote: nasm.exe was installed for myself (hence testing worked). I've now made it available to the buildbot account as well. Note that I have Perl installed but *not* on my PATH (on purpose). The

[issue15156] Refactor HTMLParser.unescape to use html.entities.html5

2012-06-24 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Here's a patch, please review. -- keywords: +patch stage: needs patch - patch review Added file: http://bugs.python.org/file26129/issue15156.diff ___ Python tracker rep...@bugs.python.org

[issue15016] Add special case for latin messages in email.mime.text

2012-06-24 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Well, the original change to using utf-8 by default was considered a bug fix. But I suppose you are right that this goes beyond that into enhancement territory. In which case we could wait for an enhancement to the C API to base it

[issue15102] Fix 64-bit building for buildbot scripts (issue 15102)

2012-06-24 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Jeremy, your python-dev suggestion to move x64.props before pyproject.props does not work for me. For instance, in python3dll.vcxproj: C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.MakeFile.Targets(38,5): error MSB3073:

[issue15152] test_subprocess fqailures on awfully slow builtbots

2012-06-24 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: You could make the test a loop, with the timeout increasing each time through the loop, failing only if all tries fail. That way on faster machines the test will pass faster. It'll take even longer on slow machines, but they are slow

[issue12268] file readline, readlines readall methods can lose data on EINTR

2012-06-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: For the record, there was a crash on the ARM buildbot: [196/368/1] test_io Timeout (1:00:00)! Thread 0x2aac5300: File /var/lib/buildbot/buildarea/3.x.warsaw-ubuntu-arm/build/Lib/test/test_io.py, line 3051 in check_interrupted_write_retry

[issue15162] help() says This is the online help utility. even though it isn't

2012-06-24 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Oh you youngsters. Offline doesn't mean not on the Internet, it means not on a computer :) Yes, interactive would be clearer. -- nosy: +r.david.murray ___ Python tracker

[issue15162] help() says This is the online help utility. even though it isn't

2012-06-24 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 1ff29f3b8da7 by Georg Brandl in branch 'default': Closes #15162: the meaning of online has shifted a bit in recent years, use interactive instead. http://hg.python.org/cpython/rev/1ff29f3b8da7 -- nosy:

[issue14578] importlib doesn't check Windows registry for paths

2012-06-24 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Yes, it should be tackled soon, but I lack Windows access so I can't do the work myself. Basically no one seems to use or care about this feature so it might die on the vine if someone doesn't step forward. --

[issue13959] Re-implement parts of imp in pure Python

2012-06-24 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Sorry, been on vacation the past week. Georg is right, nothing left is a b1 blocker, just stuff I want to get in before 3.3 ships. -- ___ Python tracker rep...@bugs.python.org

[issue444582] Finding programs in PATH, adding shutil.which

2012-06-24 Thread Alexander Belopolsky
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: I don't think the Windows example in the reST documentation is correct: print(shutil.which(python)) 'c:\\python33\\python.exe' It should be either shutil.which(python) 'c:\\python33\\python.exe'

[issue15056] Have imp.cache_from_source() raise NotImplementedError when cache tag not available

2012-06-24 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Thanks for the patch, Pranav. I'm probably going to be too busy for a couple of weeks, so I won't look at this immediately, but I wanted to let you know I will eventually get to it. -- ___ Python

[issue444582] Finding programs in PATH, adding shutil.which

2012-06-24 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 84b48551cd13 by Georg Brandl in branch 'default': #444582: fix example and rewrap docs a bit. http://hg.python.org/cpython/rev/84b48551cd13 -- ___ Python tracker

[issue415492] Compiler generates relative filenames

2012-06-24 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: So co_filename is absolute in Python 3.3, but __file__ on modules is not if a relative path is used from sys.path (as Nick pointed out). Changing this would possibly break code as this has been baked into the import system for quite some time.

[issue14657] Avoid two importlib copies

2012-06-24 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Do people feel the need to change the importlib tests to run against both the frozen code and importlib/_bootstrap.py? If so either the test_warnings approach (or a new one using class decorators or something) should be used to run the tests

[issue15102] Fix 64-bit building for buildbot scripts (issue 15102)

2012-06-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ouch. The test failures on the buildbot now seem to point to problems with OpenSSL's SHA1 implementation. Jeremy, perhaps you can try to run the OpenSSL self-tests? -- ___ Python tracker

[issue15102] Fix 64-bit building for buildbot scripts (issue 15102)

2012-06-24 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Stefan: I think that's acceptable. Perhaps someone will come up with a better solution; if this works, it's good enough for me. -- ___ Python tracker rep...@bugs.python.org

[issue15102] Fix 64-bit building for buildbot scripts (issue 15102)

2012-06-24 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset f12a2f2c93e5 by Stefan Krah in branch 'default': Issue #15102: Fix paths of python executables. http://hg.python.org/cpython/rev/f12a2f2c93e5 -- ___ Python tracker

[issue7897] Support parametrized tests in unittest

2012-06-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I like test_email’s decorator. It looks like https://github.com/wolever/nose-parameterized which I’m using. (The implementation and generation of test method names may be less nice than what was discussed here, but the API (decorator + list

[issue15164] add platform.uname() namedtuple interface?

2012-06-24 Thread Georg Brandl
New submission from Georg Brandl ge...@python.org: Followup to #15118. See rev 75b818d7c50d -- the patch converted a usage of platform.uname(), which errored out on Mac. Since os.uname() is supposed to be the low-level interface, it suggests that platform.uname() should also return an

  1   2   3   >