[issue36710] Pass _PyRuntimeState as an argument rather than using the _PyRuntime global variable

2019-04-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 99e69d44f499625786a2e6461a954adcd0037d69 by Victor Stinner in branch 'master': bpo-36710: Fix compiler warning on PyThreadState_Delete() (GH-12962) https://github.com/python/cpython/commit/99e69d44f499625786a2e6461a954adcd0037d69 --

[issue36724] Clear _PyRuntime at exit

2019-04-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 87d23a041d9efb743c5680ac23305f300e51 by Victor Stinner in branch 'master': bpo-36724: Add _PyWarnings_Fini() (#12963) https://github.com/python/cpython/commit/87d23a041d9efb743c5680ac23305f300e51 --

[issue36724] Clear _PyRuntime at exit

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

[issue36640] distutils.sysconfig.get_python_lib behaves incorrectly when pip cache is enabled

2019-04-25 Thread Saba Kauser
Saba Kauser added the comment: Experts, please help. get_python_lib() is behaving strangely and I have detailed the problem in my last update. -- title: python ibm_db setup.py post install script does not seem to work from Anaconda -> distutils.sysconfig.get_python_lib behaves

[issue36710] Pass _PyRuntimeState as an argument rather than using the _PyRuntime global variable

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

[issue36640] python ibm_db setup.py post install script does not seem to work from Anaconda

2019-04-25 Thread Saba Kauser
Change by Saba Kauser : -- components: +Distutils -Build nosy: +dstufft, eric.araujo ___ Python tracker ___ ___ Python-bugs-list

[issue36731] Add example to priority queue

2019-04-25 Thread Windson Yang
New submission from Windson Yang : We don't have the base example for priority queue in https://docs.python.org/3.8/library/heapq.html#priority-queue-implementation-notes, We can add something like: > q = Q.PriorityQueue() > q.put(10) > q.put(1) > q.put(5) > while not q.empty(): print

[issue7951] Should str.format allow negative indexes when used for __getitem__ access?

2019-04-25 Thread Éric Araujo
Éric Araujo added the comment: A side question: where is it defined that in `{thing[0]}`, 0 will be parsed as an integer? The PEP shows `{thing[name]}` and mentions that this is not Python but a smaller mini-language, with `name` always a string, no quotes needed or permitted. --

[issue36725] Reference leak regression with Python3.8a3

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

[issue36725] Reference leak regression with Python3.8a3

2019-04-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4d29983185bc12ca685a1eb3873bacb8a7b67416 by Victor Stinner in branch 'master': bpo-36725: regrtest: add TestResult type (GH-12960) https://github.com/python/cpython/commit/4d29983185bc12ca685a1eb3873bacb8a7b67416 --

[issue36730] Change outdated references to macOS

2019-04-25 Thread Sebastian Bassi
New submission from Sebastian Bassi : There are multiple occurences in the web page of "Mac OS X", like "Download the latest version for Mac OS X". This OS is called macOS since some years. It may be confusing for a new user. -- assignee: docs@python components: Documentation

[issue36725] Reference leak regression with Python3.8a3

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

[issue36722] In debug build, load also C extensions compiled in release mode or compiled using the stable ABI

2019-04-25 Thread STINNER Victor
STINNER Victor added the comment: Oh, there is an issue: --with-trace-refs has a different ABI and so should not do that. -- ___ Python tracker ___

[issue36725] Reference leak regression with Python3.8a3

2019-04-25 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36729] Delete unused text variable on tests

2019-04-25 Thread Emmanuel Arias
Change by Emmanuel Arias : -- keywords: +patch pull_requests: +12885 stage: -> patch review ___ Python tracker ___ ___

[issue36710] Pass _PyRuntimeState as an argument rather than using the _PyRuntime global variable

2019-04-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9db0324712f6982d89620b420f507a6aa5da152f by Victor Stinner in branch 'master': bpo-36710: Add runtime parameter in gcmodule.c (GH-12958) https://github.com/python/cpython/commit/9db0324712f6982d89620b420f507a6aa5da152f --

[issue36729] Delete unused text variable on tests

2019-04-25 Thread Emmanuel Arias
New submission from Emmanuel Arias : On ```test_custom_non_data_descriptor``` and ```test_custom_data_descriptor``` from Lib/test/test_pydoc.py there was a text variable not used. -- components: Tests messages: 340872 nosy: eamanu priority: normal severity: normal status: open title:

[issue36710] Pass _PyRuntimeState as an argument rather than using the _PyRuntime global variable

2019-04-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 10c8e6af910e3a26e59f913a3c1e4830ca71b1af by Victor Stinner in branch 'master': bpo-36710: Add runtime variable in pystate.c (GH-12956) https://github.com/python/cpython/commit/10c8e6af910e3a26e59f913a3c1e4830ca71b1af --

[issue36424] Pickle fails on frozen dataclass that has slots

2019-04-25 Thread Alessandro Cucci
Change by Alessandro Cucci : -- nosy: +acucci ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36710] Pass _PyRuntimeState as an argument rather than using the _PyRuntime global variable

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

[issue21536] extension built with a shared python cannot be loaded with a static python

2019-04-25 Thread STINNER Victor
STINNER Victor added the comment: Since this change is causing subtle issues like bpo-36721 "Add pkg-config python-3.8-embed", I don't think that it would be a good idea to backport this change to Python 2.7 or 3.7. I close the issue. See also bpo-36722 "In debug build, load also C

[issue36722] In debug build, load also C extensions compiled in release mode or compiled using the stable ABI

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

[issue36722] In debug build, load also C extensions compiled in release mode or compiled using the stable ABI

2019-04-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5422e3cfb7ffc50b147b4662d6f596cd61533754 by Victor Stinner in branch 'master': bpo-36722: Debug build loads libraries built in release mode (GH-12952) https://github.com/python/cpython/commit/5422e3cfb7ffc50b147b4662d6f596cd61533754

[issue36710] Pass _PyRuntimeState as an argument rather than using the _PyRuntime global variable

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

[issue36728] Remove PyEval_ReInitThreads() from the public C API

2019-04-25 Thread STINNER Victor
New submission from STINNER Victor : PyEval_ReInitThreads() is used internally by PyOS_AfterFork_Child(). I don't see the point of calling it directly. If you care of threads after fork, just call PyOS_AfterFork_Child(), no? I propose to remove PyEval_ReInitThreads() from the public C API.

[issue36718] Python 2.7 compilation fails on AMD64 Ubuntu Shared 2.7 buildbot with: relocation R_X86_64_PC32 against symbol ... can not be used ...

2019-04-25 Thread STINNER Victor
STINNER Victor added the comment: https://buildbot.python.org/all/#/builders/139/builds/252 is back to green. I close the issue. Thanks David! -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue36727] python 3.6+ docs use ul tags instead of ol tags

2019-04-25 Thread Oliver Too, Eh?
New submission from Oliver Too, Eh? : Documentation contents are ordered, and readers familiar with the section numbers/ordering from the Python 2 or Python 3.5 documentation will have an easier time transitioning to Python 3.6 or later if the sections remain numbered. -- assignee:

[issue17349] wsgiref.simple_server.demo_app is not PEP-3333 compatible

2019-04-25 Thread Berker Peksag
Berker Peksag added the comment: Closing this as 'not a bug' since examples in both branches are correct. Thank you for the report! -- resolution: -> not a bug stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue18099] wsgiref sets Content-Length: 0 on 304 Not Modified

2019-04-25 Thread Berker Peksag
Change by Berker Peksag : -- pull_requests: +12881 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36726] Empty select() on windows gives error.

2019-04-25 Thread Martin Panter
Martin Panter added the comment: I think this is a duplicate of Issue 29256. Issue 25680 also discusses platform differences with no file descriptors. -- nosy: +martin.panter resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Windows select() errors

[issue36718] Python 2.7 compilation fails on AMD64 Ubuntu Shared 2.7 buildbot with: relocation R_X86_64_PC32 against symbol ... can not be used ...

2019-04-25 Thread David Bolen
David Bolen added the comment: Ok, I've resolved this, and the linker errors did actually point at the root issue. They show trying to link extensions against /usr/local/lib/libpython2.7.a which was my test static build of 2.7.16. Arguably this seems an issue in the buildbot build process

[issue36726] Empty select() on windows gives error.

2019-04-25 Thread Ralph Loader
New submission from Ralph Loader : The following one liner gives an error on windows but not on linux: ``` import selectors ; selectors.DefaultSelector().select(timeout=1) ``` It appears that the windows select() function with no FDs set gives an error but on Linux it is equivalent to a

[issue36461] timeit: Additional changes for autorange

2019-04-25 Thread Alessandro Cucci
Change by Alessandro Cucci : -- pull_requests: +12880 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36725] Reference leak regression with Python3.8a3

2019-04-25 Thread Kay Hayen
New submission from Kay Hayen : Much like #9366 the same file can be used. This reference leaks according to Nuitka comparative testing: simpleFunction59: FAILED 129511 129512 leaked 1 def simpleFunction59(): a = 3 b = 5 try: a = a * 2 return a finally:

[issue36710] Pass _PyRuntimeState as an argument rather than using the _PyRuntime global variable

2019-04-25 Thread STINNER Victor
STINNER Victor added the comment: I created bpo-36724: Clear _PyRuntime at exit. -- ___ Python tracker ___ ___ Python-bugs-list

[issue36724] Clear _PyRuntime at exit

2019-04-25 Thread STINNER Victor
New submission from STINNER Victor : _PyRuntime.warnings is not cleared at Python exit: 3 objects are kept alive even after Py_Finalize(). See bpo-36356 which cleared some other variables. PR 12453 "bpo-36356: Destroy the GIL at exit" is still open. -- components: Interpreter Core

[issue36718] Python 2.7 compilation fails on AMD64 Ubuntu Shared 2.7 buildbot with: relocation R_X86_64_PC32 against symbol ... can not be used ...

2019-04-25 Thread David Bolen
David Bolen added the comment: Yes, it appears most likely to be the worker environment. I did upgrade the kernel in between builds 250 (good) and 251 (bad), but reverting that still fails, even with the same commit as in build 250. My current suspicion is that a test I did recently with a

[issue36461] timeit: Additional changes for autorange

2019-04-25 Thread Michele Angrisano
Change by Michele Angrisano : -- keywords: +patch pull_requests: +12879 stage: needs patch -> patch review ___ Python tracker ___

[issue36722] In debug build, load also C extensions compiled in release mode or compiled using the stable ABI

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

[issue36723] Unittest Discovery for namespace subpackages dot notation fails

2019-04-25 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36723] Unittest Discovery for namespace subpackages dot notation fails

2019-04-25 Thread Jonny Fuller
New submission from Jonny Fuller : Hi friends, I noticed strange behavior involving unittest discovery with namespace packages. Using dot notation to discover test packages within a namespace package will fail, but will succeed when using path notation. It feels awkward that dot path would

[issue36722] In debug build, load also C extensions compiled in release mode or compiled using the stable ABI

2019-04-25 Thread STINNER Victor
New submission from STINNER Victor : bpo-36465 modified the ABI of debug build so release and debug build now have the same ABI. bpo-21536 modified how C extensions are built: they are no longer linked to libpython. In a debug build, it becomes possible to load a C extension built in

[issue35920] Windows 10 ARM32 platform support

2019-04-25 Thread Steve Dower
Steve Dower added the comment: New changeset 62dfd7d6fe11bfa0cd1d7376382c8e7b1275e38c by Steve Dower (Paul Monson) in branch 'master': bpo-35920: Windows 10 ARM32 platform support (GH-11774) https://github.com/python/cpython/commit/62dfd7d6fe11bfa0cd1d7376382c8e7b1275e38c --

[issue36721] Add pkg-config python-3.8-embed

2019-04-25 Thread STINNER Victor
New submission from STINNER Victor : The bpo-21536 modified how C extensions are built: they are no longer linked to libpython. The problem is that when an application embeds Python: the application wants to be linked to libpython. commit 8c3ecc6bacc8d0cd534f2b5b53ed962dd1368c7b (HEAD ->

[issue21536] extension built with a shared python cannot be loaded with a static python

2019-04-25 Thread STINNER Victor
STINNER Victor added the comment: > If an application is linked to libpython to embed Python, the application > build requires flags to link to libpython. (...) I created bpo-36721 "Add pkg-config python-3.8-embed" to discuss this issue. -- ___

[issue21536] extension built with a shared python cannot be loaded with a static python

2019-04-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8c3ecc6bacc8d0cd534f2b5b53ed962dd1368c7b by Victor Stinner in branch 'master': bpo-21536: C extensions are no longer linked to libpython (GH-12946) https://github.com/python/cpython/commit/8c3ecc6bacc8d0cd534f2b5b53ed962dd1368c7b --

[issue28533] Replace asyncore

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

[issue36720] Correct Should to Must in Definition of object.__len__

2019-04-25 Thread Brett Cannon
Brett Cannon added the comment: There is probably validation code in len(), but the method itself can do whatever it wants if you call it directly. So the documentation is accurate in saying the method _should_ return >= 0 but that there's nothing strictly enforcing that in Python for that

[issue36718] Python 2.7 compilation fails on AMD64 Ubuntu Shared 2.7 buildbot with: relocation R_X86_64_PC32 against symbol ... can not be used ...

2019-04-25 Thread STINNER Victor
STINNER Victor added the comment: @David Bolen: Would you mind to have a look at this issue on your buildbot? I'm not sure that the regression is caused by my commit, since the command lines are the same in the previous build 250: building 'time' extension gcc -pthread -fPIC

[issue36424] Pickle fails on frozen dataclass that has slots

2019-04-25 Thread Josh Rosenberg
Change by Josh Rosenberg : -- nosy: +josh.r ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33150] Signature error for methods of class configparser.Interpolation

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

[issue33348] lib2to3 doesn't parse f(*[] or [])

2019-04-25 Thread Tim Hatch
Tim Hatch added the comment: Also see discussion about divergence on issue36541 -- nosy: +thatch ___ Python tracker ___ ___

[issue36541] Make lib2to3 grammar more closely match Python

2019-04-25 Thread Tim Hatch
Tim Hatch added the comment: My strong preference would be getting the lib2to3 grammar to be the python grammar + additions, to make future changes easier to merge. The strongest argument against doing that is the backwards-incompatibility of patterns -- some won't compile, while others

[issue36716] Embedded Python fails to import module files with version_platform extensions

2019-04-25 Thread Eric Cosatto
Eric Cosatto added the comment: Hi, I have a full install of Python from the installer in: C:\Program Files\Python37 Then, I added libraries using pip. Everything works fine from the command line Python. Then, I build my C++ application with VisualStudio and link to the Python DLLs. I start

[issue36469] Stuck during interpreter exit, attempting to take the GIL

2019-04-25 Thread Remy Noel
Remy Noel added the comment: closing the ticket for now. -- resolution: -> later stage: -> resolved status: open -> closed ___ Python tracker ___

[issue36719] regrtest --findleaks should fail if an uncollectable object is found

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

[issue36680] duplicate method definition in Lib/test/test_importlib/test_util.py

2019-04-25 Thread Xavier de Gaye
Change by Xavier de Gaye : -- resolution: fixed -> stage: resolved -> status: closed -> open versions: +Python 3.7 ___ Python tracker ___

[issue36681] duplicate method definition in Lib/test/test_logging.py

2019-04-25 Thread Xavier de Gaye
Change by Xavier de Gaye : -- resolution: fixed -> stage: resolved -> status: closed -> open versions: +Python 3.7 ___ Python tracker ___

[issue36710] Pass _PyRuntimeState as an argument rather than using the _PyRuntime global variable

2019-04-25 Thread STINNER Victor
STINNER Victor added the comment: > I don't really understand the rationale for these changes. What's wrong with > the global variable _PyRuntime? > What's the long-term goal for _PyRuntime? If you can't get rid of all > occurrences of _PyRuntime, how does it help to get rid of *some*

[issue16079] list duplicate test names with patchcheck

2019-04-25 Thread Xavier de Gaye
Change by Xavier de Gaye : -- pull_requests: +12876 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19119] duplicate test name in Lib/test/test_heapq.py

2019-04-25 Thread Xavier de Gaye
Change by Xavier de Gaye : -- versions: +Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36683] duplicate method definition in Lib/test/test_utf8_mode.py

2019-04-25 Thread Xavier de Gaye
Change by Xavier de Gaye : -- resolution: fixed -> stage: resolved -> status: closed -> open versions: +Python 3.7 ___ Python tracker ___

[issue36678] duplicate method definitions in Lib/test/test_dataclasses.py

2019-04-25 Thread Xavier de Gaye
Change by Xavier de Gaye : -- resolution: fixed -> stage: resolved -> status: closed -> open versions: +Python 3.7 ___ Python tracker ___

[issue19113] duplicate test names in Lib/ctypes/test/test_functions.py

2019-04-25 Thread Xavier de Gaye
Change by Xavier de Gaye : -- versions: +Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36679] duplicate method definition in Lib/test/test_genericclass.py

2019-04-25 Thread Xavier de Gaye
Change by Xavier de Gaye : -- resolution: fixed -> stage: resolved -> status: closed -> open versions: +Python 3.7 ___ Python tracker ___

[issue36720] Correct Should to Must in Definition of object.__len__

2019-04-25 Thread Michal Kononenko
New submission from Michal Kononenko : The link below defines __len__ https://docs.python.org/3/reference/datamodel.html?highlight=__len__#object.__len__ However, I was reading in the StackOverflow thread below that CPython does some validation to check that the return value of __len__

[issue36719] regrtest --findleaks should fail if an uncollectable object is found

2019-04-25 Thread STINNER Victor
New submission from STINNER Victor : regrtest (python3 -m test) has a --findleaks option to log warning if the garbage collector finds uncollectable objects. Problem: regrtest only logs a warning, but exit with a success in that case. Attached PR makes regrtest fail in that case and adds an

[issue36710] Pass _PyRuntimeState as an argument rather than using the _PyRuntime global variable

2019-04-25 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: I don't really understand the rationale for these changes. What's wrong with the global variable _PyRuntime? What's the long-term goal for _PyRuntime? If you can't get rid of all occurrences of _PyRuntime, how does it help to get rid of *some* occurences?

[issue25545] email parsing docs: clarify that only ASCII strings are supported

2019-04-25 Thread immerrr again
immerrr again added the comment: Hi everyone, It's the first time I'm using this bugtracker, so apologies in advance if I manage to break something from the first go. Not sure if it's the right place to report this, but I have the following repro that involves email.message_from_bytes: In

[issue36718] Python 2.7 compilation fails on AMD64 Ubuntu Shared 2.7 buildbot with: relocation R_X86_64_PC32 against symbol ... can not be used ...

2019-04-25 Thread STINNER Victor
New submission from STINNER Victor : https://buildbot.python.org/all/#/builders/139/builds/251 Example: building 'time' extension gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -g -O0 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include

[issue36659] distutils UnixCCompiler: Remove standard library path from rpath

2019-04-25 Thread STINNER Victor
STINNER Victor added the comment: I discussed the "rpath question" with different people. At the end, I think that the Fedora patch is "temporary fix" which we kept for way too long :-) We should remove this patch and ensure that upstream C extensions respect our rpath policy (Debian,

[issue35537] use os.posix_spawn in subprocess

2019-04-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset d7befad328ad1a6d1f812be2bf154c1cd1e01fbc by Victor Stinner in branch 'master': bpo-35537: Document posix_spawn() change in subprocess (GH-11668) https://github.com/python/cpython/commit/d7befad328ad1a6d1f812be2bf154c1cd1e01fbc --

[issue21536] extension built with a shared python cannot be loaded with a static python

2019-04-25 Thread STINNER Victor
STINNER Victor added the comment: If an application is linked to libpython to embed Python, the application build requires flags to link to libpython. Currently, there are: $ python3-config --libs -lpython3.7m -lcrypt -lpthread -ldl -lutil -lm $ pkg-config --libs python-3.7 -lpython3.7m

[issue7774] sys.executable: wrong location if zeroth command argument is modified.

2019-04-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset f4edd39017a211d4544570a1e2ac2110ef8e51b4 by Victor Stinner in branch '2.7': bpo-28552: Fix distutils.sysconfig for empty sys.executable (GH-12875) (GH-12949) https://github.com/python/cpython/commit/f4edd39017a211d4544570a1e2ac2110ef8e51b4

[issue28552] Distutils fail if sys.executable is None

2019-04-25 Thread STINNER Victor
STINNER Victor added the comment: I fixed the bug in Python 2.7, 3.7 and master branch (future 3.8). Thanks Alexander P for the bug report ;-) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue28552] Distutils fail if sys.executable is None

2019-04-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3076a3e0d1c54a2a6cc54c84521cd0f640d7cffb by Victor Stinner (Miss Islington (bot)) in branch '3.7': bpo-28552: Fix distutils.sysconfig for empty sys.executable (GH-12875) (GH-12948)

[issue28552] Distutils fail if sys.executable is None

2019-04-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset f4edd39017a211d4544570a1e2ac2110ef8e51b4 by Victor Stinner in branch '2.7': bpo-28552: Fix distutils.sysconfig for empty sys.executable (GH-12875) (GH-12949) https://github.com/python/cpython/commit/f4edd39017a211d4544570a1e2ac2110ef8e51b4

[issue7774] sys.executable: wrong location if zeroth command argument is modified.

2019-04-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3076a3e0d1c54a2a6cc54c84521cd0f640d7cffb by Victor Stinner (Miss Islington (bot)) in branch '3.7': bpo-28552: Fix distutils.sysconfig for empty sys.executable (GH-12875) (GH-12948)

[issue28552] Distutils fail if sys.executable is None

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

[issue35824] http.cookies._CookiePattern modifying regular expressions

2019-04-25 Thread Martin Panter
Martin Panter added the comment: Test_http_cookies line 19 has the following test case: {'data': 'keebler="E=mc2; L=\\"Loves\\"; fudge=\\012;"', 'dict': {'keebler' : 'E=mc2; L="Loves"; fudge=\012;'}, 'repr': '', 'output': 'Set-Cookie: keebler="E=mc2; L=\\"Loves\\"; fudge=\\012;"'} This

[issue33017] Special set-cookie setting will bypass Cookielib

2019-04-25 Thread Martin Panter
Martin Panter added the comment: I think LCatro is saying that Python should accept the cookies and discard only the offending attributes. This makes sense to me and tends to agree with the specifications, but the three cases seem all seem unimportant to me. PoC 1, Max-age: >>> from urllib2

[issue7774] sys.executable: wrong location if zeroth command argument is modified.

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

[issue28552] Distutils fail if sys.executable is None

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

[issue28552] Distutils fail if sys.executable is None

2019-04-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0ef8c157e9195df0115c54ba875a5efb92ac22fb by Victor Stinner in branch 'master': bpo-28552: Fix distutils.sysconfig for empty sys.executable (GH-12875) https://github.com/python/cpython/commit/0ef8c157e9195df0115c54ba875a5efb92ac22fb --

[issue7774] sys.executable: wrong location if zeroth command argument is modified.

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

[issue7774] sys.executable: wrong location if zeroth command argument is modified.

2019-04-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0ef8c157e9195df0115c54ba875a5efb92ac22fb by Victor Stinner in branch 'master': bpo-28552: Fix distutils.sysconfig for empty sys.executable (GH-12875) https://github.com/python/cpython/commit/0ef8c157e9195df0115c54ba875a5efb92ac22fb --

[issue12144] cookielib.CookieJar.make_cookies fails for cookies with 'expires' set

2019-04-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > Karthikeyan, it looks like your test will pass even when the bug is not > fixed. A test calling code that writes error message does not necessarily > mean the test itself will fail, I don’t think. You are right. Sorry, I got mislead by the

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

2019-04-25 Thread Maor Kleinberger
Maor Kleinberger added the comment: Alright. And what is left to do with the current issue? -- ___ Python tracker ___ ___

[issue12144] cookielib.CookieJar.make_cookies fails for cookies with 'expires' set

2019-04-25 Thread Martin Panter
Martin Panter added the comment: Karthikeyan, it looks like your test will pass even when the bug is not fixed. A test calling code that writes error message does not necessarily mean the test itself will fail, I don’t think. I suggest you look at raising an exception when the UserWarning is

[issue36624] cleanup the stdlib and tests with regard to sys.platform usage

2019-04-25 Thread Michael Felt
Michael Felt added the comment: On 23/04/2019 17:53, Steve Dower wrote: > Steve Dower added the comment: > >> Being 'runtime' rather than 'buildtime' seemed more precise - tests that >> are not meant to be build-time dependent use run-time status while >> leaving sys.platform for concerns