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

2015-05-24 Thread Chris Barker
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? I'm going through PEP 7, and cleaned up the docstring a bit: diff -r 15af4f58d143 Modules/mathmodule.c --- a/Modules/mathmodule.c Sun May 24 22:27:00 2015 -0700 +++

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

2015-05-24 Thread Tal Einat
On Mon, May 25, 2015 at 7:53 AM, Chris Barker wrote: > I don't think I have permissions to comment on the issue,so I'm posting > here. If there is a way for me to post to the issue, someone let me know... You just need to register on the issue tracker. On bugs.python.org, there is a "register" li

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

2015-05-24 Thread Chris Barker
I don't think I have permissions to comment on the issue,so I'm posting here. If there is a way for me to post to the issue, someone let me know... In the issue (http://bugs.python.org/issue24270) Tal wrote """ I have a question regarding complex values. The code (from Chris Barker) doesn't suppo

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

2015-05-24 Thread Larry Hastings
On 05/24/2015 06:01 PM, Chris Angelico wrote: Additional Q. What does this mean for buildbots? Will they immediately pick up the new branch? I don't know about "immediately", but yes the buildbots should get configured to point at the 3.5 branch, preferably soon. //arry/ _

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

2015-05-24 Thread Ned Deily
In article <20150525001522.GA30305@piedra>, Zero Piraeus wrote: > On Sun, May 24, 2015 at 04:39:00PM -0700, Larry Hastings wrote: > > You can find Python 3.5.0b1 here: > >https://www.python.org/downloads/release/python-350b1/ > Source tarballs (both .tgz and .tar.xz) are missing ... They see

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

2015-05-24 Thread Chris Angelico
On Mon, May 25, 2015 at 9:49 AM, Larry Hastings wrote: > I've now pushed the 3.5.0 beta 1 release-engineering checkins to > hg.python.org. At the same time I did this, I also created the 3.5 branch. > > Quick FAQ: Additional Q. What does this mean for buildbots? Will they immediately pick up the

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

2015-05-24 Thread Zero Piraeus
: On Sun, May 24, 2015 at 04:39:00PM -0700, Larry Hastings wrote: > > You can find Python 3.5.0b1 here: > >https://www.python.org/downloads/release/python-350b1/ Source tarballs (both .tgz and .tar.xz) are missing ... -[]z. -- Zero Piraeus: vive ut vivas http://etiol.net/pubkey.asc

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

2015-05-24 Thread Eric Snow
On May 24, 2015 4:52 PM, "Nick Coghlan" wrote: > > > On 25 May 2015 07:26, "Guido van Rossum" wrote: > > > > On Sun, May 24, 2015 at 1:36 PM, Eric Snow wrote: > >> If you still think that's not enough justification then we can table __definition_order__ for now. > > > > > > Let's table it. It's

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

2015-05-24 Thread Larry Hastings
I've now pushed the 3.5.0 beta 1 release-engineering checkins to hg.python.org. At the same time I did this, I also created the 3.5 branch. Quick FAQ: Q: Where should I check in bugfixes for 3.5? A: In the "3.5" branch. You should also merge them forward into "default". Q: Where should I

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

2015-05-24 Thread Larry Hastings
On behalf of the Python development community and the Python 3.5 release team, I'm pleased to announce the availability of Python 3.5.0b1. Python 3.5 has now entered "feature freeze". By default new features may no longer be added to Python 3.5. (However, there are a handful of features tha

Re: [Python-Dev] An yocto change proposal in logging module to simplify structured logs support

2015-05-24 Thread Terry Reedy
Please post your idea to the python-ideas list. -- Terry Jan Reedy ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-arc

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

2015-05-24 Thread Nick Coghlan
On 25 May 2015 07:26, "Guido van Rossum" wrote: > > On Sun, May 24, 2015 at 1:36 PM, Eric Snow wrote: >> >> My premise for storing the definition order on the class is that Guido was okay with using OrderedDict for cls.__dict__, which is a bigger change. Regardless, there are two reasons why it

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

2015-05-24 Thread Guido van Rossum
On Sun, May 24, 2015 at 1:36 PM, Eric Snow wrote: > On May 24, 2015 3:35 AM, "Nick Coghlan" wrote: > > Is it specifically necessary to save the order by default? Metaclasses > > would be able to access the ordered namespace in their __new__ method > > regardless, and for 3.6, I still like the _

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

2015-05-24 Thread Eric Snow
On May 24, 2015 3:35 AM, "Nick Coghlan" wrote: > Is it specifically necessary to save the order by default? Metaclasses > would be able to access the ordered namespace in their __new__ method > regardless, and for 3.6, I still like the __init_subclass__ hook idea > proposed in PEP 487, which inclu

Re: [Python-Dev] [python-committers] Reminder: Python 3.5 beta 1 will be tagged tomorrow

2015-05-24 Thread Chris Barker
On Sun, May 24, 2015 at 10:00 AM, Tal Einat wrote: > On Sun, May 24, 2015 at 6:40 PM, Chris Barker > wrote: > > What do folks think about adding one to cmath as well, while we are at > it? > > It should be pretty straightforward -- I could focus what time I have to > do > > that. > > I prefer fo

[Python-Dev] An yocto change proposal in logging module to simplify structured logs support

2015-05-24 Thread Ludovic Gasc
Hi, 1. The problem For now, when you want to write a log message, you concatenate the data from your context to generate a string: In fact, you convert your structured data to a string. When a sysadmin needs to debug your logs when something is wrong, he must write regular expressions to extract

Re: [Python-Dev] [python-committers] Reminder: Python 3.5 beta 1 will be tagged tomorrow

2015-05-24 Thread Tal Einat
On Sun, May 24, 2015 at 6:40 PM, Chris Barker wrote: > > What do folks think about adding one to cmath as well, while we are at it? > It should be pretty straightforward -- I could focus what time I have to do > that. I prefer focusing on getting math.isclose() in before tackling cmath.isclose(),

Re: [Python-Dev] [python-committers] Reminder: Python 3.5 beta 1 will be tagged tomorrow

2015-05-24 Thread Chris Barker
On Sun, May 24, 2015 at 4:40 AM, Tal Einat wrote: > > I filed http://bugs.python.org/issue24270 to track this, but there's a > > fair bit of work to be done to integrate the changes into the existing > > math module's code, tests and documentation. > > Done. Patch attached to the issue. Awaiting

Re: [Python-Dev] [python-committers] Reminder: Python 3.5 beta 1 will be tagged tomorrow

2015-05-24 Thread Tal Einat
On Sat, May 23, 2015 at 4:25 PM, Nick Coghlan wrote: > On 23 May 2015 at 19:29, Tal Einat wrote: >> On Sat, May 23, 2015 at 1:34 AM, Berker Peksağ >> wrote: >>> >>> * The C implementation should be in Modules/mathmodule.c >>> * Tests should be in Lib/test/test_math.py >>> * Documentation should

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

2015-05-24 Thread Nick Coghlan
On 24 May 2015 at 19:44, Mark Shannon wrote: > On 24/05/15 10:35, Nick Coghlan wrote: >> If we leave __definition_order__ out for the time being then, for the >> vast majority of code, the fact that the ephemeral namespace used to >> evaluate the class body switched from being a basic dictionary t

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

2015-05-24 Thread Mark Shannon
On 24/05/15 10:35, Nick Coghlan wrote: On 24 May 2015 at 15:53, Eric Snow wrote: On May 23, 2015 10:47 PM, "Guido van Rossum" wrote: How will __definition_order__ be set in the case where __prepare__ doesn't return an OrderedDict? Or where a custom metaclass's __new__ calls its superclass

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

2015-05-24 Thread Nick Coghlan
On 24 May 2015 at 15:53, Eric Snow wrote: > > On May 23, 2015 10:47 PM, "Guido van Rossum" wrote: >> >> How will __definition_order__ be set in the case where __prepare__ doesn't >> return an OrderedDict? Or where a custom metaclass's __new__ calls its >> superclass's __new__ with a plain dict? (