[issue27551] Integer Overflow On print()

2016-07-17 Thread pablo sacristan
New submission from pablo sacristan: There is an integer overflow because python doesn't check the length correctly on print() statements: print(0xFFF**100**8) That will overflow and python would stop working, so it would be as good as crashed :) Hope it

[issue27550] Integer Overflow Crash On Arithmetic Operations

2016-07-17 Thread pablo sacristan
New submission from pablo sacristan: There is an integer overflow because python doesn't check the length correctly on arithmetic operations: 0xFFF**100**8 Just that line will freeze python, no oveflow message appears, no memory error, and python basically

[issue27549] Integer Overflow Crash On bytearray()

2016-07-17 Thread pablo sacristan
New submission from pablo sacristan: There is an integer overflow because python doesn't check the length correctly on bytearray: bytearray(0xFFF**100**8) That will not return an overflow message, and even though my hex knowledge is very bad I do believe

[issue27548] Integer Overflow On bin()

2016-07-17 Thread pablo sacristan
New submission from pablo sacristan: There is an integer overflow in bin() because python incorrectly checks the length of the input in bin(). bin(0xFFF+10**80) That line will freeze python until you restart it, which basically is a crash because python stops working

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

2016-07-17 Thread Decorater
Decorater added the comment: not to mention build processes seems to be taking a lot of CPU recently but older C/C++ compilers do not EG the ones from like 2008 or so running faster than the same stuff being compiled againt 2010~2015 ones. -- ___

[issue27547] Integer Overflow Crash On float(array.array())

2016-07-17 Thread pablo sacristan
New submission from pablo sacristan: There is an integer overflow because python doesn't check the length as it does with bytearray() and it still goes on, so by doing something like: >>> import array >>> float(array.array("L",b"a"*0xFFF+10**80)) It returns:

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

2016-07-17 Thread Decorater
Decorater added the comment: Also can you ask them why sometimes the IDE takes too long to respond AKA freezes / crashes randomly? -- ___ Python tracker

[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 ___ ___

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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 ___

[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.

[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 ___

[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

[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. --

[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

[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

[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

[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 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,

[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 ___

[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 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
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

[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

[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

[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

[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

[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

[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 ___

[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

[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

[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

[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 ___

[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

[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

[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

[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

[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.

[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

[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

[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 ___

[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

[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 ___

[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

[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

[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

[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

[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

[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 ___

[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

[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

[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: ***

[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"

[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

[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 ___

[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 ___

[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

[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.

[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", )) return NULL; if (_ungetch(ch) == EOF)

[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.

[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

[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

[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 ___

[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

[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

[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 ___

[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

[issue27541] Repr of collection's subclasses

2016-07-17 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___

[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

[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

[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

[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

[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

[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 ___

[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

[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

[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

[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

[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

[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':

[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

[issue23782] Leak in _PyTraceback_Add

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

[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 ___ ___

[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 ___

[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

[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 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

[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

[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

[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:

[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

[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:

  1   2   >