[issue23397] PEP 431 implementation

2015-02-05 Thread Berker Peksag

New submission from Berker Peksag:

I have an outdated and WIP patch to implement PEP 431 on GitHub: 
https://github.com/berkerpeksag/cpython Hopefully, I will complete my work 
before beta 1.

--
assignee: berker.peksag
components: Library (Lib)
messages: 235423
nosy: berker.peksag
priority: normal
severity: normal
stage: needs patch
status: open
title: PEP 431 implementation
type: enhancement
versions: Python 3.5

___
Python tracker 

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



[issue23285] PEP 475 - EINTR handling

2015-02-05 Thread STINNER Victor

STINNER Victor added the comment:

Would it be possible to push the latest patch right now, and fix remaining 
issues (if there are known issues?), before Python 3.4 alpha 1? According to 
the PEP 478, the alpha 1 is scheduled for this sunday (February 8, 2015).

--

___
Python tracker 

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



[issue18932] Optimize selectors.EpollSelector.modify()

2015-02-05 Thread STINNER Victor

STINNER Victor added the comment:

Updated patch with a less surprising _modify() method:
- the default implementation simply calls unregister() + register(), as before
- drop SelectSelector._modify(): calling unregister() + register() is just fine

--
Added file: http://bugs.python.org/file38018/selectors_optimize_modify-2.patch

___
Python tracker 

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



[issue18932] Optimize selectors.EpollSelector.modify()

2015-02-05 Thread STINNER Victor

STINNER Victor added the comment:

> - drop SelectSelector._modify(): calling unregister() + register() is just 
> fine

I checked with strace: PollSelector.modify() doesn't require any syscall, so I 
propose to also drop it (to just call unregister + register). What do you think?

I would like to reduce the number of syscalls, calling a C function of the 
glibc is cheap.

> This is a follow up of issue 16853 (see comment 
> http://bugs.python.org/issue16853#msg196984).

"(...) the problem with unregister() + register() vs a real
modify (e.g. EPOLL_CTL_MOD) is that it's subject to a race condition,
if an event fires during the short window where the FD isn't
registered anymore."

The race condition only occurs with selectors which have a state machine in the 
kernel: epoll, kqueue, devpoll. SelectSelector and PollSelector are state-less 
(in the kernel, the state is build for a single syscall and then destroyed). Am 
I right?

--

___
Python tracker 

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



[issue23361] integer overflow in winapi_createprocess

2015-02-05 Thread paul

paul added the comment:

ping

--

___
Python tracker 

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



[issue17911] traceback: add a new thin class storing a traceback without storing local variables

2015-02-05 Thread Nick Coghlan

Nick Coghlan added the comment:

+1 for having the base __init__ API be the exception triple and then a 
TracebackException.from_exception() class method as an alternate constructor.

However, the redundancy between TracebackException.__init__() and 
TracebackException.from_exc_tuple() feels very strange to me. It leaves the 
__init__ working-but-undocumented and isn't a pattern I can recall seeing 
anywhere else in the standard library.

Would it be possible to just add the from_exception() class method and leave 
the documented (and only) API for building from a triple being the normal 
constructor call?

--

___
Python tracker 

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



[issue21998] asyncio: a new self-pipe should be created in the child process after fork

2015-02-05 Thread STINNER Victor

STINNER Victor added the comment:

Updated patch:
- drop PollSelector._at_fork(): PollSelector is not shared with the parent 
process
- _at_fork() of BaseEventLoop and SelectorEventLoop now do nothing by default: 
only _UnixSelectorEventLoop._at_fork() handle the fork, nothing is needed on 
Windows
- patch written for Python 3.5, not for Tulip (different directories)

--
Added file: http://bugs.python.org/file38019/at_fork-2.patch

___
Python tracker 

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



[issue22765] Fixes for test_gdb (first frame address, entry values)

2015-02-05 Thread STINNER Victor

STINNER Victor added the comment:

> New changeset 5b5a581d91c8 by Serhiy Storchaka in branch '3.4':
> Issue #22765: Fixed test_gdb failures. Supressed unexpected gdb output.
> https://hg.python.org/cpython/rev/5b5a581d91c8

Since this change, test_gdb fails on "AMD64 OpenIndiana 3.x":
http://buildbot.python.org/all/builders/AMD64%20OpenIndiana%203.x/builds/9176/

See also issue #23381..

--
nosy: +haypo
resolution: fixed -> 
status: closed -> open

___
Python tracker 

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



[issue22765] Fixes for test_gdb (first frame address, entry values)

2015-02-05 Thread STINNER Victor

STINNER Victor added the comment:

A workaround is to check (once) that the command "set print entry-values no" 
and "set print address off" are supported.

Gdb provides its version in the Python API as a string: gdb.VERSION (ex: 
'Fedora 7.8.2-38.fc21').

--

___
Python tracker 

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



[issue22765] Fixes for test_gdb (first frame address, entry values)

2015-02-05 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is a patch which adds command 'set print entry-values no' only for gdb 
version >= 7.4.

--
Added file: http://bugs.python.org/file38020/test_gdb_entry_values.patch

___
Python tracker 

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



[issue22079] Ensure in PyType_Ready() that base class of static type is static

2015-02-05 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
assignee:  -> serhiy.storchaka
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue18982] Add tests for CLI of the calendar module

2015-02-05 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thanks for your review Berker.

--
assignee:  -> serhiy.storchaka

___
Python tracker 

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



[issue22941] IPv4Interface arithmetic changes subnet mask

2015-02-05 Thread Søren Løvborg

Søren Løvborg added the comment:

I take it the silence means that the patch is neither obviously good nor 
obviously bad. :-)

It all comes down to a judgment call: is this a bug, or expected (but 
undocumented) behavior?

In PEP 387 lingo: Is this a "reasonable bug fix"? Or is it a "design mistake", 
thus calling for a FutureWarning first, and the actual change later?

>>> ipaddress.IPv4Interface('1.2.3.4/16') + 1
__main__:1: FutureWarning: Arithmetic on IPv4Interface objects will
change in Python 3.6. If you rely on the current behavior, change
'interface + n' to 'IPv4Interface(interface.ip + n, 32)'

--

___
Python tracker 

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



[issue23285] PEP 475 - EINTR handling

2015-02-05 Thread Antoine Pitrou

Antoine Pitrou added the comment:

> Would it be possible to push the latest patch right now

It's ok for me. Please watch the buildbots :)

--

___
Python tracker 

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



[issue18982] Add tests for CLI of the calendar module

2015-02-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 28a9da0842aa by Serhiy Storchaka in branch '3.4':
Issue #18982: Add tests for CLI of the calendar module.
https://hg.python.org/cpython/rev/28a9da0842aa

New changeset e057da873673 by Serhiy Storchaka in branch 'default':
Issue #18982: Add tests for CLI of the calendar module.
https://hg.python.org/cpython/rev/e057da873673

New changeset 50a5c262b2e6 by Serhiy Storchaka in branch '2.7':
Issue #18982: Add tests for CLI of the calendar module.
https://hg.python.org/cpython/rev/50a5c262b2e6

--
nosy: +python-dev

___
Python tracker 

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



[issue20289] Make cgi.FieldStorage a context manager

2015-02-05 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

LGTM.

--
stage: patch review -> commit review

___
Python tracker 

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



[issue18982] Add tests for CLI of the calendar module

2015-02-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset f2991b52157e by Serhiy Storchaka in branch '2.7':
Issue #18982: Fixed newlines in calendar CLI tests on Windows.
https://hg.python.org/cpython/rev/f2991b52157e

--

___
Python tracker 

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



[issue18982] Add tests for CLI of the calendar module

2015-02-05 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
resolution:  -> fixed
stage: commit review -> resolved
status: open -> closed

___
Python tracker 

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



[issue18932] Optimize selectors.EpollSelector.modify()

2015-02-05 Thread Giampaolo Rodola'

Giampaolo Rodola' added the comment:

I mean something like this (for epoll), as in avoiding to call unregister() / 
register() at all:


diff -r 017e7391ab58 Lib/selectors.py
--- a/Lib/selectors.py  Wed Feb 04 08:37:02 2015 -0800
+++ b/Lib/selectors.py  Thu Feb 05 18:42:26 2015 +0100
@@ -412,6 +412,23 @@
 pass
 return key
 
+def modify(self, fileobj, events, data=None):
+try:
+key = self._fd_to_key[self._fileobj_lookup(fileobj)]
+except KeyError:
+raise KeyError("{!r} is not registered".format(fileobj)) from 
None
+if data != key.data:
+key = key._replace(data=data)
+self._fd_to_key[key.fd] = key
+if events != key.events:
+epoll_events = 0
+if events & EVENT_READ:
+epoll_events |= select.POLLIN
+if events & EVENT_WRITE:
+epoll_events |= select.POLLOUT
+self._epoll.modify(key.fd, epoll_events)
+return key
+
 def select(self, timeout=None):
 if timeout is None:
 timeout = -1


Before the patch:

~/svn/python/3.5$ ./python -m timeit -s 'import os, selectors; 
s=selectors.EpollSelector(); r,w=os.pipe(); s.register(r, 
selectors.EVENT_READ)' 's.modify(r, selectors.EVENT_WRITE); s.modify(r, 
selectors.EVENT_READ)'
10 loops, best of 3: 14.7 usec per loop


After the patch:

~/svn/python/3.5$ ./python -m timeit -s 'import os, selectors; 
s=selectors.EpollSelector(); r,w=os.pipe(); s.register(r, 
selectors.EVENT_READ)' 's.modify(r, selectors.EVENT_WRITE); s.modify(r, 
selectors.EVENT_READ)'
10 loops, best of 3: 3.07 usec per loop

That's equal to about a 4.5x (+450%) speedup if I'm not mistaken.

--

___
Python tracker 

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



[issue23398] calendar.monthrange for February 2015

2015-02-05 Thread Sergiy

New submission from Sergiy:

>>>print(calendar.monthrange(2015,2))
(6, 28)
February has only 5 weeks.

--
components: Extension Modules
messages: 235440
nosy: skarpovsky
priority: normal
severity: normal
status: open
title: calendar.monthrange for February 2015
type: behavior
versions: Python 3.4

___
Python tracker 

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



[issue23397] PEP 431 implementation

2015-02-05 Thread Antoine Pitrou

Antoine Pitrou added the comment:

That would be great!

--
nosy: +barry, pitrou

___
Python tracker 

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



[issue23398] calendar.monthrange for February 2015

2015-02-05 Thread Geoffrey Spear

Geoffrey Spear added the comment:

"Returns weekday of first day of the month and number of days in month, for the 
specified year and month.".

The 6 means February began on a Sunday, not that there are 6 weeks in the month.

--
nosy: +geoffreyspear

___
Python tracker 

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



[issue23398] calendar.monthrange for February 2015

2015-02-05 Thread Ethan Furman

Ethan Furman added the comment:

https://docs.python.org/3/library/calendar.html#calendar.monthrange

--
nosy: +ethan.furman
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue17911] traceback: add a new thin class storing a traceback without storing local variables

2015-02-05 Thread Robert Collins

Robert Collins added the comment:

I can certainly do that; I was aiming to make it fair I guess, given Antoines 
strong feelings on this matter. As long as I'm not piggy-in-the-middle, I don't 
have a care in this regard :)

--

___
Python tracker 

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



[issue22735] Fix various crashes exposed through mro() customization

2015-02-05 Thread Eldar Abusalimov

Eldar Abusalimov added the comment:

I feel a bit uneasy, but... any news on this?

--

___
Python tracker 

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



[issue17911] traceback: add a new thin class storing a traceback without storing local variables

2015-02-05 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I just posted some review comments.

I also realized that it posted some older comments that I hadn't submitted 
before... some of them may be obsolete, sorry :-/

--

___
Python tracker 

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



[issue17753] test_zipfile: requires write access to test and email.test

2015-02-05 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is a patch which skips tests if there are no write access to the installed 
location.

--
keywords: +patch
stage: needs patch -> patch review
versions: +Python 2.7
Added file: http://bugs.python.org/file38021/issue17753.patch

___
Python tracker 

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



[issue16806] col_offset is -1 and lineno is wrong for multiline string expressions

2015-02-05 Thread Anthony Sottile

Changes by Anthony Sottile :


--
nosy: +asottile

___
Python tracker 

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



[issue16806] col_offset is -1 and lineno is wrong for multiline string expressions

2015-02-05 Thread Anthony Sottile

Anthony Sottile added the comment:

Any updates on this? I'm running into this as well (still a problem in 3.4)

```$ python3.4
Python 3.4.2 (default, Oct 11 2014, 17:59:27) 
[GCC 4.4.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ast
>>> ast.parse("""'''foo\n'''""").body[0].value.col_offset
-1
```

--

___
Python tracker 

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



[issue10631] ZipFile and current directory change

2015-02-05 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Fixed in issue14099 for 3.5. Do you think that this solution should be 
backported Martin?

An alternative solution of this issue would be to convert relative path to 
absolute path in ZipFile constructor.

--
versions:  -Python 3.2

___
Python tracker 

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



[issue23306] Within zipfile, use of zlib.crc32 raises OverflowError at argument-parsing time on large strings

2015-02-05 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy: +nadeem.vawda

___
Python tracker 

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



[issue11152] pb in zipfile module

2015-02-05 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Looks as this bug was fixed in issue1710703.

--
nosy: +serhiy.storchaka
resolution:  -> out of date
stage: test needed -> resolved
status: open -> closed

___
Python tracker 

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



[issue23381] Python 2.7.9+ test_gdb regression on Ubuntu 10.04

2015-02-05 Thread Vinson Lee

Changes by Vinson Lee :


--
keywords: +patch
Added file: 
http://bugs.python.org/file38022/0001-Issue-23881-Only-use-entry-values-with-gdb-7.4.patch

___
Python tracker 

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



[issue23285] PEP 475 - EINTR handling

2015-02-05 Thread Charles-François Natali

Charles-François Natali added the comment:

> Antoine Pitrou added the comment:
>
>> Would it be possible to push the latest patch right now
>
> It's ok for me. Please watch the buildbots :)

Cool, I'll push on Friday evening or Saturday.

--

___
Python tracker 

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



[issue18932] Optimize selectors.EpollSelector.modify()

2015-02-05 Thread STINNER Victor

STINNER Victor added the comment:

2015-02-05 18:46 GMT+01:00 Giampaolo Rodola' :
> +def modify(self, fileobj, events, data=None):
> +...
> +if events != key.events:

You should update the SelectorKey in the case, no?

--

___
Python tracker 

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



[issue17189] Add zip64 support to shutil

2015-02-05 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue17189] Add zip64 support to shutil

2015-02-05 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
dependencies:  -Use allowZip64=True by default
resolution:  -> out of date
superseder:  -> Use allowZip64=True by default

___
Python tracker 

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



[issue14099] ZipFile.open() should not reopen the underlying file

2015-02-05 Thread eryksun

eryksun added the comment:

The changeset from 03 Dec is in the Windows 2.7.9 release.

Python 2.7.9 (default, Dec 10 2014, 12:28:03) [MSC v.1500 64 bit
(AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more
information.
>>> import zipfile
>>> zipfile._SharedFile


--
nosy: +eryksun

___
Python tracker 

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



[issue21717] Exclusive mode for ZipFile and TarFile

2015-02-05 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Ping.

--

___
Python tracker 

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



[issue17911] traceback: add a new thin class storing a traceback without storing local variables

2015-02-05 Thread Nick Coghlan

Nick Coghlan added the comment:

I think in this case, the fact that it's easier to decompose an exception
into the corresponding triple rather than vice-versa, together with the
fact that other exception state manipulation APIs like exc_info() and
__exit__() methods work with triples, means it makes sense to accept the
triple as the base constuctor API, and then have the convenience method to
destructure a caught exception.

--

___
Python tracker 

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



[issue17911] traceback: add a new thin class storing a traceback without storing local variables

2015-02-05 Thread Antoine Pitrou

Antoine Pitrou added the comment:

The solution of having two constructor classmethods actually seems nice
and symmetric to me.

--

___
Python tracker 

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



[issue23399] venv should create relative symlinks where possible

2015-02-05 Thread Barry A. Warsaw

New submission from Barry A. Warsaw:

There is a subtle behavior difference between virtualenv and pyvenv.  When you 
create a venv with virtualenv, the symbolic links files /bin are 
relative, while they are absolute with pyvenv.  This means that virtual 
environments created with virtualenv can be relocated (modulo the #! lines of 
the script, but let's not worry about that for now), but virtual environments 
created with pyvenv cannot be relocated.

With pyvenv, you also have /lib64 pointing to an absolute path.

AFAICT, there's no good reason why the symlink targets must be absolute paths.  
Relative paths work just fine for virtualenv and they should work fine for 
pyvenv.

This patch changes the lib64 and /bin/* symlinks to be relative.  There 
should be no change when symlinks are disabled or are unavailable.

One remaining question is whether /bin/python itself should be relative.  
In virtualenv, even with something like `-p /usr/bin/python3.4` you still get a 
relative link.  /bin/python points outside of the venv, so the question 
is whether the $PATH-dependent behavior of virtualenv is worthwhile or not.  My 
patch does not change this symlink.

--
assignee: vinay.sajip
components: Library (Lib)
files: venv.patch
keywords: patch
messages: 235457
nosy: barry, dstufft, vinay.sajip
priority: normal
severity: normal
stage: patch review
status: open
title: venv should create relative symlinks where possible
type: behavior
versions: Python 3.4, Python 3.5
Added file: http://bugs.python.org/file38023/venv.patch

___
Python tracker 

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



[issue22524] PEP 471 implementation: os.scandir() directory scanning function

2015-02-05 Thread Ben Hoyt

Ben Hoyt added the comment:

Victor, I'd love to push forward with this (I doubt it's going to make alpha 1 
on February 8, but hopefully alpha 2 on March 8).

It seems pretty settled that we need to use the all-C version I've created, 
especially for Linux.

Can you please review scandir-2.patch? It's on Rietveld here: 
http://bugs.python.org/review/22524/#ps13104

You can see what changed between scandir-1.patch and scandir-2.patch more 
easily here: 
https://github.com/benhoyt/scandir/commit/d4e2d7083319ed8988aef6ed02d670fb36a00a33

Also, here is just the scandir C code in its own file: 
https://github.com/benhoyt/scandir/blob/d4e2d7083319ed8988aef6ed02d670fb36a00a33/posixmodule_scandir_main.c

One other open question is: should it go into CPython's posixmodule.c as I have 
it in the patch, or should I try to separate it out?

--

___
Python tracker 

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



[issue18932] Optimize selectors.EpollSelector.modify()

2015-02-05 Thread Giampaolo Rodola'

Giampaolo Rodola' added the comment:

Yes, it appears so. I would suggest to come up with a patch which overrides 
modify() for all those selectors which can benefit from it (poll, epoll, 
kqueue) and refactor register() / unregister() (for select) in a separate issue 
/ patch. Also, I suppose a couple of tests should be added (if not there 
already) in order to make sure that 'events' and 'data' arguments get actually 
changed in different situations.

--

___
Python tracker 

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



[issue18932] Optimize selectors.EpollSelector.modify()

2015-02-05 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' :


--
stage:  -> needs patch
type:  -> performance

___
Python tracker 

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



[issue23212] Update Windows and OS X installer copies of OpenSSL to 1.0.1l

2015-02-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 7b74c65758ca by Ned Deily in branch '2.7':
Issue #23212: Update OS X installer build OpenSSL to 1.0.1l.
https://hg.python.org/cpython/rev/7b74c65758ca

New changeset 1ddf68f118c7 by Ned Deily in branch '3.4':
Issue #23212: Update OS X installer build OpenSSL to 1.0.1l.
https://hg.python.org/cpython/rev/1ddf68f118c7

New changeset aeba7274d68a by Ned Deily in branch 'default':
Issue #23212: merge from 3.4
https://hg.python.org/cpython/rev/aeba7274d68a

--

___
Python tracker 

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



[issue23212] Update Windows and OS X installer copies of OpenSSL to 1.0.1l

2015-02-05 Thread Ned Deily

Changes by Ned Deily :


--
resolution:  -> fixed
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 

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



[issue22735] Fix various crashes exposed through mro() customization

2015-02-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 6384c0cd3b2d by Benjamin Peterson in branch '3.4':
fix many custom mro() edge cases and improve code quality (#22735)
https://hg.python.org/cpython/rev/6384c0cd3b2d

New changeset 75fd0bd89eef by Benjamin Peterson in branch 'default':
merge 3.4 (#22735)
https://hg.python.org/cpython/rev/75fd0bd89eef

--
nosy: +python-dev

___
Python tracker 

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



[issue2786] Names in traceback should have class names, if they're methods

2015-02-05 Thread Daniil Bondarev

Daniil Bondarev added the comment:

As long as you think It fits into your issue, I'm ok with adding this patch to 
it (: it's different files, so no conflicts. Should I just add this patch to 
your ticket?

--

___
Python tracker 

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



[issue23260] Update Windows installer

2015-02-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e7dbef447157 by Steve Dower in branch 'default':
Issue #23260: Update Windows installer
https://hg.python.org/cpython/rev/e7dbef447157

--
nosy: +python-dev

___
Python tracker 

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



[issue23260] Update Windows installer

2015-02-05 Thread Steve Dower

Steve Dower added the comment:

Got about as many reviews as I expected, but the builds have been going fine 
and I want this checked in before alpha, so in it goes :)

--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue23392] Add tests for marshal FILE* API

2015-02-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e55f955659bc by Serhiy Storchaka in branch '2.7':
Issue #23392: Added tests for marshal C API that works with FILE*.
https://hg.python.org/cpython/rev/e55f955659bc

New changeset 05153851d1d6 by Serhiy Storchaka in branch '3.4':
Issue #23392: Added tests for marshal C API that works with FILE*.
https://hg.python.org/cpython/rev/05153851d1d6

New changeset 7f22813496de by Serhiy Storchaka in branch 'default':
Issue #23392: Added tests for marshal C API that works with FILE*.
https://hg.python.org/cpython/rev/7f22813496de

--
nosy: +python-dev

___
Python tracker 

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



[issue22765] Fixes for test_gdb (first frame address, entry values)

2015-02-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 30e6c8caa5b9 by Serhiy Storchaka in branch '3.4':
Issue #23881: Only use entry-values with gdb 7.4 in tests.
https://hg.python.org/cpython/rev/30e6c8caa5b9

New changeset 981e108039f1 by Serhiy Storchaka in branch 'default':
Issue #23881: Only use entry-values with gdb 7.4 in tests.
https://hg.python.org/cpython/rev/981e108039f1

New changeset cee39701b280 by Serhiy Storchaka in branch '2.7':
Issue #23881: Only use entry-values with gdb 7.4 in tests.
https://hg.python.org/cpython/rev/cee39701b280

--

___
Python tracker 

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



[issue22765] Fixes for test_gdb (first frame address, entry values)

2015-02-05 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Actually this is #23381, not #23881.

--

___
Python tracker 

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



[issue23381] Python 2.7.9+ test_gdb regression on Ubuntu 10.04

2015-02-05 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I provided similar patch in issue22765, but your patch looks more clear. 
Committed in 30e6c8caa5b9, 981e108039f1, and cee39701b280. Thanks for your 
patch Vinson.

--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed
versions: +Python 3.4, Python 3.5

___
Python tracker 

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



[issue22765] Fixes for test_gdb (first frame address, entry values)

2015-02-05 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue20416] Marshal: performance regression with versions 3 and 4

2015-02-05 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

What are your thoughts Victor?

--
title: Marshal: special case int and float, don't use references -> Marshal: 
performance regression with versions 3 and 4

___
Python tracker 

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



[issue23392] Add tests for marshal FILE* API

2015-02-05 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue19884] Importing readline produces erroneous output

2015-02-05 Thread Vinson Lee

Changes by Vinson Lee :


--
nosy: +vlee

___
Python tracker 

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