Re: [Python-Dev] (some) C99 added to PEP 7

2016-09-08 Thread Random832
On Thu, Sep 8, 2016, at 16:01, Chris Barker wrote: > Is there a "long" in there anywhere in the integer implementation? The python 2 long type is the python 3 int type. The python 2 int type is gone. > I don't have py3 running on win64 anywhere right now, but in win64 py2, > that would give you:

Re: [Python-Dev] (some) C99 added to PEP 7

2016-09-08 Thread Guido van Rossum
Can you guys get a room? There is absolutely no reason that all of python-dev needs to hear this. On Thu, Sep 8, 2016 at 1:35 PM, Steve Dower wrote: > On 08Sep2016 1301, Chris Barker wrote: >> >> On Thu, Sep 8, 2016 at 9:39 AM, Random832 > > wrote: >> >> You're

Re: [Python-Dev] (some) C99 added to PEP 7

2016-09-08 Thread Steve Dower
On 08Sep2016 1301, Chris Barker wrote: On Thu, Sep 8, 2016 at 9:39 AM, Random832 mailto:random...@fastmail.com>> wrote: You're talking about changing Py_ssize_t, right? wouldn't that be the pointer size? Is there a "long" in there anywhere in the integer implementation? [SNIP] Does py3 al

Re: [Python-Dev] (some) C99 added to PEP 7

2016-09-08 Thread Chris Barker
On Thu, Sep 8, 2016 at 9:39 AM, Random832 wrote: > You're talking about changing Py_ssize_t, right? > wouldn't that be the pointer size? Is there a "long" in there anywhere in the integer implementation? My example is this: on OS-X, py3.5: import numpy as np In [9]: arr = np.array([1,2,3])

Re: [Python-Dev] (some) C99 added to PEP 7

2016-09-08 Thread Chris Angelico
On Fri, Sep 9, 2016 at 2:39 AM, Random832 wrote: > On Thu, Sep 8, 2016, at 12:30, Chris Barker wrote: >> That's why I said "based on" -- under the hood, a C type is used, and >> IIUC, that type has been "long" for ages. And a long on Windows 64 >> (with the MS compiler anyway) is 32 bit, and a lon

Re: [Python-Dev] (some) C99 added to PEP 7

2016-09-08 Thread Random832
On Thu, Sep 8, 2016, at 12:30, Chris Barker wrote: > That's why I said "based on" -- under the hood, a C type is used, and > IIUC, that type has been "long" for ages. And a long on Windows 64 > (with the MS compiler anyway) is 32 bit, and a long on *nix (with the > gnu compilers, at least) is 64 bi

Re: [Python-Dev] (some) C99 added to PEP 7

2016-09-08 Thread Chris Barker
On Thu, Sep 8, 2016 at 9:17 AM, Benjamin Peterson wrote: > > Does this mean that we might be able to have the built-in integer be > > based > > on int64_t now? so Windows64 and *nix64 will be the same? > > The builtin integer type (in Python 3) is variable length. > indeed it is -- py2.7 also??

Re: [Python-Dev] (some) C99 added to PEP 7

2016-09-08 Thread Benjamin Peterson
On Thu, Sep 8, 2016, at 09:09, Chris Barker wrote: > > > - Standard integer types in and > > > > > > Yes, I will clarify we require the fixed-width types. > > > Does this mean that we might be able to have the built-in integer be > based > on int64_t now? so Windows64 and *nix64 wil

Re: [Python-Dev] (some) C99 added to PEP 7

2016-09-08 Thread Chris Barker
> > - Standard integer types in and > > Yes, I will clarify we require the fixed-width types. Does this mean that we might be able to have the built-in integer be based on int64_t now? so Windows64 and *nix64 will be the same? - CHB -- Christopher Barker, Ph.D. Oceanographer Em

Re: [Python-Dev] (some) C99 added to PEP 7

2016-09-07 Thread Benjamin Peterson
On Wed, Sep 7, 2016, at 15:58, Martin Panter wrote: > Thank you very much Benjamin. > > On 7 September 2016 at 17:56, Benjamin Peterson > wrote: > > To conclude our discussion about using C99 features, I've updated PEP 7 > > to allow the following features: > > - Standard integer types in

Re: [Python-Dev] (some) C99 added to PEP 7

2016-09-07 Thread Martin Panter
Thank you very much Benjamin. On 7 September 2016 at 17:56, Benjamin Peterson wrote: > To conclude our discussion about using C99 features, I've updated PEP 7 > to allow the following features: > - Standard integer types in and Perhaps PEP 7 should clarify if the optional types like ui

Re: [Python-Dev] (some) C99 added to PEP 7

2016-09-07 Thread Benjamin Peterson
One more thing I forgot: C++-style line comments are kosher, too. On Wed, Sep 7, 2016, at 10:56, Benjamin Peterson wrote: > To conclude our discussion about using C99 features, I've updated PEP 7 > to allow the following features: > - Standard integer types in and > - ``static inline`` f

Re: [Python-Dev] (some) C99 added to PEP 7

2016-09-07 Thread Ryan Gonzalez
Wonder if it's ever segfaulted... ...hey, I just figured out why we got Python 3! ;) -- Ryan [ERROR]: Your autotools build scripts are 200 lines longer than your program. Something’s wrong. http://kirbyfan64.github.io/ On Sep 7, 2016 2:02 PM, "Antoine Pitrou" wrote: > On Wed, 7 Sep 2016 11:

Re: [Python-Dev] (some) C99 added to PEP 7

2016-09-07 Thread Antoine Pitrou
On Wed, 7 Sep 2016 11:53:14 -0700 Guido van Rossum wrote: > W00t! I will have to rewrite my brain. :-) ... Is your brain coded in C89? > > On Wed, Sep 7, 2016 at 11:07 AM, Victor Stinner > wrote: > > 2016-09-07 10:56 GMT-07:00 Benjamin Peterson : > >> To conclude our discussion about using

Re: [Python-Dev] (some) C99 added to PEP 7

2016-09-07 Thread Guido van Rossum
W00t! I will have to rewrite my brain. :-) On Wed, Sep 7, 2016 at 11:07 AM, Victor Stinner wrote: > 2016-09-07 10:56 GMT-07:00 Benjamin Peterson : >> To conclude our discussion about using C99 features, I've updated PEP 7 >> to allow the following features: >> - Standard integer types in and

Re: [Python-Dev] (some) C99 added to PEP 7

2016-09-07 Thread Victor Stinner
2016-09-07 10:56 GMT-07:00 Benjamin Peterson : > To conclude our discussion about using C99 features, I've updated PEP 7 > to allow the following features: > - Standard integer types in and > - ``static inline`` functions > - designated initializers > - intermingled declarations > - boole

[Python-Dev] (some) C99 added to PEP 7

2016-09-07 Thread Benjamin Peterson
To conclude our discussion about using C99 features, I've updated PEP 7 to allow the following features: - Standard integer types in and - ``static inline`` functions - designated initializers - intermingled declarations - booleans I've been adding examples of these to 3.6 over the last