[issue35866] concurrent.futures deadlock

2019-04-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: > "the single-threaded ProcessPoolExecutor test program" I doubt it is single threaded, the .submit() method appears to spawn a thread internally. -- ___ Python tracker

[issue36277] pdb's recursive debug command is not listed in the docs

2019-04-17 Thread Dave Nguyen
Change by Dave Nguyen : -- keywords: +patch pull_requests: +12796 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue36654] Add example to tokenize.tokenize

2019-04-17 Thread Windson Yang
New submission from Windson Yang : > The tokenize() generator requires one argument, readline, which must be a > callable object which provides the same interface as the io.IOBase.readline() > method of file objects. Each call to the function should return one line of > input as bytes. Add

[issue36646] os.listdir() got permission error in Python3.6 but it's fine in Python2.7

2019-04-17 Thread Steve Dower
Steve Dower added the comment: This is weird. Are you able to tell us anything about how L: is mounted or what it's pointing at? Do you know if it's SMB or similar, or if there are symlinks or similar? -- ___ Python tracker

[issue14817] pkgutil.extend_path has no tests

2019-04-17 Thread Windson Yang
Windson Yang added the comment: I added some tests in the PR. Actually, there are some tests for extend_path already (see https://github.com/python/cpython/blob/master/Lib/test/test_pkgutil.py#L235). However, I didn't test every line of the code in the extend_path function. --

[issue14817] pkgutil.extend_path has no tests

2019-04-17 Thread Windson Yang
Change by Windson Yang : -- keywords: +patch pull_requests: +12795 stage: -> patch review ___ Python tracker ___ ___

[issue35866] concurrent.futures deadlock

2019-04-17 Thread cagney
cagney added the comment: So: #1 we've a bug: the single-threaded ProcessPoolExecutor test program should work 100% reliably - it does not #2 we've a cause: ProcessPoolExecutor is implemented internally using an unfortunate combination of fork and threads, this is causing the deadlock #3

[issue36646] os.listdir() got permission error in Python3.6 but it's fine in Python2.7

2019-04-17 Thread Ryan
Ryan added the comment: PS D:\workspace> python Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import os >>> os.listdir(u'L:\\Temp') [u'manager.txt',

[issue36071] Add support for Windows ARM32 in ctypes/libffi

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

[issue36638] typeperf.exe is not in all skus of Windows SKUs

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

[issue36071] Add support for Windows ARM32 in ctypes/libffi

2019-04-17 Thread Steve Dower
New submission from Steve Dower : New changeset 11efd79076559cc6e4034bb36db73e5e4293f02d by Steve Dower (Paul Monson) in branch 'master': bpo-36071 Add support for Windows ARM32 in ctypes/libffi (GH-12059) https://github.com/python/cpython/commit/11efd79076559cc6e4034bb36db73e5e4293f02d

[issue36638] typeperf.exe is not in all skus of Windows SKUs

2019-04-17 Thread Steve Dower
Steve Dower added the comment: New changeset 264a0b40b030fc0ff919b8294df91bdaac853bfb by Steve Dower (Paul Monson) in branch 'master': bpo-36638: Fix WindowsLoadTracker exception on some Windows versions (GH-12849)

[issue36466] Adding a way to strip annotations from compiled bytecode

2019-04-17 Thread cary
cary added the comment: Thanks for the feedback! I wasn't aware that modules depended on this during runtime. Abandoning this :) -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue35866] concurrent.futures deadlock

2019-04-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: concurrent.futures.ProcessPoolExecutor uses both multiprocessing and threading. multiprocessing defaults to using os.fork(). -- ___ Python tracker

[issue36648] MAP_SHARED isn't proper for anonymous mappings for VxWorks

2019-04-17 Thread LihuaZhao
Change by LihuaZhao : -- pull_requests: -12788 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36653] Dictionary Key is without ' ' quotes

2019-04-17 Thread Steven D'Aprano
Steven D'Aprano added the comment: Hi PushkarVaity, and welcome! I hope that Matthew's suggestion fixes your code for you, but please remember that this is a bug tracker for bugs in the Python language and standard library, not a help desk. As a beginner, 99.9% of the times you think that

[issue36653] Dictionary Key is without ' ' quotes

2019-04-17 Thread Matthew Barnett
Matthew Barnett added the comment: That should be: def __repr__(self): return repr(self.name) Not a bug. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue35866] concurrent.futures deadlock

2019-04-17 Thread cagney
cagney added the comment: @gregory.p.smith, I'm puzzled by your references to POSIX and/or os.fork(). The code in question looks like: import concurrent.futures import sys def f(): import ctypes while True: with concurrent.futures.ProcessPoolExecutor() as executor: ftr =

[issue35959] math.prod(range(10)) caues segfault

2019-04-17 Thread Cheryl Sabella
Cheryl Sabella added the comment: Hi Pablo, Was this something you still wanted to clean up or can this be closed? Thanks! -- nosy: +cheryl.sabella ___ Python tracker ___

[issue32913] Improve regular expression HOWTO

2019-04-17 Thread Brett Cannon
Brett Cannon added the comment: New changeset a6de52c74d831e45ee0ff105196da8a58b9e43cd by Brett Cannon (josh) in branch 'master': bpo-32913: Added re.Match.groupdict example to regex HOWTO (GH-5821) https://github.com/python/cpython/commit/a6de52c74d831e45ee0ff105196da8a58b9e43cd

[issue33039] int() and math.trunc don't accept objects that only define __index__

2019-04-17 Thread Cheryl Sabella
Cheryl Sabella added the comment: Rémi, Are you still working on the patch for this? Thanks! -- nosy: +cheryl.sabella ___ Python tracker ___

[issue36653] Dictionary Key is without ' ' quotes

2019-04-17 Thread PushkarVaity
New submission from PushkarVaity : I am using Python 3.7 with anaconda install. I am trying to write out a dictionary with similar key's. for ex: proc_dict = {'add': ('/home/file.tcl', 'args'), 'add': ('/home/file2.tcl', 'args'), 'sub': ('/home/file2.tcl', 'args')} To do this, I am using the

[issue36277] pdb's recursive debug command is not listed in the docs

2019-04-17 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +easy stage: -> needs patch type: -> enhancement ___ Python tracker ___ ___

[issue35866] concurrent.futures deadlock

2019-04-17 Thread cagney
cagney added the comment: We're discussing vanilla Python, for instance v3.7.0 is: git clone .../cpython cd cpython git checkout v3.7.0 ./configure --prefix=/home/python/v3.7.0 make -j && make -j install (my 3.6.x wasn't vanilla, but I clearly stated that) Like I also mentioned,

[issue36649] Windows Store app install registry keys have incorrect paths

2019-04-17 Thread miss-islington
miss-islington added the comment: New changeset 0d4f16d283fe3b8a183775ac7ac193988d971ad5 by Miss Islington (bot) in branch '3.7': bpo-36649: Remove trailing spaces for registry keys when installed via the Store (GH-12865)

[issue36649] Windows Store app install registry keys have incorrect paths

2019-04-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +12794 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36649] Windows Store app install registry keys have incorrect paths

2019-04-17 Thread Steve Dower
Steve Dower added the comment: New changeset 4c3efd9cd07194b5db2a60ae5951134cda8b69db by Steve Dower in branch 'master': bpo-36649: Remove trailing spaces for registry keys when installed via the Store (GH-12865)

[issue36635] Add _testinternalcapi module

2019-04-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5c75f37d473140f0e0b7d9bf3a8c08343447ded1 by Victor Stinner in branch 'master': bpo-36635: Change pyport.h for Py_BUILD_CORE_MODULE define (GH-12853) https://github.com/python/cpython/commit/5c75f37d473140f0e0b7d9bf3a8c08343447ded1 --

[issue36645] re.sub() library entry does not adequately document surprising change in behavior between versions

2019-04-17 Thread mollison
mollison added the comment: @brett.cannon: Yes, I will submit a PR. I have the code ready to go already. I just submitted the Python contributor agreement. I think it will take the system a day or two to register that. Then, I will submit the PR. --

[issue35755] On Unix, shutil.which() and subprocess no longer look for the executable in the current directory if PATH environment variable is not set

2019-04-17 Thread STINNER Victor
STINNER Victor added the comment: > I suspect that the former is implementation accident. I can't imagine why would anyone want this behavior. > > NB, POSIX says that when PATH is unset or empty, the path search is implementation-defined. Not thank you POSIX for being clueless. Let's say that

[issue36652] Non-embedded zip distribution

2019-04-17 Thread wheelerlaw
New submission from wheelerlaw : Pretty straight forward request. It would be nice if there was an installation method where I can just unzip a Python distribution rather than running an installer. Specifically this is for getting Python to run in Wine. Right now, Python for Windows runs

[issue18564] Integer overflow in the socket function parsing a Bluetooth address

2019-04-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Seconded Viktor's question. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue10417] [2.7] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2019-04-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I mean that '\xe4'.encode(encoding, 'backslashreplace') will fail. -- ___ Python tracker ___

[issue36650] Cached method implementation no longer works on Python 3.7.3

2019-04-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27679] set_bitfields() unused in _ctypes_test

2019-04-17 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- nosy: +nanjekyejoannah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36651] Asyncio Event Loop documentation inconsistency (call_later and call_at methods)

2019-04-17 Thread Enrico Carbognani
Change by Enrico Carbognani : -- keywords: +patch pull_requests: +12793 stage: -> patch review ___ Python tracker ___ ___

[issue35866] concurrent.futures deadlock

2019-04-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: I am unable to get cf-deadlock.py to hang on my own builds of pure CPython 3.7.2+ d7cb2034bb or 3.6.8+ be77fb7a6e (versions i had in a local git clone). which specific python builds are seeing the hang using? Which specific platform/distro version?

[issue21710] --install-base option ignored?

2019-04-17 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- nosy: +nanjekyejoannah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36649] Windows Store app install registry keys have incorrect paths

2019-04-17 Thread Steve Dower
Steve Dower added the comment: Great, thanks. I have a fix in PR, but I'm going to do a "real" build to check. My machine is running a beta build, unfortunately, so I can't validate it against the older version. Might ping you for some help with that. -- versions: +Python 3.8,

[issue36650] Cached method implementation no longer works on Python 3.7.3

2019-04-17 Thread Jason R. Coombs
Jason R. Coombs added the comment: Hi Josh. Thanks for the tip on types.MethodType. I've updated the code to use that and the behavior seems to be the same, MethodType does seem a more appropriate way to create a bound method. Regarding the referenced tickets, I suspect they're not

[issue36650] Cached method implementation no longer works on Python 3.7.3

2019-04-17 Thread Josh Rosenberg
Josh Rosenberg added the comment: Hmm... Although I can't seem to reproduce on 3.7.2 (ob.calls is 1), so assuming it is really happening in 3.7.3, it wouldn't be either of those issues (which were fully in place long before 3.7.2 I believe). --

[issue36650] Cached method implementation no longer works on Python 3.7.3

2019-04-17 Thread Josh Rosenberg
Josh Rosenberg added the comment: It seems highly likely this is related to #26110 which optimizes method calls by avoiding the creation of bound methods in certain circumstances, and/or the follow-up #29263. Side-note: bound_method = functools.partial(method, self) is not how you create

[issue32849] Fatal Python error: Py_Initialize: can't initialize sys standard streams

2019-04-17 Thread Rudolph Froger
Rudolph Froger added the comment: Thanks all for the fixes! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue23382] Maybe can not shutdown ThreadPoolExecutor when call the method of shutdown

2019-04-17 Thread Josh Rosenberg
Josh Rosenberg added the comment: Correct me if I'm wrong, but this isn't actually an issue for CPython, right? The GIL ensures that when a thread writes to _shutdown, nothing else is reading it until the GIL is released and acquired by a new thread (which synchronizes _shutdown). It might

[issue36649] Windows Store app install registry keys have incorrect paths

2019-04-17 Thread Hugues Valois
Hugues Valois added the comment: C:\Users\huvalo>ver Microsoft Windows [Version 10.0.17763.437] -- versions: -Python 3.8, Python 3.9 ___ Python tracker ___

[issue36651] Asyncio Event Loop documentation inconsistency (call_later and call_at methods)

2019-04-17 Thread Enrico Carbognani
New submission from Enrico Carbognani : In the documentation for the call_later and the call_at methods there is a note which says that the delay cannot be longer than a day, but both methods have a note saying that this limitation was removed in Python 3.8. -- assignee: docs@python

[issue36650] Cached method implementation no longer works on Python 3.7.3

2019-04-17 Thread Jason R. Coombs
Jason R. Coombs added the comment: I've put together this full reproducer script: ``` import functools def method_cache(method): def wrapper(self, *args, **kwargs): # it's the first call, replace the method with a cached, bound method bound_method =

[issue36649] Windows Store app install registry keys have incorrect paths

2019-04-17 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +12792 stage: -> patch review ___ Python tracker ___ ___

[issue35866] concurrent.futures deadlock

2019-04-17 Thread cagney
cagney added the comment: script to capture stack backtrace at time of fork, last backtrace printed will be for hang -- Added file: https://bugs.python.org/file48272/gdb.sh ___ Python tracker

[issue35866] concurrent.futures deadlock

2019-04-17 Thread cagney
cagney added the comment: run ProcessPoolExecutor with one fixed child (over ride default of #cores) -- Added file: https://bugs.python.org/file48271/cf-deadlock-1.py ___ Python tracker

[issue36650] Cached method implementation no longer works on Python 3.7.3

2019-04-17 Thread Jason R. Coombs
Change by Jason R. Coombs : -- components: +Library (Lib) type: -> behavior versions: +Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___

[issue35866] concurrent.futures deadlock

2019-04-17 Thread cagney
cagney added the comment: Here's a possible stack taken during the fork(): Thread 1 "python3" hit Breakpoint 1, 0x77124734 in fork () from /lib64/libc.so.6 Thread 1814 (Thread 0x7fffe69d5700 (LWP 23574)): #0 0x77bc24e5 in __pthread_mutex_unlock_usercnt () from

[issue36650] Cached method implementation no longer works on Python 3.7.3

2019-04-17 Thread Jason R. Coombs
New submission from Jason R. Coombs : In [this ticket](https://github.com/jaraco/jaraco.functools/issues/12), I learned that [jaraco.functools.method_cache](https://github.com/jaraco/jaraco.functools/blob/6b32ee0dfd3e7c88f99e88cd87c35fa9b76f261f/jaraco/functools.py#L109-L180) no longer works

[issue36607] asyncio.all_tasks() crashes if asyncio is used in multiple threads

2019-04-17 Thread Nick Davies
Nick Davies added the comment: My preference would actually be number 3 because: 1: I agree that this isn't really a safe option because it could slow things down (possibly a lot) 2: I haven't found this to be rare in my situation but I am not sure how common my setup is. We have a

[issue36649] Windows Store app install registry keys have incorrect paths

2019-04-17 Thread Steve Dower
Steve Dower added the comment: Can you get me the *exact* Windows version number you're using? I added those to work around a bug where keys were being incorrectly trimmed, and that format seemed to evaluate to nothing correctly, but perhaps that bug has been fixed in the OS? --

[issue36649] Windows Store app install registry keys have incorrect paths

2019-04-17 Thread Hugues Valois
New submission from Hugues Valois : When reading registry values under HKCU\SOFTWARE\Python\PythonCore\3.7 that were written by the Windows Store app install, all file and folder paths are incorrect. Notice the extra [ ] as well as the missing backslash before python.exe and pythonw.exe

[issue36607] asyncio.all_tasks() crashes if asyncio is used in multiple threads

2019-04-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: The fix can be applied to 3.7 and 3.8 only, sorry. Python 3.6 is in security mode now. -- versions: +Python 3.8 -Python 3.6 ___ Python tracker

[issue36607] asyncio.all_tasks() crashes if asyncio is used in multiple threads

2019-04-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks for the report! I see 3 ways to fix the bug: 1. Guard _all_tasks with threading.Lock. It hurts performance significantly. 2. Retry list(_all_tasks) call in a loop if RuntimeError was raised. A chance of collision is very low, the strategy is good

[issue36645] re.sub() library entry does not adequately document surprising change in behavior between versions

2019-04-17 Thread Brett Cannon
Brett Cannon added the comment: @mollison: would you like to open a PR w/ how you would expect it to be formatted? -- nosy: +brett.cannon ___ Python tracker ___

[issue35755] On Unix, shutil.which() and subprocess no longer look for the executable in the current directory if PATH environment variable is not set

2019-04-17 Thread Jakub Wilk
Jakub Wilk added the comment: When PATH is empty string: * zsh and FreeBSD which look for binaries in cwd. * debianutils and GNU which always fail. I suspect that the former is implementation accident. I can't imagine why would anyone want this behavior. NB, POSIX says that when PATH is

[issue36607] asyncio.all_tasks() crashes if asyncio is used in multiple threads

2019-04-17 Thread Tim Hatch
Change by Tim Hatch : -- nosy: +thatch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18564] Integer overflow in the socket function parsing a Bluetooth address

2019-04-17 Thread STINNER Victor
Change by STINNER Victor : -- title: Integer overflow in socketmodule -> Integer overflow in the socket function parsing a Bluetooth address versions: +Python 3.7, Python 3.8 ___ Python tracker

[issue18564] Integer overflow in socketmodule

2019-04-17 Thread STINNER Victor
STINNER Victor added the comment: > In Modules/socketmodule.c , the bluetooth address supplied is vulnerable to > integer overflow. Attached PR 12864 modifies the following code: unsigned int b0, b1, b2, b3, b4, b5; char ch; int n; n = sscanf(name, "%X:%X:%X:%X:%X:%X%c", , , , , ,

[issue18564] Integer overflow in socketmodule

2019-04-17 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +12791 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35755] On Unix, shutil.which() and subprocess no longer look for the executable in the current directory if PATH environment variable is not set

2019-04-17 Thread STINNER Victor
STINNER Victor added the comment: I modified posixpath.defpath, shutil.which() and distutils.spawn.find_executable() in 3.7 and master (future Python 3.8) branches. I close the issue. Thanks everybody for the review and helping me to collect info about corner cases! I chose to also change

[issue35755] shutil.which() and subprocess no longer look for the executable in the current directory if PATH environment variable is not set

2019-04-17 Thread STINNER Victor
STINNER Victor added the comment: I'm still confused by distutils.spawn.find_executable() function which *always* first look the current directory. I don't know the rationale for this behavior, so I made the conservation choice of keeping it. If someone wants to change

[issue35755] shutil.which() and subprocess no longer look for the executable in the current directory if PATH environment variable is not set

2019-04-17 Thread STINNER Victor
STINNER Victor added the comment: Gregory: > I'm not arguing against this change, just trying to figure out where it came > from in the first place. We should fix the value on all OSes. In the meanwhile, I reverted the ntpath change. I'm not sure that it's ok to change the Windows case.

[issue36639] Provide list.rindex()

2019-04-17 Thread 林自均
林自均 added the comment: Hi @rhettinger , Thank you for the reply. May I ask what is the known, strong use cases for str.rindex()? -- ___ Python tracker ___

[issue35755] shutil.which() and subprocess no longer look for the executable in the current directory if PATH environment variable is not set

2019-04-17 Thread STINNER Victor
Change by STINNER Victor : -- title: shutil.which() and subprocess no longer looks the executable in the current directory if PATH environment variable is not set -> shutil.which() and subprocess no longer look for the executable in the current directory if PATH environment variable

[issue35755] shutil.which() and subprocess no longer looks the executable in the current directory if PATH environment variable is not set

2019-04-17 Thread STINNER Victor
Change by STINNER Victor : -- title: Remove current directory from posixpath.defpath to enhance security -> shutil.which() and subprocess no longer looks the executable in the current directory if PATH environment variable is not set ___ Python

[issue35755] Remove current directory from posixpath.defpath to enhance security

2019-04-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 394b991e41a2a4ce3afc8e6fde44de46e73bbb34 by Victor Stinner in branch '3.7': [3.7] bpo-35755: shutil.which() uses os.confstr("CS_PATH") (GH-12862) https://github.com/python/cpython/commit/394b991e41a2a4ce3afc8e6fde44de46e73bbb34 --

[issue32849] Fatal Python error: Py_Initialize: can't initialize sys standard streams

2019-04-17 Thread STINNER Victor
STINNER Victor added the comment: Thanks Rudolph Froger for the bug report: the issue is now fixed in 3.7 and master (future Python 3.8) branches. Sorry for the delay. -- Alexey Izbyshev wrote PR 5773 to also use fstat() on Linux. I chose to merge my PR 12852 which is more conservative: it

[issue32849] Fatal Python error: Py_Initialize: can't initialize sys standard streams

2019-04-17 Thread STINNER Victor
STINNER Victor added the comment: In short, Python 2.7 doesn't seem to be affected by fstat/dup issues. Python 2.7 doesn't check if file descriptors 0, 1 and 2 at startup. Python 2 uses PyFile_FromFile() to create sys.stdin, sys.stdout and sys.stderr which create a "file" object. The

[issue32849] Fatal Python error: Py_Initialize: can't initialize sys standard streams

2019-04-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset b87a8073db73f9ffa96104e00c624052e34b11c7 by Victor Stinner (Miss Islington (bot)) in branch '3.7': bpo-32849: Fix is_valid_fd() on FreeBSD (GH-12852) (GH-12863) https://github.com/python/cpython/commit/b87a8073db73f9ffa96104e00c624052e34b11c7

[issue32849] Fatal Python error: Py_Initialize: can't initialize sys standard streams

2019-04-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3092d6b2630e4d2bd200fbc3231c27a7cba4d6b2 by Victor Stinner in branch 'master': bpo-32849: Fix is_valid_fd() on FreeBSD (GH-12852) https://github.com/python/cpython/commit/3092d6b2630e4d2bd200fbc3231c27a7cba4d6b2 --

[issue32849] Fatal Python error: Py_Initialize: can't initialize sys standard streams

2019-04-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +12790 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22454] Adding the opposite function of shlex.split()

2019-04-17 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.8 -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue31094] asyncio: get list of connected clients

2019-04-17 Thread LihuaZhao
Change by LihuaZhao : -- pull_requests: +12789 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36648] MAP_SHARED isn't proper for anonymous mappings for VxWorks

2019-04-17 Thread LihuaZhao
Change by LihuaZhao : -- keywords: +patch pull_requests: +12788 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue36648] MAP_SHARED isn't proper for anonymous mappings for VxWorks

2019-04-17 Thread LihuaZhao
Change by LihuaZhao : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36648] MAP_SHARED isn't proper for anonymous mappings for VxWorks

2019-04-17 Thread LihuaZhao
Change by LihuaZhao : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36648] MAP_SHARED isn't proper for anonymous mappings for VxWorks

2019-04-17 Thread LihuaZhao
New submission from LihuaZhao : anonymous mappings is not part of the POSIX standard, python user just need to specified -1 as fd value when do anonymous map, for example: m = mmap.mmap(-1, 100) then python adapter module(mmapmodule.c) try to specify MAP_SHARED or MAP_PRIVATE based on

[issue35755] Remove current directory from posixpath.defpath to enhance security

2019-04-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12786 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35755] Remove current directory from posixpath.defpath to enhance security

2019-04-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 197f0447e3bcfa4f529fedab09966d7e3d283979 by Victor Stinner in branch 'master': bpo-35755: Don't say "to mimick Unix which command behavior" (GH-12861) https://github.com/python/cpython/commit/197f0447e3bcfa4f529fedab09966d7e3d283979

[issue31904] Python should support VxWorks RTOS

2019-04-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 693c104ae74feea11f0b51176dc91ecd153230c0 by Victor Stinner (Lihua Zhao) in branch 'master': bpo-31904: Port test_resource to VxWorks (GH-12719) https://github.com/python/cpython/commit/693c104ae74feea11f0b51176dc91ecd153230c0 --

[issue30458] [security][CVE-2019-9740][CVE-2019-9947] HTTP Header Injection (follow-up of CVE-2016-5699)

2019-04-17 Thread STINNER Victor
STINNER Victor added the comment: > urllib3 now vendors a copy of the rfc3986 library: > https://pypi.org/project/rfc3986/ There are multiple Python projects to validate URI: * https://github.com/python-hyper/rfc3986/ -> https://pypi.org/project/rfc3986/ * https://github.com/dgerber/rfc3987

[issue30458] [security][CVE-2019-9740][CVE-2019-9947] HTTP Header Injection (follow-up of CVE-2016-5699)

2019-04-17 Thread STINNER Victor
STINNER Victor added the comment: "wave Hi! I've noticed that CVE-2019-11236 has been assigned to the CRLF injection issue described here. It seems that the library has been patched in GitHub, but no new release has been made to pypi. (...)" This urllib3 change:

[issue31904] Python should support VxWorks RTOS

2019-04-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2954550818e5c23a082e6279eb326168230ebf04 by Victor Stinner (Lihua Zhao) in branch 'master': bpo-31904: Port test_cmd_line to VxWorks (#12648) https://github.com/python/cpython/commit/2954550818e5c23a082e6279eb326168230ebf04 --

[issue30458] [security][CVE-2019-9740][CVE-2019-9947] HTTP Header Injection (follow-up of CVE-2016-5699)

2019-04-17 Thread STINNER Victor
STINNER Victor added the comment: It seems like a change has been pushed into urllib3 to fix this issue, but that there is an issue with international URLs and that maybe RFC 3986 should be updated. RFC 3986: "Uniform Resource Identifier (URI): Generic Syntax" (January 2005)

[issue35755] Remove current directory from posixpath.defpath to enhance security

2019-04-17 Thread STINNER Victor
STINNER Victor added the comment: Anyway, I wrote PR 12861 to remove "to mimick Unix which command behavior". -- ___ Python tracker ___

[issue35755] Remove current directory from posixpath.defpath to enhance security

2019-04-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12785 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35755] Remove current directory from posixpath.defpath to enhance security

2019-04-17 Thread STINNER Victor
STINNER Victor added the comment: > My point is that "which" implementations have different behavior I don't understand this point. Your example is consistent with what I saw on my Fedora 29 and the Python implementation that I just merged. Would you mind to elaborate which corner case is

[issue35755] Remove current directory from posixpath.defpath to enhance security

2019-04-17 Thread Jakub Wilk
Jakub Wilk added the comment: (Note that in msg333835 another implementation, presumably GNU which, was tested.) My point is that "which" implementations have different behavior, so justifying anything with "which" compatibility is weird at best. You can't be compatible with all them.

[issue35755] Remove current directory from posixpath.defpath to enhance security

2019-04-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2c4c02f8a876fcf084575dcaf857a0236c81261a by Victor Stinner in branch 'master': bpo-35755: Remove current directory from posixpath.defpath (GH-11586) https://github.com/python/cpython/commit/2c4c02f8a876fcf084575dcaf857a0236c81261a --

[issue35755] Remove current directory from posixpath.defpath to enhance security

2019-04-17 Thread STINNER Victor
STINNER Victor added the comment: CS_PATH value: * Fedora 29: "/usr/bin" * Ubuntu 16.04: "/bin:/usr/bin" It seems like the current directory is usually not part of the CS_PATH value. -- ___ Python tracker

[issue35755] Remove current directory from posixpath.defpath to enhance security

2019-04-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 228a3c99bdb2d02771bead66a0beabafad3a90d3 by Victor Stinner in branch 'master': bpo-35755: shutil.which() uses os.confstr("CS_PATH") (GH-12858) https://github.com/python/cpython/commit/228a3c99bdb2d02771bead66a0beabafad3a90d3 --

[issue36647] TextTestRunner doesn't honour "buffer" argument

2019-04-17 Thread José Luis Segura Lucas
New submission from José Luis Segura Lucas : When using "buffer = True" in a TextTestRunner, the test result behaviour doesn't change at all. This is because TextTestRunner.stream is initialised using a decorator (_WritelnDecorator). When "buffer" is passed, the TestResult base class will

[issue36646] os.listdir() got permission error in Python3.6 but it's fine in Python2.7

2019-04-17 Thread Eryk Sun
Eryk Sun added the comment: Did you try os.listdir(u'L:\\Temp') in Python 2? -- ___ Python tracker ___ ___ Python-bugs-list

[issue36305] Inconsistent behavior of pathlib.WindowsPath with drive paths

2019-04-17 Thread Eryk Sun
Eryk Sun added the comment: > In contrast, in the case of CreateProcessW, both Path('./exec') and > Path('exec') are the *correct* paths to the executable. The ./ is not > necessary in that case to display the path correctly, but just to > interact correctly with CreateProcessW's interface.

[issue36273] test_thread leaks a core dump on PPC64 AIX 3.x

2019-04-17 Thread Michael Felt
Michael Felt added the comment: On 17/04/2019 14:02, STINNER Victor wrote: > STINNER Victor added the comment: > > The same bug is back: > https://buildbot.python.org/all/#/builders/10/builds/2443 > > Warning -- files was modified by test_threading > Before: [] > After: ['core'] > >

  1   2   >