Re: [Python-Dev] Sub-claasing pathlib.Path seems impossible

2015-05-03 Thread Guido van Rossum
It does sound like subclassing Path should be made easier. On Sat, May 2, 2015 at 1:30 PM, Ryan Gonzalez wrote: > http://stackoverflow.com/a/29880095/2097780 > > My favorite thing about Python is that it's so easy to be evil. ;) > > > On Fri, May 1, 2015 at 2:30 PM, Christophe Bal > wrote: > >>

Re: [Python-Dev] PEP 492: async/await in Python; version 4

2015-05-03 Thread Steven D'Aprano
On Fri, May 01, 2015 at 09:24:47PM +0100, Arnaud Delobelle wrote: > I'm not convinced that allowing an object to be both a normal and an > async iterator is a good thing. It could be a recipe for confusion. In what way? I'm thinking that the only confusion would be if you wrote "async for" ins

Re: [Python-Dev] PEP 492 quibble and request

2015-05-03 Thread Arnaud Delobelle
On 1 May 2015 at 20:59, Guido van Rossum wrote: > On Fri, May 1, 2015 at 12:49 PM, Ron Adam wrote: >> >> >> Another useful async function might be... >> >>async def yielding(): >>pass >> >> In a routine is taking very long time, just inserting "await yielding()" >> in the long calcula

Re: [Python-Dev] Sub-claasing pathlib.Path seems impossible

2015-05-03 Thread Ryan Gonzalez
http://stackoverflow.com/a/29880095/2097780 My favorite thing about Python is that it's so easy to be evil. ;) On Fri, May 1, 2015 at 2:30 PM, Christophe Bal wrote: > Hello. > > In this post >