[issue35168] shlex punctuation_chars inconsistency

2019-01-21 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +11400 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue35168] shlex punctuation_chars inconsistency

2019-01-21 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch, patch pull_requests: +11400, 11401 stage: needs patch -> patch review ___ Python tracker ___

[issue35794] test_posix.py test failure

2019-01-21 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I think that test should check for PermissionError as well. -- ___ Python tracker ___ ___

[issue35794] test_posix.py test failure

2019-01-21 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35796] time.localtime returns error for negative values

2019-01-21 Thread Mba
New submission from Mba : Steps to reproduce the bug: ``` >>> import sys >>> sys.version '3.6.7 (v3.6.7:6ec5cf24b7, Oct 20 2018, 13:35:33) [MSC v.1900 64 bit (AMD64)]' >>> import datetime >>> print(datetime.datetime.now().astimezone().tzinfo) datetime.timezone(datetime.timedelta(0, 3600),

[issue35794] test_posix.py test failure

2019-01-21 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch, patch pull_requests: +11404, 11405 stage: -> patch review ___ Python tracker ___

[issue20239] Allow repeated deletion of unittest.mock.Mock attributes

2019-01-21 Thread Chris Withers
Chris Withers added the comment: New changeset 222d303ade8aadf0adcae5190fac603bdcafe3f0 by Chris Withers (Pablo Galindo) in branch 'master': bpo-20239: Allow repeated deletion of unittest.mock.Mock attributes (#11057)

[issue35794] test_posix.py test failure

2019-01-21 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: It's a relatively old Gentoo GNU/Linux system: Linux tamiyo 3.17.7-gentoo #2 SMP PREEMPT Fri Dec 23 18:13:49 CET 2016 x86_64 Intel(R) Core(TM) i7-2640M CPU @ 2.80GHz GenuineIntel GNU/Linux The problem occurs when there are directories on $PATH which are not

[issue20239] Allow repeated deletion of unittest.mock.Mock attributes

2019-01-21 Thread Chris Withers
Chris Withers added the comment: New changeset d358a8cda75446a8e0b5d99149f709395d5eae19 by Chris Withers (Miss Islington (bot)) in branch '3.7': bpo-20239: Allow repeated deletion of unittest.mock.Mock attributes (GH-11629)

[issue35772] test_tarfile fails on ppc64le when using tmpfs filesystem

2019-01-21 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35707] time.sleep() should support objects with __float__

2019-01-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: As a late response to msg333416 and msg333547, I don't agree with looking at __index__ in _PyTime_FromObject. The __index__ method is used when an object can be used as the index for a sequence, but should not silently convert to int or float. See

[issue35168] shlex punctuation_chars inconsistency

2019-01-21 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch, patch, patch, patch pull_requests: +11400, 11401, 11402, 11403 stage: needs patch -> patch review ___ Python tracker ___

[issue35168] shlex punctuation_chars inconsistency

2019-01-21 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch, patch, patch pull_requests: +11400, 11401, 11402 stage: needs patch -> patch review ___ Python tracker ___

[issue35707] time.sleep() should support objects with __float__

2019-01-21 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: To avoid code duplication, it's tempting to merge _PyTime_FromObject and _PyTime_ObjectToDenominator These two functions almost do the same, but not quite. -- ___ Python tracker

[issue35795] test_pkgutil test_zipapp fail in AMD64 Windows7 SP1 3.x and AMD64 Windows7 SP1 3.7 buildbots

2019-01-21 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : test_pkgutil test_zipapp fail in AMD64 Windows7 SP1 3.x and AMD64 Windows7 SP1 3.7 buildbots: https://buildbot.python.org/all/#/builders/40/builds/1525 https://buildbot.python.org/all/#/builders/130/builds/636

[issue35707] time.sleep() should support objects with __float__

2019-01-21 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: In other words: if we can only use __float__ and __int__, how do we know which one to use? -- ___ Python tracker ___

[issue20239] Allow repeated deletion of unittest.mock.Mock attributes

2019-01-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +11395 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20239] Allow repeated deletion of unittest.mock.Mock attributes

2019-01-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +11395, 11396 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20239] Allow repeated deletion of unittest.mock.Mock attributes

2019-01-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +11395, 11396, 11397 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35425] test_eintr fails randomly on AMD64 FreeBSD 10-STABLE Non-Debug 3.7: TypeError: 'int' object is not callable

2019-01-21 Thread STINNER Victor
STINNER Victor added the comment: Another recent failure: https://buildbot.python.org/all/#/builders/167/builds/488 ... test_kqueue (__main__.SelectEINTRTest) ... ok test_poll (__main__.SelectEINTRTest) ... ok test_select (__main__.SelectEINTRTest) ... test_all (test.test_eintr.EINTRTests)

[issue35794] test_posix.py test failure

2019-01-21 Thread Jeroen Demeyer
New submission from Jeroen Demeyer : This test was recently added (PR 6332): def test_no_such_executable(self): no_such_executable = 'no_such_executable' try: pid = posix.posix_spawn(no_such_executable, [no_such_executable],

[issue35707] time.sleep() should support objects with __float__

2019-01-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: Using __index__ here doesn't feel right, although I can't explain why yet. -- ___ Python tracker ___

[issue35794] test_posix.py test failure

2019-01-21 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +11404 stage: -> patch review ___ Python tracker ___ ___

[issue35707] time.sleep() should support objects with __float__

2019-01-21 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > If we want to support other numerical types with loss in double rounding Looking at the existing code, I can already see several double-rounding "bugs" in the code, so I wouldn't be too much concerned here... --

[issue35794] test_posix.py test failure

2019-01-21 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch, patch, patch pull_requests: +11404, 11405, 11406 stage: -> patch review ___ Python tracker ___

[issue35772] test_tarfile fails on ppc64le when using tmpfs filesystem

2019-01-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +11398 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35772] test_tarfile fails on ppc64le when using tmpfs filesystem

2019-01-21 Thread STINNER Victor
STINNER Victor added the comment: New changeset b2385458ceddaf3d0d91456923716259d3915023 by Victor Stinner in branch 'master': bpo-35772: Fix test_tarfile on ppc64 (GH-11606) https://github.com/python/cpython/commit/b2385458ceddaf3d0d91456923716259d3915023 --

[issue35772] test_tarfile fails on ppc64le when using tmpfs filesystem

2019-01-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +11398, 11399 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35772] test_tarfile fails on ppc64le when using tmpfs filesystem

2019-01-21 Thread miss-islington
miss-islington added the comment: New changeset d1dd6be613381b996b9071443ef081de8e5f3aff by Miss Islington (bot) in branch '3.7': bpo-35772: Fix test_tarfile on ppc64 (GH-11606) https://github.com/python/cpython/commit/d1dd6be613381b996b9071443ef081de8e5f3aff -- nosy:

[issue35707] time.sleep() should support objects with __float__

2019-01-21 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: The motivation for PEP 357 was certainly using an object as the index for a sequence, but that's not the only use case. In fact PEP 357 states "For example, the slot can be used any time Python requires an integer internally" So despite the name __index__,

[issue20239] Allow repeated deletion of unittest.mock.Mock attributes

2019-01-21 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35707] time.sleep() should support objects with __float__

2019-01-21 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: If __index__ doesn't "feel" right, what do you propose then to fix this issue, keeping in mind the concerns of https://bugs.python.org/issue35707#msg333401 -- ___ Python tracker

[issue35796] time.localtime returns error for negative values

2019-01-21 Thread STINNER Victor
STINNER Victor added the comment: It's a limitation of the Windows C library. I'm quite sure that Python 2 has a the same issue, it shouldn't be a regression. -- nosy: +vstinner ___ Python tracker

[issue35781] `logger.warn` method is used in "Logging HOWTO" documentation though `logger.warn` method is deprecated in Python 3.7

2019-01-21 Thread Yuuji KAWAMATSU
Yuuji KAWAMATSU added the comment: Thank you! I will create PR. -- nosy: +Yuuji KAWAMATSU ___ Python tracker ___ ___

[issue35794] test_posix.py test failure

2019-01-21 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Hi, Thank you for opening the issue. Without providing more information we cannot help debugging the issue. Can you provide more information like what is your system, What OS, version of python, architecture...etc Is the only test that fails?

[issue35794] test_posix.py test failure

2019-01-21 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- components: +Tests ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35707] time.sleep() should support objects with __float__

2019-01-21 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- pull_requests: +11407 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19660] decorator syntax: allow testlist instead of just dotted_name

2019-01-21 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: There is again some discussion about this at https://discuss.python.org/t/why-are-some-expressions-syntax-errors/420 -- ___ Python tracker

[issue35794] test_posix.py test failure

2019-01-21 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset e9b185f2a493cc54f0d49eac44bf21e8d7de2990 by Pablo Galindo in branch 'master': bpo-35794: Catch PermissionError in test_no_such_executable (GH-11635) https://github.com/python/cpython/commit/e9b185f2a493cc54f0d49eac44bf21e8d7de2990

[issue35794] test_posix.py test failure

2019-01-21 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35797] concurrent.futures.ProcessPoolExecutor does not work in venv on Windows

2019-01-21 Thread Christian Ullrich
New submission from Christian Ullrich : Using concurrent.futures.ProcessPoolExecutor on Windows fails immediately with a lot of exceptions of the "access denied", "file not found", and "invalid handle" varieties. Running the script that creates the ProcessPoolExecutor from the main

[issue35795] test_pkgutil test_zipapp fail in AMD64 Windows7 SP1 3.x and AMD64 Windows7 SP1 3.7 buildbots

2019-01-21 Thread Jeremy Kloth
Jeremy Kloth added the comment: This is an old, but recurring issue with Windows and directory tree removal: see issue15496 Basically, for stable (Windows) buildbots, directory tree removal needs to go through support.rmtree, not any of the stdlib methods for doing so. In a nutshell, the

[issue35707] time.sleep() should support objects with __float__

2019-01-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: > In other words: if we can only use __float__ and __int__, how do we know > which one to use? I guess __index__. I've read the definition of object.__index__ in the data model documentation, and using __index__ for this conversion is fine. I need to

[issue35707] time.sleep() should support objects with __float__

2019-01-21 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- pull_requests: +11407, 11408 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35707] time.sleep() should support objects with __float__

2019-01-21 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- pull_requests: +11407, 11408, 11409 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35798] duplicate SyntaxWarning: "is" with a literal

2019-01-21 Thread Jakub Wilk
New submission from Jakub Wilk : $ python3.8 -c 'if object() is 42: pass' :1: SyntaxWarning: "is" with a literal. Did you mean "=="? :1: SyntaxWarning: "is" with a literal. Did you mean "=="? I'd like only one copy of this warning, not two. Tested with git master

[issue35633] test_eintr fails on AIX since fcntl functions were modified

2019-01-21 Thread Michael Felt
Michael Felt added the comment: Done. > On 1/15/2019 11:23 AM, STINNER Victor wrote: > I would prefer to simply skip the lockf() test rather than ignoring > PermissionError for flock() and lockf() on all platforms. Can you please > write a PR for that? > > There is no need to add a NEWS

[issue34814] makesetup: must link C extensions to libpython when compiled in shared mode

2019-01-21 Thread STINNER Victor
STINNER Victor added the comment: Another Fedora on Python2: https://bugzilla.redhat.com/show_bug.cgi?id=1667914 -- ___ Python tracker ___

[issue35795] test_pkgutil test_zipapp fail in AMD64 Windows7 SP1 3.x and AMD64 Windows7 SP1 3.7 buildbots

2019-01-21 Thread STINNER Victor
STINNER Victor added the comment: Old fixed rmtree issue: bpo-22022, bpo-30334. This one is different. tempfile calls shutil.rmtree(). The test doesn't call rmtree() directly. -- nosy: +vstinner ___ Python tracker

[issue34294] re module: wrong capturing groups

2019-01-21 Thread Ma Lin
Ma Lin added the comment: Original post's bug was introduced in Python 3.7.0 When investigate the code, I found another bug about capturing groups. This bug exists since very early version. regex module doesn't have this bug. Python 3.4.4 (v3.4.4:737efcadf5a6, Dec 20 2015, 19:28:18) [MSC

[issue35798] duplicate SyntaxWarning: "is" with a literal

2019-01-21 Thread STINNER Victor
STINNER Victor added the comment: The warning has been introduced by bpo-34850: commit 3bcbedc9f1471d957a30a90f9d1251516b422416. -- nosy: +vstinner ___ Python tracker ___

[issue34850] Emit a syntax warning for "is" with a literal

2019-01-21 Thread STINNER Victor
STINNER Victor added the comment: The warning is emited twice, see: bpo-35798. -- nosy: +vstinner ___ Python tracker ___ ___

[issue35794] test_posix.py test failure

2019-01-21 Thread STINNER Victor
STINNER Victor added the comment: To be clear, only os.posix_spawnp() (with "P") fails: $ PATH=/root ./python -m test -v test_posix ... ERROR: test_no_such_executable (test.test_posix.TestPosixSpawnP) -- Traceback (most

[issue35794] test_posix.py test failure

2019-01-21 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > Test with os.posix_spawn() is fine: Indeed, the difference between posix_spawn() and posix_spawnp() is that only the latter uses $PATH to look up the executable. -- ___ Python tracker

[issue35788] smtpd.PureProxy and smtpd.MailmanProxy broken by extra kwargs, bytes and more

2019-01-21 Thread Samuel Colvin
Samuel Colvin added the comment: Thanks for the response. I've created issues on aiosmtpd for both these things. There are much better ways of running the controller than threading, but that's a discussion for https://github.com/aio-libs/aiosmtpd/issues/160. I'll try and work on aiosmtpd

[issue35788] smtpd.PureProxy and smtpd.MailmanProxy broken by extra kwargs, bytes and more

2019-01-21 Thread Samuel Colvin
Samuel Colvin added the comment: Ok. Thanks for your explanation. Makes sense. -- ___ Python tracker ___ ___ Python-bugs-list

[issue35788] smtpd.PureProxy and smtpd.MailmanProxy broken by extra kwargs, bytes and more

2019-01-21 Thread R. David Murray
R. David Murray added the comment: The mailman proxy has been abandoned for a long time now, so no fixes there. I have some sympathy to fixing PureProxy, but since the stdlib itself doesn't use it, not a lot :) At some point we will start cleaning up old code (probably a while after 2.7 is

[issue35800] remove smtpd.MailmanProxy

2019-01-21 Thread Samuel Colvin
New submission from Samuel Colvin : smtpd.MailmanProxy is completely broken, it takes the wrong arguments but also assumes the existence of a "Mailman" module which doesn't exist. It should be removed in 3.8 or 3.9. Created from https://bugs.python.org/issue35788 Happy to create a PR if

[issue35777] mismatched eval() and ast.literal_eval() behavior with unicode_literals

2019-01-21 Thread jez
jez added the comment: I take the point about breaking backward compatibility. The problem, then, is in the `ast` documentation, and may not be confined to Python 2.7 The `literal_eval` doc states no more than that the function

[issue35797] concurrent.futures.ProcessPoolExecutor does not work in venv on Windows

2019-01-21 Thread Steve Dower
Steve Dower added the comment: The first idea makes sense, but because of how we've already architected things (and the direction we're trying to rearchitect things) it isn't really that feasible. The second idea could be good. It isn't that hard to make globally named handles that can be

[issue35782] Missing whitespace after comma in randrange raise error

2019-01-21 Thread miss-islington
miss-islington added the comment: New changeset 2433a2ab705e93f9a44f01c260d351b205a73e9d by Miss Islington (bot) (Kumar Akshay) in branch 'master': bpo-35782: Fix error message in randrange (GH-11620) https://github.com/python/cpython/commit/2433a2ab705e93f9a44f01c260d351b205a73e9d

[issue35797] concurrent.futures.ProcessPoolExecutor does not work in venv on Windows

2019-01-21 Thread Steve Dower
Steve Dower added the comment: Good catch! I'm surprised we don't have any tests for this, but I guess we don't really create any virtual environments in our test suite. A shame nobody hit it during RC. I don't actually know the best fix for this. The venv python.exe script is the same as

[issue35797] concurrent.futures.ProcessPoolExecutor does not work in venv on Windows

2019-01-21 Thread Steve Dower
Steve Dower added the comment: > We need a way to allow multiprocessing to spawn the real python.exe instead > of the launcher executable that's set as sys.executable. Got to a computer and had just reached the same conclusion. Given the environment is inherited, it's easy to do: >>>

[issue35782] Missing whitespace after comma in randrange raise error

2019-01-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +11413 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35782] Missing whitespace after comma in randrange raise error

2019-01-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +11413, 11414 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35782] Missing whitespace after comma in randrange raise error

2019-01-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +11413, 11414, 11415 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34656] [CVE-2018-20406] memory exhaustion in Modules/_pickle.c:1393

2019-01-21 Thread STINNER Victor
Change by STINNER Victor : -- title: memory exhaustion in Modules/_pickle.c:1393 -> [CVE-2018-20406] memory exhaustion in Modules/_pickle.c:1393 ___ Python tracker ___

[issue35699] distutils cannot find Build Tools 2017 since 3.7.2

2019-01-21 Thread Steve Dower
Steve Dower added the comment: There is one buildbot (https://buildbot.python.org/all/#builders/40/builds/1524) that started randomly failing unrelated tests with this change - usually one of zipapp, pkgutil, or zipimport. I don't have any idea what the relationship here is, unless the

[issue35699] distutils cannot find Build Tools 2017 since 3.7.2

2019-01-21 Thread Tzu-ping Chung
Tzu-ping Chung added the comment: I read a few of the logs, and all errors roots in the same place, when the test case tries to remove the tempdir during teardown/cleanup. The Windows (and other platforms not supporting directory fds) implementation of rmtree can have race conditions if

[issue35798] duplicate SyntaxWarning: "is" with a literal

2019-01-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +11410 stage: -> patch review ___ Python tracker ___ ___

[issue35798] duplicate SyntaxWarning: "is" with a literal

2019-01-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch, patch, patch pull_requests: +11410, 11411, 11412 stage: -> patch review ___ Python tracker ___

[issue35798] duplicate SyntaxWarning: "is" with a literal

2019-01-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch, patch pull_requests: +11410, 11411 stage: -> patch review ___ Python tracker ___

[issue35788] smtpd.PureProxy and smtpd.MailmanProxy broken by extra kwargs, bytes and more

2019-01-21 Thread R. David Murray
R. David Murray added the comment: Actually, thinking about it some more, you are right. If PureProxy doesn't at least function according to the current docs it should either be fixed or we should deprecate-and-remove it in 3.8 or 3.9 (depending on how strongly people feel about the

[issue27035] Cannot set exit code in atexit callback

2019-01-21 Thread Christopher Hunt
Change by Christopher Hunt : -- nosy: +chrahunt versions: +Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35797] concurrent.futures.ProcessPoolExecutor does not work in venv on Windows

2019-01-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hmm, if multiprocessing exhibits the problem, I wouldn't be surprised if some third-party libraries also do. I think `sys.executable` should really point to the proper executable. > But changing sys.executable to _not_ be the venv one will break anyone who

[issue35780] Recheck logic in the C version of the lru_cache()

2019-01-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It was the explanation of possible history, not the justification of bugs. Of course bugs should be fixed. Thank you for rechecking this code and for your fix. As for the optimization in lru_cache_make_key(), consider the following example: @lru_cache()

[issue35797] concurrent.futures.ProcessPoolExecutor does not work in venv on Windows

2019-01-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hmm... Out of curiosity, why is the venv's python.exe not simply a symlink to the original python.exe? What is the point of going through py.exe here? Also, is this a regression? Otherwise I don't think it has to be a release blocker. --

[issue35797] concurrent.futures.ProcessPoolExecutor does not work in venv on Windows

2019-01-21 Thread Steve Dower
Steve Dower added the comment: You can't create symlinks on Windows without additional user permissions, and the old method of copying most of the binaries was slow and made DLL hell worse, as well as simply not working with the Windows Store model that does not let random executables load

[issue35801] venv in 3.7 references python3 executable

2019-01-21 Thread Paul Watson
New submission from Paul Watson : The documentation for venv in Python 3.7 references using `python3` to run venv. I do not find a `python3` executable in the kit. https://docs.python.org/3.7/library/venv.html#module-venv -- assignee: docs@python components: Documentation messages:

[issue35797] concurrent.futures.ProcessPoolExecutor does not work in venv on Windows

2019-01-21 Thread Eryk Sun
Eryk Sun added the comment: multiprocessing could be redesigned to make the child process responsible for duplicating all handles from its logical parent (by PID passed on the command line -- regardless of whatever its real parent is). That avoids the problem of the parent mistakenly

[issue35780] Recheck logic in the C version of the lru_cache()

2019-01-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For the test you can use "nonlocal". -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue35788] smtpd.PureProxy and smtpd.MailmanProxy broken by extra kwargs, bytes and more

2019-01-21 Thread R. David Murray
R. David Murray added the comment: It is documented as deprecated, but only in the 'seealso' note at the top. I think it would be reasonable to open an issue to add an actual 'deprecated' ReST tag to the docs. For your 1 and 2, the stdlib smtpd forwarding is also blocking; that code

[issue35788] smtpd.PureProxy and smtpd.MailmanProxy broken by extra kwargs, bytes and more

2019-01-21 Thread Samuel Colvin
Samuel Colvin added the comment: Great, https://bugs.python.org/issue35799 and https://bugs.python.org/issue35800 created. -- ___ Python tracker ___

[issue35798] duplicate SyntaxWarning: "is" with a literal

2019-01-21 Thread Kumar Akshay
Kumar Akshay added the comment: can I work on this? -- nosy: +kakshay ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35797] concurrent.futures.ProcessPoolExecutor does not work in venv on Windows

2019-01-21 Thread Steve Dower
Steve Dower added the comment: > So I think "breaking if environment variables are not inherited" is a less > severe failure mode than this issue is. ISTR that having sys.executable point to a path outside of sys.prefix breaks the site module in some way, so that would move the fix over

[issue35799] fix or remove smtpd.PureProxy

2019-01-21 Thread Samuel Colvin
New submission from Samuel Colvin : smtpd.PureProxy.process_message is defined to not receive the extra kwargs which it is called with. It also expects "data" to be str when it's actually bytes. PureProxy should either be removed for fixed. Personally, I think it should be fixed as the fix

[issue35797] concurrent.futures.ProcessPoolExecutor does not work in venv on Windows

2019-01-21 Thread Eryk Sun
Eryk Sun added the comment: The launchers have inheritance enabled (for the duplicated standard handles, which should be made inheritable via SetHandleInformation instead, but that's a separate issue). However, multiprocessing doesn't use inheritable handles. Spawning processes with

[issue35797] concurrent.futures.ProcessPoolExecutor does not work in venv on Windows

2019-01-21 Thread Christian Ullrich
Christian Ullrich added the comment: I have two ideas, but no idea if either is remotely feasible: 1. Replicate the launcher's selection logic in multiprocessing and avoid the intermediate step via sys.executable. Perhaps put it into pythonXX.dll or export it from the launcher

[issue35661] Store the venv prompt in pyvenv.cfg

2019-01-21 Thread Cheryl Sabella
Cheryl Sabella added the comment: I've made the changes suggested by Brett to store the raw value instead of the formatted prompt. I also have been looking into issues Steve raised about using the prompt value from `pyvenv.cfg` instead of having the prompt hard-coded into the activate

[issue35758] Disable x87 control word for MSVC ARM compiler

2019-01-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 7a2368063f25746d4008a74aca0dc0b82f86ff7b by Antoine Pitrou (Minmin Gong) in branch 'master': bpo-35758: Fix building on ARM + MSVC (gh-11531) https://github.com/python/cpython/commit/7a2368063f25746d4008a74aca0dc0b82f86ff7b -- nosy:

[issue35746] [ssl][CVE-2019-5010] TALOS-2018-0758 Denial of Service

2019-01-21 Thread STINNER Victor
STINNER Victor added the comment: Does someone work on backporting the fix to 3.4 and 3.5 branches? Note: I added the vulnerability to: https://python-security.readthedocs.io/vuln/ssl-crl-dps-dos.html -- ___ Python tracker

[issue35794] test_posix.py test failure

2019-01-21 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the quickfix Pablo ;-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34656] [CVE-2018-20406] memory exhaustion in Modules/_pickle.c:1393

2019-01-21 Thread Matej Cepl
Matej Cepl added the comment: > * Python 2.7 has no C accelerator _pickle (Modules/_pickle.c) And Modules/cPickle.c is that drastically different? -- ___ Python tracker ___

[issue35802] os.stat / os.lstat always present, but code checks hastattr(os, 'stat') / hasattr(os, 'lstat')

2019-01-21 Thread Anthony Sottile
Change by Anthony Sottile : -- keywords: +patch, patch pull_requests: +11422, 11423 stage: -> patch review ___ Python tracker ___

[issue35802] os.stat / os.lstat always present, but code checks hastattr(os, 'stat') / hasattr(os, 'lstat')

2019-01-21 Thread Anthony Sottile
Change by Anthony Sottile : -- keywords: +patch pull_requests: +11422 stage: -> patch review ___ Python tracker ___ ___

[issue35627] multiprocessing.queue in 3.7.2 doesn't behave as it was in 3.7.1

2019-01-21 Thread Tom Wilson
Tom Wilson added the comment: Hi there. I get this behavior as well, although only in a venv. Main Virtual v3.7.1:260ec2c36a CompletesCompletes v3.7.2:9a3ffc0492 Completes Hangs Some other details of my setup: - Windows 10 Pro, Version 1803 (OS

[issue35132] python-gdb error: Python Exception Type does not have a target

2019-01-21 Thread Lisa Roach
Lisa Roach added the comment: I experienced this bug as well and have tried to dig into it a little. I experimented with a service I have that uses shared libraries. If I compile with high level of optimizations for the C++ code (-O3) I don't experience the issue, but compiling without any

[issue31506] Improve the error message logic for object_new & object_init

2019-01-21 Thread Sanyam Khurana
Change by Sanyam Khurana : -- pull_requests: +11416 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue35798] duplicate SyntaxWarning: "is" with a literal

2019-01-21 Thread Kumar Akshay
Change by Kumar Akshay : -- pull_requests: +11419 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14802] Python fails to compile with VC11 ARM configuration

2019-01-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fixed in master branch. Thank you, Minmin Gong! I don't think this is a candidate for a 3.7 backport. If you think otherwise, though, please say so. You'll also need to check that the backport enables proper compilation on ARM. -- nosy:

  1   2   >