Re: [Python-Dev] Python parser performance optimizations

2016-05-29 Thread Steven D'Aprano
On Thu, May 26, 2016 at 10:19:05AM +, Artyom Skrobov wrote: [...] > The motivation for this patch was to enable a memory footprint > optimization, discussed at http://bugs.python.org/issue26415 My > proposed optimization reduces the memory footprint by up to 30% on the > standard

Re: [Python-Dev] Adding NewType() to PEP 484

2016-05-29 Thread Fred Drake
On Sun, May 29, 2016 at 4:53 PM, Guido van Rossum wrote: > I am currently in favor of Distinct Type [Alias]. I actually like distinguished type better: A = typing.distinguish("A", int) -Fred -- Fred L. Drake, Jr. "A storm broke loose in my mind." --Albert

Re: [Python-Dev] Adding NewType() to PEP 484

2016-05-29 Thread Guido van Rossum
On Sun, May 29, 2016 at 4:08 PM, Oscar Benjamin wrote: > > On 28 May 2016 00:03, "Guido van Rossum" wrote: >> >> Also -- the most important thing. :-) What to call these things? We're >> pretty much settled on the semantics and how to create them

Re: [Python-Dev] Adding NewType() to PEP 484

2016-05-29 Thread Guido van Rossum
On Sun, May 29, 2016 at 12:07 PM, Jelle Zijlstra wrote: > > > 2016-05-27 16:01 GMT-07:00 Guido van Rossum : >> >> Also -- the most important thing. :-) What to call these things? We're >> pretty much settled on the semantics and how to create them

Re: [Python-Dev] Adding NewType() to PEP 484

2016-05-29 Thread Oscar Benjamin
On 28 May 2016 00:03, "Guido van Rossum" wrote: > > Also -- the most important thing. :-) What to call these things? We're > pretty much settled on the semantics and how to create them (A = > NewType('A', int)) but what should we call types like A when we're > talking about

Re: [Python-Dev] New hash algorithms: SHA3, SHAKE, BLAKE2, truncated SHA512

2016-05-29 Thread Christian Heimes
On 2016-05-28 23:51, Victor Stinner wrote: > Python 3.5 requires a 64 bit signed integer to build. Search for _PyTime > type in pytime.h ;-) Awesome! Thanks :) ___ Python-Dev mailing list Python-Dev@python.org

Re: [Python-Dev] Adding NewType() to PEP 484

2016-05-29 Thread Jelle Zijlstra
2016-05-27 16:01 GMT-07:00 Guido van Rossum : > Also -- the most important thing. :-) What to call these things? We're > pretty much settled on the semantics and how to create them (A = > NewType('A', int)) but what should we call types like A when we're > talking about

Re: [Python-Dev] Adding NewType() to PEP 484

2016-05-29 Thread Terry Reedy
On 5/29/2016 12:57 PM, jon wrote: The aspects we want to capture in a name or adjective for these types are: a) The types have identical implementations or definitions. b) They are distinct types. I think “Distinguished Type” or”Cloned Type” best captures these qualities. 'Cloned Type'

Re: [Python-Dev] Adding NewType() to PEP 484

2016-05-29 Thread jon
The aspects we want to capture in a name or adjective for these types are: a) The types have identical implementations or definitions. b) They are distinct types. I think “Distinguished Type” or”Cloned Type” best captures these qualities. I think the following also capture the quality, but

Re: [Python-Dev] New hash algorithms: SHA3, SHAKE, BLAKE2, truncated SHA512

2016-05-29 Thread M.-A. Lemburg
On 28.05.2016 23:13, Christian Heimes wrote: > On 2016-05-27 14:41, M.-A. Lemburg wrote: >> On 27.05.2016 22:58, Ryan Gonzalez wrote: >>> On May 27, 2016 3:04 PM, "Victor Stinner" wrote: Le vendredi 27 mai 2016, M.-A. Lemburg a écrit : >

Re: [Python-Dev] New hash algorithms: SHA3, SHAKE, BLAKE2, truncated SHA512

2016-05-29 Thread Victor Stinner
Python 3.5 requires a 64 bit signed integer to build. Search for _PyTime type in pytime.h ;-) ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: