[issue1583] Patch for signal.set_wakeup_fd

2019-04-09 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > Unpacking the int would mean having one sig_atomic_t for 'invalid', using > that instead of INVALID_FD, plus an array of sig_atomic_t for the fd itself. > Every time you want to change the fd you first set the 'invalid' flag, then > the individual bytes,

[issue36533] logging regression with threading + fork are mixed in 3.7.1rc2 (deadlock potential)

2019-04-09 Thread Gregory P. Smith
Gregory P. Smith added the comment: > """ Since the documentation seems to be silent the guarantee (or expectation) is implied - logging systems emit records atomically - if this isn't true across fork() then the exception should be documented. """ We can add a note to the docs. As a

[issue36582] collections.UserString encode method returns a string

2019-04-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: Trey, would you like to submit a PR to fix this? (Be sure to add a test case). -- assignee: -> rhettinger type: -> behavior versions: +Python 3.8 ___ Python tracker

[issue36559] "import random" should import hashlib on demand (nor load OpenSSL)

2019-04-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: > You could also use the internal _sha512 module. > It's always present, small, lean and provides a SHA512 > implementation with sufficient performance. I suppose we could do this but it borders on telling folks that we're worried about using our own

[issue12910] urllib.quote quotes too many chars, e.g., '()'

2019-04-09 Thread Senthil Kumaran
Change by Senthil Kumaran : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue12910] urllib.quote quotes too many chars, e.g., '()'

2019-04-09 Thread miss-islington
miss-islington added the comment: New changeset 796698adf558f2255474945082856538b1effb0b by Miss Islington (bot) in branch '3.7': bpo-12910: update and correct quote docstring (GH-2568) https://github.com/python/cpython/commit/796698adf558f2255474945082856538b1effb0b -- nosy:

[issue14826] urlopen URL with unescaped space

2019-04-09 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +12682 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing

[issue36276] [CVE-2019-9740] Python urllib CRLF injection vulnerability

2019-04-09 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +12683 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12910] urllib.quote quotes too many chars, e.g., '()'

2019-04-09 Thread Senthil Kumaran
Senthil Kumaran added the comment: New changeset 750d74fac5c510e39958b3f79641fe54096ee54f by Senthil Kumaran (Jörn Hees) in branch 'master': bpo-12910: update and correct quote docstring (#2568) https://github.com/python/cpython/commit/750d74fac5c510e39958b3f79641fe54096ee54f --

[issue12910] urllib.quote quotes too many chars, e.g., '()'

2019-04-09 Thread miss-islington
Change by miss-islington : -- keywords: +patch pull_requests: +12681 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue29858] inspect.signature includes bound argument for wrappers around decorated bound methods

2019-04-09 Thread Cheryl Sabella
Change by Cheryl Sabella : -- versions: +Python 3.8 -Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue36581] __dir__ on unittest.mock not safe for all spec types

2019-04-09 Thread Dylan Semler
Dylan Semler added the comment: I agree docs only say "list of strings" and so this isn't a case where there's behavior that contrasts with the documentation. I merely ran into this issue in my project and found it difficult to get to the root of so wanted to fix it upstream. I made a patch

[issue36582] collections.UserString encode method returns a string

2019-04-09 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36582] collections.UserString encode method returns a string

2019-04-09 Thread Trey Hunner
New submission from Trey Hunner : It looks like the encode method for UserString incorrectly wraps its return value in a str call. ``` >>> from collections import UserString >>> UserString("hello").encode('utf-8') == b'hello' False >>> UserString("hello").encode('utf-8') "b'hello'" >>>

[issue33387] Simplify bytecodes for try-finally, try-except and with blocks.

2019-04-09 Thread Cheryl Sabella
Cheryl Sabella added the comment: What would be the best way to resolve the discussion between this and issue 32949? Would it be good to try to get one of them into 3.8? -- nosy: +cheryl.sabella ___ Python tracker

[issue36581] __dir__ on unittest.mock not safe for all spec types

2019-04-09 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +12679 stage: -> patch review ___ Python tracker ___ ___

[issue36541] Make lib2to3 grammar more closely match Python

2019-04-09 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36580] unittest.mock does not understand dataclasses

2019-04-09 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: To add to this mock.Mock also copies dir(spec) but creating an instance from mock doesn't copy it where it's not a problem with create_autospec. Mock with spec does only attribute validation whereas create_autospec does signature validation. There

[issue36581] __dir__ on unittest.mock not safe for all spec types

2019-04-09 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: https://docs.python.org/3/library/unittest.mock.html#unittest.mock.Mock > spec: This can be either a list of strings or an existing object (a class or > instance) that acts as the specification for the mock object. If you pass in > an object then

[issue35181] Doc: Namespace Packages: Inconsistent documentation of __loader__ being None

2019-04-09 Thread Cheryl Sabella
Cheryl Sabella added the comment: @barry, you started a review of PR10016 and I believe all your requested changes have been made, so please review again when you get a chance. Please also take a look at PR10376. Thanks! -- nosy: +cheryl.sabella type: -> enhancement versions:

[issue36581] __dir__ on unittest.mock not safe for all spec types

2019-04-09 Thread Dylan Semler
New submission from Dylan Semler : If a MagicMock is created with a spec or spec_set that is a non-list iterable of strings (like a tuple), calling dir() on said mock produces a Traceback. Here's a minimum example:  cat poc.py from unittest.mock import MagicMock mock = MagicMock(spec=('a',

[issue36580] unittest.mock does not understand dataclasses

2019-04-09 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: mock.Mock doesn't do signature validation by default for constructor and methods. This is expected. create_autospec [0] should be used to make sure the signature is validated.' import dataclasses import unittest.mock @dataclasses.dataclass class

[issue36580] unittest.mock does not understand dataclasses

2019-04-09 Thread Eric V. Smith
Eric V. Smith added the comment: I'm not sure why dataclasses would be different here: >>> import dataclasses >>> import unittest.mock >>> @dataclasses.dataclass ... class Foo: ... name: str ... baz: float ... bar: int = 12 ... >>> import inspect >>> inspect.signature(Foo) None>

[issue36569] @staticmethod seems to work with setUpClass, but docs say it shouldn't

2019-04-09 Thread Brett Cannon
Brett Cannon added the comment: It's more of a "can't be an instance method" than a strict "only classmethod". Can I ask why you want it to be a strictmethod instead of a classmethod? I personally don't want to change the docs as I think that encourages a potentially bad situation where

[issue20074] open() of read-write non-seekable streams broken

2019-04-09 Thread cagney
cagney added the comment: Another example is PTY: Python 2.7.15 (default, Oct 15 2018, 15:24:06) [GCC 8.1.1 20180712 (Red Hat 8.1.1-5)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import os >>> pty, tty = os.openpty() >>> print(pty, tty) (3, 4) >>>

[issue36580] unittest.mock does not understand dataclasses

2019-04-09 Thread John Parejko
New submission from John Parejko : The new dataclasses.dataclass is very useful for describing the properties of a class, but it appears that Mocks of such decorated classes do not catch the members that are defined in the dataclass. I believe the root cause of this is the fact that

[issue1583] Patch for signal.set_wakeup_fd

2019-04-09 Thread Adam Olsen
Adam Olsen added the comment: Converting to/from sig_atomic_t could have a compile time check on currently supported platforms and isn't buggy for them. For platforms with a different size you could do a runtime check, only allowing a fd in the range of 0-254 (with 255 reserved); that

[issue1583] Patch for signal.set_wakeup_fd

2019-04-09 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > unpack the int into an array of sig_atomic_t. What do you mean with this? You can't write a complete array atomically, so I don't see how this would help. -- ___ Python tracker

[issue1583] Patch for signal.set_wakeup_fd

2019-04-09 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: I'm not sure with what you disagree. At least, you have to admit that using sig_atomic_t is buggy for different reasons than signal safety, namely that there is no guarantee that one can safely convert back and forth to an "int". --

[issue36549] str.capitalize should titlecase the first character not uppercase

2019-04-09 Thread Kingsley McDonald
Kingsley McDonald added the comment: Hello there, I'm an absolute beginner here and this whole thing is a little overwhelming, so please bear with me. I think this would be a suitable first task for me to take on because it appears to be a simple one-line change (correct me if I'm

[issue32884] Adding the ability for getpass to print asterisks when passowrd is typed

2019-04-09 Thread Steven Vascellaro
Steven Vascellaro added the comment: @matanya.stroh: Don't forget to erase the asterisks if the user hits backspace. ``` def win_getpass(prompt='Password: ', stream=None, show_asterisks=False): """Prompt for password with echo off, using Windows getch().""" if sys.stdin is not

[issue1583] Patch for signal.set_wakeup_fd

2019-04-09 Thread Adam Olsen
Adam Olsen added the comment: Disagree; if you're writing signal-handling code you should be very careful to do it properly, even if that's only proper for your current platform. If you can't do it properly you should find an alternative that doesn't involve signals. The fact that

[issue31512] Add non-elevated symlink support for dev mode Windows 10

2019-04-09 Thread Steve Dower
Steve Dower added the comment: Done -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue31512] Add non-elevated symlink support for dev mode Windows 10

2019-04-09 Thread Steve Dower
Steve Dower added the comment: New changeset 0e10766574f4e287cd6b5e5860a1ca75488f4119 by Steve Dower (Vidar Tonaas Fauske) in branch 'master': bpo-31512: Add non-elevated symlink support for Windows (GH-3652) https://github.com/python/cpython/commit/0e10766574f4e287cd6b5e5860a1ca75488f4119

[issue1583] Patch for signal.set_wakeup_fd

2019-04-09 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > Back in 2007 the only POSIX-compliant type allowed for that was sig_atomic_t, > anything else was undefined. Fair enough, but having a non-atomic type is still much better than a completely wrong type. In other words, the requirement of fitting a file

[issue34160] ElementTree not preserving attribute order

2019-04-09 Thread Stefan Behnel
Stefan Behnel added the comment: This is done now. Thanks everyone who helped in discussing and implementing this change. I will leave Serhiy's last PR (adding the "sort_attrs" flag option) open for a while until I'm sure we have a better solution for comparing XML in 3.8, at which point I

[issue36574] Error with self in python

2019-04-09 Thread Steven D'Aprano
Steven D'Aprano added the comment: The error message is correct. The bug is in your code. Also, the code you tell us that you are running is not the same as the code you are actually running. You should not call __init__ directly as you do: # this is wrong

[issue36541] Make lib2to3 grammar more closely match Python

2019-04-09 Thread Tim Hatch
Tim Hatch added the comment: Here's approximately what it would look like to do the big change now: https://github.com/python/cpython/compare/master...thatch:lib2to3-update-grammar (one test failing, and some helpers may need more test coverage) --

[issue36235] distutils.sysconfig.customize_compiler() overrides CFLAGS var with OPT var if CFLAGS env var is set

2019-04-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset 22de4ce498b656063e236350e8404981c13e1cd8 by Victor Stinner in branch '2.7': bpo-36235: Fix distutils test_customize_compiler() on macOS (GH-12751) https://github.com/python/cpython/commit/22de4ce498b656063e236350e8404981c13e1cd8 --

[issue17561] Add socket.bind_socket() convenience function

2019-04-09 Thread STINNER Victor
STINNER Victor added the comment: """ Fixed. There's a remaining failing BB: https://buildbot.python.org/all/#/builders/176/builds/185/steps/4/logs/stdio ...but the failure appears unrelated and it has been red for a while. """ That's known and unrelated issue:

[issue36574] Error with self in python

2019-04-09 Thread Tommy
Joan Tomas (Tommy) Pujol Muñoz added the comment: The python file. It works in Linux (Ubuntu) but not in Windows; at least for me. The output error is : Traceback (most recent call last): File "pySelf.py", line 8, in print(Person.__init__("Some","One",21,"American")) TypeError:

[issue35934] Add socket.create_server() utility function

2019-04-09 Thread STINNER Victor
STINNER Victor added the comment: I was sure that I already reported the issue... In fact, I commented bpo-17561 :-) -- ___ Python tracker ___

[issue34172] multiprocessing.Pool and ThreadPool leak resources after being deleted

2019-04-09 Thread Vy Nguyen
Change by Vy Nguyen : -- nosy: +Vy Nguyen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36559] "import random" should import hashlib on demand (nor load OpenSSL)

2019-04-09 Thread STINNER Victor
STINNER Victor added the comment: Note: *Technically*, you can disable the compilation of the _sha512 module using "*disabled*" in Modules/Setup, but I'm not sure if it's a common use case. At least, it makes sense to me when we are sure that OpenSSL and _hashlib are available ;-) I didn't

[issue36544] cannot import hashlib when openssl is missing

2019-04-09 Thread Xavier de Gaye
Xavier de Gaye added the comment: Thanks Victor for the refactoring of setup.py. That was badly needed indeed. -- ___ Python tracker ___

[issue36414] Multiple test failures in GCC and Clang optional builds on Travis CI

2019-04-09 Thread Xavier de Gaye
Xavier de Gaye added the comment: FWIW PR 12708 has been merged. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35934] Add socket.create_server() utility function

2019-04-09 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: No problem. My bad that I mistyped the "BPO" thing. -- ___ Python tracker ___ ___

[issue35934] Add socket.create_server() utility function

2019-04-09 Thread STINNER Victor
STINNER Victor added the comment: > Those are old failures (+/- 17 hours ago). I committed: > https://github.com/python/cpython/pull/12735 Oh, you wrote "BPO-" rather than "bpo-" and so your commit wasn't mentioned here: commit 8702b67dad62a9084f6c1823dce10653743667c8 Author: Giampaolo

[issue34373] test_time errors on AIX

2019-04-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8709490f48fc27b3dd1a16acb33bea2299c6a575 by Victor Stinner in branch 'master': bpo-34373: Fix time.mktime() on AIX (GH-12726) https://github.com/python/cpython/commit/8709490f48fc27b3dd1a16acb33bea2299c6a575 -- nosy: +vstinner

[issue36235] distutils.sysconfig.customize_compiler() overrides CFLAGS var with OPT var if CFLAGS env var is set

2019-04-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12678 stage: resolved -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue36235] distutils.sysconfig.customize_compiler() overrides CFLAGS var with OPT var if CFLAGS env var is set

2019-04-09 Thread STINNER Victor
STINNER Victor added the comment: Oh, the test failed on Python 2.7 on macOS: x86-64 High Sierra 2.7 https://buildbot.python.org/all/#/builders/140/builds/211 == FAIL: test_customize_compiler

[issue35934] Add socket.create_server() utility function

2019-04-09 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Those are old failures (+/- 17 hours ago). I committed: https://github.com/python/cpython/pull/12735 ...which fixed them. -- ___ Python tracker

[issue35934] Add socket.create_server() utility function

2019-04-09 Thread STINNER Victor
STINNER Victor added the comment: s390x SLES 3.x: https://buildbot.python.org/all/#/builders/16/builds/2625 FAIL: test_wait_socket (test.test_multiprocessing_fork.TestWait) FAIL: test_wait_socket (test.test_multiprocessing_spawn.TestWait) Re-running failed tests in verbose mode Re-running

[issue35934] Add socket.create_server() utility function

2019-04-09 Thread STINNER Victor
STINNER Victor added the comment: AMD64 FreeBSD CURRENT Shared 3.x: https://buildbot.python.org/all/#/builders/168/builds/885 test_wait (test.test_multiprocessing_spawn.TestWait) ... ok test_wait_integer (test.test_multiprocessing_spawn.TestWait) ... ok test_wait_slow

[issue36560] test_functools leaks randomly 1 memory block

2019-04-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset 86f0354fcb815312295b923c55e39364d85d0388 by Victor Stinner in branch '3.7': [3.7] bpo-36560: regrtest: don't collect the GC twice (GH-12747) (GH-12749) https://github.com/python/cpython/commit/86f0354fcb815312295b923c55e39364d85d0388

[issue35934] Add socket.create_server() utility function

2019-04-09 Thread STINNER Victor
STINNER Victor added the comment: AMD64 Ubuntu Shared 3.x: https://buildbot.python.org/all/#/builders/141/builds/1498 FAIL: test_wait_socket (test.test_multiprocessing_fork.TestWait) -- Traceback (most recent call last):

[issue35934] Add socket.create_server() utility function

2019-04-09 Thread STINNER Victor
STINNER Victor added the comment: The change broke multiple buildbots, please fix buildbots or the change will be reverted: https://github.com/python/cpython/pull/11784#issuecomment-481036369 Revert on fail: https://pythondev.readthedocs.io/ci.html#revert-on-fail -- nosy:

[issue36579] test_venv: test_with_pip() hangs on PPC64 AIX 3.x

2019-04-09 Thread STINNER Victor
New submission from STINNER Victor : https://buildbot.python.org/all/#/builders/10/builds/2389 0:45:36 [412/420/1] test_venv crashed (Exit code 1) Timeout (0:15:00)! Thread 0x0001 (most recent call first): File

[issue36577] setup doesn't report missing _ssl and _hashlib

2019-04-09 Thread Christian Heimes
Change by Christian Heimes : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> behavior ___ Python tracker ___

[issue36560] test_functools leaks randomly 1 memory block

2019-04-09 Thread STINNER Victor
STINNER Victor added the comment: > _abc was written for optimization. Your PR makes it using slower Python code. > Could you please test how much this hits the performance of abc? I mostly wrote PR 12743 to debug this issue. Please see the discussion directly on the PR ;-) --

[issue36146] Refactor setup.py

2019-04-09 Thread STINNER Victor
STINNER Victor added the comment: For the record, I introduced a regression which has been fixed in bpo-36544. -- ___ Python tracker ___

[issue36146] Refactor setup.py

2019-04-09 Thread miss-islington
miss-islington added the comment: New changeset 8abc3f4f91e6b523c761c7a6fa2e3405019803a1 by Miss Islington (bot) (Christian Heimes) in branch 'master': bpo-36577: setup.py reports missing OpenSSL again (GH-12746)

[issue36577] setup doesn't report missing _ssl and _hashlib

2019-04-09 Thread miss-islington
miss-islington added the comment: New changeset 8abc3f4f91e6b523c761c7a6fa2e3405019803a1 by Miss Islington (bot) (Christian Heimes) in branch 'master': bpo-36577: setup.py reports missing OpenSSL again (GH-12746)

[issue36544] cannot import hashlib when openssl is missing

2019-04-09 Thread STINNER Victor
STINNER Victor added the comment: Xavier de Gaye: Oops! I also saw such errors but I didn't understand them. Thanks for the fix! I wrote PR 12750 to fix another minor issue which isn't directly related to your fix (nor to my previous refactoring). --

[issue36544] cannot import hashlib when openssl is missing

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

[issue36560] test_functools leaks randomly 1 memory block

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

[issue36560] test_functools leaks randomly 1 memory block

2019-04-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset bb4447897a5f141eecf42987a1191a3330c5d7ed by Victor Stinner in branch 'master': bpo-36560: regrtest: don't collect the GC twice (GH-12747) https://github.com/python/cpython/commit/bb4447897a5f141eecf42987a1191a3330c5d7ed --

[issue36508] python-config --ldflags must not contain LINKFORSHARED ("-Xlinker -export-dynamic" on Linux)

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

[issue36508] python-config --ldflags must not contain LINKFORSHARED ("-Xlinker -export-dynamic" on Linux)

2019-04-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset e65f01f78d7bda3013fc5be485afa87ff56511d9 by Victor Stinner in branch 'master': bpo-36508: python-config don't export LINKFORSHARED (GH-12661) https://github.com/python/cpython/commit/e65f01f78d7bda3013fc5be485afa87ff56511d9 --

[issue36578] multiprocessing pool + subprocess ValueError: empty range for randrange

2019-04-09 Thread SilentGhost
SilentGhost added the comment: The error you're seeing stems from this bit of code: random.randint(1, 0) With zero resulting from `taskid % 5` operation for values of taskid divisible by 5. Obviously, when you comment out this line you're not seeing the error. -- nosy: +SilentGhost

[issue36578] multiprocessing pool + subprocess ValueError: empty range for randrange

2019-04-09 Thread 孑影
孑影 added the comment: My python version info: Python 2.7.13 (default, Sep 26 2018, 18:42:22) [GCC 6.3.0 20170516] on linux2 Python 3.5.3 (default, Sep 27 2018, 17:25:39) [GCC 6.3.0 20170516] on linux -- ___ Python tracker

[issue36578] multiprocessing pool + subprocess ValueError: empty range for randrange

2019-04-09 Thread 孑影
Change by 孑影 : Added file: https://bugs.python.org/file48256/demo.py ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36560] test_functools leaks randomly 1 memory block

2019-04-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9c14061a2c2df9a9b84d0aab190a50c24a0d52f4 by Victor Stinner in branch '2.7': bpo-36560: Fix reference leak hunting in regrtest (GH-12744) (GH-12745) https://github.com/python/cpython/commit/9c14061a2c2df9a9b84d0aab190a50c24a0d52f4 --

[issue36578] multiprocessing pool + subprocess ValueError: empty range for randrange

2019-04-09 Thread 孑影
Change by 孑影 : Removed file: https://bugs.python.org/file48255/demo.py ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36560] test_functools leaks randomly 1 memory block

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

[issue36578] multiprocessing pool + subprocess ValueError: empty range for randrange

2019-04-09 Thread 孑影
Change by 孑影 : Removed file: https://bugs.python.org/file48254/demo.py ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36578] multiprocessing pool + subprocess ValueError: empty range for randrange

2019-04-09 Thread 孑影
Change by 孑影 : Added file: https://bugs.python.org/file48255/demo.py ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36578] multiprocessing pool + subprocess ValueError: empty range for randrange

2019-04-09 Thread 孑影
Change by 孑影 : Added file: https://bugs.python.org/file48254/demo.py ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36578] multiprocessing pool + subprocess ValueError: empty range for randrange

2019-04-09 Thread 孑影
Change by 孑影 : Removed file: https://bugs.python.org/file48253/demo.py ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36578] multiprocessing pool + subprocess ValueError: empty range for randrange

2019-04-09 Thread 孑影
New submission from 孑影 : == output == python2 /tmp/demo.py 31749 task#1 result:(False, 'ls: cannot access alksdfjalkdsfadsfk: No such file or directoryn') 31751 task#2 result:(False, 'ls: cannot access alksdfjalkdsfadsfk: No such file or directoryn') 31752 task#3 result:(False, '3n') 31750

[issue1583] Patch for signal.set_wakeup_fd

2019-04-09 Thread Adam Olsen
Adam Olsen added the comment: The fd field may be written from the main thread simultaneous with the signal handler activating and reading it out. Back in 2007 the only POSIX-compliant type allowed for that was sig_atomic_t, anything else was undefined. Looks like pycore_atomic.h should

[issue36544] cannot import hashlib when openssl is missing

2019-04-09 Thread Xavier de Gaye
Change by Xavier de Gaye : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35907] Unnecessary URL scheme exists to allow file:// reading file in urllib

2019-04-09 Thread Ryan Ware
Change by Ryan Ware : -- nosy: +ware ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35906] Header Injection in urllib

2019-04-09 Thread Ryan Ware
Change by Ryan Ware : -- nosy: +ware ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30458] [CVE-2019-9740][security] CRLF Injection in httplib

2019-04-09 Thread Ryan Ware
Change by Ryan Ware : -- nosy: +ware ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36146] Refactor setup.py

2019-04-09 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +12673 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36577] setup doesn't report missing _ssl and _hashlib

2019-04-09 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +12672 stage: -> patch review ___ Python tracker ___ ___

[issue36577] setup doesn't report missing _ssl and _hashlib

2019-04-09 Thread Christian Heimes
New submission from Christian Heimes : setup does not report _ssl and _hashlib as failed to build in case OpenSSL libs or headers are missing. Related to #36544 and #36146 Reproducer: $ ./configure --with-openssl=/invalid $ make ... running build running build_ext The following modules

[issue14817] pkgutil.extend_path has no tests

2019-04-09 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: @Windson please open a PR for review with your code. -- nosy: +nanjekyejoannah ___ Python tracker ___

[issue36559] "import random" should import hashlib on demand (nor load OpenSSL)

2019-04-09 Thread Christian Heimes
Christian Heimes added the comment: Thanks for pointing to the other issue. This is clearly a regression and should be fixed ASAP. I have ACKed your PR and pushed it. -- ___ Python tracker

[issue36146] Refactor setup.py

2019-04-09 Thread miss-islington
miss-islington added the comment: New changeset 2ee077f7955e0349074f16a7afee40b4914619f7 by Miss Islington (bot) (xdegaye) in branch 'master': bpo-36544 : Fix regression introduced in bpo-36146 (GH-12708) https://github.com/python/cpython/commit/2ee077f7955e0349074f16a7afee40b4914619f7

[issue36544] cannot import hashlib when openssl is missing

2019-04-09 Thread miss-islington
miss-islington added the comment: New changeset 2ee077f7955e0349074f16a7afee40b4914619f7 by Miss Islington (bot) (xdegaye) in branch 'master': bpo-36544 : Fix regression introduced in bpo-36146 (GH-12708) https://github.com/python/cpython/commit/2ee077f7955e0349074f16a7afee40b4914619f7

[issue36533] logging regression with threading + fork are mixed in 3.7.1rc2 (deadlock potential)

2019-04-09 Thread cagney
cagney added the comment: I pointed out two issues with breaking the locks. Your response addressed the less important issue: - the guarantee that log records don't interleave is lost Since the documentation seems to be silent the guarantee (or expectation) is implied - logging systems

[issue29699] shutil.rmtree should not fail with FileNotFoundError (race condition)

2019-04-09 Thread Jesse Farnham
Change by Jesse Farnham : -- nosy: +jesse.farnham ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36559] "import random" should import hashlib on demand (nor load OpenSSL)

2019-04-09 Thread Xavier de Gaye
Xavier de Gaye added the comment: > You could also use the internal _sha512 module. It's always present This is not true at the moment, the _sha512 module is not present when openssl is missing. This is a bug in setup.py that prevents building the _sha512 module when openssl is missing. See

[issue36576] Some test_ssl and test_asyncio tests fail with OpenSSL 1.1.1 on Python 3.4 and 3.5

2019-04-09 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +12671 stage: -> patch review ___ Python tracker ___ ___

[issue36576] Some test_ssl and test_asyncio tests fail with OpenSSL 1.1.1 on Python 3.4 and 3.5

2019-04-09 Thread STINNER Victor
STINNER Victor added the comment: I wasn't sure if tests pass or not on OpenSSL 1.1.0. My colleague Miro checked: the full Python 3.5 test suite pass on Fedora 28 with OpenSSL 1.1.0. python35 is linked to OpenSSL 1.1.0 on Fedora 28:

[issue36574] Error with self in python

2019-04-09 Thread Steven D'Aprano
Steven D'Aprano added the comment: The file you have attached doesn't seem to be a Python script, it seems to be some sort of Windows batch file or similar. Please supply an actual Python file. (Hint: remove the "del code.py" line from your batch file.) Also, copy and paste the traceback

[issue36576] Some test_ssl and test_asyncio tests fail with OpenSSL 1.1.1 on Python 3.4 and 3.5

2019-04-09 Thread STINNER Victor
New submission from STINNER Victor : On Fedora 29, test_ssl and test_asyncio when Python 3.5 is linked with OpenSSL 1.1.1b (Fedora package openssl-1.1.1b-3.fc29.x86_64): test_ssl: * test_options (test.test_ssl.ContextTests) * test_alpn_protocols (test.test_ssl.ThreadedTests) *

[issue22377] %Z in strptime doesn't match EST and others

2019-04-09 Thread Paul Ganssle
Paul Ganssle added the comment: @Alex LordThorsen: It will accept EST if EST is one of your "local" time zones, so whatever's in `time.tzname`. In the short term, I think the right thing to do would be to update the documentation to remove the reference to "EST", and add an explanatory note

  1   2   >