[issue27538] Segfault on error in code object checking

2016-07-17 Thread Ammar Askar
Ammar Askar added the comment: Can recreate on both py2.7 and py3.6 Constructor for CodeType in py3.6 is slightly different: exec(code(0, 0, 2, 3, 0, b"lol lolol", (), (), (), "", "", 0, b"")) -- nosy: +ammar2 versions: +Python 3.6 ___ Python tracke

[issue27539] negative Fraction ** negative int not normalized

2016-07-17 Thread Vedran Čačić
New submission from Vedran Čačić: I already wrote http://bugs.python.org/msg270548, but can't seem to reopen the issue, so I think the best thing is to report the bug separately. So, in issue http://bugs.python.org/issue21136, performance enhancement https://hg.python.org/cpython/rev/91d7fadac

[issue27469] Unicode filename gets crippled on Windows when drag and drop

2016-07-17 Thread Eryk Sun
Eryk Sun added the comment: Thanks, Steve. I manually added this shell extension as the drop handler for Python.File. It's working with non-ANSI filenames, e.g. "αβψδ εφγη ιξκλ μνοπ ρστθ ωχυζ.txt" in a Western locale. Also, I was able to drop 939 files from the System32 directory, with a total

[issue27538] Segfault on error in code object checking

2016-07-17 Thread pablo sacristan
pablo sacristan added the comment: I can also reproduce on 3.5 and on 3.4. Thank you. -- versions: +Python 3.4, Python 3.5 ___ Python tracker ___

[issue27539] negative Fraction ** negative int not normalized

2016-07-17 Thread SilentGhost
Changes by SilentGhost : -- nosy: +mark.dickinson, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue17711] Persistent id in pickle with protocol version 0

2016-07-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset f6a41552a312 by Serhiy Storchaka in branch '3.5': Issue #17711: Fixed unpickling by the persistent ID with protocol 0. https://hg.python.org/cpython/rev/f6a41552a312 New changeset df8857c6f3eb by Serhiy Storchaka in branch 'default': Issue #17711: F

[issue21708] Deprecate nonstandard behavior of a dumbdbm database

2016-07-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue27540] msvcrt.ungetwch() calls _ungetch()

2016-07-17 Thread Armin Rigo
New submission from Armin Rigo: In Python 2.7, PC/msvcrtmodule.c, the function msvcrt_ungetwch() calls _ungetch() instead of _ungetwch() as was probably intended. -- components: Extension Modules messages: 270620 nosy: arigo priority: normal severity: normal status: open title: msvcrt.u

[issue27541] Repr of collection's subclasses

2016-07-17 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The repr of subclasses of some collection classes contains a name of the subclass: >>> class S(set): pass ... >>> S([1, 2, 3]) S({1, 2, 3}) >>> import collections >>> class OD(collections.OrderedDict): pass ... >>> OD({1: 2}) OD([(1, 2)]) >>> class C(coll

[issue27507] bytearray.extend lacks overflow check when increasing buffer

2016-07-17 Thread Antti Haapala
Antti Haapala added the comment: Ah indeed, this is a bytearray and it is indeed possible to theoretically allocate PY_SSIZE_T_MAX bytes, if on an architecture that does segmented memory. As for if (addition > PY_SSIZE_T_MAX - len - 1) { it is very clear to *us* but it is not quite self-

[issue27541] Repr of collection's subclasses

2016-07-17 Thread Xiang Zhang
Xiang Zhang added the comment: How about other built-in classes? If repr does matter, maybe str, int, dict should also respect this rule? -- ___ Python tracker ___ _

[issue27419] Bugs in PyImport_ImportModuleLevelObject

2016-07-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset c88ec1bb67d0 by Serhiy Storchaka in branch '3.5': Issue #27419: Standard __import__() no longer look up "__import__" in globals https://hg.python.org/cpython/rev/c88ec1bb67d0 New changeset d87f99e297d5 by Serhiy Storchaka in branch 'default': Issue

[issue27541] Repr of collection's subclasses

2016-07-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This can break third-party code. For example the code that explicitly makes the repr containing a subclass name: class MyStr(str): def __repr__(self): return 'MyStr(%s)' % str.__repr__(self) I think the chance of breaking third-party code for byt

[issue23908] Check path arguments of os functions for null character

2016-07-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue26984] int() can return not exact int instance

2016-07-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you please make a review Mark? -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue23782] Leak in _PyTraceback_Add

2016-07-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27541] Repr of collection's subclasses

2016-07-17 Thread Xiang Zhang
Xiang Zhang added the comment: Yes. So if we are not going to change other built-in types, maybe we'd better not change bytearray either. My opinion is that don't change built-in classes, even bytearray. If users would like a more reasonable repr, they can provide a custom __repr__ as your exa

[issue23148] Missing the charset parameter in as_encoded_word()

2016-07-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset efd4ffa88173 by Serhiy Storchaka in branch '3.5': Issues #23147, #23148: Presumably fixed bugs in folding UnstructuredTokenList. https://hg.python.org/cpython/rev/efd4ffa88173 New changeset 33593fcdf8b0 by Serhiy Storchaka in branch 'default': Issue

[issue23147] Possible error in _header_value_parser.py

2016-07-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset efd4ffa88173 by Serhiy Storchaka in branch '3.5': Issues #23147, #23148: Presumably fixed bugs in folding UnstructuredTokenList. https://hg.python.org/cpython/rev/efd4ffa88173 New changeset 33593fcdf8b0 by Serhiy Storchaka in branch 'default': Issue

[issue27419] Bugs in PyImport_ImportModuleLevelObject

2016-07-17 Thread Berker Peksag
Berker Peksag added the comment: I'm getting a segfault after d87f99e297d5 (SubinterpreterTest.test_subinterps). $ ./python -m test test_capi Run tests sequentially 0:00:00 [1/1] test_capi Fatal Python error: Segmentation fault Current thread 0x7fd5e401d700 (most recent call first): File

[issue27419] Bugs in PyImport_ImportModuleLevelObject

2016-07-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4c07faa33915 by Serhiy Storchaka in branch '3.5': Issue #27419: Added temporary workaround for subinterpreters. https://hg.python.org/cpython/rev/4c07faa33915 New changeset 5540234ca517 by Serhiy Storchaka in branch 'default': Issue #27419: Added te

[issue27419] Bugs in PyImport_ImportModuleLevelObject

2016-07-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added temporary workaround to make buildbots working. The bug is partially reappeared in __import__ in subinterpreter. I think this is better than reverting all patches. -- ___ Python tracker

[issue27542] Segfault in gcmodule.c:360 visit_decref

2016-07-17 Thread Julien
New submission from Julien: Was running `python -m pip install ansible` when I got a "segmentation fault". bt is: (gdb) bt #0 0x004a7ec4 in visit_decref () at ../Modules/gcmodule.c:360 #1 0x004a7fa9 in dict_traverse () at ../Objects/dictobject.c:2144 #2 0x004a6f88 in

[issue26974] Crash in Decimal.from_float

2016-07-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset f8cb955efd6a by Stefan Krah in branch '3.5': Issue #26974: Fix segfault in the presence of absurd subclassing. Proactively https://hg.python.org/cpython/rev/f8cb955efd6a -- nosy: +python-dev ___ Python tr

[issue26974] Crash in Decimal.from_float

2016-07-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Couldn't keeping references in static variables cause problems in subinterpreters? -- ___ Python tracker ___

[issue27531] Documentation for assert_not_called() has wrong signature

2016-07-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset b43f61118793 by Berker Peksag in branch '3.5': Issue #27531: Update signature of Mock.assert_not_called method https://hg.python.org/cpython/rev/b43f61118793 New changeset f4541c56c353 by Berker Peksag in branch 'default': Issue #27531: Merge from 3

[issue27531] Documentation for assert_not_called() has wrong signature

2016-07-17 Thread Berker Peksag
Berker Peksag added the comment: Good catch, thanks Michael! -- nosy: +berker.peksag resolution: -> fixed stage: -> resolved status: open -> closed type: -> behavior ___ Python tracker __

[issue26974] Crash in Decimal.from_float

2016-07-17 Thread Stefan Krah
Stefan Krah added the comment: These are builtin static types. Even with non-builtin static types, the address of the type should always be the same. C-extensions aren't reloaded. -- ___ Python tracker ___

[issue27487] -m switch regression in Python 3.5.2 (under rare circumstances)

2016-07-17 Thread Nick Coghlan
Nick Coghlan added the comment: Running pre-imported top level packages like "runpy" or "site" with "-m" is supported behaviour, so that shouldn't emit a warning. ("python -m site" in particular is a debugging tool used to print out the default sys.path configuration) Otherwise, the warning m

[issue26974] Crash in Decimal.from_float

2016-07-17 Thread Stefan Krah
Stefan Krah added the comment: Also, IMO the whole capsule mechanism would be broken if function pointers in dynamic libs could just be invalidated due to reloading. -- ___ Python tracker _

[issue27541] Repr of collection's subclasses

2016-07-17 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue26974] Crash in Decimal.from_float

2016-07-17 Thread Stefan Krah
Stefan Krah added the comment: I'm leaving this open in case anyone wants to do something about the Python version. I tend to agree with Raymond: It is impractical to "fix" all such constructs in the Python version, unless one consistently uses a style like: float.as_integer_ratio(float.__

[issue23722] During metaclass.__init__, super() of the constructed class does not work

2016-07-17 Thread Martin Teichmann
Martin Teichmann added the comment: Currently, a class is created as follows: the compiler turns the class statement into a call to __build_class__. This runs the class body. If __class__ or super() is used within a method of the class, an empty PyCell is created, to be filled later with the c

[issue23722] During metaclass.__init__, super() of the constructed class does not work

2016-07-17 Thread Martin Teichmann
Changes by Martin Teichmann : Removed file: http://bugs.python.org/file38604/patch ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue27533] release GIL in nt._isdir

2016-07-17 Thread R. David Murray
R. David Murray added the comment: Correct, 2.7 is not in security fix only mode (yet), but new features (anything that changes an API) or bug fixes that we wouldn't put in a maintenance release (things that would break existing programs) are not allowed. A special exception has been made for

[issue27535] Memory leaks when opening tons of files

2016-07-17 Thread R. David Murray
R. David Murray added the comment: I recommend rejecting this. Properly closing flies is the correct programming habit, which is why the ResourceWarning exists. The Pillow example seems to just indicate that people using Pillow need to pay attention to the ResourceWarning and close the files

[issue27525] Wrong OS header on file created by gzip module

2016-07-17 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> rejected stage: -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue27538] Segfault on error in code object checking

2016-07-17 Thread R. David Murray
R. David Murray added the comment: I don't think this is a bug. You can construct whatever code object you like; it is your responsibility at that point to make sure it is correct. This is an example of why we call Python a "consenting adults" language. -- nosy: +r.david.murray

[issue27541] Repr of collection's subclasses

2016-07-17 Thread R. David Murray
R. David Murray added the comment: It certainly seems that collections should be consistent about this. The question of builtin types is a different issue, and I agree that it is probably way more trouble than it is worth to change them, especially since, for example, repr(str) is often used

[issue27535] Memory leaks when opening tons of files

2016-07-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thus, the problem is that even ignored warnings are saved. If there is a simple fix of this problem we can fix it. But if there is no simple and straightforward way, it may be not worth to complicate the code for such case. I'll look at the code. --

[issue27540] msvcrt.ungetwch() calls _ungetch()

2016-07-17 Thread Eryk Sun
Eryk Sun added the comment: Parsing the argument is also broken: static PyObject * msvcrt_ungetwch(PyObject *self, PyObject *args) { Py_UNICODE ch; if (!PyArg_ParseTuple(args, "u:ungetwch", &ch)) return NULL; if (_ungetch(ch) == EOF)

[issue27538] Segfault on error in code object checking

2016-07-17 Thread Ned Deily
Ned Deily added the comment: I agree with RDM. CPython makes no guarantee that you can't crash the interpreter if you really try to. "Consenting adult" means we don't impose performance penalties on everyone just to protect some users from their own attempts to exploit edge cases. --

[issue27541] Repr of collection's subclasses

2016-07-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It looks to me that the repr of a collection contains a dynamic name if it is implemented in Python and hardcoded base name if it is implemented in C (OrderedDict originally was implemented in Python). Maybe just because tp_name contains full qualified name,

[issue23722] During metaclass.__init__, super() of the constructed class does not work

2016-07-17 Thread Martin Teichmann
Changes by Martin Teichmann : Removed file: http://bugs.python.org/file43765/pep487.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue23722] During metaclass.__init__, super() of the constructed class does not work

2016-07-17 Thread Martin Teichmann
Changes by Martin Teichmann : Added file: http://bugs.python.org/file43766/pep487.patch ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue27538] Segfault on error in code object checking

2016-07-17 Thread Ned Deily
Ned Deily added the comment: Let me add that, in principle, no one is opposed to making Python more fault-tolerant, certainly if there are demonstrable cases where the behavior can be exploited to deny services to others. Cases like this, where it would seem that exploiters could only deny se

[issue26662] configure/Makefile doesn't check if "python" command works, needed to build Objects/typeslots.inc

2016-07-17 Thread Xavier de Gaye
Xavier de Gaye added the comment: This patch follows the first mechanism listed by Martin. The change in configure.ac fixes the problem described by Victor, it does not generate an empty Objects/typeslots.inc file when python is not found that would cause the cryptic " : invalid slot offset" e

[issue26662] configure/Makefile doesn't check if "python" command works, needed to build Objects/typeslots.inc

2016-07-17 Thread Xavier de Gaye
Xavier de Gaye added the comment: Forgot to say that with the patch and no python in $PATH, the following error message is output: $ touch Include/typeslots.h $ make Cannot generate Objects/typeslots.inc, python not found ! Re-run configure with python in PATH. make: *** [Mak

[issue27538] Segfault on error in code object checking

2016-07-17 Thread pablo sacristan
pablo sacristan added the comment: I do agree it is not a very big problem, but it is still a problem. If a python program took user input (maybe HTTP server) took user input (POST values) and construct a code object with that input. It would be possible to crash it and that can be bad for the

[issue27538] Segfault on error in code object checking

2016-07-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If you construct a code object with user input without a checking, the segfault is the least of your problems. The user can inject a code that formats your hard disk or steals your passwords. It is impossible to write general checker that accepts all legitim

[issue27538] Segfault on error in code object checking

2016-07-17 Thread Ned Deily
Changes by Ned Deily : -- resolution: remind -> wont fix status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue27538] Segfault on error in code object checking

2016-07-17 Thread pablo sacristan
pablo sacristan added the comment: Yes, but it is possible to blacklist some bytecode (it may be possible to blacklist all or almost all malicious bytecode) and even more if the attacker just wants to crash the target then the segfault would be an easy crash. It is still an attack scenario tha

[issue27542] Segfault in gcmodule.c:360 visit_decref

2016-07-17 Thread Ned Deily
Ned Deily added the comment: Try installing cffi from source rather than using the pre-compiled wheel: python -m pip uninstall cffi python -m pip install -v --no-use-wheel --user cffi If that works, there could be an incompatibility between the Python 2.7.12 you are using and the C extensions

[issue27543] from module import function creates package reference to the module

2016-07-17 Thread Marc
New submission from Marc: Hello, I've found an issue in python 2.7 and 3.4 and I don't if this is a bug or a feature that acts strange to me. The import of a module or method from a module creates a reference in the package to that module only the first time, which could lead to unexpected b

[issue27542] Segfault in gcmodule.c:360 visit_decref

2016-07-17 Thread Julien
Julien added the comment: @Ned Despite the segfault, cffi installs well, the segfault occurs during a garbage collect, very late, inside Py_Exit according to the backtrace, so it has no impact. > What platform are you on and what is the source of the Python 2.7 Debian stretch, python (and so

[issue27542] Segfault in gcmodule.c:360 visit_decref

2016-07-17 Thread Ned Deily
Ned Deily added the comment: It would still be interesting to know whether you see the same behavior with building from source. If a cffi extension module is invoked during the install process, it might screw things up. Otherwise, unless you can reproduce the problem with a vanilla Python 2.

[issue27542] Segfault in gcmodule.c:360 visit_decref

2016-07-17 Thread Julien
Julien added the comment: @ned Oh ok. I just tried, with `--no-use-wheel`: no segfault. -- ___ Python tracker ___ ___ Python-bugs-list

[issue27542] Segfault in gcmodule.c:360 visit_decref

2016-07-17 Thread Stefan Krah
Stefan Krah added the comment: Which makes me think that --no-use-wheel should be the default in pip ... As a Linux user I'm *very* uneasy about this whole binary wheel thing. -- nosy: +skrah ___ Python tracker __

[issue27543] from module import function creates package reference to the module

2016-07-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +brett.cannon, eric.snow, ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue27542] Segfault in gcmodule.c:360 visit_decref

2016-07-17 Thread Ned Deily
Ned Deily added the comment: Thanks for trying! Perhaps the first thing to do is to check with the cffi project; perhaps Armin will recognize something. I'm going to mark this issue as "closed" but feel free to re-open it if a problem with Python turns up. -- resolution: -> third pa

[issue27542] Segfault in gcmodule.c:360 visit_decref

2016-07-17 Thread Julien
Julien added the comment: CFFI issue, like for the record: https://bitbucket.org/cffi/cffi/issues/272/segfault-while-installing-via-pip -- ___ Python tracker ___ ___

[issue27540] msvcrt.ungetwch() calls _ungetch()

2016-07-17 Thread Armin Rigo
Armin Rigo added the comment: Uh, you're right. Then I can also add that putwch() strangely checks for unicode strings of length != 0 instead of == 1, despite what it says it its error message. These functions appear not to be tested or even (in case of ungetwch()) used by anyone. -

[issue27535] Memory leaks when opening tons of files

2016-07-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: I would like to see this fixed. It is rather unfortunate that a tool designed to help find possible resource leaks is itself a certain resource leak. -- nosy: +rhettinger ___ Python tracker

[issue26662] configure/Makefile doesn't check if "python" command works, needed to build Objects/typeslots.inc

2016-07-17 Thread Martin Panter
Martin Panter added the comment: The PYTHON_FOR_GEN scheme seems reasonable to me, as is changing the way typeslots script is run. I do wonder about the advice in the message. If I ran into the problem, I would probably either override PYTHON_FOR_GEN when running Make, or try something like “

[issue27543] from module import function creates package reference to the module

2016-07-17 Thread Brett Cannon
Brett Cannon added the comment: I'm not at a computer where I can verify what you're seeing, Marc,but I should mention that at least for Python 3 your imports are wrong as you should be doing relative imports, e.g. `from . import b as a`, otherwise the imports won't work unless you're accident

[issue27377] Add smarter socket.fromfd()

2016-07-17 Thread Martin Panter
Martin Panter added the comment: The Windows problem, error 10022 = WSAEINVAL from getsockname(), seems to be documented at : “The socket has not been bound”. Regarding the SCTP problem, raising an error seem

[issue19142] Cross-compile fails trying to execute foreign pgen on build host

2016-07-17 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> out of date status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue27490] ARM cross-compile: pgen built without $(CFLAGS) as $(LIBRARY) dependency

2016-07-17 Thread Martin Panter
Martin Panter added the comment: I am happy to repurpose this bug to improve how code generators like pgen work if you want. Or open a separate report if you think that is best. My problem with the proposal involving PGEN_DEPS0 is that it relies on makefile syntax intended for changing filenam

[issue27543] from module import function creates package reference to the module

2016-07-17 Thread R. David Murray
R. David Murray added the comment: The same example can be constructed for python3 by modifying the imports. I think what is happening here is that if a has not yet been imported, then when 'from .a import test' is done, the import machinery loads a and then defines 'a' in the local namespace,

[issue27544] Document checking dict types

2016-07-17 Thread hannah
New submission from hannah: While there is documentation that dict.keys(), dict.values(), and dict.items() are now view objects(https://docs.python.org/3/library/stdtypes.html#dict-views), there's no mention dictviews, dict_keys, dict_values, and dict_items not being built-ins. This is confus

[issue27544] documentiona of dict view types

2016-07-17 Thread hannah
Changes by hannah : -- title: Document checking dict types -> documentiona of dict view types ___ Python tracker ___ ___ Python-bugs-l

[issue8238] Proxy handling very slow

2016-07-17 Thread Martin Panter
Martin Panter added the comment: If this is still a problem, you should narrow down what is causing the slowdown. If you interrupt it, what is the stack trace? My best guess is perhaps there is a bypass hostname setting and a slow or failing DNS lookup. A call to urllib.proxy_bypass() was adde

[issue27544] documentiona of dict view types

2016-07-17 Thread Emanuel Barry
Emanuel Barry added the comment: "The #python-dev channel" being me in this context ;) Patch attached. -- keywords: +patch nosy: +ebarry stage: -> patch review Added file: http://bugs.python.org/file43768/dict_view_doc_1.patch ___ Python tracker

[issue27544] Document the ABCs for instance/subclass checks of dict view types

2016-07-17 Thread Emanuel Barry
Changes by Emanuel Barry : -- title: documentiona of dict view types -> Document the ABCs for instance/subclass checks of dict view types ___ Python tracker ___

[issue23722] During metaclass.__init__, super() of the constructed class does not work

2016-07-17 Thread Guido van Rossum
Guido van Rossum added the comment: I don't think this requires adding it to the PEP, and I think doing this is fine. (But I can't review the code.) -- nosy: +gvanrossum ___ Python tracker

[issue27543] from module import function creates package reference to the module

2016-07-17 Thread Brett Cannon
Brett Cannon added the comment: So the problem is that you doing `from .a import test` and not `from . import a; test = a.test`. Whenever you do `from X import Y`, import actually imports X. Since X wasn't in sys.modules, it performs a proper import which means it sets the attribute on the pac

[issue27545] missing pyshellext.vcxproj prevents puilding 3.6

2016-07-17 Thread Decorater
New submission from Decorater: I have a issue with building 3.6 now since I got the last hg update it seems the github repo is broken too. This does need a fix. -- components: Build messages: 270677 nosy: Decorater priority: normal severity: normal status: open title: missing pyshellext

[issue27545] missing pyshellext.vcxproj prevents puilding 3.6

2016-07-17 Thread Xiang Zhang
Xiang Zhang added the comment: Could you post the error message and your platform? I just tried and everything went fine. -- nosy: +xiang.zhang ___ Python tracker ___ __

[issue27545] missing pyshellext.vcxproj prevents puilding 3.6

2016-07-17 Thread Decorater
Decorater added the comment: I am using Win32 and x64 configurations and this is the error: E:\Users\Elsword\Desktop\DecoraterBot\Async\DecoraterBot-indev\python36-indev\c python\PCbuild\pcbuild.proj(78,5): error MSB3202: The project file "pyshellext. vcxproj" was not found. --

[issue27545] missing pyshellext.vcxproj prevents puilding 3.6

2016-07-17 Thread Decorater
Decorater added the comment: Also I am using the windows target OS on it as well. -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue27545] missing pyshellext.vcxproj prevents puilding 3.6

2016-07-17 Thread Eryk Sun
Eryk Sun added the comment: Steve committed part of the update for the new shell extension DLL in changeset 6b0023810108. I didn't notice because I have the patch from issue 27469 imported in order to build and test pyshellext.dll. -- components: +Windows nosy: +eryksun, paul.moore, st

[issue27545] missing pyshellext.vcxproj prevents puilding 3.6

2016-07-17 Thread Steve Dower
Steve Dower added the comment: Whoops, that wasn't supposed to slip in. I'll fix :) -- assignee: -> steve.dower versions: +Python 3.5 ___ Python tracker ___

[issue27545] missing pyshellext.vcxproj prevents puilding 3.6

2016-07-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset d044e03fbed6 by Steve Dower in branch '3.5': Closes #27545: Remove pyshellext.vcxproj from pcbuild.proj https://hg.python.org/cpython/rev/d044e03fbed6 New changeset f7a161e48af8 by Steve Dower in branch 'default': Closes #27545: Remove pyshellext.vc

[issue27533] release GIL in nt._isdir

2016-07-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset ebf9a4c933e9 by Steve Dower in branch '3.5': Issue #27533: Release GIL in nt._isdir https://hg.python.org/cpython/rev/ebf9a4c933e9 New changeset 8823c660820e by Steve Dower in branch 'default': Issue #27533: Release GIL in nt._isdir https://hg.pytho

[issue27533] release GIL in nt._isdir

2016-07-17 Thread Steve Dower
Changes by Steve Dower : -- assignee: -> steve.dower resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue27469] Unicode filename gets crippled on Windows when drag and drop

2016-07-17 Thread Steve Dower
Steve Dower added the comment: Thanks, I've merged that change into my patch. I doubt anyone else is going to build and test this, but just in case I'll let it set for a couple of days before merging. Perhaps someone will at least look at the code. --

[issue27417] Call CoInitializeEx on startup

2016-07-17 Thread Steve Dower
Steve Dower added the comment: Mark's argument is strong, so I'm withdrawing this proposal. Thanks for the discussion and comments, everyone! -- resolution: -> rejected status: open -> closed ___ Python tracker _

[issue27407] prepare_ssl.py missing in PCBuild folder

2016-07-17 Thread Steve Dower
Steve Dower added the comment: Giving this to Zach to resolve/close as he feels appropriate. -- assignee: -> zach.ware ___ Python tracker ___ ___

[issue27546] Integrate tkinter and asyncio (and async)

2016-07-17 Thread Terry J. Reedy
New submission from Terry J. Reedy: The last week of last February, there was a discussion of this topic on python-ideas as part of "How the heck does async/await work in Python 3.5". I would like to re-start the discussion along with rescuing the two big chunks of code that were posted. Gui

[issue27546] Integrate tkinter and asyncio (and async)

2016-07-17 Thread Terry J. Reedy
Changes by Terry J. Reedy : Added file: http://bugs.python.org/file43770/tkloop.py ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue27469] Unicode filename gets crippled on Windows when drag and drop

2016-07-17 Thread Decorater
Decorater added the comment: Oh and when the shell extension is done could you make a custom icon for pyd's and have the desciption of "Python C Compiled DLL" to easy selcting them when you have no icons for any *.lib, *.exp and *.pdb's Would ease up comping pyd files as well. On further note

[issue27469] Unicode filename gets crippled on Windows when drag and drop

2016-07-17 Thread Steve Dower
Steve Dower added the comment: A custom icon for .pyd files doesn't require a shell extension - it only really requires the icon. I don't want to use the same as .pyc, since that has the implication that it can be deleted safely, or .py, since that can be double-clicked. So we'd need somethin

[issue27309] Visual Styles support to tk/tkinter file and message dialogs

2016-07-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7ffb7f3c345d by Steve Dower in branch '3.5': Issue #27309: Enables proper Windows styles in python[w].exe manifest. https://hg.python.org/cpython/rev/7ffb7f3c345d New changeset da735eb8b7a2 by Steve Dower in branch 'default': Issue #27309: Enables p

[issue27309] Visual Styles support to tk/tkinter file and message dialogs

2016-07-17 Thread Steve Dower
Steve Dower added the comment: Updated the manifest to include the correct common controls DLL, which ensures the correct style is used for native dialogs. I applied this to Python 3.5 and 3.6, since it's not a behavioural change and should not break any code, and arguably since it's been the

[issue27546] Integrate tkinter and asyncio (and async)

2016-07-17 Thread Guido van Rossum
Guido van Rossum added the comment: I expect it should eventually be added to tkinter. But I also think it might be worthwhile to first develop it as a 3rd party package on PyPI, to see if it can actually be done well enough to put it in the stdlib. I guess a demo app should be part of the proje

[issue26624] Windows hangs in call to CRT setlocale()

2016-07-17 Thread Decorater
Decorater added the comment: Cant someone just copy these dlls from Windows 10 itself if they have it installed? ucrtbase: 10.0.14295.1000 (03/19/2016) ucrtbased: 10.0.10586.15(11/20/2015) vcruntime140d: 14.0.23506.0 (11/05/2015) I have windows 10 on another partition btw so

[issue26624] Windows hangs in call to CRT setlocale()

2016-07-17 Thread Steve Dower
Steve Dower added the comment: You should get these files by installing the latest Windows 10 SDK (regardless of your OS - the SDK version relates to the latest it can target, not the latest it can be used on). For some reason, they decided it shouldn't be "automatic" to update the SDK when y

[issue27469] Unicode filename gets crippled on Windows when drag and drop

2016-07-17 Thread Eryk Sun
Eryk Sun added the comment: Steve, will you be uploading a new patch? The current patch doesn't include "pyshellext.vcxproj" in the build, since that was accidentally committed and then removed. When you call ShellExecute, I suggest passing NULL for lpOperation, to use the default verb. If n

[issue27469] Unicode filename gets crippled on Windows when drag and drop

2016-07-17 Thread Steve Dower
Steve Dower added the comment: Sure, added a new patch with all of your suggestions. I also added pyshellext.vcxproj to pcbuild.sln. (And my final word on the magic used to load DLLs from memory is that I'm not willing to maintain that code within CPython itself, so it won't be going into the

[issue27469] Unicode filename gets crippled on Windows when drag and drop

2016-07-17 Thread Decorater
Decorater added the comment: I actually like py2exe's memory loader. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

  1   2   >