[issue31119] Signal tripped flags need memory barriers

2017-08-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've recently merged https://github.com/python/cpython/pull/2417 which might address this. If you know of a way of reproducing the (theoretical) issue outlined here, it would be nice to know if it's fixed on git master. -- nosy: +pitrou

[issue31119] Signal tripped flags need memory barriers

2017-08-06 Thread STINNER Victor
STINNER Victor added the comment: Since it's described as a bug, should the change be backported to 3.6? I don't think that 2.7 has required tools to backport this change (C99, atomic types). -- ___ Python tracker

[issue31126] dict comprehension shouldn't raise UnboundLocalError

2017-08-06 Thread R. David Murray
R. David Murray added the comment: I wonder if that explanation should be added to the doc section to which I pointed. I thought I'd remembered something like that being in there, but it isn't. -- ___ Python tracker

[issue31127] Abstract classes derived from built-in classes don't block instance creation

2017-08-06 Thread Kevin Shweh
New submission from Kevin Shweh: The only check that prevents instantiating abstract classes is in object.__new__, but most built-in classes never actually call object.__new__. That means you can do stuff like import abc class Foo(list, metaclass=abc.ABCMeta): @abc.abstractmethod

[issue28414] SSL match_hostname fails for internationalized domain names

2017-08-06 Thread Alex Gaynor
Alex Gaynor added the comment: This came up on m.d.s.p. today: https://groups.google.com/d/msg/mozilla.dev.security.policy/K3sk5ZMv2DE/fx6c3WWFBgAJ I haven't dug in deeply, but it sounds like we handle IDNs in CNs and SANs differently? I think we should look for a way to solve that specific

[issue28414] SSL match_hostname fails for internationalized domain names

2017-08-06 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +dstufft, janssen ___ Python tracker ___ ___

[issue31113] Stack overflow with large program

2017-08-06 Thread Manuel Krebber
Manuel Krebber added the comment: @Serhiy That would require me to compile Python myself though, right? Is there a reason why the limit is only for try/for and not for if? @Antoine Well, the goal is to be able to generate Python 2 compatible code . I will try to split the code into more

[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-08-06 Thread Steve Dower
Steve Dower added the comment: The prebuilt binaries have not, and the OpenSSL change has functional implications and should not be (unless someone wants to make the security justification, but right now I think it's a theoretical rather than an actual benefit). The TclTk build could be, but

[issue24700] array compare is hideously slow

2017-08-06 Thread Adrian Wielgosik
Changes by Adrian Wielgosik : -- pull_requests: +3042 ___ Python tracker ___ ___

[issue31125] shelve.open of temporary file fails with error "anydbm.error: db type could not be determined"

2017-08-06 Thread R. David Murray
R. David Murray added the comment: By the way, if you want to open a doc issue with a suggestion of how to clarify this in the docs, that would be welcome. -- ___ Python tracker

[issue31126] dict comprehension shouldn't raise UnboundLocalError

2017-08-06 Thread ksqsf
New submission from ksqsf: The code key = ["a", "b"] val = [1, 2] dic = {key:val for key in key for val in val} will raise UnboundLocalError in Python 3.6.2 and 2.7.13. Intuitively, the element 'key' and the list 'key' are not the same, so generally the expected result is {"a": 1,

[issue31113] Stack overflow with large program

2017-08-06 Thread Jeremy Kloth
Jeremy Kloth added the comment: Using master to debug, the (first) offending part of the generated file is the get_match_iter() function. The problem is not that there is too much nesting, rather it is simply the fact of too many if's period. Simple testing at the command prompt (using

[issue31113] Stack overflow with large program

2017-08-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > exec('if a: b = 1\n' * 25150) I need to increase it to 20 and it fails with a stack overflow in dfs() here (git master on Ubuntu 16.04 in pydebug mode). -- ___ Python tracker

[issue31113] Stack overflow with large program

2017-08-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list

[issue31125] shelve.open of temporary file fails with error "anydbm.error: db type could not be determined"

2017-08-06 Thread R. David Murray
R. David Murray added the comment: No, it should not. A DBM is not necessarily a single file. What you should be doing is creating a temporary *directory*, and opening your DB inside that. -- components: +Library (Lib) -IO nosy: +r.david.murray resolution: -> rejected stage: ->

[issue31119] Signal tripped flags need memory barriers

2017-08-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Backporting would be reasonable IMHO. -- ___ Python tracker ___ ___

[issue28414] SSL match_hostname fails for internationalized domain names

2017-08-06 Thread Nathaniel Smith
Nathaniel Smith added the comment: > I haven't dug in deeply, but it sounds like we handle IDNs in CNs and SANs > differently? No -- Python's ssl module uses exactly the same hostname checking logic in both cases, and it's equally broken regardless. But, since CAs do all kinds of weird stuff

[issue29427] Option to skip padding for base64 urlsafe encoding/decoding

2017-08-06 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker ___ ___

[issue31126] dict comprehension shouldn't raise UnboundLocalError

2017-08-06 Thread R. David Murray
R. David Murray added the comment: The behavior is consistent: >>> a = [1, 2] >>> b = [3, 4] >>> [(a, b) for a in a for b in b] Traceback (most recent call last): File "", line 1, in File "", line 1, in UnboundLocalError: local variable 'b' referenced before assignment I'm not sure why

[issue30808] Use _Py_atomic API for concurrency-sensitive signal state

2017-08-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- pull_requests: +3041 ___ Python tracker ___ ___

[issue30808] Use _Py_atomic API for concurrency-sensitive signal state

2017-08-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 57e836cb41656ac23042886db6b5985c036a7ce2 by Antoine Pitrou in branch '3.6': [3.6] bpo-30808: Use _Py_atomic API for concurrency-sensitive signal state (GH-2417) (#3007)

[issue24700] array compare is hideously slow

2017-08-06 Thread Adrian Wielgosik
Adrian Wielgosik added the comment: Added a PR with a fast path that triggers when compared arrays store values of the same type. In this fast path, no Python objects are created. For big arrays the runtime reduction can reach 50-100x. It's possible to optimize the comparison loop a bit more

[issue31126] dict comprehension shouldn't raise UnboundLocalError

2017-08-06 Thread Eryk Sun
Eryk Sun added the comment: It's consistent with the behavior of generator expressions: Variables used in the generator expression are evaluated lazily when the __next__() method is called for the generator object (in the same fashion as normal generators). However, the leftmost

[issue5996] abstract class instantiable when subclassing dict

2017-08-06 Thread R. David Murray
R. David Murray added the comment: Closed issue 31127 as a duplicate of this one. -- nosy: +Kevin Shweh ___ Python tracker ___

[issue31127] Abstract classes derived from built-in classes don't block instance creation

2017-08-06 Thread R. David Murray
R. David Murray added the comment: This is a duplidate of issue 5996. It is not clear if we are going to treat it as a bug or a doc bug. -- nosy: +r.david.murray resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> abstract class instantiable when

[issue31128] Allow pydoc to run with an arbitrary hostname

2017-08-06 Thread Feanil Patel
New submission from Feanil Patel: I want to run the pydoc server while doing development inside a container. However, the pydoc http server only binds to localhost with no option to override this. This means that if I'm trying to read the docs from a remote machine, I have to do some

[issue27755] Retire DynOptionMenu with a ttk Combobox

2017-08-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yes, if nothing else, we can use ttk.OptionMenu. #24776 is about the font tab specifically, including possibly using a spinbox for font size. #24781 is about Highlights tab. Whatever we do with theme selection we will probably copy for keyset selection.

[issue28414] SSL match_hostname fails for internationalized domain names

2017-08-06 Thread Nathaniel Smith
Changes by Nathaniel Smith : -- pull_requests: +3043 ___ Python tracker ___ ___

[issue31128] Allow pydoc to run with an arbitrary hostname

2017-08-06 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +3044 ___ Python tracker ___

[issue27755] Retire DynOptionMenu with a ttk Combobox

2017-08-06 Thread Cheryl Sabella
Cheryl Sabella added the comment: FYI, I believe that the ttk.OptionMenu is essentially the same as the DynOptionMenu. ttk.OptionMenu added a `set_menu` which is the same code as DynOptionMenu.SetMenu, except the options are radiobuttons (which marks the current item.) The only difference

[issue29427] Option to skip padding for base64 urlsafe encoding/decoding

2017-08-06 Thread Brian Thorne
Brian Thorne added the comment: Hi Robert, It would be at least a week or two before I could take another look at this so please feel free to work on it. Not sure why I didn't write a patch at the time! -- ___ Python tracker

[issue29555] Update Python Software Foundation Copyright Year

2017-08-06 Thread Nick Coghlan
Nick Coghlan added the comment: Van, could you take a look at Senthil & Mariatta's questions above regarding our handling of the copyright year in CPython's module headers? -- nosy: +ncoghlan, vanl ___ Python tracker

[issue30082] hide command prompt when using subprocess.Popen with shell=False on Windows

2017-08-06 Thread Jeffrey Rackauckas
Changes by Jeffrey Rackauckas : -- pull_requests: +3046 ___ Python tracker ___ ___

[issue31082] reduce takes iterable, not just sequence

2017-08-06 Thread Nick Coghlan
Nick Coghlan added the comment: Checking older versions of the docs, it looks like we simply haven't reworded those docs since Python 2.0 (when the "list" of the 1.5 docs became "sequence" for 2.0). So I think the most appropriate resolution here would be to replace the current use of

[issue31129] RawConfigParser.items() is unusual in taking arguments

2017-08-06 Thread Daniel Watkins
New submission from Daniel Watkins: A grep through the codebase shows that RawConfigParser.items() is the only .items() method in the stdlib which accepts arguments. This is annoying as a stdlib user because when I see the arguments being passed to RawConfigParser.items(), I have _no idea_

[issue31129] RawConfigParser.items() is unusual in taking arguments

2017-08-06 Thread Daniel Watkins
Changes by Daniel Watkins : -- pull_requests: +3045 ___ Python tracker ___ ___

[issue31129] RawConfigParser.items() is unusual in taking arguments

2017-08-06 Thread Guido van Rossum
Guido van Rossum added the comment: I think the proposed change is not worth it. Developments in type checking (in particular overloading) make it unambiguous what the return type will be from just a static inspection of the call site. (Given that the _UNSET value is intended to be private.)

[issue31126] dict comprehension shouldn't raise UnboundLocalError

2017-08-06 Thread Eryk Sun
Eryk Sun added the comment: Comprehensions evaluate the iterator for the outermost loop in the surrounding scope. The iterators for all inner loops are evaluated in the local scope of the comprehension itself. -- nosy: +eryksun resolution: -> not a bug stage: -> resolved status:

[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-08-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Has this actually been backported to 3.6? It looks like a lot of Tcl and OpenSSL stuff is being compiled on AppVeyor yet: https://ci.appveyor.com/project/python/cpython/build/3.6.1+.5134 -- ___ Python tracker

[issue31129] RawConfigParser.items() is unusual in taking arguments

2017-08-06 Thread R. David Murray
R. David Murray added the comment: For backward compatibility reasons this will not be changed. I don't know if the idea of adding a method and doing a documentation deprecation is worth it or not. -- nosy: +lukasz.langa, r.david.murray ___ Python

[issue31129] RawConfigParser.items() is unusual in taking arguments

2017-08-06 Thread R. David Murray
Changes by R. David Murray : -- type: -> enhancement ___ Python tracker ___ ___