Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices]

2015-03-05 Thread Mark Lawrence
On 05/03/2015 03:38, Rustom Mody wrote: On Thursday, March 5, 2015 at 1:03:13 AM UTC+5:30, Marko Rauhamaa wrote: Steven D'Aprano: Care to enlighten us then? Because your anecdote doesn't appear to have even the most tenuous relationship to this discussion. Even more important, when you talk

[issue23593] Update Windows and OS X installer OpenSSL to 1.0.2

2015-03-05 Thread Ned Deily
New submission from Ned Deily: Per the discussion in Issue23476, the installers should be updated to use OpenSSL 1.0.2 to solve the shortest trust path issue documented there. -- components: Build messages: 237287 nosy: ned.deily, steve.dower priority: normal severity: normal stage:

[issue23476] SSL cert verify fail for www.verisign.com

2015-03-05 Thread Ned Deily
Ned Deily added the comment: Issue23593 opened to request Windows and OS X installer OpenSSL updates to 1.0.2 -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23476 ___

Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices]

2015-03-05 Thread Steve Hayes
On Wed, 04 Mar 2015 21:33:01 +0200, Marko Rauhamaa ma...@pacujo.net wrote: Steven D'Aprano steve+comp.lang.pyt...@pearwood.info: Care to enlighten us then? Because your anecdote doesn't appear to have even the most tenuous relationship to this discussion. English-speaker, when you name things

[issue23548] TypeError in event loop finalizer, new in Python 3.4.3

2015-03-05 Thread STINNER Victor
STINNER Victor added the comment: I close the issue as wont fix. I may workaround the bug during Python finalization if more users report this issue. -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org

[issue23593] Update Windows and OS X installer OpenSSL to 1.0.2

2015-03-05 Thread Donald Stufft
Changes by Donald Stufft don...@stufft.io: -- nosy: +dstufft ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23593 ___ ___ Python-bugs-list mailing

[issue23551] IDLE to provide menu options for using PIP

2015-03-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yes, this would complement your checker patch from last summer. It would solve the issue of how to tell or help people, especially beginners, install packages to run with the checker. Idea for the package manager: include an option to duplicate a set of

Re: http: connection reset by peer

2015-03-05 Thread Chris Angelico
On Fri, Mar 6, 2015 at 5:37 AM, Ethan Furman et...@stoneleaf.us wrote: On 03/04/2015 01:26 AM, Chris Angelico wrote: Do you have Mozilla Firebug, and if so, can you try the file attachment with Firebug active? At very least, you should be able to see exactly what request is getting reset, and

[issue23476] SSL cert verify fail for www.verisign.com

2015-03-05 Thread Donald Stufft
Donald Stufft added the comment: It was merged to the 2.7 branch, so it'll be released as part of 2.7.10. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23476 ___

[issue23476] SSL cert verify fail for www.verisign.com

2015-03-05 Thread John Nagle
John Nagle added the comment: Will this be applied to the Python 2.7.9 library as well? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23476 ___

[issue23593] Update Windows and OS X installer OpenSSL to 1.0.2

2015-03-05 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- nosy: +zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23593 ___ ___ Python-bugs-list

[issue23592] SIGSEGV on interpreter shutdown, with daemon threads running wild

2015-03-05 Thread A. Skrobov
New submission from A. Skrobov: I'm observing that this line of code: https://hg.python.org/cpython/file/ec9bffc35cad/Python/ceval.c#l3010 -- causes a SIGSEGV on interpreter shutdown, after running some really convoluted Python code with daemon threads running wild. At the time of the crash,

Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices]

2015-03-05 Thread Marko Rauhamaa
Steve Hayes hayes...@telkomsa.net: On Wed, 04 Mar 2015 21:33:01 +0200, Marko Rauhamaa ma...@pacujo.net English-speaker, when you name things in your Python programs, you had better stick to American spellings. Even more important, when you talk about Python or other computer stuff to a

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-05 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: Ahh...ok, then please post the changes. I want to burn autotools enough right now; I doubt that redoing those changes would ease my anger. :) -- ___ Python tracker rep...@bugs.python.org

Re: Make standalone gui-enabled app for LINUX

2015-03-05 Thread Christian Gollwitzer
Am 05.03.15 um 18:31 schrieb Mehdi: Hi I know there are tools like cx_freeze or nuitka for making a linux standalone python app. but i couldn't find a good tutorial about how to making a portable gui-enabled python3 app in linux. by gui-enabled i mean application which use any gui libs

Re: Newbie question about text encoding

2015-03-05 Thread random832
On Thu, Mar 5, 2015, at 09:06, Steven D'Aprano wrote: I mostly agree with Chris. Supporting *just* the BMP is non-trivial in UTF-8 and UTF-32, since that goes against the grain of the system. You would have to program in artificial restrictions that otherwise don't exist. UTF-8 is already

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-05 Thread Cyd Haselton
Cyd Haselton added the comment: I can... ./configure --prefix=/usr/python --enable-shared --without-ensurepip ...but configure didn't set up pyconfig.h correctly with those options. There are some changes I had to make post-configure to pyconfig.h and others when I initially built

[issue23593] Update Windows and OS X installer OpenSSL to 1.0.2

2015-03-05 Thread Alex Gaynor
Alex Gaynor added the comment: +1 on this -- for pyca/cryptography we're also making this leap in our next release. -- nosy: +alex ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23593 ___

Is nan in (nan,) correct?

2015-03-05 Thread random832
It's been brought up on Stack Overflow that the in operator (on tuples, and by my testing on dict and list, as well as dict lookup) uses object identity as a shortcut, and returns true immediately if the object being tested *is* an element of the container. However, the contains operation does not

[issue21483] Skip os.utime() test on NFS?

2015-03-05 Thread Isaac Schwabacher
Isaac Schwabacher added the comment: ...and fixed a spot where git diff + copy/paste truncated a long line. /sheepish -- Added file: http://bugs.python.org/file38346/test_import.patch ___ Python tracker rep...@bugs.python.org

[issue22906] PEP 479: Change StopIteration handling inside generators

2015-03-05 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- stage: patch review - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22906 ___ ___

[issue8087] Unupdated source file in traceback

2015-03-05 Thread Robert Collins
Robert Collins added the comment: Storing a marker in module objects which can be used to validate the linecache is a good idea. timestamp isn't appropriate because of modules loaded from zips or dynamic generation. I'd suggest we make it something opaque - we get source code by asking the

Re: Newbie question about text encoding

2015-03-05 Thread Steven D'Aprano
random...@fastmail.us wrote: On Thu, Mar 5, 2015, at 09:06, Steven D'Aprano wrote: I mostly agree with Chris. Supporting *just* the BMP is non-trivial in UTF-8 and UTF-32, since that goes against the grain of the system. You would have to program in artificial restrictions that otherwise

[issue23594] Wrong variable name in traceback

2015-03-05 Thread Jeff Zemla
Jeff Zemla added the comment: In 3), not should be now -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23594 ___ ___ Python-bugs-list mailing

Re: HELP!! How to ask a girl out with a simple witty Python code??

2015-03-05 Thread Steven D'Aprano
Ben Finney wrote: sohcahto...@gmail.com writes: I should have known better than to make a joke on this mailing list. Someone is bound to get their panties all up in a bunch. You should have known better than to make gendered slurs. Claiming “it was a joke” doesn't alter the sexism of

[issue4896] Faster why variable manipulation in ceval.c

2015-03-05 Thread Mark Lawrence
Mark Lawrence added the comment: Where do we find Antoine's suite of benchmarks? -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4896 ___

Re: HELP!! How to ask a girl out with a simple witty Python code??

2015-03-05 Thread Mark Lawrence
On 05/03/2015 22:59, Ben Finney wrote: Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: Ben Finney wrote: sohcahto...@gmail.com writes: I should have known better than to make a joke on this mailing list. Someone is bound to get their panties all up in a bunch. You should

[issue23595] Split the math module into _math (C) + math (py)

2015-03-05 Thread STINNER Victor
New submission from STINNER Victor: To implement the PEP 485 (math.isclose), I proposed to split the math module into two parts: _math (C) and math (py). The current C module is renamed to _math and a new math module implementd in Python is added. The math module contains from _math import *.

[issue23595] Split the math module into _math (C) + math (py)

2015-03-05 Thread STINNER Victor
STINNER Victor added the comment: We may add tests on fsum() with nan: assert fsum([nan, nan, nan]) == nan assert fsum([nan, 1.0, inf]) == nan assert fsum([nan, 1.0, -inf]) == nan -- ___ Python tracker rep...@bugs.python.org

Re: Is nan in (nan,) correct?

2015-03-05 Thread Chris Angelico
On Fri, Mar 6, 2015 at 10:27 AM, sohcahto...@gmail.com wrote: Do you have an example of where `a is b` but `a != b` in Python? `None == None` is True. Check out the subject line. nan = float(nan) nan is nan # obviously True nan != nan # IEEE 754 mandates True ChrisA --

[issue22936] traceback module has no way to show locals

2015-03-05 Thread Robert Collins
Robert Collins added the comment: And the unittest patch. -- Added file: http://bugs.python.org/file38348/issue-22936-5.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22936 ___

[issue22936] traceback module has no way to show locals

2015-03-05 Thread Robert Collins
Changes by Robert Collins robe...@robertcollins.net: Added file: http://bugs.python.org/file38349/issue-22936-5.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22936 ___

[issue23594] Wrong variable name in traceback

2015-03-05 Thread Jeff Zemla
New submission from Jeff Zemla: I've found a rather simple bug in the default CPython implementation on Mac OS X 10.9.5 1) Create a new .py file containing: def a(): print q x=5 2) Open Python and run using execfile() then a(). Receive error as expected: File test.py, line 2, in a

[issue23594] Wrong variable name in traceback

2015-03-05 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- resolution: - duplicate stage: - resolved status: open - closed superseder: - Unupdated source file in traceback ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23594

[issue22936] traceback module has no way to show locals

2015-03-05 Thread Robert Collins
Robert Collins added the comment: No worries. BTW there is one more patch needed to close this issue - adding the feature to unittest. I'm working that up now. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22936

[issue20876] python -m test test_pathlib fails

2015-03-05 Thread Isaac Schwabacher
Isaac Schwabacher added the comment: Fixed a truncated line in the patch. -- Added file: http://bugs.python.org/file38347/test_support.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20876

[OT]Re: what is wrong with d.clear()?

2015-03-05 Thread m
W dniu 23.12.2014 o 11:25, Steve Hayes pisze: [1] Or worse, one of those shitty messages that include a plain text part that says Your mail program cannot read this email. Please upgrade to a better mail program. I usually reply to those saying So why did you send it to me? I suspect that in

Re: Is nan in (nan,) correct?

2015-03-05 Thread Chris Angelico
On Fri, Mar 6, 2015 at 10:11 AM, sohcahto...@gmail.com wrote: I would argue that if `a is b` then it is obvious that `a == b` This is not true for float(nan), though. The question is, is your above statement a valid optimization for the 'in' operator, or not? And no, it isn't, because it's not

[issue23595] Split the math module into _math (C) + math (py)

2015-03-05 Thread STINNER Victor
STINNER Victor added the comment: I didn't benchmark the overhead of the patch on import math (Python startup time) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23595 ___

[issue23491] PEP 441 - Improving Python Zip Application Support

2015-03-05 Thread Paul Moore
Paul Moore added the comment: There have been no further comments for a while now. Could this be committed by someone? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23491 ___

[issue4896] Faster why variable manipulation in ceval.c

2015-03-05 Thread STINNER Victor
STINNER Victor added the comment: Where do we find Antoine's suite of benchmarks? https://hg.python.org/benchmarks -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4896 ___

[issue23595] Split the math module into _math (C) + math (py)

2015-03-05 Thread Ethan Furman
Ethan Furman added the comment: I have no problem with having Python versions, but we should not remove anything from the C implementation -- at a minimum they should be good for testing against. -- nosy: +ethan.furman ___ Python tracker

Re: Is nan in (nan,) correct?

2015-03-05 Thread Ben Finney
sohcahto...@gmail.com writes: I would argue that if `a is b` then it is obvious that `a == b` It may be obvious, but it's not necessarily true. Some commonly-used values – for example, an “null” – are not equal to themselves, by definition. It is fine to define such a type in Python, because

Re: Is nan in (nan,) correct?

2015-03-05 Thread Ben Finney
sohcahto...@gmail.com writes: On Thursday, March 5, 2015 at 3:20:16 PM UTC-8, Ben Finney wrote: It is fine to define such a type in Python, because 'is' does not necessarily imply '=='. Do you have an example of where `a is b` but `a != b` in Python? Maybe I misunderstand your question,

[Python 3.4] Rationale for readonly slice data attributes

2015-03-05 Thread Mario Figueiredo
What is the rationale behind making the slice class data attributes readonly? I've built a __getitem__ method for a Map class that contains a list of Cell instance objects. __getitem__ maps this list into a matrix:: # get cell at cartesian coordinates 12, 4 # will map to the 1048th

[issue22936] traceback module has no way to show locals

2015-03-05 Thread Robert Collins
Changes by Robert Collins robe...@robertcollins.net: Removed file: http://bugs.python.org/file38348/issue-22936-5.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22936 ___

[issue22936] traceback module has no way to show locals

2015-03-05 Thread Guido van Rossum
Changes by Guido van Rossum gu...@python.org: -- nosy: -gvanrossum ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22936 ___ ___ Python-bugs-list

[issue12319] [http.client] HTTPConnection.putrequest not support chunked Transfer-Encodings to send data

2015-03-05 Thread Demian Brecht
Demian Brecht added the comment: I've attached a patch that implements full Transfer-Encoding support for requests as specified in RFC 7230. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12319

[issue23590] Potential leak in PyFloat_AsDouble. Refcount error.

2015-03-05 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: - patch review type: behavior - resource usage versions: +Python 2.7, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23590 ___

Re: Is nan in (nan,) correct?

2015-03-05 Thread Terry Reedy
Nothing about nans is 'correct'. They are a CS invention On 3/5/2015 5:26 PM, random...@fastmail.us wrote: It's been brought up on Stack Overflow that the in operator (on tuples, and by my testing on dict and list, as well as dict lookup) uses object identity as a shortcut, and returns true

[issue23593] Update Windows and OS X installer OpenSSL to 1.0.2

2015-03-05 Thread Ned Deily
Ned Deily added the comment: [Sorry, incorrect issue number in the commit messages!] New changeset 62c3742eb25f by Ned Deily in branch '2.7': Issue #23594: Update OS X 10.5 installer build to use OpenSSL 1.0.2. https://hg.python.org/cpython/rev/62c3742eb25f New changeset b2f3a44dbe1b by Ned

Re: Is nan in (nan,) correct?

2015-03-05 Thread Ben Finney
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: Since reflexivity is *almost* universal, and using object identity permits very substantial optimizations, the core developers agreed that built-in contain types may assume that `x is y` implies `x == y`. Users of NANs and other

[issue23595] Split the math module into _math (C) + math (py)

2015-03-05 Thread STINNER Victor
STINNER Victor added the comment: @Alex: you should open a new issue for isclose. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23595 ___ ___

[issue23595] Split the math module into _math (C) + math (py)

2015-03-05 Thread Ethan Furman
Ethan Furman added the comment: If there is a complex number version it will live in cmath, not math. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23595 ___

Re: [Python 3.4] Rationale for readonly slice data attributes

2015-03-05 Thread Ian Kelly
On Thu, Mar 5, 2015 at 4:57 PM, Mario Figueiredo mar...@gmail.com wrote: What is the rationale behind making the slice class data attributes readonly? I've built a __getitem__ method for a Map class that contains a list of Cell instance objects. __getitem__ maps this list into a matrix::

[issue23595] Split the math module into _math (C) + math (py)

2015-03-05 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - patch review type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23595 ___

Speeding up permutations generation

2015-03-05 Thread Abhiram R
Hi all, Is there a way to generate permutations of large arrays of sizes say,in the hundreds, faster than in the time itertools.permutations() can return? ​-Abhiram.R *~Never give up* -- https://mail.python.org/mailman/listinfo/python-list

Re: what is wrong with d.clear()?

2015-03-05 Thread Terry Reedy
On 12/22/2014 3:54 PM, Rick Johnson wrote: On Monday, December 22, 2014 12:16:03 PM UTC-6, sohca...@gmail.com wrote: On Monday, December 22, 2014 12:16:15 AM UTC-8, shawool wrote: [snip: OP's adolescent accessorizing] @_@ Is there a reason you're composing your messages with a large, colored

[issue23594] Wrong variable name in traceback

2015-03-05 Thread R. David Murray
R. David Murray added the comment: This is a duplicate of an existing issue but I don't have time to find the issue. It's not a trivial problem to fix, though now that the import system is in python it may be possible. -- nosy: +r.david.murray ___

[issue23594] Wrong variable name in traceback

2015-03-05 Thread Ezio Melotti
Ezio Melotti added the comment: #8087 -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23594 ___ ___ Python-bugs-list mailing

Re: HELP!! How to ask a girl out with a simple witty Python code??

2015-03-05 Thread Ben Finney
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: Ben Finney wrote: sohcahto...@gmail.com writes: I should have known better than to make a joke on this mailing list. Someone is bound to get their panties all up in a bunch. You should have known better than to make

Re: Is nan in (nan,) correct?

2015-03-05 Thread sohcahtoa82
On Thursday, March 5, 2015 at 2:27:12 PM UTC-8, rand...@fastmail.us wrote: It's been brought up on Stack Overflow that the in operator (on tuples, and by my testing on dict and list, as well as dict lookup) uses object identity as a shortcut, and returns true immediately if the object being

Re: Is nan in (nan,) correct?

2015-03-05 Thread sohcahtoa82
On Thursday, March 5, 2015 at 3:20:16 PM UTC-8, Ben Finney wrote: sohcahto...@gmail.com writes: I would argue that if `a is b` then it is obvious that `a == b` It may be obvious, but it's not necessarily true. Some commonly-used values - for example, an null - are not equal to themselves,

[issue12319] [http.client] HTTPConnection.putrequest not support chunked Transfer-Encodings to send data

2015-03-05 Thread Demian Brecht
Demian Brecht added the comment: I hit submit a little too soon. The intention of the patch is to adhere to all aspects of Transfer-Encoding as specified in the RFC and to make best guesses as to encoding that should be used based on the data type of the given body. This will break backwards

[issue20556] Use specific asserts in threading tests

2015-03-05 Thread Mark Lawrence
Mark Lawrence added the comment: Cut and paste error? if verbose: @@ -110,17 +110,17 @@ for t in threads: t.join() self.assertTrue(not t.is_alive()) +self.assertFalse(t.is_alive()) -- nosy: +BreamoreBoy

Re: HELP!! How to ask a girl out with a simple witty Python code??

2015-03-05 Thread Ben Finney
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: Ben Finney wrote: “get their panties all up in a bunch” is a gendered slur. Why do you interpret that as insulting to women merely on the basis of being *female*? I think your question is in bad faith. You know as well as I do,

[issue12319] [http.client] HTTPConnection.putrequest not support chunked Transfer-Encodings to send data

2015-03-05 Thread Demian Brecht
Changes by Demian Brecht demianbre...@gmail.com: -- versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12319 ___ ___

[issue23594] Wrong variable name in traceback

2015-03-05 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- Removed message: http://bugs.python.org/msg237316 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23594 ___

[issue23594] Wrong variable name in traceback

2015-03-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 62c3742eb25f by Ned Deily in branch '2.7': Issue #23594: Update OS X 10.5 installer build to use OpenSSL 1.0.2. https://hg.python.org/cpython/rev/62c3742eb25f New changeset b2f3a44dbe1b by Ned Deily in branch '3.4': Issue #23594: Update OS X 10.5

[issue23597] Allow easy display of local variables in log messages?

2015-03-05 Thread Nick Coghlan
New submission from Nick Coghlan: Issue #22936 added support for easily displaying local variables in tracebacks to the unittest and traceback modules. Would it be worth also making this capability readily available in the logging APIs that display traceback messages? The main argument

[issue23597] Allow easy display of local variables in log messages?

2015-03-05 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- dependencies: +traceback module has no way to show locals ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23597 ___

[issue23596] gzip argparse interface

2015-03-05 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, but we need to add tests for the current CLI to make sure that we don't break anything when we apply gzip-argparse-cli.patch. See Lib/test/test_tarfile.py and Lib/test/test_calendar.py for example CLI tests. -- nosy:

[issue20548] Use specific asserts in warnings and exceptions tests

2015-03-05 Thread Mark Lawrence
Mark Lawrence added the comment: LGTM. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20548 ___ ___ Python-bugs-list mailing

[issue23597] Allow easy display of local variables in log messages?

2015-03-05 Thread Robert Collins
Robert Collins added the comment: Yes, for debugging etc this can be very useful. I suggest further extending the new traceback interface to allow a filtering/transform hook of some sort, to allow folk more granular control than just repr overloading. -- nosy: +rbcollins

Re: Is nan in (nan,) correct?

2015-03-05 Thread Ben Finney
Ethan Furman et...@stoneleaf.us writes: On 03/05/2015 06:55 PM, Ben Finney wrote: class NullType(object): A type whose value never equals any other. This type's values will behave correctly when tested for membership in a collection::

[issue23524] Use _set_thread_local_invalid_parameter_handler in posixmodule

2015-03-05 Thread Steve Dower
Steve Dower added the comment: Added a patch that disables the invalid parameter handler in new_threadstate() so that all Python threads are protected from termination. _PyVerify_fd is still moved into fileutils.c, but _Py_BEGIN/END_SUPPRESS_IPH and _Py_VERIFY_FD are gone. For VC14,

[issue23592] SIGSEGV on interpreter shutdown, with daemon threads running wild

2015-03-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Yes, daemon threads are really dangerous because they may keep running while the interpreter has started releasing critical resources. Things have improved in 3.x compared to 2.x, though. -- nosy: +pitrou ___

[issue23596] gzip argparse interface

2015-03-05 Thread Antony Lee
New submission from Antony Lee: The attached patch reimplements gzip's already existing command-line interface using argparse, both to provide command-line help and to avoid manual argument parsing. -- components: Library (Lib) files: gzip-argparse-cli.patch keywords: patch messages:

[issue23593] Update Windows and OS X installer OpenSSL to 1.0.2

2015-03-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset e74e2ce81a1c by Ned Deily in branch '2.7': Issue #23593: fix Misc/NEWS entries https://hg.python.org/cpython/rev/e74e2ce81a1c New changeset da3fe5fda078 by Ned Deily in branch '3.4': Issue #23593: fix Misc/NEWS entries

Re: Is nan in (nan,) correct?

2015-03-05 Thread Steven D'Aprano
random...@fastmail.us wrote: It's been brought up on Stack Overflow that the in operator (on tuples, and by my testing on dict and list, as well as dict lookup) uses object identity as a shortcut, and returns true immediately if the object being tested *is* an element of the container.

[issue20557] Use specific asserts in io tests

2015-03-05 Thread Mark Lawrence
Mark Lawrence added the comment: LGTM. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20557 ___ ___ Python-bugs-list mailing

[issue22936] traceback module has no way to show locals

2015-03-05 Thread Mark Lawrence
Mark Lawrence added the comment: msg237320 ...so I'm *NOT* entirely convinced...? :) -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22936 ___

Re: HELP!! How to ask a girl out with a simple witty Python code??

2015-03-05 Thread Steven D'Aprano
Ben Finney wrote: Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: Ben Finney wrote: sohcahto...@gmail.com writes: I should have known better than to make a joke on this mailing list. Someone is bound to get their panties all up in a bunch. You should have known

Re: Is nan in (nan,) correct?

2015-03-05 Thread Ethan Furman
On 03/05/2015 06:55 PM, Ben Finney wrote: class NullType(object): A type whose value never equals any other. This type's values will behave correctly when tested for membership in a collection:: foo = NullType() bar

[issue23548] TypeError in event loop finalizer, new in Python 3.4.3

2015-03-05 Thread Jack O'Connor
Jack O'Connor added the comment: Got it, thanks for the heads up. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23548 ___ ___ Python-bugs-list

[issue23590] Potential leak in PyFloat_AsDouble. Refcount error.

2015-03-05 Thread Patrick Miller
Patrick Miller added the comment: This is also in the 2.7.x branch. Same patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23590 ___ ___

[issue22906] PEP 479: Change StopIteration handling inside generators

2015-03-05 Thread Ethan Furman
Ethan Furman added the comment: Thanks, Neil, for catching that. I did run the entire test suite with the patch, and nothing new broke, so it would seem the patch is at least benign. :) -- nosy: +ethan.furman ___ Python tracker

[issue22906] PEP 479: Change StopIteration handling inside generators

2015-03-05 Thread Ethan Furman
Ethan Furman added the comment: Oh, and my tests ran on Ubuntu 13.04 (GNU/Linux 3.8.0-22-generic x86_64). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22906 ___

Make standalone gui-enabled app for LINUX

2015-03-05 Thread Mehdi
Hi I know there are tools like cx_freeze or nuitka for making a linux standalone python app. but i couldn't find a good tutorial about how to making a portable gui-enabled python3 app in linux. by gui-enabled i mean application which use any gui libs like pygobject, qt or wx. I know most of

[issue20147] multiprocessing.Queue.get() raises queue.Empty exception if even if an item is available

2015-03-05 Thread Davin Potts
Davin Potts added the comment: This same issue came up recently in issue23582. Really, it should have been addressed in this issue here first and issue23582 marked as a duplicate of this one but these things don't always happen in a synchronous or apparently-linear fashion. Adding to what

[issue20147] multiprocessing.Queue.get() raises queue.Empty exception if even if an item is available

2015-03-05 Thread Davin Potts
Changes by Davin Potts pyt...@discontinuity.net: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20147 ___ ___

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-05 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: So...you didn't make the changes by hand? Could you just post whatever you passed to configure? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496 ___

[issue6461] multiprocessing: freezing apps on Windows

2015-03-05 Thread Davin Potts
Davin Potts added the comment: The original issue now appears addressed in the docs (thanks goes to Stuart and Jesse) though it was not explicitly tracked here as a patch file. The follow-on secondary issue from spongebob (if that is your real name) could not be reproduced by Richard. This

[issue19931] namedtuple docstrings are verbose for no added benefit

2015-03-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: I don't think we should strip-out all the docstrings because you're unhappy with automatically (mindlessly) generated documentation. What you really need is more control over the documentation tool (the ability to save how much detail you want,

[issue23586] Add classproperty to the builtin functions

2015-03-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: I think you should take this up on python-ideas and don't expect it to gain any traction here. For best results, the proposal should be accompanied by valid use cases that can't easily be handled in some other way. The bar for adding a new builtin

[issue23589] Redundant sentence in FAQ

2015-03-05 Thread Yongzhi Pan
New submission from Yongzhi Pan: In https://docs.python.org/3/faq/programming.html#what-are-the-rules-for-local-and-global-variables-in-python, two sentences of essentially the same meaning exist. I try to remove this redundancy. -- assignee: docs@python components: Documentation

[issue14544] Limit global keyword name conflicts in language spec to those enforced by CPython

2015-03-05 Thread Yongzhi Pan
Changes by Yongzhi Pan panyong...@gmail.com: -- nosy: +fossilet ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14544 ___ ___ Python-bugs-list

[issue22906] PEP 479: Change StopIteration handling inside generators

2015-03-05 Thread Neil Girdhar
Neil Girdhar added the comment: FWIW I looked at the changes. Does it make sense to run tests before there are actual tests in lib/Test? I'll happily run all tests when some new ones are added. -- nosy: +neil.g ___ Python tracker

[issue21619] Cleaning up a subprocess with a broken pipe

2015-03-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Looks as tests are fixed. Thank you Victor. -- resolution: - fixed stage: needs patch - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21619

Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices]

2015-03-05 Thread Mario Figueiredo
On Thu, 05 Mar 2015 07:19:42 +0200, Marko Rauhamaa ma...@pacujo.net wrote: Where I work, people do use voice still occasionally to communicate. Communications skills... the bane of any software developer. Pronunciation is just another obstacle to cross on top of the natural barrier that is

  1   2   >