Re: [Python-ideas] Please consider adding of functions file system operations to pathlib

2018-02-20 Thread Michel Desmoulin
+1 We already merged, os.path and glob with pathlib. Let's do all os and shutil. It's weird enough for beginners to even sumble upon that many ways of doing thing for FS. Le 20/02/2018 à 23:11, George Fischhof a écrit : > Good day all, > > as a continuation of thread "OS related file

Re: [Python-ideas] Boolean ABC similar to what's provided in the 'numbers' module

2018-02-20 Thread Terry Reedy
On 2/20/2018 12:06 PM, Guido van Rossum wrote: Looking at https://en.wikipedia.org/wiki/Number it seems that Integer is "special" -- every other number type is listed as " numbers" (e.g. rational numbers, complex numbers) but integers are listed as "Integers". So let's just switch it to that,

Re: [Python-ideas] Boolean ABC similar to what's provided in the 'numbers' module

2018-02-20 Thread Greg Ewing
On Mon, Feb 19, 2018 at 5:58 AM, Sylvain MARIE > wrote: By the way, is there a reason for the name "Integral" (algebraic theory) instead of "Integer" (computer science) ? Would it be practically

Re: [Python-ideas] Boolean ABC similar to what's provided in the 'numbers' module

2018-02-20 Thread Sylvain MARIE
https://bugs.python.org/issue32886 created. Don't hesitate to correct if anything is wrong in the text or associated tags Sylvain -Message d'origine- De : Stephen J. Turnbull [mailto:turnbull.stephen...@u.tsukuba.ac.jp] Envoyé : mardi 20 février 2018 06:53 À : gu...@python.org Cc :

Re: [Python-ideas] Why CPython is still behind in performance for some widely used patterns ?

2018-02-20 Thread Nick Coghlan
On 21 February 2018 at 08:40, Guido van Rossum wrote: > On Tue, Feb 20, 2018 at 12:54 PM, Barnstone Worthy > wrote: > > I'm pretty sure that's an alias for Barry Warsaw. :-) Different Barry :) I've expanded the existing issue at

Re: [Python-ideas] Why CPython is still behind in performance for some widely used patterns ?

2018-02-20 Thread Guido van Rossum
On Tue, Feb 20, 2018 at 12:54 PM, Barnstone Worthy wrote: I'm pretty sure that's an alias for Barry Warsaw. :-) -- --Guido van Rossum (python.org/~guido) ___ Python-ideas mailing list Python-ideas@python.org

[Python-ideas] Please consider adding of functions file system operations to pathlib

2018-02-20 Thread George Fischhof
Good day all, as a continuation of thread "OS related file operations (copy, move, delete, rename...) should be placed into one module" https://mail.python.org/pipermail/python-ideas/2017-January/044217.html please consider making pathlib to a central file system module with putting file

Re: [Python-ideas] Why CPython is still behind in performance for some widely used patterns ?

2018-02-20 Thread Barry
> On 20 Feb 2018, at 13:12, Nick Coghlan wrote: > >> On 20 February 2018 at 16:17, Antoine Pitrou wrote: >> On Mon, 19 Feb 2018 20:15:27 +0100 >> Stefan Behnel wrote: >>> Nick Coghlan schrieb am 02.02.2018 um 06:47: to make

Re: [Python-ideas] importlib: making FileFinder easier to extend

2018-02-20 Thread Brett Cannon
Basically what you're after is a way to extend the default finder with a new file type. Historically you didn't want this because of the performance hit of the extra stat call to check that new file extension (this has been greatly alleviated in Python 3 through the caching of directory contents).

Re: [Python-ideas] Boolean ABC similar to what's provided in the 'numbers' module

2018-02-20 Thread Guido van Rossum
Looking at https://en.wikipedia.org/wiki/Number it seems that Integer is "special" -- every other number type is listed as " numbers" (e.g. rational numbers, complex numbers) but integers are listed as "Integers". So let's just switch it to that, and keep Integral as an alias for backwards

Re: [Python-ideas] Why CPython is still behind in performance for some widely used patterns ?

2018-02-20 Thread Nick Coghlan
On 20 February 2018 at 16:17, Antoine Pitrou wrote: > On Mon, 19 Feb 2018 20:15:27 +0100 > Stefan Behnel wrote: >> Nick Coghlan schrieb am 02.02.2018 um 06:47: >> > to make the various extension module authoring tools >> > easier to discover, rather than