[Python-Dev] No tags in semi-official github mirror of cpython repository.

2015-05-15 Thread INADA Naoki
Hi. I foud "semi official github mirror" of cpython. https://github.com/python/cpython I want to use it as upstream of our project (Translating docs in Japanese). But it doesn't have tags. Is the repository stable enough for forking project like us? Or should we use mercurial? Could you mirror t

Re: [Python-Dev] Python-versus-CPython question for __mul__ dispatch

2015-05-15 Thread Nathaniel Smith
On Thu, May 14, 2015 at 11:53 PM, Nathaniel Smith wrote: > On Thu, May 14, 2015 at 9:29 PM, Guido van Rossum wrote: >> I expect you can make something that behaves like list by defining __mul__ >> and __rmul__ and returning NotImplemented. > > Hmm, it's fairly tricky, and part of the trick is tha

[Python-Dev] Scandir module's C code updated to Python 3.5 code

2015-05-15 Thread Ben Hoyt
Hi folks, With os.scandir() now in the Python 3.5 stdlib, I just thought I'd let folks know that I've released the scandir module version 1.0. So this is now basically a copy-n-paste of the C code that went into CPython 3.5's posixmodule.c with the necessary changes to make it work or Python 2.x (

Re: [Python-Dev] Minimal async event loop and async utilities (Was: PEP 492: async/await in Python; version 4)

2015-05-15 Thread PJ Eby
On Mon, May 11, 2015 at 6:05 PM, Guido van Rossum wrote: > OTOH you may look at micropython's uasyncio -- IIRC it doesn't have Futures > and it definitely has I/O waiting. Here's a sketch of an *extremely* minimal main loop that can do I/O without Futures, and might be suitable as a PEP example.

Re: [Python-Dev] cpython: inspect: Add __slots__ to BoundArguments.

2015-05-15 Thread Yury Selivanov
There are pickle tests for all signature related classes (all protocols for BoundArguments, Signature and Parameter). This patch ensures that old pickled BoundArguments will be unpickled without a problem in 3.5. Yury On 2015-05-15 7:57 AM, Antoine Pitrou wrote: On Fri, 15 May 2015 09:28:07

Re: [Python-Dev] cpython: inspect: Add __slots__ to BoundArguments.

2015-05-15 Thread Yury Selivanov
No, it does not. I implemented __getstate__/__setstate__ specifically to maintain backwards compatibility (I also tested it). Yury On 2015-05-15 2:28 AM, Serhiy Storchaka wrote: On 14.05.15 00:38, yury.selivanov wrote: https://hg.python.org/cpython/rev/ee31277386cb changeset: 96038:ee3127

[Python-Dev] Summary of Python tracker Issues

2015-05-15 Thread Python tracker
ACTIVITY SUMMARY (2015-05-08 - 2015-05-15) Python tracker at http://bugs.python.org/ To view or respond to any of the issues listed below, click on the issue. Do NOT respond to this message. Issues counts and deltas: open4840 ( +2) closed 31123 (+54) total 35963 (+56) Open issues wit

Re: [Python-Dev] cpython: inspect: Add __slots__ to BoundArguments.

2015-05-15 Thread Antoine Pitrou
On Fri, 15 May 2015 09:28:07 +0300 Serhiy Storchaka wrote: > On 14.05.15 00:38, yury.selivanov wrote: > > https://hg.python.org/cpython/rev/ee31277386cb > > changeset: 96038:ee31277386cb > > user:Yury Selivanov > > date:Wed May 13 17:18:41 2015 -0400 > > summary: > >inspect: