[issue31904] Python should support VxWorks RTOS

2019-05-23 Thread Hongchang Liu
Change by Hongchang Liu : -- pull_requests: +13449 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37029] PyObject_Free is O(N^2) where N = # of arenas

2019-05-23 Thread Inada Naoki
New submission from Inada Naoki : Reported here: * https://stackoverflow.com/questions/56228799/python-hangs-indefinitely-trying-to-delete-deeply-recursive-object * https://mail.python.org/pipermail/python-dev/2019-May/157635.html -- components: Interpreter Core messages: 343344 nosy:

[issue36982] Add support for extended color functions in ncurses 6.1

2019-05-23 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36982] Add support for extended color functions in ncurses 6.1

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

[issue37023] test_gdb failed on AMD64 Debian PGO 3.x

2019-05-23 Thread Steve Dower
Steve Dower added the comment: I confirmed earlier that removing the new code from builtins_id fixes this issue, which I suspect means that PGO is deciding to make different optimizations and produce different output. Other functions in the same stack also do not show their arguments, so I

[issue36982] Add support for extended color functions in ncurses 6.1

2019-05-23 Thread Chih-Hsuan Yen
Change by Chih-Hsuan Yen : -- nosy: +yan12125 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35753] Importing call from unittest.mock directly causes ValueError

2019-05-23 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36630] failure of test_colors_funcs in test_curses with ncurses 6.1

2019-05-23 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: I created issue #36982 to track the extended color changes since they broader than this issue. -- ___ Python tracker ___

[issue36411] Python 3 f.tell() gets out of sync with file pointer in binary append+read mode

2019-05-23 Thread Windson Yang
Windson Yang added the comment: I think we should mention it at the document, like in the tell() function. -- ___ Python tracker ___

[issue36411] Python 3 f.tell() gets out of sync with file pointer in binary append+read mode

2019-05-23 Thread Windson Yang
Windson Yang added the comment: I'm not sure it's a bug. When you write binary data to file (use BufferedIOBase by default). It actually writes the data to a buffer. That is why tell() gets out of sync. You can follow the instrument belolw. For instance, call flush() after writing to get

[issue35753] Importing call from unittest.mock directly causes ValueError

2019-05-23 Thread ppperry
ppperry added the comment: Indeed, you are right that this should be reopened. -- ___ Python tracker ___ ___ Python-bugs-list

[issue36982] Add support for extended color functions in ncurses 6.1

2019-05-23 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: Corrected typos in msg343336 for clarity: At first glance, has_extended_colors() seems like a better name because it is similar to has_colors(), but the two functions have very different semantics that could confuse developers.

[issue37019] Create symlinks relative to cwd

2019-05-23 Thread Shannon
Shannon added the comment: I can see how this change would be backward incompatible, however the current behaviour seems inconsistent with the way pathlib functions otherwise. Within two lines of code, the same path object can be pointing to two completely different locations simply because

[issue36982] Add support for extended color functions in ncurses 6.1

2019-05-23 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: A new function called curses.has_extended_color_support() will indicate whether the linked ncurses library provides extended color support. It returns true if curses.h defines NCURSES_EXT_COLORS and NCURSES_EXT_FUNCS, indicating that the extended color

[issue37028] Implement asyncio repl

2019-05-23 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35753] Importing call from unittest.mock directly causes ValueError

2019-05-23 Thread Thomas Hisch
Thomas Hisch added the comment: I think this tickt needs to be reopened, because > The actual bug appears to be "doctest can't run on a module that contains > un-unwrappable objects" @ppperry Or do you already know where this issue is tracked? -- nosy: +Thomas Hisch

[issue37028] Implement asyncio repl

2019-05-23 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- nosy: +mbussonn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37021] Can _random.getrandbits() be converted to METH_FASTCALL?

2019-05-23 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +13447 stage: -> patch review ___ Python tracker ___ ___

[issue37028] Implement asyncio repl

2019-05-23 Thread Yury Selivanov
Change by Yury Selivanov : -- keywords: +patch pull_requests: +13446 stage: -> patch review ___ Python tracker ___ ___

[issue37028] Implement asyncio repl

2019-05-23 Thread Yury Selivanov
New submission from Yury Selivanov : Having an asyncio enabled repr where a top-level "await" possible would be a huge productivity boost. Using asyncio.run() in a REPL is hard, and besides it spawns a new event loop on every call. The big idea: we want users to be able to do this: $

[issue36876] Global C variables are a problem.

2019-05-23 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +13445 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34963] String representation for types created with typing.NewType(…) are opaque and unappealing

2019-05-23 Thread Cheryl Sabella
Cheryl Sabella added the comment: Serhiy, It looks like Ivan approved your PR and was ready to merge it, but left it up to you for the final decision about incorporating changes from the competing PR. This is just a friendly ping in case you want to get it in for 3.8. Thanks! --

[issue37027] Return a safe proxy over a socket from get_extra_info('socket')

2019-05-23 Thread Yury Selivanov
Change by Yury Selivanov : -- keywords: +patch pull_requests: +13444 stage: -> patch review ___ Python tracker ___ ___

[issue37027] Return a safe proxy over a socket from get_extra_info('socket')

2019-05-23 Thread Yury Selivanov
Change by Yury Selivanov : -- components: +asyncio nosy: +asvetlov versions: +Python 3.8 ___ Python tracker ___ ___

[issue34541] pathlib.Path.iterdir doesn't throw an exception until you start iterating

2019-05-23 Thread Cheryl Sabella
Change by Cheryl Sabella : -- nosy: +pitrou type: behavior -> enhancement versions: +Python 3.8 -Python 3.4, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___

[issue37027] Return a safe proxy over a socket from get_extra_info('socket')

2019-05-23 Thread Yury Selivanov
New submission from Yury Selivanov : Currently asyncio exposes the underlying transport socket directly, providing a way to modify (in a potentially disruptive way) the underlying transport connection. -- messages: 343332 nosy: yselivanov priority: normal severity: normal status:

[issue35990] ipaddress.IPv4Interface won't accept 2-tuple (address, mask)

2019-05-23 Thread Jack
Jack added the comment: confirmed in 3.7.3 -- nosy: +Jacktose ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37026] socketserver: BaseServer.handle_request() infinite loop

2019-05-23 Thread jmberg
New submission from jmberg : Hi, Alright - you may very well consider this to be a stupid idea and everything, but I figured I'd report it anyway, just so it's there even if you decide to ignore it. For context, I'm running python in a ARCH=um Linux system that has completely virtual time,

[issue36511] Add Windows ARM32 buildbot

2019-05-23 Thread Paul Monson
Change by Paul Monson : -- pull_requests: +13443 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32528] Change base class for futures.CancelledError

2019-05-23 Thread Yury Selivanov
Change by Yury Selivanov : -- keywords: +patch pull_requests: +13442 stage: -> patch review ___ Python tracker ___ ___

[issue37025] Misleading error message "Python failed to load the default activation context"

2019-05-23 Thread Ralf Habacker
New submission from Ralf Habacker : When I started Kicad under Windows I got the following error message in dbgview: "Python could not load the default activation context". This message is issued by the Python runtime environment when checking the return value of the Windows API function

[issue35328] Set a environment variable for venv prompt

2019-05-23 Thread Brett Cannon
Brett Cannon added the comment: You can open a new PR with co-author or basing off of their fork if it's still around. -- ___ Python tracker ___

[issue35328] Set a environment variable for venv prompt

2019-05-23 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: @brettcannon, yeah I saw that, but there hasn't been any progress since November. I'm still interested in this though. What would the correct workflow be? Pushing commits to the same PR or opening a new one with a co-author? --

[issue36964] `python3 -m venv NAME`: virtualenv is not portable

2019-05-23 Thread Brett Cannon
Brett Cannon added the comment: Virtual environments are not designed to be portable. For instance, if you have entry points installed then moving them to another machine would break their shebang lines. And even if you do it on your local machine there's no guarantee something else wasn't

[issue35328] Set a environment variable for venv prompt

2019-05-23 Thread Brett Cannon
Brett Cannon added the comment: @lys.nikolaou it looks like there was an initial PR, but it only updated things for Bash and not for all the other shells that we support for virtual environments. -- nosy: +brett.cannon ___ Python tracker

[issue36975] csv: undocumented UnicodeDecodeError on malformed file

2019-05-23 Thread Brett Cannon
Brett Cannon added the comment: This isn't a bug because the CSV format isn't malformed (which would be appropriate for csv.Error), but the file itself isn't appropriate encoded (or the proper encoding wasn't specified (hence UnicodeDecodeError). So the exception is appropriate. And we do

[issue23395] _thread.interrupt_main() errors if SIGINT handler in SIG_DFL, SIG_IGN

2019-05-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 608876b6b1eb59538e6c29671a733033fb8b5be7 by Antoine Pitrou (Matěj Cepl) in branch 'master': bpo-23395: Fix PyErr_SetInterrupt if the SIGINT signal is ignored or not handled (GH-7778)

[issue36511] Add Windows ARM32 buildbot

2019-05-23 Thread David Bolen
David Bolen added the comment: Yeah, I think you're right. It looks like without an explicit code, it won't propagate the result as the exit code of cmd itself for those cases where cmd does exit (which would include the buildbots). -- ___

[issue36511] Add Windows ARM32 buildbot

2019-05-23 Thread Paul Monson
Paul Monson added the comment: I did a quick test and it looks like exit /b %ERRORLEVEL% will propagate the exit code. -- ___ Python tracker ___

[issue37024] SQLite flag in configure due to homebrew not linking sqlite

2019-05-23 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20443] __code__. co_filename should always be an absolute path

2019-05-23 Thread Batuhan
Change by Batuhan : -- keywords: +patch pull_requests: +13441 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue36511] Add Windows ARM32 buildbot

2019-05-23 Thread David Bolen
David Bolen added the comment: I've been investigating issues with test failures on my Windows buildbots seemingly not showing up in the master's web interface (but just showing warnings), and it appears likely due to this change. For example, test_urllib (a test problem from issue 36948)

[issue37023] test_gdb failed on AMD64 Debian PGO 3.x

2019-05-23 Thread Steve Dower
Steve Dower added the comment: Well, the good news is I can repro it on a PGO build in WSL. So now I just need to go learn all about gcc's PGO build, debug info, and how gdb renders it! -- ___ Python tracker

[issue37023] test_gdb failed on AMD64 Debian PGO 3.x

2019-05-23 Thread Steve Dower
Steve Dower added the comment: Ah no, it's expecting `builtin_id (self=..., v=...)` but getting `builtin_id ()` instead. -- ___ Python tracker ___

[issue37024] SQLite flag in configure due to homebrew not linking sqlite

2019-05-23 Thread Lysandros Nikolaou
New submission from Lysandros Nikolaou : Since recently, Homebrew refuses to link sqlite. Upon researching the whole thing, I found out that this is now considered a feature of Homebrew and not a bug. Thus homebrew users on macOS do not get the SQLite module installed by default, because it

[issue37023] test_gdb failed on AMD64 Debian PGO 3.x

2019-05-23 Thread Steve Dower
Steve Dower added the comment: Is it just expecting builtin_id() to have been inlined? That seems risky. -- nosy: +steve.dower ___ Python tracker ___

[issue36842] Implement PEP 578

2019-05-23 Thread STINNER Victor
STINNER Victor added the comment: I created bpo-37023 to track the test_gdb failure: "test_gdb failed on AMD64 Debian PGO 3.x". -- nosy: +vstinner ___ Python tracker ___

[issue37023] test_gdb failed on AMD64 Debian PGO 3.x

2019-05-23 Thread STINNER Victor
New submission from STINNER Victor : It's likely a regression caused by bpo-36842. https://buildbot.python.org/all/#/builders/47/builds/2854 Example of failure: == FAIL: test_NULL_ob_type (test.test_gdb.PrettyPrintTests)

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-05-23 Thread STINNER Victor
STINNER Victor added the comment: If someone wants to document that _start_new_thread() return value is similar to threading.get_ident() but not threading.get_native_id(): please go ahead and propose a PR :-) Adding support for AIX to get_native_id() should be done in a separated issue

[issue36842] Implement PEP 578

2019-05-23 Thread Steve Dower
Steve Dower added the comment: test_gdb failed on the Debian PGO buildbot https://buildbot.python.org/all/#builders/47/builds/2854 I'm going to do what I can to investigate, but I may be out of my depth here! -- stage: patch review -> commit review

[issue37017] Use LOAD_METHOD optimization in CallMethod C API functions

2019-05-23 Thread Michael J. Sullivan
Michael J. Sullivan added the comment: I believe that this is orthogonal to PEP 590. PyObject_CallMethodObjArgs and friends take varargs which need to be copied into an array one way or another. It is easy (and efficient) to prepend the base while copying the function arguments into the

[issue37021] Can _random.getrandbits() be converted to METH_FASTCALL?

2019-05-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If you hate Argument Clinic you can use METH_O and _PyLong_AsInt(). -- ___ Python tracker ___

[issue22577] local variable changes lost after pdb jump command

2019-05-23 Thread Henry Chen
Henry Chen added the comment: PEP 558 will fix this issue, which I've verified with the proposed implementation (https://github.com/python/cpython/pull/3640/files). Perhaps this issue can be closed? -- ___ Python tracker

[issue37021] Can _random.getrandbits() be converted to METH_FASTCALL?

2019-05-23 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Sure. The simlest way is to use Argument Clinic. -- ___ Python tracker ___ ___

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-05-23 Thread Jake Tesler
Jake Tesler added the comment: Michael Felt - If you would like some help with adding/building AIX support for this functionality, tag me, I'd be glad to help out! :) -- ___ Python tracker

[issue37022] pdb: do_p and do_pp swallow exceptions from __repr__

2019-05-23 Thread daniel hahler
New submission from daniel hahler : Given: ``` class BadRepr: def __repr__(self): raise Exception('repr_exc') obj = BadRepr() __import__('pdb').set_trace() ``` ``` (Pdb) p obj (Pdb) pp obj (Pdb) ``` Possible patch - clumsy due to `self._getval` both printing any error already,

[issue37014] [First easy issue] fileinput module should document that openhook and mode are ignored when reading from stdin

2019-05-23 Thread Grant Wu
Change by Grant Wu : -- nosy: +grantwu -Grant Wu2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37000] _randbelow_with_getrandbits function inefficient with powers of two

2019-05-23 Thread Mark Dickinson
Mark Dickinson added the comment: Related: `randrange(0)` raises an exception `choice([])` raises an exception Those are very different from `getrandbits(0)`: in both cases there's no reasonable value that can be returned: for the first case, there's no integer `x` with `0 <= x <

[issue36842] Implement PEP 578

2019-05-23 Thread Steve Dower
Steve Dower added the comment: New changeset b82e17e626f7b1cd98aada0b1ebb65cb9f8fb184 by Steve Dower in branch 'master': bpo-36842: Implement PEP 578 (GH-12613) https://github.com/python/cpython/commit/b82e17e626f7b1cd98aada0b1ebb65cb9f8fb184 --

[issue37007] Implement socket.if_{nametoindex, indextoname} for Windows

2019-05-23 Thread Steve Dower
Steve Dower added the comment: Is it worth also implementing if_nameindex() using (I assume) GetIfTable2Ex [1]? Or maybe just the simpler GetIfTable is sufficient - I'm not sure exactly what semantics Unix if_nameindex() has, whether it includes all logical adapters. [1]:

[issue37000] _randbelow_with_getrandbits function inefficient with powers of two

2019-05-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: > it's a bit surprising all on its own that `getrandbits(0)` > raises an exception. Given that there would be no randomness in the result, it makes sense to me that getrandbits(0) is documented to raise an exception. Related: `randrange(0)` raises

[issue37021] Can _random.getrandbits() be converted to METH_FASTCALL?

2019-05-23 Thread Raymond Hettinger
Change by Raymond Hettinger : -- components: Extension Modules nosy: rhettinger, serhiy.storchaka, vstinner priority: normal severity: normal status: open title: Can _random.getrandbits() be converted to METH_FASTCALL? type: performance versions: Python 3.8

[issue36713] duplicate method definition in Lib/ctypes/test/test_unicode.py

2019-05-23 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the PR! -- assignee: -> ezio.melotti resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue36713] duplicate method definition in Lib/ctypes/test/test_unicode.py

2019-05-23 Thread Ezio Melotti
Ezio Melotti added the comment: New changeset 25d8404c358f3b1cc8321cdc74049d45dcb8d014 by Ezio Melotti (Michele Angrisano) in branch '2.7': bpo-36713: Rename duplicated method in test_unicode. (#13525) https://github.com/python/cpython/commit/25d8404c358f3b1cc8321cdc74049d45dcb8d014

[issue36978] `python3 -m pip install` has no `--requirement` option on Windows

2019-05-23 Thread Marco Sulla
Marco Sulla added the comment: Excuse me, after a python -m pip install --upgrade setuptools python -m pip install --upgrade pip it works like a charme. -- resolution: -> works for me stage: test needed -> resolved status: pending -> closed versions: +Python 3.6 -Python 3.8

[issue36713] duplicate method definition in Lib/ctypes/test/test_unicode.py

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

[issue36797] Cull more oudated distutils information

2019-05-23 Thread miss-islington
miss-islington added the comment: New changeset a3488e5902f5c26e5cc289aec2518e7b5058e5d1 by Miss Islington (bot) in branch '3.7': bpo-36797: Reduce levels of indirection in outdated distutils docs (GH-13462) https://github.com/python/cpython/commit/a3488e5902f5c26e5cc289aec2518e7b5058e5d1

[issue36797] Cull more oudated distutils information

2019-05-23 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset e788057a9188ff37e232729815dfda2529079420 by Nick Coghlan in branch 'master': bpo-36797: Reduce levels of indirection in outdated distutils docs (#13462) https://github.com/python/cpython/commit/e788057a9188ff37e232729815dfda2529079420

[issue36797] Cull more oudated distutils information

2019-05-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +13439 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37016] Python embedded in C++ cannot open a file

2019-05-23 Thread Soumya Mohanty
Soumya Mohanty added the comment: Hello Stéphane, I appreciate the reply, but read the docs and they did not resolve my problem. I solved it by adding full paths to the file instead of just there names, even though the file being loaded was in the present working directory and when working

[issue36713] duplicate method definition in Lib/ctypes/test/test_unicode.py

2019-05-23 Thread Michele Angrisano
Michele Angrisano added the comment: I'm on it. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36713] duplicate method definition in Lib/ctypes/test/test_unicode.py

2019-05-23 Thread Ezio Melotti
Ezio Melotti added the comment: The duplicate method is gone from 3.5+, but it is still present on 2.7: 2.7/Lib/ctypes/test/test_unicode.py:96 2.7/Lib/ctypes/test/test_unicode.py:110 The one at line 96 should be renamed "test_ascii_strict". Michele, do you want to work on a PR to fix it?

[issue1230540] sys.excepthook doesn't work in threads

2019-05-23 Thread STINNER Victor
STINNER Victor added the comment: There is a special case. If a thread calls os.fork() and Thread.run() raises an exception, the thread name is still logged even if there is only 1 thread after fork. Try attached fork_thread.py. Output on Python 3.7: --- main thread: spawn fork thread

[issue36713] duplicate method definition in Lib/ctypes/test/test_unicode.py

2019-05-23 Thread Michele Angrisano
Michele Angrisano added the comment: The proper link is this: cf448832ebca7ed34809168660fa96c3c61f8abb. Sorry. -- ___ Python tracker ___

[issue36713] duplicate method definition in Lib/ctypes/test/test_unicode.py

2019-05-23 Thread Michele Angrisano
Michele Angrisano added the comment: That method was already removed in cf44883. -- nosy: +mangrisano ___ Python tracker ___ ___

[issue37017] Use LOAD_METHOD optimization in CallMethod C API functions

2019-05-23 Thread Inada Naoki
Inada Naoki added the comment: I want to wait this until PEP 590 is implemented. Unlike CALL_METHOD, we can not avoid prepending self. New method signature may be like this: PyObject_VectorCallMethod(PyObject *name, PyObject **args, Py_ssize_t nargs, PyObject *kwds); And args[0] is self.

[issue35331] Incorrect __module__ attribute for _struct.Struct and perhaps a few others

2019-05-23 Thread Dan Snider
Change by Dan Snider : -- nosy: -bup ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35331] Incorrect __module__ attribute for _struct.Struct and perhaps a few others

2019-05-23 Thread Dan Snider
Change by Dan Snider : -- nosy: +bup ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37020] Invalid floating point multiplication result

2019-05-23 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Relevant doc : https://docs.python.org/3/tutorial/floatingpoint.html -- nosy: +xtreak ___ Python tracker ___

[issue37020] Invalid floating point multiplication result

2019-05-23 Thread SilentGhost
SilentGhost added the comment: This is a limitation of floating points representation. If you need objects representing decimal numeral, you could use decimal module. -- nosy: +SilentGhost resolution: -> not a bug stage: -> resolved status: open -> closed

[issue37020] Invalid floating point multiplication result

2019-05-23 Thread Antony
New submission from Antony : Incorrect Multiplication result of number 40.95 >>> 40.94 * 100 4094.0 >>> 40.96 * 100 4096.0 but: >>> 40.95 * 100 4095.5 checked with: Python 2.7.15rc1 (default, Nov 12 2018, 14:31:15) and Python 3.6.7 (default, Oct 22 2018, 11:32:17) [GCC 8.2.0]

[issue35907] [security][CVE-2019-9948] Unnecessary URL scheme exists to allow local_file:// reading file in urllib

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

[issue37008] make unittest.mock.mock_open honor next()

2019-05-23 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: +Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37008] make unittest.mock.mock_open honor next()

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

[issue36829] Add sys.unraisablehook() to custom how "unraisable exceptions" are logged

2019-05-23 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Could test.support.catch_unraisable_exception also be documented at https://docs.python.org/3/library/test.html#module-test.support ? -- nosy: +xtreak ___ Python tracker

[issue37007] Implement socket.if_{nametoindex, indextoname} for Windows

2019-05-23 Thread Zackery Spytz
Zackery Spytz added the comment: I've created a PR for this issue. Few changes are needed to implement these functions on Windows. -- nosy: +ZackerySpytz, eryksun ___ Python tracker

[issue37007] Implement socket.if_{nametoindex, indextoname} for Windows

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

[issue37008] make unittest.mock.mock_open honor next()

2019-05-23 Thread miss-islington
miss-islington added the comment: New changeset 7cc47e9c19b7d67c8f08df15a413d14cf69f45da by Miss Islington (bot) in branch '3.7': bpo-37008: make mock_open handle able to honor next() (GH-13492) https://github.com/python/cpython/commit/7cc47e9c19b7d67c8f08df15a413d14cf69f45da --

[issue37008] make unittest.mock.mock_open honor next()

2019-05-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +13436 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37008] make unittest.mock.mock_open honor next()

2019-05-23 Thread miss-islington
miss-islington added the comment: New changeset 394119afc6611f17bac96f5ec6fefa0ae795 by Miss Islington (bot) (Damien Nadé) in branch 'master': bpo-37008: make mock_open handle able to honor next() (GH-13492) https://github.com/python/cpython/commit/394119afc6611f17bac96f5ec6fefa0ae795

[issue37014] [First easy issue] fileinput module should document that openhook and mode are ignored when reading from stdin

2019-05-23 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37014] [First easy issue] fileinput module should document that openhook and mode are ignored when reading from stdin

2019-05-23 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi Grant, Thank you for your bug report, Would you interested to propose a Pull Request for a fix? You can read the devguide for more info https://devguide.python.org/ Thank you -- nosy: +matrixise title: fileinput module should document that

[issue37016] Python embedded in C++ cannot open a file

2019-05-23 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi Soumya, But Py_Initialize and Py_Finalize are not called in this case, and it's not a bug of CPython. I suggest you read this link: https://docs.python.org/3/extending/embedding.html#very-high-level-embedding Thank you -- nosy: +matrixise

[issue37007] Implement socket.if_{nametoindex, indextoname} for Windows

2019-05-23 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- components: +Windows -Library (Lib) nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue1230540] sys.excepthook doesn't work in threads

2019-05-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Moreover, when sys.excepthook is called, the hook doesn't get access to the > thread object You can get it with threading.current_thread(), no? -- ___ Python tracker

[issue33110] Adding a done callback to a concurrent.futures Future once it has already completed, may raise an exception, contrary to docs

2019-05-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you Sam for your contribution! -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue37019] Create symlinks relative to cwd

2019-05-23 Thread SilentGhost
SilentGhost added the comment: This would be backward incompatible change. I just wanted to point out that the symlink was only broken because the file did not exist, and one might want to legitimately create a link relative to the target's location. I'd imagine creating a link in the same

[issue37019] using pathlib objects to create symlinks produces broken links

2019-05-23 Thread Shannon
New submission from Shannon : when using pathlib objects to define src and dst for os.symlink (also relevant for Path(dst).symlink_to(src)), if the src path is not absolute, or relative to the directory the link is being created in, a broken link will be created. example/ src =