[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

And was the time argument passed in to utimes() set to NULL?

--

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



[issue21091] EmailMessage.is_attachment should be a method

2014-08-04 Thread Joseph Godbehere

Joseph Godbehere added the comment:

Patch to change message.is_attachment from a property to a normal method. I've 
updated the doc and all calls to is_attachment.

--
keywords: +patch
nosy: +joegod
Added file: http://bugs.python.org/file36243/attach_not_property.patch

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



[issue21091] EmailMessage.is_attachment should be a method

2014-08-04 Thread Nick Coghlan

Nick Coghlan added the comment:

This is your call David - I agree consistency is highly desirable, and having a 
chance to find and fix this kind of discrepancy is a large part of why we 
introduced provisional APIs.

--
assignee:  - r.david.murray
nosy: +ncoghlan
stage:  - commit review

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



[issue1602] windows console doesn't print or input Unicode

2014-08-04 Thread Drekin

Drekin added the comment:

I think that boxes are ok, it's just missing font. Without active workaroud 
there is just UnicodeEncodeError (with cp852 for me). There is problem with 
astral characters – I'm getting each box twice. It is possible that Windows 
console doesn't handle astral characters at all – it doesn't interpret 
surrogate pairs.

--

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



[issue22132] Cannot copy the same directory structure to the same destination more than once

2014-08-04 Thread Csaba Makara

New submission from Csaba Makara:

If I use the distutils.dir_util.copy_tree to copy the same directory structure 
multiple times to the same place (even from multiple sources) but I remove and 
recreate the target_directory before each copy, the following exception accurs:

g:\_Programmingpy example.py
Traceback (most recent call last):
  File E:\Python34\lib\distutils\file_util.py, line 41, in _copy_file_contents

fdst = open(dst, 'wb')
FileNotFoundError: [Errno 2] No such file or directory: 'c:\\bin\\folder_inside\
\file_inside.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File example.py, line 13, in module
dir_util.copy_tree(source_folder2, target_folder)
  File E:\Python34\lib\distutils\dir_util.py, line 160, in copy_tree
verbose=verbose, dry_run=dry_run))
  File E:\Python34\lib\distutils\dir_util.py, line 164, in copy_tree
dry_run=dry_run)
  File E:\Python34\lib\distutils\file_util.py, line 143, in copy_file
_copy_file_contents(src, dst)
  File E:\Python34\lib\distutils\file_util.py, line 44, in _copy_file_contents

could not create '%s': %s % (dst, e.strerror))
distutils.errors.DistutilsFileError: could not create 'c:\bin\folder_inside\file
_inside.txt': No such file or directory
___

If the target_folder is not deleted, the problem won't appear. 
The problem seems to be the handling of the inner directories. In the second 
attempt the inner folders are thought to be existing, but they are not.

See the attached script.

--
components: Distutils
files: example.py
messages: 224691
nosy: Csaba.Makara, dstufft, eric.araujo
priority: normal
severity: normal
status: open
title: Cannot copy the same directory structure to the same destination more 
than once
type: crash
versions: Python 3.4
Added file: http://bugs.python.org/file36244/example.py

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



[issue22116] Weak reference support for C function objects

2014-08-04 Thread Wei Wu

Wei Wu added the comment:

@pitrou, thank you for the review. I have signed the contributor agreement form 
after submitting this patch. Please let me know if there is a further step to 
help you to verify the signed contributor agreement.

I'm really glad to have the chance to contribute back to the community.

--

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



[issue21091] EmailMessage.is_attachment should be a method

2014-08-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Unfortunately this will silently break existing code because msg.is_attachment 
will be always true. But it is possible to make EmailMessage.is_attachment a 
property which returns special callable with the __bool__() method which will 
emit deprecation warning and call the __call__() method. After some 
intermediate period (one or two releases) it can be replaced by regular method.

--
nosy: +serhiy.storchaka

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



[issue22127] performance regression in socket getsockaddrarg()

2014-08-04 Thread STINNER Victor

STINNER Victor added the comment:

Abc is a bytes string in Python 2 and an Unicode string in Python 3.

--

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



[issue21091] EmailMessage.is_attachment should be a method

2014-08-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

The alternative is to make EmailMessage.is_multipart a property.

--

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



[issue22127] performance regression in socket getsockaddrarg()

2014-08-04 Thread Charles-François Natali

Charles-François Natali added the comment:

 Note that even the bytes version is still quite slow. UDP is used for 
 light-weight protocols where you may send thousands or more messages per 
 second. I'd be curious what the sendto() performance is in raw C.

Ah, I wouldn't rely on the absolyte values, my computer is *slow*.

On a more recent machine, I get this:
10 loops, best of 3: 8.82 usec per loop

Whereas a C loop gives a 4usec per loop.

 Abc is a bytes string in Python 2 and an Unicode string in Python 3.

Sure, but why do getaddrinfo() and gethostbyname() return strings then?

This means that someone using:

addr = getaddrinfo(...)
sendto(DATA, addr)

Will pay the idna encoding upon every call to sendto().

--

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



[issue22131] uuid.bytes optimization

2014-08-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

If such changes are acceptable, here is a part of my large patch fo modernizing 
stdlib sources.

Some microbenchmarks:

$ ./python -m timeit -s from uuid import NAMESPACE_DNS as u -- u.bytes
$ ./python -m timeit -s from uuid import NAMESPACE_DNS as u -- u.bytes_le
$ ./python -m timeit -s from uuid import UUID -- 
UUID(bytes_le=b'abcdefghijklmnop')

Before patch:
1 loops, best of 3: 66.9 usec per loop
1 loops, best of 3: 102 usec per loop
1 loops, best of 3: 65.2 usec per loop

After patch:
10 loops, best of 3: 3.98 usec per loop
10 loops, best of 3: 10.8 usec per loop
1 loops, best of 3: 32.1 usec per loop

--
nosy: +serhiy.storchaka
Added file: http://bugs.python.org/file36245/modernize_uuid.patch

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



[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-04 Thread Daniel Eriksson

Daniel Eriksson added the comment:

I'm no expert at all at GDB, but I will give it a go and if this is wrong I can 
try a lot more.

Breakpoint 1, posix_utime (self=0xf00918ed8, args=0xf014459f8, kwargs=0x0) at 
./Modules/posixmodule.c:4838
4838PyObject *times = NULL;
Current language:  auto; currently minimal
4839PyObject *ns = NULL;
4840int dir_fd = DEFAULT_DIR_FD;
4841int follow_symlinks = 1;
4843follow_symlinks, NULL};
4856memset(path, 0, sizeof(path));
4857path.function_name = utime;
4858memset(utime, 0, sizeof(utime_t));
4860path.allow_fd = 1;
4862if (!PyArg_ParseTupleAndKeywords(args, kwargs,
4875if (times  (times != Py_None)  ns) {
4903else if (ns) {
4919utime.now = 1;
4927if (path_and_dir_fd_invalid(utime, path, dir_fd) ||
963 if (!path-narrow  !path-wide  (dir_fd != DEFAULT_DIR_FD)) {
4928dir_fd_and_fd_invalid(utime, dir_fd, path.fd) ||
974 if ((dir_fd != DEFAULT_DIR_FD)  (fd != -1)) {
4929fd_and_follow_symlinks_invalid(utime, path.fd, 
follow_symlinks))
986 if ((fd  0)  (!follow_symlinks)) {
4933if ((dir_fd != DEFAULT_DIR_FD)  (!follow_symlinks)) {
4974Py_BEGIN_ALLOW_THREADS
4977if ((!follow_symlinks)  (dir_fd == DEFAULT_DIR_FD))
4989if (path.fd != -1)
4994result = utime_default(utime, path.narrow);
4800UTIME_TO_TIMEVAL;
4801return utimes(path, time);
(gdb) print time
$1 = {text variable, no debug info} 0xf01191d20 time
(gdb) print path
$2 = {function_name = 0x58bb79 utime, argument_name = 0x0, nullable = 0, 
allow_fd = 1, wide = 0x0, narrow = 0xf0099c0d0 /tmp/test, fd = -1, length = 
9, object = 0xf01445f90,
  cleanup = 0xf0099c0a0}
4996Py_END_ALLOW_THREADS
4998if (result  0) {
5006Py_INCREF(Py_None);
787 if (path-cleanup) {
788 Py_CLEAR(path-cleanup);
5016}

--

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



[issue14910] argparse: disable abbreviation

2014-08-04 Thread Daniel Eriksson

Daniel Eriksson added the comment:

Fixed documentation issues

--
Added file: http://bugs.python.org/file36246/issue14910_6.diff

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



[issue22131] uuid.bytes optimization

2014-08-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Just noticed that this patch also fixes a bug. When os.popen() fails in 
_ipconfig_getnode(), pipe is not set, and then NameError is raised in the 
finally branch.

--

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



[issue22100] Use $HOSTPYTHON when determining candidate interpreter for $PYTHON_FOR_BUILD.

2014-08-04 Thread Shiz

Shiz added the comment:

And a last tiny fix: on a lot of systems (except apparently the system I was 
using for my main testing), a freshly-built HOSTPYTHON will be confused to look 
for libraries, and the invocation will fail because it can't bootstrap itself. 
Point it to the current Python tree for libraries.

--
Added file: 
http://bugs.python.org/file36247/Python-hg-723e0a7c4914-fix-PYTHON_FOR_BUILD-detection-v3.patch

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



[issue13299] namedtuple row factory for sqlite3

2014-08-04 Thread Daniel Lenski

Daniel Lenski added the comment:

Serhiy,
52 usec/loop doesn't seem like much overhead. This is not 52 usec per row 
fetched, but just 52 usec per cursor.execute(). An example where 1 row is 
fetched for each cursor would show this more clearly.

The advantage of namedtuple is that it's a very well-known interface to most 
Python programmers. Other db-api modules have taken a similar approach; 
psycopg2 has a dict-like cursor similar to Row, but has added NameTupleCursor 
in recent versions. 
(http://initd.org/psycopg/docs/extras.html#namedtuple-cursor)

--
nosy: +dlenski

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



[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

The no debug info makes me think you're using a release build.  Please 
recompile making sure that -O0 and -g are both set.  By default the 
makefile has -O3 and -g, so normally you just change the -O3 to -O0, 
then make clean and make.

--

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



[issue21965] Add support for Memory BIO to _ssl

2014-08-04 Thread Geert Jansen

Geert Jansen added the comment:

New patch with a Python-level API (option #3).

This needs some more tests, and docs.

--
Added file: http://bugs.python.org/file36248/ssl-memory-bio-3.patch

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



[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-04 Thread Daniel Eriksson

Daniel Eriksson added the comment:

I used configure with --with-pydebug, will look closer on it when I get to
the office

--

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



[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-04 Thread Daniel Eriksson

Daniel Eriksson added the comment:

To confirm, my OPT-line is
OPT=-g -O0 -Wall -Wstrict-prototypes

--

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



[issue13299] namedtuple row factory for sqlite3

2014-08-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Yes, above microbenchmarks measure the time of execute() + the time of fetching 
one row. Here is more precise microbenchmarks.

$ ./python -m timeit -s import sqlite3; con = sqlite3.connect(':memory:'); 
con.execute('create table t (a, b)') -s for i in range(100): 
con.execute('insert into t values (1, 2)') -- con.execute('select * from 
t').fetchall()
1000 loops, best of 3: 624 usec per loop

$ ./python -m timeit -s import sqlite3; con = sqlite3.connect(':memory:'); 
con.row_factory = sqlite3.Row; con.execute('create table t (a, b)') -s for i 
in range(100): con.execute('insert into t values (1, 2)') -- 
con.execute('select * from t').fetchall()
1000 loops, best of 3: 915 usec per loop

$ ./python -m timeit -s import sqlite3; con = sqlite3.connect(':memory:'); 
con.row_factory = sqlite3.NamedTupleRow; con.execute('create table t (a, b)') 
-s for i in range(100): con.execute('insert into t values (1, 2)') -- 
con.execute('select * from t').fetchall()
100 loops, best of 3: 6.21 msec per loop

Here sqlite3.Row is about 1.5 times slower than tuple, but 
sqlite3.NamedTupleRow is about 7 times slower than sqlite3.Row.

With C implementation of lru_cache() (issue14373) the result is much better:

100 loops, best of 3: 3.16 msec per loop

And it will be even more faster (up to 1.7x) when add to the Cursor class a 
method which returns a tuple of field names.

--

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



[issue21091] EmailMessage.is_attachment should be a method

2014-08-04 Thread Joseph Godbehere

Joseph Godbehere added the comment:

Very good point, Serhiy.

Here is an alternative patch, which instead changes Message.is_multipart from a 
method to a property as per your suggestion. This way incorrect usage should 
fail noisily.

This patch is against the relevant docs, tests, is_multipart and calls to 
is_multipart only.

--
Added file: http://bugs.python.org/file36249/multipart_is_property.patch

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



[issue22127] performance regression in socket getsockaddrarg()

2014-08-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Perhaps it is time to add support of ipaddress objects in socket functions. 
Then we could avoid address parsing in tight loop not only for Unicode strings, 
but for bytes strings too.

s = socket.socket(...)
addr = ipaddress.ip_address(ipaddress.getaddrinfo(...))
for ...:
s.sendto(DATA, (addr, port))

--
nosy: +serhiy.storchaka

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



[issue22012] struct.unpack('?', '\x02') returns (False,) on Mac OSX

2014-08-04 Thread Ronald Oussoren

Ronald Oussoren added the comment:

BTW. There is also an argument to be made against my patch and for a 
documentation update: it is unclear to me if clang ever creates _Bool false 
values where the bit pattern isn't exactly the same as the zero value of an 
integer of the same size (for example due to generated code only updating the 
least significant bit and starting with a uninitialised value that has some of 
the other bits set).  If it does so depends on what's more efficient to do in 
machine code, and my knowledge of assembly is too rusty to have anything useful 
to say about that (although I'd suspect that overwriting the complete _Bool 
value would be more efficient than loading the current value, updating the LSB 
and storing it again).

If it can do so the current behavior of struct.unpack would be more correct 
than the version you get after applying my patch.

--

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



[issue22131] uuid.bytes optimization

2014-08-04 Thread Ronald Oussoren

Changes by Ronald Oussoren ronaldousso...@mac.com:


--
assignee: ronaldoussoren - 
components:  -Macintosh
nosy:  -ronaldoussoren

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



[issue21091] EmailMessage.is_attachment should be a method

2014-08-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is a patch with more soft transition. Message.is_multipart() still works 
but emits deprecation warning.

--
Added file: http://bugs.python.org/file36250/multipart_is_property_2.patch

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



[issue21091] EmailMessage.is_attachment should be a method

2014-08-04 Thread Nick Coghlan

Nick Coghlan added the comment:

Based on the provisional API status, a faster deprecation plan could be to
do Serhiy's patch in a 3.4 maintenance release and the hard break in 3.5

--

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



[issue7334] ElementTree: file locking in Jython 2.5 (OSError on Windows)

2014-08-04 Thread Christian Henz

Christian Henz added the comment:

I think the cElementTree portion of the applied changes is incorrect. 
`close_source` is never actually set to `True`.

http://hg.python.org/cpython/file/50722d2f08c7/Modules/_elementtree.c#l2926

--
nosy: +Christian.Henz

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



[issue22097] Linked list API for ordereddict

2014-08-04 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Yes, I think it's clear it's not going anywhere. In a way the standard list is 
good enough for those uses, except when your lists start growing really big (I 
don't know where the threshold is, but tens of thousands I'd say). Perhaps 
someone should make a blog post comparing theoretical and actual performance of 
various data types (hint hint ;-)).

--

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



[issue22127] performance regression in socket getsockaddrarg()

2014-08-04 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 Perhaps it is time to add support of ipaddress objects in socket functions.

What I was thinking too :-)
However, beware the parsing cost of ipaddress objects themselves.

One common pattern when doing UDP networking is the following:

  def datagram_received(self, remote_addr, data):
  # process data
  ...
  self.send_to(remote_addr, response_data)

If you want to pass an ipaddress object to send_to, you have to make it so that 
datagram_received() gives you an ipaddress object too.

Perhaps we need a more low-level solution, e.g. a parsing cache integrated in 
the C socket module.

--
nosy: +gvanrossum, ncoghlan

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



[issue20170] Derby #1: Convert 137 sites to Argument Clinic in Modules/posixmodule.c

2014-08-04 Thread Zachary Ware

Zachary Ware added the comment:

Yep, Windows is happy with the latest patch.

Since this is such an enormous patch, I'm assuming it's only going into 3.5 and 
have changed the version field accordingly.

--
versions: +Python 3.5 -Python 3.4

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



[issue7334] ElementTree: file locking in Jython 2.5 (OSError on Windows)

2014-08-04 Thread Brian Curtin

Changes by Brian Curtin br...@python.org:


--
nosy:  -brian.curtin

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



[issue22131] uuid.bytes optimization

2014-08-04 Thread Antoine Pitrou

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


--
stage:  - patch review
versions:  -Python 2.7

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



[issue22127] performance regression in socket getsockaddrarg()

2014-08-04 Thread Charles-François Natali

Charles-François Natali added the comment:

Parsing a bytes object i.e. b'127.0.0.1' is done by inet_pton(), so
it's probably cheap (compared to a syscall).

If we had getaddrinfo() and gethostbyname() return bytes instead of
strings, it would be a huge gain.

--

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



[issue15826] Increased test coverage of test_glob.py

2014-08-04 Thread Ezio Melotti

Ezio Melotti added the comment:

OK, I'll close the issue then.
Alessandro, thanks anyway for the patch!

--
resolution:  - out of date
stage: commit review - resolved
status: open - closed

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



[issue18588] timeit examples should be consistent

2014-08-04 Thread Ezio Melotti

Ezio Melotti added the comment:

Examples updated, thanks for the report!

--
resolution:  - fixed
stage:  - resolved
status: open - closed
versions:  -Python 2.7

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



[issue20402] List comprehensions should be noted in for loop documentation

2014-08-04 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
stage: needs patch - resolved

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



[issue21987] TarFile.getmember on directory requires trailing slash iff over 100 chars

2014-08-04 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
stage: test needed - patch review

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



[issue18588] timeit examples should be consistent

2014-08-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset c39457a07caa by Ezio Melotti in branch '3.4':
#18588: update the timeit examples to be consistent.
http://hg.python.org/cpython/rev/c39457a07caa

New changeset 45b208ae9eab by Ezio Melotti in branch 'default':
#18588: merge with 3.4.
http://hg.python.org/cpython/rev/45b208ae9eab

--
nosy: +python-dev

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



[issue5411] Add xz support to shutil

2014-08-04 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 I think we should hurry on to be in time for 3.5.

Your patch looks ok to me. Just update the version number in the docs ;)

--

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



[issue21965] Add support for Memory BIO to _ssl

2014-08-04 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I think the API choice looks reasonable, thank you (haven't looked at the patch 
in detail). A question though: does it support server-side SNI? AFAIR 
server-side SNI requires you to be able to change a SSL object's context.

--

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



[issue21965] Add support for Memory BIO to _ssl

2014-08-04 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Am adding the asyncio maintainers as well as Ben Darnell (Tornado) to the nosy 
list, for feedback.

--
nosy: +Ben.Darnell, gvanrossum, yselivanov

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



[issue1186900] nntplib shouldn't raise generic EOFError

2014-08-04 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Indeed, I find the description rather vague and potentially misleading. 
Connection establishment would usually refer to the TCP connection, but an 
EOFError is actually a high-level, logical error (it has nothing to do with 
networking per se: it's probably more of a server failure - or a client bug 
perhaps :-)).

--
nosy: +pitrou

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



[issue22127] performance regression in socket getsockaddrarg()

2014-08-04 Thread Martin v . Löwis

Martin v. Löwis added the comment:

Charles-François: you get the idna overhead in 2.7, too, by specifying 
u'127.0.0.1' as the address.

The idna overhead could be bypassed fairly easily in C by:
1. checking that the string is an ASCII string (this is possible in constant 
time, in 3.x)
2. directly passing the ASCII string to setipaddr (leaving any error detection 
to this routine)

Before adding caching, I'd check whether a cache lookup is actually faster than 
calling inet_pton.

--

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



[issue20977] pyflakes: undefined ctype in 2 except blocks in the email module

2014-08-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 9ec2b429a607 by Ezio Melotti in branch '3.4':
#20977: fix undefined name in the email module.  Patch by Rose Ames.
http://hg.python.org/cpython/rev/9ec2b429a607

New changeset 944fc499ccd3 by Ezio Melotti in branch 'default':
#20977: merge with 3.4.
http://hg.python.org/cpython/rev/944fc499ccd3

--
nosy: +python-dev

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



[issue20977] pyflakes: undefined ctype in 2 except blocks in the email module

2014-08-04 Thread Ezio Melotti

Ezio Melotti added the comment:

Fixed, thanks for the patch!

--
nosy: +ezio.melotti
resolution:  - fixed
stage: needs patch - resolved
status: open - closed
versions:  -Python 2.7

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



[issue22133] IDLE: Set correct WM_CLASS on X11

2014-08-04 Thread Saimadhav Heblikar

New submission from Saimadhav Heblikar:

I found this bug on gnome where IDLE's activity bar entry is named Toplevel 
instead of IDLE. After digging through the X11 and gnome docs, the WM_CLASS 
was wrongly being set as Toplevel. This patch has been verified using xprop, 
that the correct WM_CLASS value is getting set.

(Does this have any other side effect on KDE, LXDE, XFCE et al?)

--
components: IDLE
files: idle-x11-class.diff
keywords: patch
messages: 224728
nosy: jesstess, sahutd, terry.reedy
priority: normal
severity: normal
status: open
title: IDLE: Set correct WM_CLASS on X11
versions: Python 2.7, Python 3.4, Python 3.5
Added file: http://bugs.python.org/file36251/idle-x11-class.diff

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



[issue22133] IDLE: Set correct WM_CLASS on X11

2014-08-04 Thread Saimadhav Heblikar

Changes by Saimadhav Heblikar saimadhavhebli...@gmail.com:


Added file: http://bugs.python.org/file36252/after-before.png

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



[issue1011113] Make “install” find the build_base directory

2014-08-04 Thread Ezio Melotti

Ezio Melotti added the comment:

Éric, can this be closed then?

--
nosy: +ezio.melotti
status: open - pending

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



[issue22127] performance regression in socket getsockaddrarg()

2014-08-04 Thread Martin v . Löwis

Martin v. Löwis added the comment:

The attached patch makes the difference between Unicode and bytes strings for 
host names negligible, plus it slightly speeds up the bytes case as well.

--
keywords: +patch
Added file: http://bugs.python.org/file36253/skip_idna.diff

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



[issue21278] Running the test suite with -v makes the test_ctypes and the test_zipimport erroneously reported as failed

2014-08-04 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
resolution:  - works for me
status: open - pending

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



[issue1371826] distutils is silent about multiple -I/-L/-R

2014-08-04 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
versions:  -Python 2.7, Python 3.4

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



[issue19955] When adding .PY and .PYW to PATHEXT, it replaced string instead of appending

2014-08-04 Thread Steve Dower

Steve Dower added the comment:

That installer doesn't even try and set PATHEXT, and the 3.4 installer appears 
to set it correctly (for .PY, but not .PYW).

Are you sure it was an installer from python.org that overwrote your setting?

--

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



[issue21965] Add support for Memory BIO to _ssl

2014-08-04 Thread Geert Jansen

Geert Jansen added the comment:

 A question though: does it support server-side SNI? AFAIR server-side SNI 
 requires you to be able to change a SSL object's context.

Yes, it does. See the following comment in _servername_callback():

  /* Pass a PySSLSocket instance when using memory BIOs, but an ssl.SSLSocket
   * when using sockets. Note that the latter is not a subclass of the
   * former, but both do have a context property. THis supports the common
   * use case of setting this property in the servername callback. */

The C-level _ssl._SSLSocket object is passed to the servername callback. It has 
a context property that can be set.

I realize the above is an abstraction violation between the C and Python level. 
Now that we have an SSLObject Python level API, I could update the code to 
store a weakref to the SSLObject in the _SSLSocket (just like it does for 
SSLSocket). That way I can pass the Python level object into the callback. Any 
thoughts?

--

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



[issue10071] Should not release GIL while running RegEnumValue

2014-08-04 Thread Steve Dower

Steve Dower added the comment:

I don't think this is an appropriate fix, since in most cases there is no need 
to prevent other Python threads running while inside RegSetValue. There are 
also other ways that a context switch may occur during the enumeration which 
will put the program in exactly the same state. (It isn't clear from the patch, 
but the two sections of changed code are from completely different functions.)

The correct fix should be at the user's application level, or in a higher-level 
module than _winreg is supposed to be.

--

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



[issue21965] Add support for Memory BIO to _ssl

2014-08-04 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Le 04/08/2014 11:21, Geert Jansen a écrit :

 I realize the above is an abstraction violation between the C and
Python level. Now that we have an SSLObject Python level API, I could
update the code to store a weakref to the SSLObject in the _SSLSocket
(just like it does for SSLSocket). That way I can pass the Python level
object into the callback. Any thoughts?

I think it would make the exposed API nicer, although the implementation 
would be a bit uglier. Given Python's philosophy, I think the nicer API 
wins :-)

--

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



[issue22127] performance regression in socket getsockaddrarg()

2014-08-04 Thread Charles-François Natali

Charles-François Natali added the comment:

 Charles-François: you get the idna overhead in 2.7, too, by specifying 
 u'127.0.0.1' as the address.

I don't see it in a profile output, and the timing doesn't change
whether I pass '127.0.0.1' or b'127.0.0.1' in 2.7.

--

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



[issue21121] -Werror=declaration-after-statement is added even for extension modules through setup.py

2014-08-04 Thread Antoine Pitrou

Antoine Pitrou added the comment:

This patch should definitely go in.

--
nosy: +pitrou

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



[issue22127] performance regression in socket getsockaddrarg()

2014-08-04 Thread Martin v . Löwis

Martin v. Löwis added the comment:

Please understand that Victor and I were asking you to pass a *unicode* object, 
with a *u* prefix. For me, the time more-than-doubles, on OSX, with the system 
python.

mvl:~ loewis$ /usr/bin/python -m timeit -s import socket; s = 
socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.sendto(b'hello', 
('127.0.0.1', 4242))
10 loops, best of 3: 8.15 usec per loop
mvl:~ loewis$ /usr/bin/python -m timeit -s import socket; s = 
socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.sendto(b'hello', 
(u'127.0.0.1', 4242))
1 loops, best of 3: 19.5 usec per loop
mvl:~ loewis$ /usr/bin/python -V
Python 2.7.5

--

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



[issue22116] Weak reference support for C function objects

2014-08-04 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Ah, yes, indeed, the agreement seems to have been validated in the meantime 
(you can see it by the asterisk near your name in the comments here). Thank you!

--

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



[issue22127] performance regression in socket getsockaddrarg()

2014-08-04 Thread Charles-François Natali

Charles-François Natali added the comment:

 Please understand that Victor and I were asking you to pass a *unicode* 
 object, with a *u* prefix. For me, the time more-than-doubles, on OSX, with 
 the system python.

Sorry, I misread 'b'.
it's a day without...

--

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



[issue22127] performance regression in socket getsockaddrarg()

2014-08-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

 2. directly passing the ASCII string to setipaddr (leaving any error 
 detection to this routine)

This will change the type of exception. If this is acceptable and modulo 
Antoine's and my nitpicks on Rietveld, the patch LGTM.

But it is too complicated. Here is alternative. It has many flaws (less 
extensible, incompatible with Argument Clinic, can produce inaccurate error 
message, etc), but it is much simpler. And preserve the type of exception.

--
Added file: http://bugs.python.org/file36254/skip_idna_alt.patch

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



[issue22104] test_asyncio unstable in refleak mode

2014-08-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 9bca86812857 by Zachary Ware in branch '3.4':
Issue #22104: Don't hold a reference to the loaded TestSuite in runtest_inner
http://hg.python.org/cpython/rev/9bca86812857

New changeset 7bc53cf8b2df by Zachary Ware in branch 'default':
Closes #22104: Merge with 3.4
http://hg.python.org/cpython/rev/7bc53cf8b2df

--
nosy: +python-dev
resolution:  - fixed
stage: needs patch - resolved
status: open - closed

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



[issue22125] Cure signedness warnings introduced by #22003

2014-08-04 Thread Zachary Ware

Zachary Ware added the comment:

Either patch makes MSVC happy; Meador's gets points from me for simplicity.

--

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



[issue21308] PEP 466: backport ssl changes

2014-08-04 Thread Alex Gaynor

Alex Gaynor added the comment:

Latest patch does as Donald suggests and rolls back the WantWrite changes, 
fixing poplib.

--
Added file: http://bugs.python.org/file36255/ssl-backport.diff

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



[issue20170] Derby #1: Convert 137 sites to Argument Clinic in Modules/posixmodule.c

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

Yeah, I've been meaning to mark all the Derby patches as 3.5.  We're not adding 
new Clinic conversions to 3.4.

--

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



[issue18034] Last two entries in the programming FAQ are out of date (import related)

2014-08-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 815f1a69283e by Ezio Melotti in branch '3.4':
#18034: update FAQ to suggest importlib.import_module instead of __import__.  
Patch by Wouter van Heyst.
http://hg.python.org/cpython/rev/815f1a69283e

New changeset f78ef3819d67 by Ezio Melotti in branch 'default':
#18034: merge with 3.4.
http://hg.python.org/cpython/rev/f78ef3819d67

New changeset 46c7a724b487 by Ezio Melotti in branch '2.7':
#18034: update FAQ to suggest importlib.import_module instead of __import__.  
Patch by Wouter van Heyst.
http://hg.python.org/cpython/rev/46c7a724b487

--
nosy: +python-dev

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



[issue18034] Last two entries in the programming FAQ are out of date (import related)

2014-08-04 Thread Ezio Melotti

Ezio Melotti added the comment:

Fixed, thanks for the patch!
The other FAQ got fixed in #17177/3d3b9d456eb8.

--
assignee: docs@python - ezio.melotti
resolution:  - fixed
stage: needs patch - resolved
status: open - closed
versions: +Python 2.7

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



[issue22134] string formatting float rounding errors

2014-08-04 Thread Larry

New submission from Larry:

Certain values close to the rounding boundary are rounded down instead of up; 
and this is done somewhat inconsistently.


#Example (python v2.7.8, and previous)

#almost an odd-even pattern, but not quite
for x in [1.045, 1.145, 1.245, 1.345, 1.445, 1.545, 1.645, 1.745, 1.845, 1.945]:
print {0:.3f} = {0:.2f}.format(x)

#while ..6 rounds up correctly
for x in [1.046, 1.146, 1.246, 1.346, 1.446, 1.546, 1.646, 1.746, 1.846, 1.946]:
print {0:.3f} = {0:.2f}.format(x)

--
messages: 224747
nosy: Larry
priority: normal
severity: normal
status: open
title: string formatting float rounding errors
type: behavior
versions: Python 2.7

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



[issue1011113] Make “install” find the build_base directory

2014-08-04 Thread Éric Araujo

Éric Araujo added the comment:

In my previous message I meant that I agreed with the original request, i.e. 
add --build-base to install.  I will probably never have the time to write a 
patch.

--
dependencies:  -write a configure command
status: pending - open

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



[issue22132] Cannot copy the same directory structure to the same destination more than once

2014-08-04 Thread Éric Araujo

Éric Araujo added the comment:

Thanks for the report.  Did you find this issue with a setup.py file or with 
direct usage of dir_utils.copy_tree?  These distutils modules are not meant for 
general use, so bugs that don’t occur during regular use of setup.py files will 
probably not get fixed.  (Distutils has fragile internals so it’s policy to do 
as little change as possible to avoid breaking other things.)

--

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



[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

Yup, you've got a debug build there.  I'm baffled by that gdb no debug info 
line then.

At line 4801 could you also 
print *utime
print tv

--

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



[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-04 Thread Daniel Eriksson

Daniel Eriksson added the comment:

Larry: Result of that:
(gdb) print *utime
Structure has no component named operator*.
(gdb) print tv
No symbol tv in current context.

You can also catch me on IRC with the same nickname as here

--

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



[issue20172] Derby #3: Convert 67 sites to Argument Clinic across 4 files (Windows)

2014-08-04 Thread Zachary Ware

Zachary Ware added the comment:

Here's an updated patch.  It includes the patch from #20586 for proper 
signature/docstring output in _winapi.

--
versions: +Python 3.5 -Python 3.4
Added file: http://bugs.python.org/file36256/issue20172.v7.diff

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



[issue21973] Idle should not quit on corrupted user config files

2014-08-04 Thread ingrid

ingrid added the comment:

Here is a patch that will print a warning if there is an invalid config when 
starting idle. Example:

Warning (from warnings module):
  File /Users/ingrid/.idlerc/config-extensions.cfg, line 1
enable=1
MissingSectionHeaderError: File contains no section headers.
Ignoring configurations within config-extensions.cfg.
Delete this file or fix formatting errors to remove this warning.

--
keywords: +patch
nosy: +ingrid, jesstess
Added file: http://bugs.python.org/file36257/issue21973.patch

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



[issue20171] Derby #2: Convert 115 sites to Argument Clinic in Modules/_cursesmodule.c

2014-08-04 Thread Larry Hastings

Changes by Larry Hastings la...@hastings.org:


--
versions: +Python 3.5 -Python 3.4

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



[issue20174] Derby #5: Convert 50 sites to Argument Clinic across 3 files

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

All the Derby patches should only go into trunk at this point.

--
versions: +Python 3.5 -Python 3.4

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



[issue20175] Derby #6: Convert 50 sites to Argument Clinic across 8 files

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

All the Derby patches should only go into trunk at this point.

--
versions: +Python 3.5 -Python 3.4

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



[issue20179] Derby #10: Convert 50 sites to Argument Clinic across 4 files

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

All the Derby patches should only go into trunk at this point.

--
versions: +Python 3.5 -Python 3.4

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



[issue20177] Derby #8: Convert 28 sites to Argument Clinic across 2 files

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

All the Derby patches should only go into trunk at this point.

--
versions: +Python 3.5 -Python 3.4

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



[issue20173] Derby #4: Convert 53 sites to Argument Clinic across 5 files

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

All the Derby patches should only go into trunk at this point.

--
versions: +Python 3.5 -Python 3.4

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



[issue20171] Derby #2: Convert 115 sites to Argument Clinic in Modules/_cursesmodule.c

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

All the Derby patches should only go into trunk at this point.

--

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



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

All the Derby patches should only go into trunk at this point.

--
versions: +Python 3.5 -Python 3.4

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



[issue20183] Derby #14: Convert 41 sites to Argument Clinic across 5 files

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

All the Derby patches should only go into trunk at this point.

--
versions: +Python 3.5 -Python 3.4

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



[issue20178] Derby #9: Convert 52 sites to Argument Clinic across 11 files

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

All the Derby patches should only go into trunk at this point.

--
versions: +Python 3.5 -Python 3.4

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



[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

All the Derby patches should only go into trunk at this point.

--
versions: +Python 3.5 -Python 3.4

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



[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

All the Derby patches should only go into trunk at this point.

--
versions: +Python 3.5 -Python 3.4

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



[issue20184] Derby #16: Convert 50 sites to Argument Clinic across 9 files

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

All the Derby patches should only go into trunk at this point.

--
versions: +Python 3.5 -Python 3.4

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



[issue20186] Derby #18: Convert 31 sites to Argument Clinic across 23 files

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

All the Derby patches should only go into trunk at this point.

--
versions: +Python 3.5 -Python 3.4

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



[issue20181] Derby #12: Convert 50 sites to Argument Clinic across 4 files

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

All the Derby patches should only go into trunk at this point.

--
versions: +Python 3.5 -Python 3.4

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



[issue15018] Incomplete Python LDFLAGS and CPPFLAGS used for extension modules on posix

2014-08-04 Thread Roumen Petrov

Changes by Roumen Petrov bugtr...@roumenpetrov.info:


--
nosy: +rpetrov

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



[issue22097] Linked list API for ordereddict

2014-08-04 Thread Raymond Hettinger

Raymond Hettinger added the comment:

  Perhaps someone should make a blog post comparing
 theoretical and actual performance of various data 
 types (hint hint ;-)).

Great idea.

Thanks Antoine.

--
resolution:  - rejected
stage:  - resolved
status: open - closed

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



[issue20766] reference leaks in pdb

2014-08-04 Thread Xavier de Gaye

Xavier de Gaye added the comment:

After refleak_3.patch, test_pdb_next_command_in_generator_for_loop is the only 
remaining test that sets a breakpoint without reinitializing the breakpoints 
numbering first.
As a result, this test may also fail in the future when tests are reordered by 
the unittest machinery.
refleak_4.patch adds a fix to that (and could be ignored as a problem that 
should be fixed in a new issue of its own).

--
Added file: http://bugs.python.org/file36258/refleak_4.patch

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



[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

I talked to puppet on IRC for a while and we figured out the following about 
his OS:

* He has utime() and utimes(), but no utimensat().
* utimes() can write with *microsecond* resolution.
* stat() reads the time with *nanosecond* resolution.  (He has 
HAVE_STAT_TV_NSEC defined.)
* utimes(path, NULL) sets the file to the current time with *second* 
resolution.  Which means if it happens within the same second as the previous 
update, it will set mtime to an earlier value.

Just to confirm, he ran this script:
--
import os
b = '/tmp/test2'
open(b,'a').close()
before = os.stat(b)
os.utime(b, None)
after = os.stat(b)
os.unlink(b)
print(before:, before.st_mtime_ns)
print( after:, after.st_mtime_ns)
print(before = after, before.st_mtime_ns = after.st_mtime_ns)
--

and it consistently prints before = after False.

*facepalm*

Since utimes supports microsecond resolution, we could in theory work around 
this problem by explicitly specifying the current time when using utimes().  If 
we did that, we might want to also see if this behavior affects futimes() and 
lutimes().

Functions in posixmodule are expected to be atomic, and this would mean two 
system calls instead of one--so maybe we should only use this workaround on 
platforms with the bug?

--

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



[issue5411] Add xz support to shutil

2014-08-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Éric?

--

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



[issue22135] allow to break into pdb with Ctrl-C for all the commands that resume execution

2014-08-04 Thread Xavier de Gaye

New submission from Xavier de Gaye:

Pdb sets a handler for the SIGINT signal (which is sent when the user presses 
Ctrl-C on the console) when you give a continue command.
'continue' is not the only pdb command that may be interrupted, all the 
commands that resume the execution of the program (i.e. the 'do_xxx' Pdb 
methods that return 1), except for the ones that terminate pdb, should also set 
the SIGINT signal handler. These are the 'step', 'next', 'until' and 'return' 
commands.
For example, a 'next' command issued at the invocation of a function when the 
function is doing a long processing and the user wishes to break into pdb again 
with Ctrl-C within this function.

It is probably better to fix this issue after issue 20766 is fixed.

--
components: Library (Lib)
messages: 224772
nosy: xdegaye
priority: normal
severity: normal
status: open
title: allow to break into pdb with Ctrl-C for all the commands that resume 
execution
type: behavior
versions: Python 3.5

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



[issue22135] allow to break into pdb with Ctrl-C for all the commands that resume execution

2014-08-04 Thread Xavier de Gaye

Changes by Xavier de Gaye xdeg...@gmail.com:


--
nosy: +georg.brandl

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



[issue22134] string formatting float rounding errors

2014-08-04 Thread Ned Deily

Ned Deily added the comment:

What you are seeing is due to the limitations of binary floating-point 
arithmetic.  The issue is described in more detail in the Python tutorial:

https://docs.python.org/2/tutorial/floatingpoint.html#tut-fp-issues

--
nosy: +ned.deily
resolution:  - not a bug
stage:  - resolved
status: open - closed

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



[issue20323] Argument Clinic: docstring_prototype output causes build failure on Windows

2014-08-04 Thread Zachary Ware

Zachary Ware added the comment:

You're right, of course; I don't know how I got a non-screwball result in prior 
testing.  Here's an updated patch.

I have not come up with any better alternative.

--
stage:  - patch review
Added file: http://bugs.python.org/file36259/issue20323.v2.diff

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



[issue14910] argparse: disable abbreviation

2014-08-04 Thread Daniel Eriksson

Daniel Eriksson added the comment:

Updated patch

--
Added file: http://bugs.python.org/file36260/issue14910_7.diff.txt

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



  1   2   >