Re: [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, 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 helpful if pip checked if there are any dependent packages before uninstalling a package. Seems like a good idea, but you'll need to suggest it at

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

2016-10-07 Thread Ethan Furman
On 10/07/2016 10:19 AM, João Matos wrote: I believe it would be helpful if pip checked if there are any dependent packages before uninstalling a package. Seems like a good idea, but you'll need to suggest it at distutils-...@python.org as that is where pip is developed. -- ~Ethan~ __

[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 uninsta

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

2016-10-07 Thread Yury Selivanov
On 2016-10-07 1:31 PM, Giampaolo Rodola' wrote: 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

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 gets the same property? > >

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 gets the same property? >> >

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 t

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 calls. That's why yo

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 thought it would be a good id

Re: [Python-ideas] Add "equal" builtin function

2016-10-07 Thread Nick Coghlan
On 6 October 2016 at 23:45, Filipp Bakanov wrote: > For now there are many usefull builtin functions like "any", "all", etc. I'd > like to propose a new builtin function "equal". It should accept iterable, > and return True if all items in iterable are the same or iterable is emty. If the items a

[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 st