Re: [Python-Dev] Unable to build regex module against Python 3.5 32-bit

2015-05-25 Thread Paul Moore
On 26 May 2015 at 00:34, MRAB wrote: > The 32-bit Python says it's 32-bit and the 64-bit Python says it's 64-bit. > > ---8<--- > > C: > > rem Compile for Python 3.5 (64-bit) [works] > cd C:\MinGW64\bin > "C:\MinGW64\bin\gcc.exe" -mdll -m64 -DMS_WIN64 -O2 -Wall -Wsign-compare > -Wconversion -I"C:\P

Re: [Python-Dev] [Python-checkins] cpython (3.4): Issue #23840: tokenize.open() now closes the temporary binary file on error to

2015-05-25 Thread Serhiy Storchaka
On 26.05.15 08:33, Yury Selivanov wrote: On 2015-05-26 12:26 AM, Terry Reedy wrote: +try: +encoding, lines = detect_encoding(buffer.readline) +buffer.seek(0) +text = TextIOWrapper(buffer, encoding, line_buffering=True) +text.mode = 'r' +return text +

Re: [Python-Dev] [Python-checkins] cpython (3.4): Issue #23840: tokenize.open() now closes the temporary binary file on error to

2015-05-25 Thread Victor Stinner
What is wrong with "except:" in this specific case? Victor Le mardi 26 mai 2015, Yury Selivanov a écrit : > > > On 2015-05-26 12:26 AM, Terry Reedy wrote: > >> +try: >>> +encoding, lines = detect_encoding(buffer.readline) >>> +buffer.seek(0) >>> +text = TextIOWrapper

Re: [Python-Dev] [Python-checkins] cpython (3.4): Issue #23840: tokenize.open() now closes the temporary binary file on error to

2015-05-25 Thread Yury Selivanov
On 2015-05-26 12:26 AM, Terry Reedy wrote: +try: +encoding, lines = detect_encoding(buffer.readline) +buffer.seek(0) +text = TextIOWrapper(buffer, encoding, line_buffering=True) +text.mode = 'r' +return text +except: +buffer.close() +

Re: [Python-Dev] Preserving the definition order of class namespaces.

2015-05-25 Thread Eric Snow
On Mon, May 25, 2015 at 6:30 PM, Larry Hastings wrote: > Eric asked for one for this C reimplementation of OrderedDict; the coding > was done, the debugging wasn't. > > And yes, as Eric said, I made separate pronouncements. I said COrderedDict > could go in as long as it was in before beta 2; "th

Re: [Python-Dev] Preserving the definition order of class namespaces.

2015-05-25 Thread Larry Hastings
On 05/25/2015 03:22 PM, Eric Snow wrote: On Mon, May 25, 2015 at 2:40 PM, Terry Reedy wrote: On 5/25/2015 3:40 PM, Eric Snow wrote: Since Larry already gave an exception, Conditional on 'general approval of the community'. Unless I misunderstood him, Larry gave me an unconditional exceptio

Re: [Python-Dev] Preserving the definition order of class namespaces.

2015-05-25 Thread Nick Coghlan
On 26 May 2015 05:41, "Eric Snow" wrote: > > Regardless, I know there were a few folks (e.g. Yury) that wanted to > see C OrderedDict in 3.5 and there may be others that would really > like OrderedDict-by-default in 3.5 (Nick?). I think it's the combination with PEP 487 that makes OrderedDict-by-

Re: [Python-Dev] Unable to build regex module against Python 3.5 32-bit

2015-05-25 Thread MRAB
On 2015-05-25 22:59, Paul Moore wrote: > On 25 May 2015 at 21:06, MRAB wrote: > > As the subject says, I've been unable to build the regex module against > > Python 3.5b1 for 32-bit. MingGW says: > > > > skipping incompatible .../libpython35.a when searching for -lpython35 > > > > It builds

Re: [Python-Dev] Preserving the definition order of class namespaces.

2015-05-25 Thread Eric Snow
On Mon, May 25, 2015 at 2:40 PM, Terry Reedy wrote: > On 5/25/2015 3:40 PM, Eric Snow wrote: >> Since Larry already gave an exception, > > Conditional on 'general approval of the community'. Unless I misunderstood him, Larry gave me an unconditional exception for OrderedDict itself (as long as it

Re: [Python-Dev] Unable to build regex module against Python 3.5 32-bit

2015-05-25 Thread Paul Moore
On 25 May 2015 at 21:06, MRAB wrote: > As the subject says, I've been unable to build the regex module against > Python 3.5b1 for 32-bit. MingGW says: > > skipping incompatible .../libpython35.a when searching for -lpython35 > > It builds without a problem against Python 3.5 for 64-bit. > > An

Re: [Python-Dev] Preserving the definition order of class namespaces.

2015-05-25 Thread Terry Reedy
On 5/25/2015 3:40 PM, Eric Snow wrote: On Mon, May 25, 2015 at 1:33 AM, Antoine Pitrou wrote: On Sat, 23 May 2015 20:14:56 -0700 Larry Hastings wrote: Yeah, I'm willing to grant the feature freeze exception, assuming he can find general approval from the community (and assuming he still has

Re: [Python-Dev] Preserving the definition order of class namespaces.

2015-05-25 Thread Yury Selivanov
On 2015-05-25 3:40 PM, Eric Snow wrote: I'd still be glad to land both in 3.5 if Yury (or others) wants to make that case. I'm big +1 for a speedy OrderedDict in 3.5 (TBH I thought it was merged in 3.5 long before alpha-4) I doubt that merging it will add such a significant instability that we

Re: [Python-Dev] Unable to build regex module against Python 3.5 32-bit

2015-05-25 Thread MRAB
On 2015-05-25 21:09, Ryan Gonzalez wrote: > Try building the module with -m32. The error message basically means: "../libpython35.a is 32-bit, but what you're building is 64-bit." Gotta love ld! > Unless I've missing something, I'm already passing it to gcc. All of the other versions build wit

Re: [Python-Dev] Unable to build regex module against Python 3.5 32-bit

2015-05-25 Thread Ryan Gonzalez
Try building the module with -m32. The error message basically means: "../libpython35.a is 32-bit, but what you're building is 64-bit." Gotta love ld! On May 25, 2015 3:06:01 PM CDT, MRAB wrote: >As the subject says, I've been unable to build the regex module against >Python 3.5b1 for 32-bit. Mi

Re: [Python-Dev] [python-committers] Reminder: 3.5 now has its own branch! "default" branch is now 3.6!

2015-05-25 Thread Larry Hastings
On 05/25/2015 02:03 AM, Serhiy Storchaka wrote: Perhaps needed version bump in the default branch? I think now Misc/NEWS will have two modifiable sections - for 3.5 (bugfixes) and for 3.6 (new features). That's a good point! I've added a "3.6.0 alpha 1" section as you suggest. That suggests

[Python-Dev] Unable to build regex module against Python 3.5 32-bit

2015-05-25 Thread MRAB
As the subject says, I've been unable to build the regex module against Python 3.5b1 for 32-bit. MingGW says: skipping incompatible .../libpython35.a when searching for -lpython35 It builds without a problem against Python 3.5 for 64-bit. Any ideas? Should I just wait until beta 2?

Re: [Python-Dev] Preserving the definition order of class namespaces.

2015-05-25 Thread Eric Snow
On Mon, May 25, 2015 at 1:33 AM, Antoine Pitrou wrote: > On Sat, 23 May 2015 20:14:56 -0700 > Larry Hastings wrote: >> Yeah, I'm willing to grant the feature freeze exception, assuming he can >> find general approval from the community (and assuming he still has >> Guido's blessing). I just want

Re: [Python-Dev] Preserving the definition order of class namespaces.

2015-05-25 Thread Benjamin Peterson
On Mon, May 25, 2015, at 03:33, Antoine Pitrou wrote: > On Sat, 23 May 2015 20:14:56 -0700 > Larry Hastings wrote: > > > > On 05/23/2015 07:38 PM, Nick Coghlan wrote: > > > Eric clarified for me that Larry was considering granting a feature > > > freeze exemption to defer landing this to beta 2

Re: [Python-Dev] PEP 484

2015-05-25 Thread Benjamin Peterson
On Mon, May 25, 2015, at 04:02, Mike Kozulya wrote: > May I suggest to eliminate "->" in function definition? > > def function1 (variable1: variable1_type, variable2: > variable2_type): function1_type > return str2function1_type(str(variable1)+str(' > ')+str(variable2)) >

Re: [Python-Dev] [RELEASED] Python 3.5.0b1 is now available

2015-05-25 Thread Zero Piraeus
: On Sun, May 24, 2015 at 06:03:50PM -0700, Ned Deily wrote: > Zero Piraeus wrote: > > Source tarballs (both .tgz and .tar.xz) are missing ... > > They seem to be there now. Are you still not able to download them? Oops. Both Larry's reply to me and my thankyou to him turn out to have been off

[Python-Dev] PEP 484

2015-05-25 Thread Mike Kozulya
May I suggest to eliminate "->" in function definition? def function1 (variable1: variable1_type, variable2: variable2_type): function1_type return str2function1_type(str(variable1)+str(' ')+str(variable2)) OR def function1: function1_type (variable1: variable1_type, variable

Re: [Python-Dev] PEP 485: math.isclose()

2015-05-25 Thread Tal Einat
On Mon, May 25, 2015 at 9:45 AM, Chris Barker wrote: > And a few comments on the patch ( I have not idea how to patch a patch...) > Is there a branch somewhere with this patch applied? Not at the moment. But if you click the "review" link next to the patch on the tracker then you can leave commen

Re: [Python-Dev] Preserving the definition order of class namespaces.

2015-05-25 Thread Antoine Pitrou
On Sat, 23 May 2015 20:14:56 -0700 Larry Hastings wrote: > > On 05/23/2015 07:38 PM, Nick Coghlan wrote: > > Eric clarified for me that Larry was considering granting a feature > > freeze exemption to defer landing this to beta 2 while Eric tracked > > down a segfault bug in the current patch tha