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

2016-10-07 Thread João Matos
Hello, I believe it would be helpful if pip checked if there are any dependent packages before uninstalling a package. If there were, it should: 1. Warn the user by listing the dependent packages; 2. Require a specific option, eg. --alldeps to uninstall all dependent packages before

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

2016-10-07 Thread Guido van Rossum
On Fri, Oct 7, 2016 at 9:52 AM, Yury Selivanov wrote: > On 2016-10-07 11:16 AM, Guido van Rossum wrote: > >> Maybe a simpler approach would be to write a linter that checks for a >> known list of common blocking functions, and anything that calls those >> automatically

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

2016-10-07 Thread Giampaolo Rodola'
On Fri, Oct 7, 2016 at 6:52 PM, Yury Selivanov wrote: > On 2016-10-07 11:16 AM, Guido van Rossum wrote: > > Maybe a simpler approach would be to write a linter that checks for a >> known list of common blocking functions, and anything that calls those >> automatically

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

2016-10-07 Thread Yury Selivanov
On 2016-10-07 11:16 AM, Guido van Rossum wrote: Maybe a simpler approach would be to write a linter that checks for a known list of common blocking functions, and anything that calls those automatically gets the same property? What if somebody uses logging module and logs to a file? I think

Re: [Python-ideas] async objects

2016-10-07 Thread Nick Coghlan
On 7 October 2016 at 16:42, Nathaniel Smith wrote: > For folks who prefer the > gevent API, is it really easier to port libraries to asyncio than to > port them to gevent? It's definitely *not* easier, as gevent lets you suspend execution inside arbitrary CPython magic method

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

2016-10-07 Thread Guido van Rossum
On Fri, Oct 7, 2016 at 1:07 AM, Martin Teichmann wrote: > I am currently developing a Python library based on asyncio. > Unfortunately, not all users of my library have much experience with > asynchronous programming, so they often try to use blocking functions. > > I

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

2016-10-07 Thread Martin Teichmann
Hi list, I am currently developing a Python library based on asyncio. Unfortunately, not all users of my library have much experience with asynchronous programming, so they often try to use blocking functions. I thought it would be a good idea if we could somehow flag blocking functions in the

Re: [Python-ideas] async objects

2016-10-07 Thread Nathaniel Smith
On Thu, Oct 6, 2016 at 4:12 PM, Greg Ewing wrote: > Nathaniel Smith wrote: >> >> The core distinguishing feature between >> async/await and gevent is the visibility of suspension points, so it >> might as well be the case that async/await is designed for exactly >>