[issue29381] Tutorial documentation contains undefined reference to #!

2017-01-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: I would only post this to 2.7, 3.6 and 3.7. Also, no Misc/NEWS entry is needed. -- versions: -Python 3.4, Python 3.5 ___ Python tracker

Re: Overriding True and False ?

2017-01-30 Thread Ian Kelly
On Jan 30, 2017 6:07 PM, "Steve D'Aprano" wrote: > Hey Ian, > > Your news reader or mail client has stopped quoting the text you are > quoting, so it appears as if you have written it. > > See: > > https://mail.python.org/pipermail/python-list/2017-January/719015.html

[issue27200] make doctest in CPython has failures

2017-01-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: Also, please make this 3.7 only. There is no point in going back in time unless an example is found that is actually broken. -- priority: normal -> low versions: -Python 2.7, Python 3.5, Python 3.6 ___ Python

[issue15373] copy.copy() does not properly copy os.environment

2017-01-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: That patch would be fine except that I really agree with Antoine that an error should be raised. -- ___ Python tracker

[issue29390] Python Tutorial should introduce iterators and generators

2017-01-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: IMO, the iterators are introduced at the correct point. There are many topics that one could argue should be introduced early, but of course they can't all go earlier (classes should be introduced earlier because everything in python is an object;

[issue28164] _PyIO_get_console_type fails for various paths

2017-01-30 Thread Steve Dower
Steve Dower added the comment: I'm okay with this patch. We move closer to being right without degrading the normal case, and I don't think the edge cases are important (and the behavior in those cases will be acceptable). With a couple of tests to make sure the path comparisons don't get

Re: Overriding True and False ?

2017-01-30 Thread Ben Finney
Ian Kelly writes: > Well, nuts. It looks fine in my client (the Gmail Android app) so I > guess this must be an issue of HTML versus text content. Unfortunately > the mobile client doesn't have any option for text-only that I can > find, so my options appear to be to

[issue18842] Add float.is_finite is_nan is_infinite to match Decimal methods

2017-01-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: Mariatta, please review the rm-finite patch. We're already agreed that the removal makes sense. What you're checking for is whether patch is complete (that there aren't any dangling references to the removed code and that it doesn't remove too much).

Re: What are your opinions on .NET Core vs Python?

2017-01-30 Thread Gregory Ewing
Nathan Ernst wrote: There is no reason you cannot introduce a static class with pure static members (i.e. the Math class in System). A static class effectively becomes another namespace in C++ parlance. I'll admit the syntax is a bit odd, and enforces you, at a minimum to use the outer name a as

Re: What are your opinions on .NET Core vs Python?

2017-01-30 Thread Gregory Ewing
Michael Torrie wrote: He was saying that you can use the explicit self paradigm in C#. Simply prefix each member variable with "this." One can do that in one's own code, but it doesn't help you to read the code of someone else who hasn't done that. Since it's not part of the C# culture, the

Re: Overriding True and False ?

2017-01-30 Thread Chris Angelico
On Mon, Jan 30, 2017 at 6:50 PM, Deborah Swanson wrote: > Looks like the moral of the story is that in Python 2.7 you can redefine > keywords, so long as you don't get any syntax errors after (or during) > redefinition. The moral is actually that "True" and "False"

Re: Overriding True and False ?

2017-01-30 Thread Chris Angelico
On Mon, Jan 30, 2017 at 4:03 PM, Irv Kalb wrote: > It seems very odd that Python allows you to override the values of True and > False. In the code, True and False were clearly recognized as keywords as > they were colored purple. But there was no error message. > > You

Re: What are your opinions on .NET Core vs Python?

2017-01-30 Thread Chris Angelico
On Mon, Jan 30, 2017 at 6:25 PM, Joseph L. Casale wrote: > .Net Core is fundamentally different and much like Python in the way that > a compiler and runtime for a common language syntax specification has been > written for multiple platforms. So in general, the same

<    1   2