[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-10-19 Thread Ned Deily

Ned Deily added the comment:

The attached patch applies cleanly to default, 3.3, 3.2, and 2.7.  It appears 
to prevent the Tk crash observed with ActiveTcl 8.5.12.1 with all of them and I 
did not observe regressions when briefly tested on OS X with older versions of 
Tk 8.5 or Tk 8.4 nor on Linux with X11 Tk 8.5.  It still needs to be tested on 
Windows.

--
stage: needs patch - patch review
Added file: http://bugs.python.org/file27617/issue15853.patch

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



[issue16282] The Python Tutorial the previous link needs updating

2012-10-19 Thread Mark Lawrence

New submission from Mark Lawrence:

http://docs.python.org/tutorial/ the previous link goes to 
http://docs.python.org/whatsnew/2.0.html.  Can we have this updated please?

--
assignee: docs@python
components: Documentation
messages: 173311
nosy: BreamoreBoy, docs@python
priority: normal
severity: normal
status: open
title: The Python Tutorial the previous link needs updating
versions: Python 2.7

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



[issue16282] The Python Tutorial the previous link needs updating

2012-10-19 Thread Chris Jerdonek

Chris Jerdonek added the comment:

This issue does not seem limited to a particular page.  For example, the 
Previous topic link for the Python Standard Library part:

http://docs.python.org/library/index.html

is 9. Full Grammar specification, which is the last section of the following 
part (the following part being the Language Reference).

--
nosy: +chris.jerdonek

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



[issue16282] The Python Tutorial the previous link needs updating

2012-10-19 Thread Chris Jerdonek

Chris Jerdonek added the comment:

 http://docs.python.org/tutorial/ the previous link goes to 
 http://docs.python.org/whatsnew/2.0.html.

This seems correct to me since the 'All What's new documents since 2.0' part 
of the documentation occurs immediately before the Tutorial part, and 2.0 is 
the last section in that 'All What's new' part.

--

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



[issue16282] The Python Tutorial the previous link needs updating

2012-10-19 Thread Chris Jerdonek

Chris Jerdonek added the comment:

Note that the 2.0 issue was previously reported in issue 4988 and issue 7683.  
The issue I described occurs because the parts on the home page are listed in 
an order different from their order in the table of contents:

http://docs.python.org/
http://docs.python.org/contents.html

So Previous topic respects the table of contents ordering and not the home 
page ordering.

--
resolution:  - invalid
stage:  - committed/rejected
status: open - closed

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



[issue16283] ctypes.util.find_library does not find all DLLs anymore

2012-10-19 Thread Marcus von Appen

New submission from Marcus von Appen:

ctypes.util.find_library does not seem to be able to find certain libraries in 
Python3.3 on Win32 platforms anymore, if the library suffix is omitted. For 
some reason, os.path.isfile() in ctypes.util.find_library returns False in 
those cases.

Please try out the attached test script. This produces the following output on 
a Windows 7 x64 system for me (given that a OpenAL32.dll is installed):


C:\c:\Python27-x64\python.exe ct_test.py

Python build: 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)]
Path 'C:\Windows\system32' exists in $PATH: True
File 'C:\Windows\system32\OpenAL32.dll' exists: True
ctypes says for 'OpenAL32.dll': C:\Windows\system32\OpenAL32.dll
ctypes says for 'OpenAL32': C:\Windows\system32\OpenAL32.dll


C:\c:\Python31-x64\python.exe ct_test.py

Python build: 3.1.4 (default, Jun 12 2011, 14:16:16) [MSC v.1500 64 bit (AMD64)]
Path 'C:\Windows\system32' exists in $PATH: True
File 'C:\Windows\system32\OpenAL32.dll' exists: True
ctypes says for 'OpenAL32.dll': C:\Windows\system32\OpenAL32.dll
ctypes says for 'OpenAL32': C:\Windows\system32\OpenAL32.dll

C:\c:\Python32-x64\python.exe ct_test.py

Python build: 3.2.3 (default, Apr 11 2012, 07:12:16) [MSC v.1500 64 bit (AMD64)]
Path 'C:\Windows\system32' exists in $PATH: True
File 'C:\Windows\system32\OpenAL32.dll' exists: True
ctypes says for 'OpenAL32.dll': C:\Windows\system32\OpenAL32.dll
ctypes says for 'OpenAL32': C:\Windows\system32\OpenAL32.dll

C:\c:\Python33-x64\python.exe ct_test.py

Python build: 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:57:17) [MSC v.1600 64 
bit (AMD64)]
Path 'C:\Windows\system32' exists in $PATH: True
File 'C:\Windows\system32\OpenAL32.dll' exists: True
ctypes says for 'OpenAL32.dll': C:\Windows\system32\OpenAL32.dll
ctypes says for 'OpenAL32': None

--
components: ctypes
files: ct_test.py
messages: 173315
nosy: marcusva
priority: normal
severity: normal
status: open
title: ctypes.util.find_library does not find all DLLs anymore
type: behavior
versions: Python 3.3
Added file: http://bugs.python.org/file27618/ct_test.py

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



[issue9720] zipfile writes incorrect local file header for large files in zip64

2012-10-19 Thread Ruben Gonzalez

Changes by Ruben Gonzalez ruben...@teltek.es:


--
nosy: +Ruben.Gonzalez

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



[issue16279] namedtuple should compare equality with field names taken into account

2012-10-19 Thread Nick Coghlan

Nick Coghlan added the comment:

So that they can be returned from an API without breaking backwards 
compatibility, named tuples are intentionally equivalent to the corresponding 
ordinary tuple:

 from collections import namedtuple
 Pair = namedtuple(Pair, x y)
 Pair(1, 2) == (1, 2)
True

Transitivity thus requires that two named tuples with different field names 
also compare equal with each other:

 Pair2 = namedtuple(Pair2, a b)
 Pair(1, 2) == (1, 2) == Pair2(1, 2)
True
 Pair(1, 2) == Pair2(1, 2)
True

So the field names on named tuples are just an access mechanism - they aren't 
part of the value of the instances.

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

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



[issue16279] namedtuple should compare equality with field names taken into account

2012-10-19 Thread Nick Coghlan

Nick Coghlan added the comment:

... returned from an API that previously returned an ordinary tuple ...

--

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



[issue16284] concurrent.futures ThreadPoolExecutor keeps unnecessary references to worker functions.

2012-10-19 Thread Mark Dickinson

New submission from Mark Dickinson:

The ThreadPoolExecutor unnecessarily keeps references to _WorkItem objects.  
With the attached patch (which lacks a test), all tests still pass, and the 
references are removed as soon as they're no longer needed.

--
files: kill_reference.diff
keywords: patch
messages: 173318
nosy: bquinlan, mark.dickinson
priority: normal
severity: normal
status: open
title: concurrent.futures ThreadPoolExecutor keeps unnecessary references to 
worker functions.
type: enhancement
versions: Python 3.4
Added file: http://bugs.python.org/file27619/kill_reference.diff

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



[issue16284] concurrent.futures ThreadPoolExecutor keeps unnecessary references to worker functions.

2012-10-19 Thread Ralf Schmitt

Changes by Ralf Schmitt python-b...@systemexit.de:


--
nosy: +schmir

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



[issue16285] Erroneously encoding tilde to %7e in quote

2012-10-19 Thread Matteo Parrucci

New submission from Matteo Parrucci:

RFC 3986 (http://www.ietf.org/rfc/rfc3986.txt) says:

For consistency, percent-encoded octets in the ranges of ALPHA
(%41-%5A and %61-%7A), DIGIT (%30-%39), hyphen (%2D), period (%2E),
underscore (%5F), or tilde (%7E) should not be created by URI
producers and, when found in a URI, should be decoded to their
corresponding unreserved characters by URI normalizers.

From python documentation talking about urllib.quote()

Example: quote('/~connolly/') yields '/%7econnolly/'.

I think ~ should be added to the safe characters of quote function

--
messages: 173319
nosy: Matteo.Parrucci
priority: normal
severity: normal
status: open
title: Erroneously encoding tilde to %7e in quote

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



[issue6074] .pyc files created readonly if .py file is readonly, python won't overwrite

2012-10-19 Thread Nick Coghlan

Nick Coghlan added the comment:

Interesting - the test case I wrote for this was failing on Linux as well. Same 
fix worked both places, though (i.e. ensuring S_IWUSR is always set on .pyc 
files so they can be updated properly)

2.7 update incoming, we'll see what the Windows buildbots have to say before 
doing anything to 3.x.

(Kevin: I didn't end up using your patch, as I decided it was simpler to just 
create the files with the user's write permission set. This doesn't weaken the 
security, as any attacker running with the user's privileges could just change 
the permissions anyway)

--

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



[issue16256] permissions wrong on Mac doc dir

2012-10-19 Thread Ronald Oussoren

Ronald Oussoren added the comment:

Oddly enough the share/doc directory is created in the postinstall script for 
the documentation, looking at the script again makes me think that the script 
could be removed other than the symlink in /Developer/Documentation and that 
link is not useful on modern systems.   Changing that can wait until we switch 
to a newer installer format (see issue15661)

The attached patch is relative to the 2.7 tree and should fix the issue by 
explicitly setting the directory mode when creating it.

--
Added file: http://bugs.python.org/file27620/issue16256.txt

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



[issue6074] .pyc files created readonly if .py file is readonly, python won't overwrite

2012-10-19 Thread Nick Coghlan

Nick Coghlan added the comment:

Ah, my test was buggy - the mtime wasn't reliably changing by enough, so the 
pyc wasn't always being rewritten. I changed it to force a big time delta by 
backdating the original source file.

--

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



[issue16270] urllib hangs when closing connection

2012-10-19 Thread Roundup Robot

Roundup Robot added the comment:

New changeset edeeb727df86 by Giampaolo Rodola' in branch 'default':
Fix issue #16270: urllib may hang when used for retrieving files via FTP by 
using a context manager.
http://hg.python.org/cpython/rev/edeeb727df86

--
nosy: +python-dev

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



[issue12805] Optimizations for bytes.join() et. al

2012-10-19 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I adapted a patch to the current code (now it works for bytearrays too), 
deleted the behavior change, left optimization only for 0- and 1-bytes 
separator, deleted tests (bytes.join tests already exists), wrote a benchmark 
and after long experiments has set a condition for this optimization. Now, I 
believe, the patch never leads to regression. The patch has been simplified, 
it's only 13 lines long.

Thank you, John O'Connor.

--
Added file: http://bugs.python.org/file27621/bytes_join_optimization_2.patch
Added file: http://bugs.python.org/file27622/bytes_join_bench.sh

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12805
___diff -r 5ae4ff03b35f Objects/stringlib/join.h
--- a/Objects/stringlib/join.h  Thu Oct 18 22:18:42 2012 +0100
+++ b/Objects/stringlib/join.h  Fri Oct 19 14:05:51 2012 +0300
@@ -94,6 +94,19 @@
 
 /* Catenate everything. */
 p = STRINGLIB_STR(res);
+if (!seplen || (seplen == 1  nbufs  2  nbufs  (sz  5))) {
+/* fast path */
+if (seplen)
+memset(p + buffers[0].len, sepstr[0],
+   sz - buffers[0].len - buffers[nbufs - 1].len);
+for (i = 0; i  nbufs; i++) {
+Py_ssize_t n = buffers[i].len;
+char *q = buffers[i].buf;
+Py_MEMCPY(p, q, n);
+p += n;
+}
+goto done;
+}
 for (i = 0; i  nbufs; i++) {
 Py_ssize_t n;
 char *q;


bytes_join_bench.sh
Description: application/shellscript
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16270] urllib hangs when closing connection

2012-10-19 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 2e6bcbb0ff59 by Giampaolo Rodola' in branch '3.3':
Fix issue #16270: urllib may hang when used for retrieving files via FTP by 
using a context manager.
http://hg.python.org/cpython/rev/2e6bcbb0ff59

--

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



[issue16270] urllib hangs when closing connection

2012-10-19 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 7f0d9637a3ad by Giampaolo Rodola' in branch '3.2':
Fix issue #16270: urllib may hang when used for retrieving files via FTP by 
using a context manager.
http://hg.python.org/cpython/rev/7f0d9637a3ad

--

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



[issue16270] urllib hangs when closing connection

2012-10-19 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' g.rod...@gmail.com:


--
assignee:  - giampaolo.rodola
resolution:  - fixed
status: open - closed
versions: +Python 3.2

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



[issue16285] Update urllib to RFC 3986

2012-10-19 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Yes, urllib based on RFC 2396, but RFC 3986 obsoletes RFC 2396.  Updating to 
RFC 3986 should be new feature.

For older versions can not change anything.  But you always can use safe 
argument with quote().

--
components: +Library (Lib)
nosy: +orsenthil, serhiy.storchaka
title: Erroneously encoding tilde to %7e in quote - Update urllib to RFC 3986
type:  - enhancement
versions: +Python 3.4

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



[issue6074] .pyc files created readonly if .py file is readonly, python won't overwrite

2012-10-19 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 321414874b26 by Nick Coghlan in branch '2.7':
Issue #6074: Restore the long-broken support for running with read-only source 
files on Windows
http://hg.python.org/cpython/rev/321414874b26

--
nosy: +python-dev

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



[issue13440] Explain the status quo wins a stalemate principle in the devguide

2012-10-19 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ec52e044421d by Nick Coghlan in branch 'default':
Close #13440 by linking to a couple of blog posts from the dev FAQ. Also 
rearrange the main page a bit to address some other concerns that came up on 
the tracker issue
http://hg.python.org/devguide/rev/ec52e044421d

--
nosy: +python-dev
resolution:  - fixed
stage: needs patch - committed/rejected
status: open - closed

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



[issue16263] sendmsg, recvmsg, recvmsg_into et al not being detected on Solaris

2012-10-19 Thread Trent Nelson

Trent Nelson added the comment:

After some investigation, I've established the following cause:

1. Our Solaris builds should add -D_XPG4_2 to CPPFLAGS.  I've been
   manually setting this on the Solaris build slaves.  This define
   ensures all the POSIX 95 things get picked up (like sendmsg etc).

2. Even when it is in CPPFLAGS, it doesn't get picked up when
   building extension modules, such as socketmodule.c, because they
   are built solely with CCSHARED.

The first issue can be fixed via configure.ac/Makefile.pre.in.

As for the second issue... it's somewhat odd that there's no documented
way to ensure extra flags get passed $CC when building extensions.  Then
again, it's always been like this, and nobody has complained to date.

Thus, rather than introduce a public/documented way for extending flags
passed to $CC when building extension modules, I think for now, altering
configure.ac/Makefile.pre.in to also tweak CCSHARED when on Solaris as
part of fixing the first part is sufficient.

Patch to follow.

Trent.

P.S.: when -D_XPG4_2 is added to CCSHARED, the socket sendmsg stuff gets
  built and... *drum-roll* fails some tests :-)

--
title: sendmsg, recvmsg, recvmsg_into et al not being detected on Solaris - 
sendmsg, recvmsg,  recvmsg_into et al not being detected on Solaris

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



[issue16263] sendmsg, recvmsg, recvmsg_into et al not being detected on Solaris

2012-10-19 Thread Trent Nelson

Changes by Trent Nelson tr...@snakebite.org:


--
title: sendmsg, recvmsg,recvmsg_into et al not being detected on 
Solaris - sendmsg, recvmsg, recvmsg_into et al not being detected on Solaris

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



[issue6074] .pyc files created readonly if .py file is readonly, python won't overwrite

2012-10-19 Thread Nick Coghlan

Nick Coghlan added the comment:

Buildbots look happy, removing 2.7 from affected versions.

--
versions:  -Python 2.7

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



[issue16286] Optimize a==b and a!=b for bytes and str

2012-10-19 Thread STINNER Victor

New submission from STINNER Victor:

Attached patch optimize a==b and a!=b operators for bytes and str types of 
Python 3.4. For str, memcmp() is now always used, instead of a loop using 
PyUnicode_READ() (which is slow) for kind different than 1. For bytes, compare 
the first but also the last byte before calling memcmp(), instead of just 
comparing the first byte. Similar optimization was implemented in 
Py_UNICODE_MATCH():

changeset:   38242:0de9a789de39
branch:  legacy-trunk
user:Fredrik Lundh fred...@pythonware.com
date:Tue May 23 10:10:57 2006 +
files:   Include/unicodeobject.h
description:
needforspeed: check first *and* last character before doing a full memcmp

Initially I only wrote the patch to check the hash values before comparing 
content of the strings.

--

I done some statistics tests. For a fresh Python interpreter, the hash values 
are only known in 7% cases (but when hashes are compared, they are quite always 
different, so the optimization is useful). When running ./python -m test 
test_os, hashes are known and different in 41.4%. After running 70 tests, 
hashes are known and different in 80%.

--
files: compare_hash.patch
keywords: patch
messages: 173332
nosy: haypo, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Optimize a==b and a!=b for bytes and str
type: performance
versions: Python 3.4
Added file: http://bugs.python.org/file27623/compare_hash.patch

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



[issue6074] .pyc files created readonly if .py file is readonly, python won't overwrite

2012-10-19 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 1856d57abfc8 by Nick Coghlan in branch '3.2':
Issue #6074: Forward port Windows read-only source file fix from 2.7
http://hg.python.org/cpython/rev/1856d57abfc8

--

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



[issue15963] Improve ./configure's support for 32/64-bit debug|release|profiled builds w/ vendor (non-gcc) compilers on proprietary UNIX systems (Solaris/HP-UX/AIX et al).

2012-10-19 Thread Trent Nelson

Trent Nelson added the comment:

On Tue, Sep 18, 2012 at 06:40:35AM -0700, Trent Nelson wrote:
 Side bar design question: on BSD/Linux/OSX w/ gcc/clang, if you're on
 an amd64 platform, you'll get a 64-bit build.  This isn't the case for
 Solaris, HP-UX and AIX -- the default is always 32-bit.  You need
 aforementioned gymnastics to coerce a 64-bit build.
 
 Is this by design?  If so, then I guess I'm proposing that ./configure
 should have a `--with-64`-type argument that'll generate a 64-bit
 build.
 
 If not, then we need to decide whether to change the default behavior
 such that ./configure always generates a 64-bit build if you're on a
 64-bit platform -- if you want a 32-bit build, you need to explicitly
 tell ./configure (i.e. --with-32).
 
 Changing the default is probably only viable for 3.4 onwards.  It'd be
 nice if 2.7-3.3 had generic configure support for 64-bit builds
 though (via --with-64).
 
 XXX TODO for trent: review autoconf's offerings... getting 64-bit
 builds from vendor cc's can't be that unusual.

Just wanted to make note of a precedent I noticed yesterday whilst
coercing local builds of Tcl, expect and a few other things on the
Solaris 10 SPARC box: they all use `--enable-64bit` as the arg to
configure to enable 64-bit builds.

Additionally, none of them default to 64-bit out-of-the-box; they
all inherit the underlying compilers default behavior.  Which
means gcc/clang gets you 64-bit on amd64, but a cc build on a
64-bit host may not.  (I need to check a few more permutations on
this, like what happens with gcc on SPARC/IA64 etc if the host OS
is 64-bit -- does it default to 64-bit?)

Side note: some of those projects had *much* nicer autoconf-fu
than we do.  Tcl implements the --enable-64bit stuff in aclocal.m4.

So, I'm changing my stance from what I quoted above.  We should try
mimic the precedent set by other projects:

- Use --enable-64bit as the flag.
- Default 64-bit builds depend on the underlying compiler.

--
title: Improve ./configure's support for 32/64-bit debug|release|profiled 
builds w/ vendor (non-gcc) compilers on proprietary UNIX systems 
(Solaris/HP-UX/AIX et al). - Improve ./configure's support for 32/64-bit 
debug|release|profiled builds w/ vendor (non-gcc) compilers on proprietary 
UNIX systems (Solaris/HP-UX/AIX et al).

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



[issue6074] .pyc files created readonly if .py file is readonly, python won't overwrite

2012-10-19 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 3f6db10b7a69 by Nick Coghlan in branch '3.3':
Dummy merge from 3.2, as that approach to resolving #6074 is not applicable to 
importlib
http://hg.python.org/cpython/rev/3f6db10b7a69

--

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



[issue6074] .pyc files created readonly if .py file is readonly, python won't overwrite

2012-10-19 Thread Nick Coghlan

Nick Coghlan added the comment:

OK, it should just be the two importlib based releases affected now.

--
versions: +Python 3.4 -Python 3.2

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



[issue15745] Numerous utime ns tests fail on FreeBSD w/ ZFS

2012-10-19 Thread Trent Nelson

Trent Nelson added the comment:

Larry and I just chatted about this on IRC.  Summary:

 1.)  I was wrong about os.stat() affecting atime.  I fired up a
  console session on Solaris to prove my atime observation
  only to find os.stat() had no impact on atime:

% ./python
Python 2.7.3+ (2.7:90a46f8943d0, Oct 18 2012, 11:09:15) [C] on sunos5
Type help, copyright, credits or license for more information.
 import os
 fname = 'configure'
 st0 = os.stat(fname)
 os.utime(fname, (st0.st_atime, st0.st_mtime))
 st0.st_atime
1350571183.474864
 st1 = os.stat(fname)
 st1.st_atime
1350571183.474864

  So, we can ignore my but os.stat() affects atime! noise
  earlier in this report.

 2.)  Regardless of the underlying platform, the unit tests should
  test utime() with nano, micro and second resolution.  However,
  the tests should be cognizant of the underlying platform's
  os.stat() versus os.utime() resolution when testing the actual
  results.

  That is, if you pass a nanosecond time to os.utime() on a platform
  that doesn't have underlying nanosecond support for utime (i.e. no
  utimensat()), then expect a microsecond resolution time back from
  stat().

 3.)  Regarding fixed times versus re-setting the first results of our
  stat() call: no strong opinion either way -- the main objective
  is to ensure the tests have good coverage and are robust.  So
  whatever gets the job done.

--
title: Numerous utime ns tests fail on FreeBSD w/ ZFS (update: and NetBSD w/ 
FFS, Solaris w/ UFS) - Numerous utime ns tests fail on FreeBSD w/ ZFS

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



[issue16286] Optimize a==b and a!=b for bytes and str

2012-10-19 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Good. I would like to see similar statistics tests for any real application.

--

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



[issue16287] Sporadic test_utime() failures on Solaris

2012-10-19 Thread Trent Nelson

New submission from Trent Nelson:

This was initially observed in #15745, however, there's a separate problem 
here.  The current test_utime() on Solaris sporadically (usually) fails along 
the following lines:

 self.assertEqual(attr(st0, st_mtime), attr(st1, st_mtime))
 AssertionError: 1347752941.275297 != 1347752941.275296

 That is, test_utime() always results in a st1.st_mtime that is
 off-by-1 from st0.st_mtime.  The precision is well within the
 nanasecond resolution offered by utimensat, so it doesn't appear to be
 the same issue experienced by other platforms.

Run that test in a loop though, and it sometimes passes.  So, there's an 
underlying bug, somewhere.

--
messages: 173339
nosy: trent
priority: normal
severity: normal
status: open
title: Sporadic test_utime() failures on Solaris

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



[issue16287] Sporadic test_utime() failures on Solaris

2012-10-19 Thread Trent Nelson

Changes by Trent Nelson tr...@snakebite.org:


--
nosy: +larry, pitrou

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



[issue6074] .pyc files created readonly if .py file is readonly, python won't overwrite

2012-10-19 Thread Roundup Robot

Roundup Robot added the comment:

New changeset df83d3bbd934 by Nick Coghlan in branch '2.7':
Issue #6074: Actually delete the source file in the test as intended
http://hg.python.org/cpython/rev/df83d3bbd934

--

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



[issue15745] Numerous utime ns tests fail on FreeBSD w/ ZFS (update: and NetBSD w/ FFS, Solaris w/ UFS)

2012-10-19 Thread Trent Nelson

Trent Nelson added the comment:

On Tue, Oct 16, 2012 at 10:46:34PM -0700, Trent Nelson wrote:
 
 Trent Nelson added the comment:
 
 Thanks for the feedback Larry; yeah that patch definitely wasn't
 intended to be production quality -- more of a proof of concept.  I
 agree with your points, they'll be factored into the next patch.
 
 However, I'm absolutely baffled by the Solaris 10 failure.  The more I
 looked into it, the weirder it got.  The issue is always the same:
 
 self.assertEqual(attr(st0, st_mtime), attr(st1, st_mtime))
 AssertionError: 1347752941.275297 != 1347752941.275296
 
 That is, test_utime() always results in a st1.st_mtime that is
 off-by-1 from st0.st_mtime.  The precision is well within the
 nanasecond resolution offered by utimensat, so it doesn't appear to be
 the same issue experienced by other platforms.

I've concluded that the problem on Solaris is actually unrelated
to the original failures on FreeBSD and NetBSD that this issue
was raised for (where os.stat() returns nanosecond resolution but
os.utime() only accepts microsecond).

I've raised a separate bug for this issue: #16287.

--
title: Numerous utime ns tests fail on FreeBSD w/ ZFS - Numerous utime ns 
tests fail on FreeBSD w/ ZFS (update:and NetBSD w/ FFS, Solaris w/ UFS)

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



[issue6074] .pyc files created readonly if .py file is readonly, python won't overwrite

2012-10-19 Thread Roundup Robot

Roundup Robot added the comment:

New changeset bbb3459fbcb8 by Nick Coghlan in branch '3.3':
Issue #6074: Apply an appropriate fix for importlib based imports
http://hg.python.org/cpython/rev/bbb3459fbcb8

New changeset bedcc790c6e7 by Nick Coghlan in branch 'default':
Merge fix from #6074 from 3.3
http://hg.python.org/cpython/rev/bedcc790c6e7

--

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



[issue6074] .pyc files created readonly if .py file is readonly, python won't overwrite

2012-10-19 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 8cf7f6fe4282 by Nick Coghlan in branch '3.2':
Issue #6074: Actually delete the source file in the test as intended
http://hg.python.org/cpython/rev/8cf7f6fe4282

--

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



[issue16286] Optimize a==b and a!=b for bytes and str

2012-10-19 Thread Dirkjan Ochtman

Changes by Dirkjan Ochtman dirk...@ochtman.nl:


--
nosy: +djc

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



[issue6074] .pyc files created readonly if .py file is readonly, python won't overwrite

2012-10-19 Thread Nick Coghlan

Nick Coghlan added the comment:

For 3.3+ I ended up using a tweaked version of Eric's patch - I kept the 
general test structure, but used the behavioural test I had created (i.e. does 
updating the initially read-only source file affect a subsequent bytecode only 
import?), as well as the simple rule of just always making the cached files 
writable by the owning user.

On 3.3+, this permissions tweak occurs regardless of OS, because I didn't think 
it was worth the runtime hit to make it OS specific (whereas the use of the C 
preprocessor previously made that not an issue).

--
resolution:  - fixed
stage: needs patch - committed/rejected
status: open - closed

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



[issue16261] Fix bare excepts in various places in std lib

2012-10-19 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +eric.araujo
versions: +Python 3.4

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



[issue16255] subrocess.Popen needs /bin/sh but Android only has /system/bin/sh

2012-10-19 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +eric.araujo

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



[issue16245] Update html.entities.html5 dictionary and parseentities.py

2012-10-19 Thread Éric Araujo

Éric Araujo added the comment:

I say replace the code.  HTML 4.01 won’t be updated.

--
nosy: +eric.araujo, georg.brandl, larry

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



[issue16238] Automatically remove build directory when build options changed

2012-10-19 Thread Éric Araujo

Éric Araujo added the comment:

Right, this is desirable behaviour.

I thought setup.py and setup.cfg were dependencies in the files graph, meaning 
that if setup.py is newer than a py or so/dll file in the build dir, everything 
gets rebuilt.  I’ll have to check that.

--
stage:  - test needed
versions: +Python 2.7, Python 3.3

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



[issue16237] bdist_rpm SPEC files created with distutils may be distro specific

2012-10-19 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +eric.araujo

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



[issue16287] Sporadic test_utime() failures on Solaris

2012-10-19 Thread Jesús Cea Avión

Changes by Jesús Cea Avión j...@jcea.es:


--
nosy: +jcea

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



[issue16236] Doc/Makefile should have $PYTHON=python2

2012-10-19 Thread Éric Araujo

Éric Araujo added the comment:

Yes, please don’t break many OSes for the sake of one.

--
nosy: +eric.araujo

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



[issue16235] Add python-config.sh for use during cross compilation.

2012-10-19 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +eric.araujo

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



[issue16287] Sporadic test_utime() failures on Solaris

2012-10-19 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/issue16287
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16286] Optimize a==b and a!=b for bytes and str

2012-10-19 Thread Christian Heimes

Changes by Christian Heimes li...@cheimes.de:


--
nosy: +christian.heimes

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



[issue16166] Add PY_BYTE_ORDER macro to get endianess of platform

2012-10-19 Thread Jesús Cea Avión

Jesús Cea Avión added the comment:

Instead of using macro values, I would rather define ONLY a single macro, 
PY_LITTLE_ENDIAN or PY_BIG_ENDIAN.

Far less error prone!.

It is far fool-proof #ifdef PY_LITTLE_ENDIAN than #if PY_LITTLE_ENDIAN.

--

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



[issue16166] Add PY_BYTE_ORDER macro to get endianess of platform

2012-10-19 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

 Instead of using macro values, I would rather define ONLY a single macro,
 PY_LITTLE_ENDIAN or PY_BIG_ENDIAN.

Time machine strikes back.

#ifdef WORDS_BIGENDIAN

--

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



[issue16274] test_asyncore failing on Solaris 10 2.7 (nitrogen/s10)

2012-10-19 Thread Jesús Cea Avión

Jesús Cea Avión added the comment:

hg annotate is useful :-)

Changes in 3.2 look like coming from here:


jcea@ubuntu:~/hg/python/cpython$ hg log -r 64988
changeset:   64988:0f8c2eb89f46
user:Antoine Pitrou solip...@pitrou.net
date:Tue Sep 28 21:23:11 2010 +
summary: Issue #9090: When a socket with a timeout fails with EWOULDBLOCK 
or EAGAIN,

jcea@ubuntu:~/hg/python/cpython$ hg log -r 65314
changeset:   65314:12442ac3f7dd
parent:  65312:a27fc0ff3678
user:Antoine Pitrou solip...@pitrou.net
date:Thu Oct 14 15:05:38 2010 +
summary: Issue #7523: Add SOCK_CLOEXEC and SOCK_NONBLOCK to the socket 
module,


--

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



[issue9090] Error code 10035 calling socket.recv() on a socket with a timeout (WSAEWOULDBLOCK - A non-blocking socket operation could not be completed immediately)

2012-10-19 Thread Jesús Cea Avión

Jesús Cea Avión added the comment:

Backport to 2.7 should be done: See Issue #16274.

--
nosy: +jcea

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



[issue16274] test_asyncore failing on Solaris 10 2.7 (nitrogen/s10)

2012-10-19 Thread Trent Nelson

Changes by Trent Nelson tr...@snakebite.org:


--
status: closed - open

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



[issue16288] TextTestResult uses TestCase.__str__() which isn't customisable (vs id() or shortDescription())

2012-10-19 Thread Robert Collins

New submission from Robert Collins:

TextTestRunner calls str(TestCase) directly, which makes it hard for 
testscenarios to rename the test cases as it parameterises them (because 
__str__ is a descriptor). While testscenarios could use a decorator instead, 
thats undesirable as the test case object would still need to be customised so 
that calls to self.id() and self.shortDescription() inside it still return 
consistent information.

So the relevant code is this:
 def getDescription(self, test):
41 if self.descriptions:
42 return test.shortDescription() or str(test)
43 else:
44 return str(test)

What I'd like is to have this be something like:
41 if self.descriptions:
42 return test.shortDescription() or test.id()
43 else:
44 return test.id()

Which would let testscenarios adjust both shortDescriptions and id, and Just 
Work.

--
messages: 173352
nosy: michael.foord, rbcollins
priority: normal
severity: normal
status: open
title: TextTestResult uses TestCase.__str__() which isn't customisable (vs id() 
or shortDescription())
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5

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



[issue16229] Demo *redemo.py* lacking in Windows installation

2012-10-19 Thread Terry J. Reedy

Terry J. Reedy added the comment:

On my win7 3.3.0 install, I have Tools/scripts and a couple of other subdirs 
but no Tools/demo directory.

--
nosy: +terry.reedy

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



[issue16233] IDLE: conceptual problems with *Class browser*

2012-10-19 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
nosy: +serwy, terry.reedy

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



[issue16243] Add example for inspect module doc

2012-10-19 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
title: Regression in inspect module - Add example for inspect module doc

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



[issue16288] TextTestResult uses TestCase.__str__() which isn't customisable (vs id() or shortDescription())

2012-10-19 Thread Robert Collins

Robert Collins added the comment:

Or anther way this could be done would be to make TestCase.__str__ call 
self.id(), and then __str__ never needs to be adjusted - id() or 
shortDescription are the only things to tweak.

--

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



[issue16248] Security bug in tkinter allows for untrusted, arbitrary code execution.

2012-10-19 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
nosy: +terry.reedy -Want to Delete This Account

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



[issue16288] TextTestResult uses TestCase.__str__() which isn't customisable (vs id() or shortDescription())

2012-10-19 Thread R. David Murray

R. David Murray added the comment:

By descriptor I think you really mean it is a special method (ie: looked up 
on the class only, not on an instance).  A descriptor is something else.

This is a feature request and could only be implemented in 3.4.  Assuming I'm 
understanding what you are asking for (which is not certain), as a partial 
workaround you could reset _testMethodName.

--
keywords: +easy
nosy: +r.david.murray
type:  - enhancement
versions:  -Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.5

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



[issue2350] 'exceptions' import fixer

2012-10-19 Thread Jesús Cea Avión

Changes by Jesús Cea Avión j...@jcea.es:


--
nosy: +jcea
versions: +Python 2.7, Python 3.2, Python 3.3, Python 3.4 -Python 2.6

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



[issue15379] Charmap decoding of no-BMP characters

2012-10-19 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

The 2.7 patch is just a backport of 3.2 patch (including the last Antoine's 
fix).  Please look and commit.

--

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



[issue14850] The inconsistency of codecs.charmap_decode

2012-10-19 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Does anyone have objections against the idea or the implementation of the 
patch?  Please review.

--

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



[issue16218] Python launcher does not support non ascii characters

2012-10-19 Thread Gertjan Klein

Changes by Gertjan Klein gkl...@xs4all.nl:


--
nosy: +gklein

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



[issue6074] .pyc files created readonly if .py file is readonly, python won't overwrite

2012-10-19 Thread Eric Snow

Eric Snow added the comment:

Sounds good.  Thanks for getting this done, Nick.

--

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



[issue16195] Difficult or impossible to figure out how garbage collector and weak references should interact for user-defined extension types

2012-10-19 Thread Jesús Cea Avión

Changes by Jesús Cea Avión j...@jcea.es:


--
nosy: +jcea

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



[issue16218] Python launcher does not support non ascii characters

2012-10-19 Thread Tim Golden

Tim Golden added the comment:

Confirming that this doesn't happen on 2.7

py -2 £.py succeeds
py -3 £.py gives:

 python: failed to set __main__.__loader__

--

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



[issue15872] shutil.rmtree(..., ignore_errors=True) doesn't ignore all errors

2012-10-19 Thread Barry A. Warsaw

Changes by Barry A. Warsaw ba...@python.org:


--
nosy: +barry

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



[issue16137] Using time.asctime() with an array with negative tm_hour causes Python Crash.

2012-10-19 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Alexander, looks as you changes in r87736 was not backported to 2.7.

--
components: +Extension Modules -Library (Lib)
nosy: +belopolsky
stage:  - needs patch

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



[issue16288] TextTestResult uses TestCase.__str__() which isn't customisable (vs id() or shortDescription())

2012-10-19 Thread Chris Jerdonek

Changes by Chris Jerdonek chris.jerdo...@gmail.com:


--
nosy: +chris.jerdonek

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



[issue15522] impove 27 percent performance on stringpbject.c( by prefetch and loop optimization)

2012-10-19 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
status: open - pending

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



[issue16255] subrocess.Popen needs /bin/sh but Android only has /system/bin/sh

2012-10-19 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Is there some document describing procedure for 
building/installing/running_tests at Android device?

I have Samsung Galaxy Tab and would to work on the issue.
But my android experience is limited to installing Scripting Layer for Android 
from Google Play and running python3 scripts.

--

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



[issue16255] subrocess.Popen needs /bin/sh but Android only has /system/bin/sh

2012-10-19 Thread Chris Jerdonek

Chris Jerdonek added the comment:

 It seems simple enough for us to make the default configurable

This seems good to do in any case (as opposed to having the string be 
hard-coded), and we can test it independently of Android.  There is a 
recently added test in the 3.x branches that can be modified: test method 
test_executable_replaces_shell which checks that the executable argument 
replaces the default shell for non-Windows.

I would suggest implementing Gregory's two suggested measures as two separate 
patches.

--

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



[issue16255] subrocess.Popen needs /bin/sh but Android only has /system/bin/sh

2012-10-19 Thread Ben Rousch

Ben Rousch added the comment:

 Is there some document describing procedure for 
 building/installing/running_tests at Android device?

I'm using the android-python27 project, but you can also reproduce it under 
SL4A:

Start SL4A
Menu - View - Interpreters
Python 2.6.2 or Python 3

 from subprocess import Popen
 p = Popen(ls, shell=True)
*Fails* OSError: [Error 2] No such file or directory
 p = Popen(ls shell=True, executable=/system/bin/sh)
*Works*

--

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



[issue14850] The inconsistency of codecs.charmap_decode

2012-10-19 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +haypo

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



[issue12805] Optimizations for bytes.join() et. al

2012-10-19 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I don't understand the point of this optimization. It looks rather cryptic and 
very specific. Can you elaborate?

--

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



[issue16288] TextTestResult uses TestCase.__str__() which isn't customisable (vs id() or shortDescription())

2012-10-19 Thread Robert Collins

Robert Collins added the comment:

They aren't descriptors? They certainly aren't normal methods:
 class foo(object):
...   def __str__(self): return foo
... 
 f = foo()
 f.__str__ = lambda: bar
 str(f)
'foo'

I *thought* the mechanism by which they can only be replaced by altering the 
class *was* descriptors, but I gladly seek better info!

_testMethodName is overloaded though: its both 'what is the test method' and 
'part of the description or id of the test', so resetting it would be - at best 
- risky when only changing the description or id.

--
type: enhancement - 

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



[issue1283110] Give __len__() advice for don't know

2012-10-19 Thread Todd Rovito

Changes by Todd Rovito rovit...@gmail.com:


Removed file: http://bugs.python.org/file27605/DataModel__len__.patch

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



[issue1283110] Give __len__() advice for don't know

2012-10-19 Thread Todd Rovito

Todd Rovito added the comment:

Changed the file name so it is clear that this patch goes with version 3.4.

--
Added file: 
http://bugs.python.org/file27624/RightClickContextMenuUpdatedFor3point4.patch

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



[issue1283110] Give __len__() advice for don't know

2012-10-19 Thread Todd Rovito

Changes by Todd Rovito rovit...@gmail.com:


Removed file: 
http://bugs.python.org/file27624/RightClickContextMenuUpdatedFor3point4.patch

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



[issue1283110] Give __len__() advice for don't know

2012-10-19 Thread Todd Rovito

Todd Rovito added the comment:

Used the right patch file name this time...

--
Added file: http://bugs.python.org/file27625/DataModel__len__3point4.patch

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



[issue1283110] Give __len__() advice for don't know

2012-10-19 Thread Todd Rovito

Todd Rovito added the comment:

This patch is for Python 2.7.

--
versions: +Python 2.7
Added file: http://bugs.python.org/file27626/DataModel__len__2point7.patch

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



[issue10405] IDLE breakpoint facility undocumented

2012-10-19 Thread Todd Rovito

Todd Rovito added the comment:

Nick,
   I agree some documentation is better than none. But somebody could do better 
I am not sure how to debug in IDLE.  I have taken your file and created a 2.7 
patch.

--
keywords: +patch
type:  - enhancement
versions:  -Python 3.1, Python 3.2
Added file: 
http://bugs.python.org/file27627/IDLEBreakPointDocumentation2point7.patch

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



[issue10405] IDLE breakpoint facility undocumented

2012-10-19 Thread Todd Rovito

Changes by Todd Rovito rovit...@gmail.com:


Removed file: 
http://bugs.python.org/file27627/IDLEBreakPointDocumentation2point7.patch

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



[issue10405] IDLE breakpoint facility undocumented

2012-10-19 Thread Todd Rovito

Todd Rovito added the comment:

This patch works for both Python 3.4 and Python 2.7, it is a very simple patch.

--
versions: +Python 3.4
Added file: http://bugs.python.org/file27628/IDLEBreakPointDocumentation.patch

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