[issue8746] os.chflags() and os.lchflags() are not built when they should be be

2011-06-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset abfe28e7e5cd by Ned Deily in branch '2.7': Issue #8746: Correct faulty configure checks so that os.chflags() and http://hg.python.org/cpython/rev/abfe28e7e5cd New changeset 529e26aa4fa3 by Ned Deily in branch '3.2': Issue #8746: Correct faulty conf

[issue8746] os.chflags() and os.lchflags() are not built when they should be be

2011-06-28 Thread Ned Deily
Ned Deily added the comment: Thanks for the additional tests, Garrett. I've applied them (modulo a fix). I've also applied the corrections to configure which should make os.chflags() and os.lchflags() reappear again in BSD and OS X builds where supported. I've also added and documented two

[issue12425] gettext breaks on empty plural-forms value

2011-06-28 Thread Dirkjan Ochtman
New submission from Dirkjan Ochtman : See https://bugzilla.redhat.com/show_bug.cgi?id=692632 for more details and a proposed patch. -- components: Library (Lib) messages: 139347 nosy: djc priority: normal severity: normal status: open title: gettext breaks on empty plural-forms value ve

[issue1475523] gettext breaks on plural-forms header

2011-06-28 Thread Dirkjan Ochtman
Dirkjan Ochtman added the comment: Okay, I've filed issue12425. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue12141] sysconfig.get_config_vars('srcdir') fails in specific cases

2011-06-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset c8ffa3891d5e by Ned Deily in branch '2.7': Issue #12141: Install a copy of template C module file so that http://hg.python.org/cpython/rev/c8ffa3891d5e New changeset de226a510b52 by Ned Deily in branch '3.2': Issue #12141: Install a copy of templat

[issue12141] sysconfig.get_config_vars('srcdir') fails in specific cases

2011-06-28 Thread Ned Deily
Ned Deily added the comment: Patches applied as described above for 3.3, 3.2.1, and 2.7.3. I'm setting the status of the issue to pending and, assuming there are no buildbot failures in the near future, I will close it unless anyone sees a reason not to. -- resolution: -> fixed stage

[issue12426] packaging.tests.test_command_install_dist.InstallTestCase failure

2011-06-28 Thread STINNER Victor
New submission from STINNER Victor : FAIL: test_user_site (packaging.tests.test_command_install_dist.InstallTestCase) -- Traceback (most recent call last): File "/home/buildbot/buildarea/3.x.ochtman-gentoo-amd64/build/Lib/pack

[issue12427] packaging register fails because "POST data should be bytes"

2011-06-28 Thread Vinay Sajip
New submission from Vinay Sajip : vinay@eta-natty:~/projects/nemo$ pysetup3 run register running register Registering nemo to http://pypi.python.org/pypi Traceback (most recent call last): File "/usr/local/bin/pysetup3", line 4, in sys.exit(main()) File "/usr/local/lib/python3.3/packagin

[issue12428] functools test coverage

2011-06-28 Thread Brian Thorne
New submission from Brian Thorne : The test coverage for functools was down around ~60%, this is a patch to bring that up to ~98%. Made two changes to the Lib/functools.py file itself: 1) Moved the Python implementation of partial into Lib/functools.py from Lib/test/test_functools.py which ge

[issue12406] msi.py needs updating for Python 3.3

2011-06-28 Thread Vinay Sajip
Vinay Sajip added the comment: > and adding the two files added for packaging should do the trick Which two files would those be, exactly? In my branch I've changed to logic from parent.physical == "distutils" to parent.physical in ("distutils", "packaging") and this should cover the all the

[issue12429] test_io.check_interrupted_write() sporadic failures on FreeBSD 6 on Python 2.7/3.2

2011-06-28 Thread STINNER Victor
New submission from STINNER Victor : test_io.check_interrupted_write() has two threads and a pipe: - reader (thread): read one byte from the pipe - writer (main thread): write 1 MB into the pipe An alarm (SIGALRM) is scheduled in one second. The writer blocks because the pipe buffer is small

[issue12429] test_io.check_interrupted_write() sporadic failures on FreeBSD 6 on Python 2.7/3.2

2011-06-28 Thread STINNER Victor
STINNER Victor added the comment: Patch to skip the test on FreeBSD 5, 6 and 7. I was unable to reproduce #11859 on my FreeBSD 8 VM, so I didn't add freebsd8. -- keywords: +patch Added file: http://bugs.python.org/file22506/test_io_skip_freebsd.patch __

[issue12430] Pip fails to fetch from mirror if PyPi checksum times out

2011-06-28 Thread Seppo Yli-Olli
New submission from Seppo Yli-Olli : Checksums need to be mirrored as well, otherwise having mirrors is a waste of money because PyPi main server being slow ends up with whole download failing. If this is the wrong bug tracker, please advice me to the right one so this can be resolved. --

[issue12430] Pip fails to fetch from mirror if PyPi checksum times out

2011-06-28 Thread Seppo Yli-Olli
Changes by Seppo Yli-Olli : -- type: -> feature request ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue12428] functools test coverage

2011-06-28 Thread Nick Coghlan
Nick Coghlan added the comment: Raymond, do we care whether or not the pure Python version of functools.partial supports inheritance and instance testing? The constructor is technically documented as returning a "partial object" rather than a simple staticmethod instance with additional attri

[issue12428] functools test coverage

2011-06-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Raymond, do we care whether or not the > pure Python version of functools.partial > supports inheritance and instance testing? We don't care. The docs make very few guarantees beyond the core functionality. Everything else is an implementation detail.

[issue12430] Pip fails to fetch from mirror if PyPi checksum times out

2011-06-28 Thread Stefan Krah
Stefan Krah added the comment: Hello, The PyPI bug tracker is over here (you can find the link on the front page of http://pypi.python.org/pypi): http://sourceforge.net/tracker/?group_id=66150&atid=513503 That said, having checksums come from the master server exclusively seems like a securi

[issue12431] urllib2.Request.get_full_url() broken in newer versions of Python

2011-06-28 Thread Jon Siddle
New submission from Jon Siddle : Issue8280 fixed an issue where the fragment was being sent to the server (and returned by get_selector). Unfortunately the fix means that the "full" URL stored in the Request no longer includes the fragment either. This is in contradiction to the documentation

[issue12425] gettext breaks on empty plural-forms value

2011-06-28 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue12432] remove a bunch of unused imports in Lib

2011-06-28 Thread Vincent Legoll
New submission from Vincent Legoll : Using pylint I found some unused imports in Lib. I filtered the most obvious ones by hand to produce the attached patch. Should I submit individual patches, one for each file, so as to ease review ? -- components: Library (Lib) files: unused-imports

[issue12432] remove a bunch of unused imports in Lib

2011-06-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8c17e898e0e8 by Benjamin Peterson in branch 'default': remove unused imports (closes #12432) http://hg.python.org/cpython/rev/8c17e898e0e8 -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status: open -> closed

[issue12433] make clean doesn't clean up static libraries on 2.x

2011-06-28 Thread Garrett Cooper
New submission from Garrett Cooper : Running 'make clean' leaves libpython*.a behind. The attached patch removes it when make clean is run. This was resolved on py3k, not trunk; the attached patch matches what was done on py3k. -- components: Build files: cleanup-libpython-dot-a-trunk

[issue12433] make clean doesn't clean up static libraries on 2.x

2011-06-28 Thread Ned Deily
Ned Deily added the comment: A similar fix was applied and released in both 2.6.6 and 2.7.1. -- nosy: +ned.deily resolution: -> out of date stage: -> committed/rejected status: open -> closed type: compile error -> ___ Python tracker

[issue12431] urllib2.Request.get_full_url() broken in newer versions of Python

2011-06-28 Thread Ned Deily
Changes by Ned Deily : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue12433] make clean doesn't clean up static libraries on 2.x

2011-06-28 Thread Garrett Cooper
Garrett Cooper added the comment: Is svn not being updated anymore (in lieu of hg)? -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue12432] remove a bunch of unused imports in Lib

2011-06-28 Thread Vincent Legoll
Vincent Legoll added the comment: Looking through http://hg.python.org/cpython/rev/8c17e898e0e8 I see that the glob.py hunk has been applied reversed. The changeset 68349:55bea11d892e removing it is 3 monthes old... Looks like I missed a svn->hg migration on my side, sorry for the screwup...

[issue12433] make clean doesn't clean up static libraries on 2.x

2011-06-28 Thread Ned Deily
Ned Deily added the comment: No, the svn repos for python itself (at svn.python.org) are frozen as of the hg transition and are for historical reference only. See http://docs.python.org/devguide/ for more info on current practices. -- ___ Python t

[issue12432] remove a bunch of unused imports in Lib

2011-06-28 Thread Vincent Legoll
Vincent Legoll added the comment: This one reverts glob.py to the previous state -- Added file: http://bugs.python.org/file22510/reremove-sys-import-from-glob.patch ___ Python tracker _

[issue12431] urllib2.Request.get_full_url() broken in newer versions of Python

2011-06-28 Thread Santoso Wijaya
Santoso Wijaya added the comment: This has been fixed with issue #11703, latest version of Python 2.7 does not exhibit this behaviour anymore: Python 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)] on win 32 Type "help", "copyright", "credits" or "license" for more informati

[issue12407] test_subinterps fails on Windows

2011-06-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't really understand why you need this. Under normal setups, the test is already properly skipped under Windows, since there's no rule to build the "Modules/_testembed" with MSVC. Or are you talking about another kind of setup? Cygwin? mingw? --

[issue12352] multiprocessing.Value() hangs

2011-06-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Nice work! I also think heap_gc_deadlock_lockless.diff is good, except for Victor's reservation: is it deliberate that you reversed the following two statements in _free_pending_blocks(), compared to the code in free()? +self._free(block) +

[issue12380] bytearray methods center, ljust, rjust don't accept a bytearray as the fill character

2011-06-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: I do agree it is a nuisance that it doesn't work with bytearray instances. After all, these methods are supposed to be homogeneous, and they are when called on a str or bytes object. -- assignee: docs@python -> stage: committed/rejected -> needs patc

[issue12380] bytearray methods center, ljust, rjust don't accept a bytearray as the fill character

2011-06-28 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- components: -Documentation ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue12434] Strengthen 2.7 io types warning

2011-06-28 Thread Terry J. Reedy
New submission from Terry J. Reedy : Trying 3.2 code with 2.7, I got this (greatly simplified): from __future__ import print_function from io import StringIO print('hello world', file=StringIO()) Traceback... TypeError: string argument expected, got 'str' (StringIO.StringIO works fine, of course

[issue12147] smtplib.send_message does not implement corectly rfc 2822

2011-06-28 Thread Nicolas Estibals
Nicolas Estibals added the comment: Sorry for the late, my week-end was more busy than expected. Here is the corrected version of the patch. -- Added file: http://bugs.python.org/file22511/send_message_rfc2822_v2.patch ___ Python tracker

[issue12423] signal handler doesn't handle SIGABRT from os.abort

2011-06-28 Thread Kamil Kisiel
Kamil Kisiel added the comment: The application is interfacing with a C library that uses abort() to signal fatal errors (horrible, I know..). Instead of core dumping I would like to be able to handle these errors at the Python level and do something else. It's starting to sound like that mig

[issue12417] Inappropriate copyright on profile files

2011-06-28 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I think we should apply this to earlier applicable versions too. I would accept this change for Python 2.6. -- nosy: +barry ___ Python tracker _

[issue12423] signal handler doesn't handle SIGABRT from os.abort

2011-06-28 Thread STINNER Victor
STINNER Victor added the comment: "Be aware that programs which use signal.signal() to register a handler for SIGABRT will behave differently." I don't understand this sentence. I think that this sentence should be removed, and another should maybe be added. E.g. "os.abort() doesn't call the

[issue12435] Input function does not strip trailing '\r' from string input

2011-06-28 Thread Brian Hare
New submission from Brian Hare : In Windows, using python 3.2, the built-input function does not strip the trailing '\r' from the string input: Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more informati

[issue12435] Input function does not strip trailing '\r' from string input

2011-06-28 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue12435] Input function does not strip trailing '\r' from string input

2011-06-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Already fixed with issue11272, which will be included in 3.2.1 and 3.3. -- nosy: +amaury.forgeotdarc resolution: -> out of date status: open -> closed superseder: -> input() has trailing carriage return on windows __

[issue12436] Provide reference to detailed installation instructions

2011-06-28 Thread Nick Coghlan
New submission from Nick Coghlan : The Boston Python Workshop folks have some detailed step-by-step instructions on getting Python up and running ([1]). Given that this can be a pain point for new users (primarily on Windows), it may be good to reference these instructions from the official do

[issue12437] _ctypes.dlopen does not include errno in OSError

2011-06-28 Thread Matt Joiner
New submission from Matt Joiner : _ctypes.dlopen is not including the errno when it raises OSError. This occurs when attempting to load a library that doesn't exist, the error string given is clearly generated from an ENOENT. joiner@dbssyd800:~$ python3 dlopen_raise.py None somelib.so: cannot

[issue10736] test_ttk_guionly fails on OS X using ActiveState Tcl 8.5.9 (Cocoa)

2011-06-28 Thread Ned Deily
Ned Deily added the comment: No obvious buildbot problems so far so I'm going to close this as fixed. Thanks for the patch, Ronald. -- status: pending -> closed ___ Python tracker ___

[issue8746] os.chflags() and os.lchflags() are not built when they should be be

2011-06-28 Thread Ned Deily
Changes by Ned Deily : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue12141] sysconfig.get_config_vars('srcdir') fails in specific cases

2011-06-28 Thread Ned Deily
Changes by Ned Deily : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue12172] IDLE crashes when I use F5 to run

2011-06-28 Thread Ned Deily
Ned Deily added the comment: Since there's been no response and I believe the problem should not occur with a properly installed Python 3.2 and ActiveState Tcl 8.5 as described here (http://www.python.org/download/mac/tcltk/), I'm going to close this issue. Please reopen if the problem persi

[issue12438] getpass error on idle

2011-06-28 Thread João Bernardo
New submission from João Bernardo : The getpass function is raising an error when first used on idle (Python 3.2 and 2.7.1) The next time it'll work "as expected" (it echoes the data, but idle is just for testing purposes so no problems here) >>> from getpass import getpass >>> p = getpass()

[issue12379] build outside source fail in head

2011-06-28 Thread Ned Deily
Ned Deily added the comment: Fixed by Benjamin in f8f1d5691ae8. -- nosy: +ned.deily resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue12437] _ctypes.dlopen does not include errno in OSError

2011-06-28 Thread Santoso Wijaya
Santoso Wijaya added the comment: On Windows: >>> try: ... ctypes.CDLL('somelib') ... except OSError as exc: ... print repr(exc) ... print exc.errno ... WindowsError(126, 'The specified module could not be found') 22 -- nosy: +santa4nt _

[issue12361] Memory Leak in File Logging

2011-06-28 Thread Jacob Perkins
Jacob Perkins added the comment: Sorry about this. Turns out the flattening of memory usage was a temporary coincidence, and I eventually tracked the bug down to an old version of MySQLdb. -- resolution: -> invalid status: pending -> closed ___ Pyt

[issue12417] Inappropriate copyright on profile files

2011-06-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 02150e60636b by Benjamin Peterson in branch '2.6': update profile license (closes #12417) http://hg.python.org/cpython/rev/02150e60636b New changeset 633597815463 by Benjamin Peterson in branch '3.1': update profile license (closes #12417) http://h

[issue9516] sysconfig: $MACOSX_DEPLOYMENT_TARGET mismatch: now "10.3" but "10.5" during configure

2011-06-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 29c670f0d7d5 by Ned Deily in branch '2.7': Issue #9516: Correct and expand OS X deployment target tests in distutils http://hg.python.org/cpython/rev/29c670f0d7d5 New changeset 01434498e55e by Ned Deily in branch '2.7': Issue #9516: Change distutil

[issue9516] sysconfig: $MACOSX_DEPLOYMENT_TARGET mismatch: now "10.3" but "10.5" during configure

2011-06-28 Thread Ned Deily
Ned Deily added the comment: While I am a little concerned about applying these fixes, it is clear that the previous behavior was broken and the initial set of patches as applied did not improve matters. The only risk I can see is that there is a slight chance that there *might* be some 3rd-p

[issue10403] Use "member" consistently

2011-06-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: So I'm -1 on using "attributes" to denote methods. It will actively confuse non-expert users. If you want to ditch "members", please consider using the more explicit phrase "attributes and methods". -- nosy: +pitrou __

[issue10403] Use "member" consistently

2011-06-28 Thread Senthil Kumaran
Senthil Kumaran added the comment: Yes, I agree with you. Good Suggestion. Thanks! -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue12407] test_subinterps fails on Windows

2011-06-28 Thread Cesare Di Mauro
Cesare Di Mauro added the comment: Unfortunately this test isn't skip on normal setup (using VisualStudio 2008 Express). I've updated the clone just a few minutes ago, rebuilt Python (in Debug mode), and that's what happened: D:\CPython>PCbuild\python_d.exe Lib\test\test_capi.py test_instance

[issue11549] Build-out an AST optimizer, moving some functionality out of the peephole optimizer

2011-06-28 Thread Nick Coghlan
Nick Coghlan added the comment: Marking the PEP 380 implementation as a dependency, as I expect it to be easier to update this patch to cope with those changes than it would be the other way around. -- dependencies: +PEP 380 reference implementation for 3.3 __

[issue12417] Inappropriate copyright on profile files

2011-06-28 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Thanks Benjamin! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://