Re: [Python-ideas] Flagging blocking functions not to be used with asyncio

2016-10-08 Thread Victor Stinner
It seems different. It looks like Tornado uses an alarm and SIGALRM, whereas asyncio only checks elapsed time and so is unable to interrupt a blocked function. Victor Le 7 oct. 2016 20:33, "Yury Selivanov" a écrit : > > > On 2016-10-07 1:31 PM, Giampaolo Rodola' wrote: > >> On Fri, Oct 7, 2016

[Python-ideas] PEP8 dictionary indenting addition

2016-10-08 Thread Jelte Fennema
I have an idea to improve indenting guidelines for dictionaries for better readability: If a value in a dictionary literal is placed on a new line, it should have (or at least be allowed to have) a n additional hanging indent. Below is an example: mydict = {'mykey': 'a very very ver

Re: [Python-ideas] PEP8 dictionary indenting addition

2016-10-08 Thread Guido van Rossum
Makes sense, maybe you can send a PR to the Python/peps repo? --Guido (mobile) On Oct 8, 2016 12:27 PM, "Jelte Fennema" wrote: > I have an idea to improve indenting guidelines for dictionaries for better > readability: If a value in a dictionary literal is placed on a new line, it > should have

Re: [Python-ideas] PEP8 dictionary indenting addition

2016-10-08 Thread Jelte Fennema
Alright, I'll make one when I have some time in the near future. On 8 Oct 2016 10:08 pm, "Guido van Rossum" wrote: > Makes sense, maybe you can send a PR to the Python/peps repo? > > --Guido (mobile) > > On Oct 8, 2016 12:27 PM, "Jelte Fennema" wrote: > >> I have an idea to improve indenting gu

Re: [Python-ideas] PEP8 dictionary indenting addition

2016-10-08 Thread Guido van Rossum
Might also send something to pystylechecker at the same time. --Guido (mobile) On Oct 8, 2016 1:23 PM, "Jelte Fennema" wrote: > Alright, I'll make one when I have some time in the near future. > > On 8 Oct 2016 10:08 pm, "Guido van Rossum" wrote: > >> Makes sense, maybe you can send a PR to th

Re: [Python-ideas] pip enhancements: check for dependent packages before uninstalling and store installation date to allow listing by it

2016-10-08 Thread Guido van Rossum
Better, try the pip tracker at https://github.com/pypa/pip/issues --Guido (mobile) On Oct 7, 2016 4:06 PM, "João Matos" wrote: > Hello, > > Ok, did that. > > Thanks, > > JM > > > On 08-10-2016 00:03, Ethan Furman wrote: > >> On 10/07/2016 10:19 AM, João Matos wrote: >> >> I believe it would be

Re: [Python-ideas] PEP8 dictionary indenting addition

2016-10-08 Thread Steven D'Aprano
On Sat, Oct 08, 2016 at 09:26:13PM +0200, Jelte Fennema wrote: > I have an idea to improve indenting guidelines for dictionaries for better > readability: If a value in a dictionary literal is placed on a new line, it > should have (or at least be allowed to have) a n additional hanging indent. >