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

2011-06-28 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 4a0b929b5c3d by Ned Deily in branch '2.7':
Issue #10736: Fix test_ttk test_widgets failures with Cocoa Tk 8.5.9
http://hg.python.org/cpython/rev/4a0b929b5c3d

New changeset 570cdef34066 by Ned Deily in branch '3.2':
Issue #10736: Fix test_ttk test_widgets failures with Cocoa Tk 8.5.9
http://hg.python.org/cpython/rev/570cdef34066

New changeset b7c61000ceec by Ned Deily in branch 'default':
Issue #10736: Fix test_ttk test_widgets failures with Cocoa Tk 8.5.9
http://hg.python.org/cpython/rev/b7c61000ceec

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10736
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-06-28 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


--
resolution:  - fixed
stage:  - committed/rejected
status: open - pending

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10736
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-06-28 Thread Roundup Robot

Roundup Robot devnull@devnull 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 configure checks so that os.chflags() and
http://hg.python.org/cpython/rev/529e26aa4fa3

New changeset 9da64c0bdc33 by Ned Deily in branch 'default':
Issue #8746: Correct faulty configure checks so that os.chflags() and
http://hg.python.org/cpython/rev/9da64c0bdc33

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8746
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-06-28 Thread Ned Deily

Ned Deily n...@acm.org 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 new OS X specific file flags: UF_HIDDEN and 
UF_COMPRESSED. Applied in default (for 3.3), 3.2 (3.2.1), and 2.7 (2.7.3).

--
assignee: ronaldoussoren - ned.deily
resolution:  - fixed
stage: patch review - committed/rejected
status: open - pending
type: compile error - 

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8746
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12425] gettext breaks on empty plural-forms value

2011-06-28 Thread Dirkjan Ochtman

New submission from Dirkjan Ochtman dirk...@ochtman.nl:

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
versions: Python 2.7, Python 3.1, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12425
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1475523] gettext breaks on plural-forms header

2011-06-28 Thread Dirkjan Ochtman

Dirkjan Ochtman dirk...@ochtman.nl added the comment:

Okay, I've filed issue12425.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1475523
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-06-28 Thread Roundup Robot

Roundup Robot devnull@devnull 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 template C module file so that
http://hg.python.org/cpython/rev/de226a510b52

New changeset ef8e9e99de88 by Ned Deily in branch 'default':
Issue #12141: Install copies of template C module file so that
http://hg.python.org/cpython/rev/ef8e9e99de88

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12141
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-06-28 Thread Ned Deily

Ned Deily n...@acm.org 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: patch review - committed/rejected
status: open - pending

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12141
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12426] packaging.tests.test_command_install_dist.InstallTestCase failure

2011-06-28 Thread STINNER Victor

New submission from STINNER Victor victor.stin...@haypocalc.com:

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/packaging/tests/test_command_install_dist.py,
 line 93, in test_user_site
self._test_user_site()
  File 
/home/buildbot/buildarea/3.x.ochtman-gentoo-amd64/build/Lib/packaging/tests/test_command_install_dist.py,
 line 122, in _test_user_site
self.assertTrue(os.path.exists(self.user_base))
AssertionError: False is not true

http://www.python.org/dev/buildbot/all/builders/AMD64%20Gentoo%20Wide%203.x/builds/1988/steps/test/logs/stdio

--
assignee: tarek
components: Distutils2, Tests
messages: 139351
nosy: alexis, eric.araujo, haypo, tarek
priority: normal
severity: normal
status: open
title: packaging.tests.test_command_install_dist.InstallTestCase failure
versions: Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12426
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-06-28 Thread Vinay Sajip

New submission from Vinay Sajip vinay_sa...@yahoo.co.uk:

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 module
sys.exit(main())
  File /usr/local/lib/python3.3/packaging/run.py, line 678, in main
return dispatcher()
  File /usr/local/lib/python3.3/packaging/run.py, line 667, in __call__
return func(self, self.args)
  File /usr/local/lib/python3.3/packaging/run.py, line 204, in wrapper
return f(*args, **kwargs)
  File /usr/local/lib/python3.3/packaging/run.py, line 344, in _run
dist.run_command(cmd, dispatcher.command_options[cmd])
  File /usr/local/lib/python3.3/packaging/dist.py, line 761, in run_command
cmd_obj.run()
  File /usr/local/lib/python3.3/packaging/command/register.py, line 63, in run
self.send_metadata()
  File /usr/local/lib/python3.3/packaging/command/register.py, line 167, in 
send_metadata
auth)
  File /usr/local/lib/python3.3/packaging/command/register.py, line 267, in 
post_to_server
result = opener.open(req)
  File /usr/local/lib/python3.3/urllib/request.py, line 367, in open
req = meth(req)
  File /usr/local/lib/python3.3/urllib/request.py, line 1075, in do_request_
raise TypeError(POST data should be bytes
TypeError: POST data should be bytes or an iterable of bytes. It cannot be str.
vinay@eta-natty:~/projects/nemo$

--
assignee: tarek
components: Distutils2, Library (Lib)
messages: 139352
nosy: alexis, eric.araujo, tarek, vinay.sajip
priority: high
severity: normal
status: open
title: packaging register fails because POST data should be bytes
type: behavior
versions: Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12427
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12428] functools test coverage

2011-06-28 Thread Brian Thorne

New submission from Brian Thorne hardb...@gmail.com:

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 gets imported over the same as the Python 
implementation of cmp_to_key.

2) In order to allow the blocking of _functools, I grouped and moved the import 
functions from of _functools to the end of the file.

In the test_functools.py file:

3) Added two new tests to TestLRU.

4) Add testing of Python implementation of cmp_to_key. I copied how 
test_warnings.py tests C and Python implementations of the same function.

5) Made the importing of functools itself far less clear

--
components: Tests
files: functools.diff
keywords: patch
messages: 139353
nosy: Thorney, ncoghlan, rhettinger
priority: normal
severity: normal
status: open
title: functools test coverage
type: behavior
versions: Python 3.2
Added file: http://bugs.python.org/file22505/functools.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12428
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12406] msi.py needs updating for Python 3.3

2011-06-28 Thread Vinay Sajip

Vinay Sajip vinay_sa...@yahoo.co.uk 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 .exes and command_template. I 
haven't looked at the packaging test stuff, there may need to be some attention 
directed there.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12406
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 victor.stin...@haypocalc.com:

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 smaller than 1 MB, but it is supposed to fill the pipe. The 
reader is supposed to exit quickly: the writer wrote a least one byte.

The test fails *sometimes* on FreeBSD 6:

[ 85/352] test_io
Exception in thread Thread-274:
Traceback (most recent call last):
  File /usr/home/db3l/buildarea/3.2.bolen-freebsd/build/Lib/threading.py, 
line 736, in _bootstrap_inner
self.run()
  File /usr/home/db3l/buildarea/3.2.bolen-freebsd/build/Lib/threading.py, 
line 689, in run
self._target(*self._args, **self._kwargs)
  File /usr/home/db3l/buildarea/3.2.bolen-freebsd/build/Lib/test/test_io.py, 
line 2660, in _read
s = os.read(r, 1)
OSError: [Errno 4] Interrupted system call

It is a race condition, this buildbot is very slow. The reader has maybe not 
enough time to read 1 byte.

The test was fixed in Python 3.3 (#11859) by adding pthread_sigmask() (issue 
#8407) and using it in the test: commit 28b9702a83d1.

The problem looks to be specific of FreeBSD 6 and 7 (according to #11859). The 
easiest solution is to skip the test on these platforms.

To workaround the lack of pthread_sigmark(), we can use two processes instead 
of two threads. But it is maybe too much work just to fix a bug in a test (the 
bug is not in Python).

--
components: IO, Tests
messages: 139355
nosy: haypo, neologix
priority: normal
severity: normal
status: open
title: test_io.check_interrupted_write() sporadic failures on FreeBSD 6 on 
Python 2.7/3.2
versions: Python 2.7, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12429
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 victor.stin...@haypocalc.com 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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12429
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 seppo.ylio...@gmail.com:

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.

--
components: None
files: pip.log
messages: 139357
nosy: Seppo.Yli-Olli
priority: normal
severity: normal
status: open
title: Pip fails to fetch from mirror if PyPi checksum times out
versions: Python 2.7
Added file: http://bugs.python.org/file22507/pip.log

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12430
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-06-28 Thread Seppo Yli-Olli

Changes by Seppo Yli-Olli seppo.ylio...@gmail.com:


--
type:  - feature request

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12430
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12428] functools test coverage

2011-06-28 Thread Nick Coghlan

Nick Coghlan ncogh...@gmail.com 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 attributes.

My own preference leans towards keeping the closure based implementation due to 
its simplicity, which is what makes it particularly useful as a cross-check on 
the C implementation.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12428
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12428] functools test coverage

2011-06-28 Thread Raymond Hettinger

Raymond Hettinger raymond.hettin...@gmail.com 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.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12428
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-06-28 Thread Stefan Krah

Stefan Krah stefan-use...@bytereef.org 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=66150atid=513503


That said, having checksums come from the master server exclusively
seems like a security feature, so I'm not sure whether your suggestion
will be considered.

--
nosy: +skrah
resolution:  - invalid
stage:  - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12430
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-06-28 Thread Jon Siddle

New submission from Jon Siddle j...@corefiling.co.uk:

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 which states:

 Request.get_full_url()
  Return the URL given in the constructor.

Yet:

  import urllib2
  urllib2.Request(http://host/path#fragment;).get_full_url()
 'http://host/path'

The particular use case is a custom scheme handler, which should be able to use 
the whole of the opaque part of the URL to operate. Ie, our code wants to do 
something like this:

 urllib2.Request(foo://opaquestring#opaquestring).get_full_url()

--
messages: 139361
nosy: jonsiddle
priority: normal
severity: normal
status: open
title: urllib2.Request.get_full_url() broken in newer versions of Python
type: behavior
versions: Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12431
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12425] gettext breaks on empty plural-forms value

2011-06-28 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12425
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12432] remove a bunch of unused imports in Lib

2011-06-28 Thread Vincent Legoll

New submission from Vincent Legoll vincent.leg...@gmail.com:

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-2.patch
keywords: patch
messages: 139362
nosy: vincele
priority: normal
severity: normal
status: open
title: remove a bunch of unused imports in Lib
versions: Python 3.4
Added file: http://bugs.python.org/file22508/unused-imports-2.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12432
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12432] remove a bunch of unused imports in Lib

2011-06-28 Thread Roundup Robot

Roundup Robot devnull@devnull 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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12432
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-06-28 Thread Garrett Cooper

New submission from Garrett Cooper yaneg...@gmail.com:

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.patch
keywords: patch
messages: 139364
nosy: yaneurabeya
priority: normal
severity: normal
status: open
title: make clean doesn't clean up static libraries on 2.x
type: compile error
versions: Python 2.6, Python 2.7
Added file: http://bugs.python.org/file22509/cleanup-libpython-dot-a-trunk.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12433
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-06-28 Thread Ned Deily

Ned Deily n...@acm.org 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 rep...@bugs.python.org
http://bugs.python.org/issue12433
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-06-28 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


--
nosy: +orsenthil

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12431
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-06-28 Thread Garrett Cooper

Garrett Cooper yaneg...@gmail.com added the comment:

Is svn not being updated anymore (in lieu of hg)?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12433
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12432] remove a bunch of unused imports in Lib

2011-06-28 Thread Vincent Legoll

Vincent Legoll vincent.leg...@gmail.com 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...

--
resolution: fixed - 
status: closed - open

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12432
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-06-28 Thread Ned Deily

Ned Deily n...@acm.org 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 tracker rep...@bugs.python.org
http://bugs.python.org/issue12433
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12432] remove a bunch of unused imports in Lib

2011-06-28 Thread Vincent Legoll

Vincent Legoll vincent.leg...@gmail.com 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 rep...@bugs.python.org
http://bugs.python.org/issue12432
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-06-28 Thread Santoso Wijaya

Santoso Wijaya santoso.wij...@gmail.com 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 information.
 import urllib2
 urllib2.Request('http://host/path#fragment').get_full_url()
'http://host/path#fragment'

--
components: +Library (Lib)
nosy: +santa4nt

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12431
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12407] test_subinterps fails on Windows

2011-06-28 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr 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?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12407
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12352] multiprocessing.Value() hangs

2011-06-28 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr 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)
+self._allocated_blocks.remove(block)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12352
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-06-28 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr 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 patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12380
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 pit...@free.fr:


--
components:  -Documentation

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12380
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12434] Strengthen 2.7 io types warning

2011-06-28 Thread Terry J. Reedy

New submission from Terry J. Reedy tjre...@udel.edu:

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.)

This was initially confusing. Suggestion: after

Note Since this module has been designed primarily for Python 3.x, you have to 
be aware that all uses of “bytes” in this document refer to the str type (of 
which bytes is an alias), and all uses of “text” refer to the unicode type. 
add
'String' in exception messages may also mean the unicode type.

--
assignee: docs@python
components: Documentation
keywords: easy
messages: 139374
nosy: docs@python, terry.reedy
priority: normal
severity: normal
stage: needs patch
status: open
title: Strengthen 2.7 io types warning
versions: Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12434
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-06-28 Thread Nicolas Estibals

Nicolas Estibals nicolas.estib...@gmail.com 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 rep...@bugs.python.org
http://bugs.python.org/issue12147
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-06-28 Thread Kamil Kisiel

Kamil Kisiel ka...@kamilkisiel.net 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 might be impossible.

You explanation of the abort() behaviour makes sense to me. However, if that's 
the case then this portion of the docs appears to be incorrect:

Be aware that programs which use signal.signal() to register a handler for 
SIGABRT will behave differently.

Maybe my interpretation is wrong, but I would read behave differently as 
call the signal handler instead in this case.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12423
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12417] Inappropriate copyright on profile files

2011-06-28 Thread Barry A. Warsaw

Barry A. Warsaw ba...@python.org 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 rep...@bugs.python.org
http://bugs.python.org/issue12417
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-06-28 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com 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 Python 
signal handler installed by signal.signal().

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12423
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-06-28 Thread Brian Hare

New submission from Brian Hare ha...@umkc.edu:

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 information.
 input('Enter  ')
Enter  abcde
'abcde\r'


This behavior does not appear in IDLE but does appear in a free-standing 
command window. 

While the docs only say that the trailing newline is dropped, the 2.6 docs for 
raw_input have exactly the same wording and the carriage return is dropped:

Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] on 
win32
Type help, copyright, credits or license for more information.
 raw_input('Enter  ')
Enter  abcde
'abcde'


--
components: Windows
messages: 139379
nosy: BKHare
priority: normal
severity: normal
status: open
title: Input function does not strip trailing '\r' from string input
type: behavior
versions: Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12435
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-06-28 Thread Santoso Wijaya

Changes by Santoso Wijaya santoso.wij...@gmail.com:


--
nosy: +santa4nt

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12435
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-06-28 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com 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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12435
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12436] Provide reference to detailed installation instructions

2011-06-28 Thread Nick Coghlan

New submission from Nick Coghlan ncogh...@gmail.com:

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 docs. 
(Alternatively, we could use them as the basis for a HOWTO in the official 
docs and update release.py to adjust the relevant links. That's a lot more work 
than just adding a link, though)

[1] http://openhatch.org/wiki/Boston_Python_Workshop_3/Friday

--
assignee: docs@python
components: Documentation
messages: 139381
nosy: docs@python, ncoghlan
priority: normal
severity: normal
status: open
title: Provide reference to detailed installation instructions

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12436
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-06-28 Thread Matt Joiner

New submission from Matt Joiner anacro...@gmail.com:

_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 open shared object file: No such file or directory

--
components: ctypes
files: dlopen_raise.py
messages: 139382
nosy: anacrolix
priority: normal
severity: normal
status: open
title: _ctypes.dlopen does not include errno in OSError
type: behavior
versions: Python 2.7, Python 3.2
Added file: http://bugs.python.org/file22512/dlopen_raise.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12437
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-06-28 Thread Ned Deily

Ned Deily n...@acm.org 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 rep...@bugs.python.org
http://bugs.python.org/issue10736
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-06-28 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


--
status: pending - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8746
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-06-28 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


--
status: pending - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12141
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12172] IDLE crashes when I use F5 to run

2011-06-28 Thread Ned Deily

Ned Deily n...@acm.org 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 persists and you can supply more supporting 
information.

--
resolution:  - works for me
stage:  - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12172
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12438] getpass error on idle

2011-06-28 Thread João Bernardo

New submission from João Bernardo jbv...@gmail.com:

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()
Traceback (most recent call last):
  File pyshell#1, line 1, in module
p = getpass()
  File /usr/lib/python3.2/getpass.py, line 55, in unix_getpass
passwd = fallback_getpass(prompt, stream)
  File /usr/lib/python3.2/getpass.py, line 114, in fallback_getpass
stacklevel=2)
  File /usr/lib/python3.2/idlelib/PyShell.py, line 62, in idle_showwarning
lineno, file=file, line=line))
TypeError: idle_formatwarning() got an unexpected keyword argument 'file'
 p = getpass()
Warning: Password input may be echoed.
Password: ok

 p
'ok'
 



Looking at the /usr/lib/python3.2/idlelib/PyShell.py file the 
idle_formatwarning function don't have the file argument so it should be 
revomed from the function call at line 61:

file.write(warnings.formatwarning(message, category, filename,
  lineno, file=file, line=line))

--
components: IDLE
messages: 139385
nosy: JBernardo
priority: normal
severity: normal
status: open
title: getpass error on idle
type: crash
versions: Python 2.7, Python 3.1, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12438
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12379] build outside source fail in head

2011-06-28 Thread Ned Deily

Ned Deily n...@acm.org added the comment:

Fixed by Benjamin in f8f1d5691ae8.

--
nosy: +ned.deily
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12379
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-06-28 Thread Santoso Wijaya

Santoso Wijaya santoso.wij...@gmail.com 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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12437
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12361] Memory Leak in File Logging

2011-06-28 Thread Jacob Perkins

Jacob Perkins jap...@gmail.com 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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12361
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12417] Inappropriate copyright on profile files

2011-06-28 Thread Roundup Robot

Roundup Robot devnull@devnull 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://hg.python.org/cpython/rev/633597815463

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12417
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-06-28 Thread Ned Deily

Ned Deily n...@acm.org 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-party package that unknowingly depended on the 
previous behavior of setting MACOSX_DEPLOYMENT_TARGET globally and which might 
now fail.  There is no simple way to find such packages short of attempting to 
build them and test them.  However, if there *should* be such packages, the 
simple fix for them is to export the desired MACOSX_DEPLOYMENT_TARGET value 
into the interpreter process (via a shell variable, for instance).  So, I think 
it best to bite the bullet.  I've applied the Distutils patches to 2.7 (for 
2.7.3), to 3.2 (for 3.2.1), to default (for 3.3) and the packaging patches to 
default (for 3.3).

--
resolution:  - fixed
stage: patch review - committed/rejected
status: open - pending
versions: +Python 2.7, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9516
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10403] Use member consistently

2011-06-28 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr 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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10403
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10403] Use member consistently

2011-06-28 Thread Senthil Kumaran

Senthil Kumaran sent...@uthcode.com added the comment:

Yes, I agree with you. Good Suggestion. Thanks!

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10403
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12407] test_subinterps fails on Windows

2011-06-28 Thread Cesare Di Mauro

Cesare Di Mauro cesare.di.ma...@gmail.com 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:\CPythonPCbuild\python_d.exe Lib\test\test_capi.py
test_instancemethod (__main__.CAPITest) ... ok
test_memoryview_from_NULL_pointer (__main__.CAPITest) ... ok
test_no_FatalError_infinite_loop (__main__.CAPITest) ... ok
test_pendingcalls_non_threaded (__main__.TestPendingCalls) ... ok
test_pendingcalls_threaded (__main__.TestPendingCalls) ... ok
test (__main__.Test6012) ... ok
test_subinterps (__main__.EmbeddingTest) ... ERROR

==
ERROR: test_subinterps (__main__.EmbeddingTest)
--
Traceback (most recent call last):
  File Lib\test\test_capi.py, line 155, in test_subinterps
os.chdir(basepath)
WindowsError: [Error 123] La sintassi del nome del file, della directory o del 
volume non è corretta: ''

--
Ran 7 tests in 4.587s

FAILED (errors=1)
Traceback (most recent call last):
  File Lib\test\test_capi.py, line 212, in module
test_main()
  File Lib\test\test_capi.py, line 176, in test_main
support.run_unittest(CAPITest, TestPendingCalls, Test6012, EmbeddingTest)
  File D:\CPython\lib\test\support.py, line 1280, in run_unittest
_run_suite(suite)
  File D:\CPython\lib\test\support.py, line 1263, in _run_suite
raise TestFailed(err)
test.support.TestFailed: Traceback (most recent call last):
  File Lib\test\test_capi.py, line 155, in test_subinterps
os.chdir(basepath)
WindowsError: [Error 123] La sintassi del nome del file, della directory o del 
volume non è corretta: ''

[90425 refs]

The patch ensures that this test isn't always executed on Windows, as expected.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12407
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com