[issue36946] Possible signed integer overflow in slice handling

2019-05-16 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +13286 stage: -> patch review ___ Python tracker ___ ___

[issue36946] Possible signed integer overflow in slice handling

2019-05-16 Thread Zackery Spytz
New submission from Zackery Spytz : Python 3.8.0a4+ (heads/master:870b035bc6, May 16 2019, 20:53:02) [GCC 9.0.1 20190402 (experimental) [trunk revision 270074]] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> 'hi'[1::sys.maxsize]

Re: Import module from a different subdirectory

2019-05-16 Thread Inada Naoki
2019年5月17日(金) 9:25 Rich Shepard : > > My understanding is that Python3 does not require subdirectories to have an > __init__.py file, only Python2 does. If that's not correct I'll add the > blank file. > This is slightly off topic (not relating to your problem), but please don't think "Python 3

Re: Import module from a different subdirectory

2019-05-16 Thread dieter
Rich Shepard writes: > I'm developing a Python3 application using Python3-3.7.3 and > virtualenv-16.5.0 on a Slackware-14.2 host. > > The project directory contains subdirectories, including gui/ (with the > tkinter views) and classes/ with the SQLAlchemy model.py. > > Within the gui/ directory

[issue26092] doctest should allow custom sys.displayhook

2019-05-16 Thread Noam Yorav-Raphael
Noam Yorav-Raphael added the comment: Tim, thanks for letting me know. I certainly don't mind if you close this bug, since it undoes my old (and still relevant) fix. -- nosy: +noamraph ___ Python tracker

[issue18060] Updating _fields_ of a derived struct type yields a bad cif

2019-05-16 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- keywords: +patch pull_requests: +13285 stage: -> patch review ___ Python tracker ___ ___

[issue36602] Recursive directory list with pathlib.Path.iterdir

2019-05-16 Thread Laurie Opperman
Laurie Opperman added the comment: I think I may have broken bedevere-bot by request change reviews before the PR was assigned... -- ___ Python tracker ___

[issue36564] Infinite loop with short maximum line lengths in EmailPolicy

2019-05-16 Thread Abhilash Raj
Abhilash Raj added the comment: Moving the conversation here from https://github.com/python/cpython/pull/12732 for David. I previously suggested HeaderParseError because of the fact that we could fail to parse a value into a Header Object in the above scenario. @r.david.murray Would it be

[issue36751] Changes in the inspect module for PEP 570

2019-05-16 Thread mike bayer
mike bayer added the comment: Just did some benchmarks, and while Signature has apparently had a big speedup in Python 3.6, it is still much less performant than either the Python 2.7 or Python 3.3 implementations, anywhere from 6-18 times slower approximately depending on the function.

[issue21861] io class name are hardcoded in reprs

2019-05-16 Thread Windson Yang
Windson Yang added the comment: IIUC, in the c code we just hardcode the name "_io.FileIO" for "PyFileIO_Type" in https://github.com/python/cpython/blob/master/Modules/_io/fileio.c#L1180. If we want to get a dynamic name, we should replace the hardcode name with the module name (like

[issue36889] Merge StreamWriter and StreamReader into just asyncio.Stream

2019-05-16 Thread Ian Good
Change by Ian Good : -- nosy: +icgood ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36751] Changes in the inspect module for PEP 570

2019-05-16 Thread mike bayer
mike bayer added the comment: > We are talking again and again that we have a lot of old things in the > standard library but it seems that removing them is also a problem. I agree that the reason we have these deprecation warnings is so that we do get notified and we do fix them. I think

[issue36763] PEP 587: Rework initialization API to prepare second version of the PEP

2019-05-16 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13284 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36763] PEP 587: Rework initialization API to prepare second version of the PEP

2019-05-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset 870b035bc6da96689b59dd6f79782ec6f1873617 by Victor Stinner in branch 'master': bpo-36763: Cleanup precmdline in _PyCoreConfig_Read() (GH-13371) https://github.com/python/cpython/commit/870b035bc6da96689b59dd6f79782ec6f1873617 --

[issue36876] Global C variables are a problem.

2019-05-16 Thread Eric Snow
Change by Eric Snow : -- keywords: +patch pull_requests: +13283 stage: needs patch -> patch review ___ Python tracker ___ ___

Re: Import module from a different subdirectory

2019-05-16 Thread Rich Shepard
On Fri, 17 May 2019, duncan smith wrote: You could make the subdirectories Python packages. Google (or better DuckDuckGo) is your friend. Duncan, My understanding is that Python3 does not require subdirectories to have an __init__.py file, only Python2 does. If that's not correct I'll add

[issue36763] PEP 587: Rework initialization API to prepare second version of the PEP

2019-05-16 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13282 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26092] doctest should allow custom sys.displayhook

2019-05-16 Thread Tim Peters
Tim Peters added the comment: Oops! Should be issue 8048. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue26092] doctest should allow custom sys.displayhook

2019-05-16 Thread Tim Peters
Tim Peters added the comment: Noam Yorav-Raphael, I tried to add you because this is pushing back against your patch in issue 8408. It's been some years now, and nobody has cared enough to pursue it, so I'll just close this if you still don't care ;-) As doctest's original author, I

[issue26092] doctest should allow custom sys.displayhook

2019-05-16 Thread Tim Peters
Change by Tim Peters : -- nosy: +noam, tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36850] shutil.copy2 fails with even with source network filesystem not supporting extended attributes

2019-05-16 Thread Ying Wang
Change by Ying Wang : -- pull_requests: +13280 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24564] shutil.copytree fails when copying NFS to NFS

2019-05-16 Thread Ying Wang
Change by Ying Wang : -- keywords: +patch pull_requests: +13279 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36755] [2.7] test_httplib leaked [8, 8, 8] references with OpenSSL 1.1.1

2019-05-16 Thread Benjamin Peterson
Change by Benjamin Peterson : -- keywords: +patch pull_requests: +13281 stage: -> patch review ___ Python tracker ___ ___

[issue36751] Changes in the inspect module for PEP 570

2019-05-16 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks Pablo. Noting for the record: positional-only arguments aren't new *semantically", since extension modules have always allowed them, and you've long been able to emulate them in Python code by accepting "*args". Prior to the introduction of argument

Re: Tkinter on Mac OS crashes python

2019-05-16 Thread MRAB
On 2019-05-16 21:39, Christian Gollwitzer wrote: Am 15.05.19 um 20:25 schrieb Chip Towner: Terry, Thanks for the input and FYI I am running 10.14.4 Mojave. Apple changed a couple of APIs on Mojave (versus High Sierra) that made Tk stop working, when it was compiled with the Mojave SDK. Tk

Re: Import module from a different subdirectory

2019-05-16 Thread duncan smith
On 16/05/2019 22:50, Rich Shepard wrote: > I'm developing a Python3 application using Python3-3.7.3 and > virtualenv-16.5.0 on a Slackware-14.2 host. > > The project directory contains subdirectories, including gui/ (with the > tkinter views) and classes/ with the SQLAlchemy model.py. > > Within

[issue36468] Treeview: wrong color change

2019-05-16 Thread Matthew Barnett
Matthew Barnett added the comment: I've just come across the same problem. For future reference, adding the following code before using a Treeview widget will fix the problem: def fixed_map(option): # Fix for setting text colour for Tkinter 8.6.9 # From:

[issue36945] Add _PyPreConfig.configure_locale: allow to leave LC_CTYPE unchanged when embedding Python

2019-05-16 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +13278 stage: -> patch review ___ Python tracker ___ ___

[issue36945] Add _PyPreConfig.configure_locale: allow to leave LC_CTYPE unchanged when embedding Python

2019-05-16 Thread STINNER Victor
New submission from STINNER Victor : Py_Initiliaze() always call setlocale(LC_CTYPE, "") on all platforms to set the LC_CTYPE locale to the user preferred locale. That's fine when Py_Main() is used: when Python is the only "owner" of a process. I'm not sure that it's fine when Python is

[issue29282] Fused multiply-add: proposal to add math.fma()

2019-05-16 Thread Caleb Donovick
Change by Caleb Donovick : -- nosy: +donovick ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18060] Updating _fields_ of a derived struct type yields a bad cif

2019-05-16 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: The t1.py test case calls both PyCStructUnionType_update_stgdict() and PyCStgDict_clone(), both of which are broken. The test case in t2.py is simpler than t1.py in that it only calls PyCStructUnionType_update_stgdict().

[issue36943] Windows test changes for Windows ARM64

2019-05-16 Thread Paul Monson
Change by Paul Monson : -- keywords: +patch pull_requests: +13277 stage: -> patch review ___ Python tracker ___ ___

Import module from a different subdirectory

2019-05-16 Thread Rich Shepard
I'm developing a Python3 application using Python3-3.7.3 and virtualenv-16.5.0 on a Slackware-14.2 host. The project directory contains subdirectories, including gui/ (with the tkinter views) and classes/ with the SQLAlchemy model.py. Within the gui/ directory as the cwd testing the code for a

[issue36942] Windows code changes for Windows ARM64

2019-05-16 Thread Paul Monson
Change by Paul Monson : -- keywords: +patch pull_requests: +13276 stage: -> patch review ___ Python tracker ___ ___

[issue36941] Windows build changes for Windows ARM64

2019-05-16 Thread Paul Monson
Change by Paul Monson : -- keywords: +patch pull_requests: +13275 stage: -> patch review ___ Python tracker ___ ___

[issue36944] Add support for ARM64 to libffi

2019-05-16 Thread Paul Monson
New submission from Paul Monson : These changes are also submitted to libffi as https://github.com/libffi/libffi/pull/490 -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware title: W -> Add support for ARM64 to libffi versions: +Python 3.8

[issue36944] W

2019-05-16 Thread Paul Monson
Change by Paul Monson : -- nosy: Paul Monson priority: normal severity: normal status: open title: W ___ Python tracker ___ ___

[issue36943] Windows test changes for Windows ARM64

2019-05-16 Thread Paul Monson
New submission from Paul Monson : Add Windows test changes for Windows ARM64 -- components: Windows messages: 342674 nosy: Paul Monson, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: Windows test changes for Windows ARM64 versions:

[issue36942] Windows code changes for Windows ARM64

2019-05-16 Thread Paul Monson
New submission from Paul Monson : Add ifdef changes for Windows ARM64 -- components: Windows messages: 342673 nosy: Paul Monson, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: Windows code changes for Windows ARM64 type: enhancement

[issue36941] Windows build changes for Windows ARM64

2019-05-16 Thread Paul Monson
New submission from Paul Monson : Add build file changes for Windows ARM64 -- components: Build, Windows messages: 342672 nosy: Paul Monson, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: Windows build changes for Windows ARM64

Re: Tkinter on Mac OS crashes python

2019-05-16 Thread Christian Gollwitzer
Am 15.05.19 um 20:25 schrieb Chip Towner: Terry, Thanks for the input and FYI I am running 10.14.4 Mojave. Apple changed a couple of APIs on Mojave (versus High Sierra) that made Tk stop working, when it was compiled with the Mojave SDK. Tk compiled against the High Sierra SDK continued to

[issue34509] Starting to use gcc-8 on CI

2019-05-16 Thread Jun Aruga
Jun Aruga added the comment: Sure, alright. Thanks for informing me. On Thu, 16 May 2019 at 00:08, Zachary Ware wrote: > > > Zachary Ware added the comment: > > We do now have at least one builder using GCC 8 (ware-gentoo-x86) and one > using GCC 9 (cstratak-fedora), so I'm closing the

[issue36751] Changes in the inspect module for PEP 570

2019-05-16 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- priority: release blocker -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36751] Changes in the inspect module for PEP 570

2019-05-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset aee19f54f6fe45f6b3c906987941e5a8af4468e9 by Pablo Galindo in branch 'master': bpo-36751: Undeprecate getfullargspec (GH-13245) https://github.com/python/cpython/commit/aee19f54f6fe45f6b3c906987941e5a8af4468e9 --

[issue36751] Changes in the inspect module for PEP 570

2019-05-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: For now, I am going to proceed to merge PR13245 and un-deprecate getfullargspec(). Being said that I would want to remark that if test suites are broken when deprecation warnings are emitted that is (1) their own choice, (2) precisely to detect when

[issue26515] Update extending/embedding docs to new way to build modules in C

2019-05-16 Thread Petr Viktorin
Petr Viktorin added the comment: Correct usage of multi-phase init might now get users stuck when they start needing per-module state. See PEP 573 "Module State Access from C Extension Methods" for the (hopefully) last thing that prevents me from generally recommending multi-phase init.

[issue36748] Optimize textio write buffering

2019-05-16 Thread Michele Angrisano
Change by Michele Angrisano : -- pull_requests: +13274 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36751] Changes in the inspect module for PEP 570

2019-05-16 Thread Miro Hrončok
Miro Hrončok added the comment: As a downstream maintainers of Python in Fedora, this is a great PITA for us. A lot of projects unfortunately treat DeprecationWarnings as errors and we run upstream test suites. It appears that this particular DeprecationWarning is now failing the test suites

[issue36751] Changes in the inspect module for PEP 570

2019-05-16 Thread mike bayer
mike bayer added the comment: > A deprecating warning doesn't hurt: you are still able to run your code. this is very much untrue in modern testing environments, as it is common that test suites fail on deprecation warnings, especially in libraries, to ensure downstream compatibility. My

[issue8400] zipimporter find_module fullname mis-documented

2019-05-16 Thread Brett Cannon
Brett Cannon added the comment: Actually find_module() should be deprecated and find_spec() should be defined instead (and the same goes for load_module(); see bpo-9699). So I'm personally fine w/ making this a doc problem w/ the plan to eventually deprecate the method. --

[issue36675] Doctest directives and comments missing from code samples

2019-05-16 Thread Steven D'Aprano
Steven D'Aprano added the comment: > Doctest directives in code examples should be suppressed everywhere > *except* in the doctest.html examples showing how to use directives. > The patch only exposes them for doctest.html and not for ctypes or > anywhere else. Thanks for the patch, and

[issue36880] Returning None from a callback with restype py_object decrements None's refcount too much

2019-05-16 Thread dgelessus
Change by dgelessus : -- keywords: +patch pull_requests: +13273 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue36930] Windows proxy settings automatically used ... partly

2019-05-16 Thread Immo Wetzel
Immo Wetzel added the comment: issue is only on urllib2 and requests (external lib) ticket opened: https://github.com/kennethreitz/requests/issues/5095 -- stage: test needed -> resolved status: open -> closed ___ Python tracker

[issue35926] Need openssl 1.1.1 support on Windows for ARM and ARM64

2019-05-16 Thread Steve Dower
Steve Dower added the comment: New changeset aa73841a8fdded4a462d045d1eb03899cbeecd65 by Steve Dower in branch '3.7': bpo-35926: Add support for OpenSSL 1.1.1b on Windows (GH-11779) https://github.com/python/cpython/commit/aa73841a8fdded4a462d045d1eb03899cbeecd65 --

[issue36511] Add Windows ARM32 buildbot

2019-05-16 Thread Steve Dower
Steve Dower added the comment: Paul - looks like there's a timeout being hit due to lack of output. Any ideas? https://buildbot.python.org/all/#/builders/203/builds/6 -- ___ Python tracker

[issue36930] Windows proxy settings automatically used ... partly

2019-05-16 Thread Immo Wetzel
Immo Wetzel added the comment: thanks for pointing this out. I've retested urllib3 with success. requests with no success. so I'll write a new issue on requests. Thanks a lot -- ___ Python tracker

[issue36763] PEP 587: Rework initialization API to prepare second version of the PEP

2019-05-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset 54b43bb3bb88339b63182b3515cda3efa530ed62 by Victor Stinner in branch 'master': bpo-36763: Add _PyCoreConfig.configure_c_stdio (GH-13363) https://github.com/python/cpython/commit/54b43bb3bb88339b63182b3515cda3efa530ed62 --

[issue36930] Windows proxy settings automatically used ... partly

2019-05-16 Thread Steve Dower
Steve Dower added the comment: requests is a third-party library, so if they're finding your settings you probably need to report it to them. urllib2 is only part of Python 2.x. Do you have a repro with urllib on Python 3? -- ___ Python tracker

[issue36930] Windows proxy settings automatically used ... partly

2019-05-16 Thread Immo Wetzel
Immo Wetzel added the comment: >Can you clarify how you are setting your proxy configuration and how >Python >is finding out about it? The windows host get his proxy configuration via group police from the Active Directory. The group policy points to a specific file wpad.dat formerly known

[issue36930] Windows proxy settings automatically used ... partly

2019-05-16 Thread Steve Dower
Steve Dower added the comment: Can you clarify how you are setting your proxy configuration and how Python is finding out about it? Also, which libraries are you using? As far as I'm aware, Python itself does nothing special to load proxy settings from normal Windows configuration. Doing

[issue36763] PEP 587: Rework initialization API to prepare second version of the PEP

2019-05-16 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13272 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36675] Doctest directives and comments missing from code samples

2019-05-16 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > Doctest directives in code examples should be suppressed everywhere *except* > in the doctest.html examples showing how to use directives. Thanks for clarifying. I missed that. -- ___ Python tracker

[issue36763] PEP 587: Rework initialization API to prepare second version of the PEP

2019-05-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9ef5dcaa0b3c7c7ba28dbb3ec0c9507d9d05e3a9 by Victor Stinner in branch 'master': bpo-36763: Add _Py_InitializeMain() (GH-13362) https://github.com/python/cpython/commit/9ef5dcaa0b3c7c7ba28dbb3ec0c9507d9d05e3a9 --

[issue36940] Update Py_FrozenMain() for _PyCoreConfig (PEP 587)

2019-05-16 Thread STINNER Victor
New submission from STINNER Victor : Python/frozenmain.c should use pre-initialization and be adapted for _PyCoreConfig. Py_FrozenMain() reimplements some features which are now implemented by _Py_InitializeFromConfig(): * disable C streams (stdin, stdout, stderr) buffering * decode argv

[issue36675] Doctest directives and comments missing from code samples

2019-05-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Doctest directives in code examples should be suppressed everywhere *except* in the doctest.html examples showing how to use directives. The patch only exposes them for doctest.html and not for ctypes or anywhere else. They really should not be in the dir

[issue36763] PEP 587: Rework initialization API to prepare second version of the PEP

2019-05-16 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13271 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36763] PEP 587: Rework initialization API to prepare second version of the PEP

2019-05-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset ae239f6b0626e926613a4a1dbafa323bd41fec32 by Victor Stinner in branch 'master': bpo-36763: Add _PyCoreConfig.parse_argv (GH-13361) https://github.com/python/cpython/commit/ae239f6b0626e926613a4a1dbafa323bd41fec32 --

[issue36675] Doctest directives and comments missing from code samples

2019-05-16 Thread Éric Araujo
Éric Araujo added the comment: OP is about the documentation page for doctest itself! -- ___ Python tracker ___ ___

[issue36921] Deprecate yield from and @coroutine in asyncio

2019-05-16 Thread miss-islington
New submission from miss-islington : New changeset 68b34a720485f399e8699235b8f4e08f227dd43b by Miss Islington (bot) (Andrew Svetlov) in branch 'master': bpo-36921: Deprecate @coroutine for sake of async def (GH-13346)

[issue36675] Doctest directives and comments missing from code samples

2019-05-16 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: Isn't it a *feature* that those doctest directives are not shown? Those directives are meant for the doctest module only, not for the reader of the rendered documentation. -- nosy: +jdemeyer ___ Python tracker

[issue36763] PEP 587: Rework initialization API to prepare second version of the PEP

2019-05-16 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13270 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36763] PEP 587: Rework initialization API to prepare second version of the PEP

2019-05-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset dbacfc227381fbc7b3c886ea0bd7806ab3dc62c2 by Victor Stinner in branch 'master': bpo-36763: _PyInitError always use int for exitcode (GH-13360) https://github.com/python/cpython/commit/dbacfc227381fbc7b3c886ea0bd7806ab3dc62c2 --

[issue36939] Allow to use shutil.copytree for existing destination directory with optional argument

2019-05-16 Thread jack1142
jack1142 added the comment: Sorry, it looks like I was looking at 3.7 branch and this is already implemented in master branch. -- stage: -> resolved status: open -> closed ___ Python tracker

[issue36939] Allow to use shutil.copytree for existing destination directory with optional argument

2019-05-16 Thread jack1142
New submission from jack1142 : Currently shutil.copytree will allow to copy tree only if destination directory doesn't exist. I think there could be added `exist_ok` keyword argument (defaulting to `False`), which when set to `True` would prevent function from raising `FileExistsError`. This

[issue36763] PEP 587: Rework initialization API to prepare second version of the PEP

2019-05-16 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13269 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36927] traceback docstrings should explicitly state return values instead of referring to other functions

2019-05-16 Thread Michele Angrisano
Change by Michele Angrisano : -- keywords: +patch pull_requests: +13268 stage: needs patch -> patch review ___ Python tracker ___

[issue36938] Py_XDECREF on PyUnicodeobject raises SIGSEGV signal

2019-05-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PyTuple_SetItem() steals a reference to the added item. You should not call Py_XDECREF() for it. -- nosy: +serhiy.storchaka resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue35589] BaseSelectorEventLoop.sock_sendall() performance regression: extra copy of data

2019-05-16 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35589] BaseSelectorEventLoop.sock_sendall() performance regression: extra copy of data

2019-05-16 Thread miss-islington
miss-islington added the comment: New changeset 6e7890028213b30939327e7cf885bf097fc14472 by Miss Islington (bot) (Andrew Svetlov) in branch 'master': bpo-35589: Prevent buffer copy in sock_sendall() (GH-11418) https://github.com/python/cpython/commit/6e7890028213b30939327e7cf885bf097fc14472

[issue36938] Py_XDECREF on PyUnicodeobject raises SIGSEGV signal

2019-05-16 Thread Khalil
New submission from Khalil : I Have a set of callbacks from a C extension to a Python code and I noticed that when I report a unicode string to the Python code, and use the Py_XDECREF on it then whole application crashes with the SIGSEGV signal.This is a snippet of the codes:

[issue36936] CALL_FUNCTION_KW opcode: keyword names must be non-empty

2019-05-16 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: Adding that assertion allows future optimizations and simplifications: with the assertion, "keyword arguments are passed" becomes equivalent to kwnames != NULL instead of kwnames != NULL && PyTuple_GET_SIZE(kwnames) > 0 This may not be useful right

[issue36936] CALL_FUNCTION_KW opcode: keyword names must be non-empty

2019-05-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Then I do not see a reason to add an assertion. -- ___ Python tracker ___ ___ Python-bugs-list

[issue36937] New _PyObject_MakeTpCall() function

2019-05-16 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: I forgot to mention that the idea and first implementation comes from Mark Shannon. -- ___ Python tracker ___

[issue36937] New _PyObject_MakeTpCall() function

2019-05-16 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- keywords: +patch pull_requests: +13267 stage: -> patch review ___ Python tracker ___ ___

[issue36936] CALL_FUNCTION_KW opcode: keyword names must be non-empty

2019-05-16 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > What happens when pass an empty tuple? The way how bytecode is compiled, that doesn't actually happen so it's an entirely hypothetical question. The various XXX_FastCallKeywords functions seem to allow passing an empty tuple to mean "no keyword

[issue31078] pdb's debug command (Pdb.do_debug) doesn't use rawinput even if the parent pdb uses rawinput

2019-05-16 Thread daniel hahler
daniel hahler added the comment: > I think a good alternative patch might be: This however makes it behave different in tests, where stdout might be mocked/wrapped intentionally. Therefore I think using the parent's `use_rawinput` is the better fix for this (the originally proposed patch).

[issue36936] CALL_FUNCTION_KW opcode: keyword names must be non-empty

2019-05-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What happens when pass an empty tuple? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue31078] pdb's debug command (Pdb.do_debug) doesn't use rawinput even if the parent pdb uses rawinput

2019-05-16 Thread daniel hahler
daniel hahler added the comment: Just for reference and searchability: this causes tab completion to not work with `debug foo()` also. -- ___ Python tracker ___

[issue31078] pdb's debug command (Pdb.do_debug) doesn't use rawinput even if the parent pdb uses rawinput

2019-05-16 Thread daniel hahler
daniel hahler added the comment: It was added in 477c8d5e702 (a huge svn merge commit), with this reference: r45955 | georg.brandl | 2006-05-10 19:13:20 +0200 (Wed, 10 May 2006) | 4 lines Patch #721464: pdb.Pdb instances can now be given explicit stdin and stdout

[issue36927] traceback docstrings should explicitly state return values instead of referring to other functions

2019-05-16 Thread Michele Angrisano
Michele Angrisano added the comment: If Aaron can't working on it, I can do it. Just tell me. Thanks. -- nosy: +Michele Angrisano ___ Python tracker ___

[issue36937] New _PyObject_MakeTpCall() function

2019-05-16 Thread Jeroen Demeyer
New submission from Jeroen Demeyer : Add a new private function PyObject *_PyObject_MakeTpCall(PyObject *callable, PyObject *const *args, Py_ssize_t nargs, PyObject *keywords) to call "callable" using tp_call, but with arguments given using the FastCallKeywords or FastCallDict convention

Re: Python installer hangs in Windows 7

2019-05-16 Thread pauldubar
On Monday, 6 February 2017 16:16:24 UTC+11, Jean-Claude Roy wrote: >   I am trying to install Python 3.6.0 on a Windows 7 computer. > The download of 29.1 MB is successful and I get the nextwindow.  I choose the > "install now" selection and thatopens the Setup Program window. > Now the trouble

[issue36936] CALL_FUNCTION_KW opcode: keyword names must be non-empty

2019-05-16 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- keywords: +patch pull_requests: +13266 stage: -> patch review ___ Python tracker ___ ___

[issue36936] CALL_FUNCTION_KW opcode: keyword names must be non-empty

2019-05-16 Thread Jeroen Demeyer
New submission from Jeroen Demeyer : Document and add an assertion that the "keyword names" tuple of the CALL_FUNCTION_KW opcode must be non-empty. This is already the case with the current compiler: if there are no keyword arguments in a call, then the CALL_FUNCTION_KW opcode is not used.

[issue36930] Windows proxy settings automatically used ... partly

2019-05-16 Thread SilentGhost
Change by SilentGhost : -- versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36930] Windows proxy settings automatically used ... partly

2019-05-16 Thread SilentGhost
SilentGhost added the comment: Immo, please be careful when editing the fields. You've set the values that were explicitly removed by the developer. Library is fine. -- assignee: terry.reedy -> components: -IDLE, IO nosy: +SilentGhost, orsenthil -terry.reedy type: -> behavior

[issue36930] Windows proxy settings automatically used ... partly

2019-05-16 Thread Immo Wetzel
Immo Wetzel added the comment: ok where should I place this . IO or Library ? If this is not a bug I really have to do some soul-searching -- assignee: -> terry.reedy components: +IDLE nosy: +terry.reedy versions: +Python 3.6 -Python 3.8 ___

[issue36935] bpo-35813 introduced usage of the deprecated PyErr_SetFromWindowsErrWithUnicodeFilename() function

2019-05-16 Thread Eryk Sun
Eryk Sun added the comment: This was my fault for recommending PyErr_SetFromWindowsErrWithUnicodeFilename without checking the header for deprecation. PyErr_SetFromWindowsErrWithUnicodeFilename is an internal function (added for PEP 277, circa 2.4), which was never documented in the C API.

[issue36748] Optimize textio write buffering

2019-05-16 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36748] Optimize textio write buffering

2019-05-16 Thread Inada Naoki
Inada Naoki added the comment: New changeset bfba8c373e362d48d4ee0e0cf55b8d9c169344ae by Inada Naoki in branch 'master': bpo-36748: optimize TextIOWrapper.write() for ASCII string (GH-13002) https://github.com/python/cpython/commit/bfba8c373e362d48d4ee0e0cf55b8d9c169344ae --

  1   2   >