[issue35899] '_is_sunder' function in 'enum' module fails on empty string

2019-02-18 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Thank you for your contribution. Have a nice day, -- ___ Python tracker ___ ___ Python-bugs-list

[issue35126] Mistake in FAQ about converting number to string.

2019-02-18 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: I am working on this issue. -- nosy: +matrixise ___ Python tracker ___ ___ Python-bugs-list maili

[issue36015] streamhandler canont represent streams with an integer as name

2019-02-18 Thread SilentGhost
Change by SilentGhost : -- nosy: +vinay.sajip type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue20116] urlparse.parse_qs should take argument for query separator

2019-02-18 Thread Kobi Gana
Kobi Gana added the comment: We are on the same page and we should also consider marked this as defect. Thanks On Sun, Feb 17, 2019 at 7:44 PM nr wrote: > > nr added the comment: > > W3C allows both constructs, ampersand and semicolon. > https://www.w3.org/TR/html401/appendix/notes.html#h-

[issue35126] Mistake in FAQ about converting number to string.

2019-02-18 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- keywords: +patch pull_requests: +11937 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue35126] Mistake in FAQ about converting number to string.

2019-02-18 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi @xtreak, I have just submitted a PR but where I explain the change with Python2/3 and the division operator. Have a nice day, -- ___ Python tracker ___

[issue36020] HAVE_SNPRINTF and MSVC std::snprintf support

2019-02-18 Thread palotasb-conti
New submission from palotasb-conti : Abstract: pyerrors.h defines snprintf as a macro on MSVC even on versions of MSVC where this workaround causes bugs. snprintf is defined as _snprintf in pyerrors.h, see: https://github.com/python/cpython/blob/ac28147e78c45a6217d348ce90ca5281d91f676f/Inclu

[issue35942] posixmodule.c:path_converter() returns an invalid exception message for broken PathLike objects

2019-02-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +11938 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35942] posixmodule.c:path_converter() returns an invalid exception message for broken PathLike objects

2019-02-18 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 09fbcd6085e18b534fd4161844ff39f77eb4a082 by Pablo Galindo in branch 'master': bpo-35942: Improve the error message if __fspath__ returns invalid types in path_converter (GH-11831) https://github.com/python/cpython/commit/09fbcd6085e18b53

[issue20215] socketserver.TCPServer can not listen IPv6 address

2019-02-18 Thread Giampaolo Rodola'
Change by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue36021] [Security][Windows] webbrowser: WindowsDefault uses os.startfile() and so can be abused to run arbitrary commands

2019-02-18 Thread STINNER Victor
New submission from STINNER Victor : The webbrowser module uses WindowsDefault which calls os.startfile() and so can be abused to run arbitrary commands. WindowsDefault should do log a warning or raise an error if the URL is unsafe. I'm not sure how to build a list of safe URL schemes. At lea

[issue36021] [Security][Windows] webbrowser: WindowsDefault uses os.startfile() and so can be abused to run arbitrary commands

2019-02-18 Thread STINNER Victor
STINNER Victor added the comment: Vulnerability reported by Nassim Asrir to the PSRT. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue35704] On AIX, test_unpack_archive_xztar fails with default MAXDATA settings

2019-02-18 Thread miss-islington
miss-islington added the comment: New changeset ef110b18074300e2302a68a2a476ae35bead7916 by Miss Islington (bot) (Michael Felt) in branch 'master': bpo-35704: Prevent test_shutil fail result when AIX is 32-bit and MAXDATA < 0x2000 (GH-11500) https://github.com/python/cpython/commit/ef110

[issue36020] HAVE_SNPRINTF and MSVC std::snprintf support

2019-02-18 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- keywords: +patch pull_requests: +11939 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue36020] HAVE_SNPRINTF and MSVC std::snprintf support

2019-02-18 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: @palotasb-conti I don't have MSVC because on I work on Linux. Could tell me if this PR fixes your issue? Thank you -- nosy: +matrixise stage: patch review -> ___ Python tracker

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

2019-02-18 Thread Michael Felt
Change by Michael Felt : -- pull_requests: +11940 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue35942] posixmodule.c:path_converter() returns an invalid exception message for broken PathLike objects

2019-02-18 Thread miss-islington
miss-islington added the comment: New changeset a01065a3588d3f0d0c57ea35107aa97e722fe2b2 by Miss Islington (bot) in branch '3.7': bpo-35942: Improve the error message if __fspath__ returns invalid types in path_converter (GH-11831) https://github.com/python/cpython/commit/a01065a3588d3f0d0c5

[issue36020] HAVE_SNPRINTF and MSVC std::snprintf support

2019-02-18 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: @steve.dower, @zach.ware I don't have a Windows machine, I could install an official VM of Windows and install MSVC but I don't have time, I am working for my customer but I could check my PR later (I will wait for the feedback of AppVeyor). Thank you for y

[issue36020] HAVE_SNPRINTF and MSVC std::snprintf support

2019-02-18 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: For the version of MSVC, I have found this link: https://en.wikipedia.org/wiki/Microsoft_Visual_C%2B%2B -- ___ Python tracker ___ ___

[issue36019] test_urllib fail in s390x buildbots

2019-02-18 Thread STINNER Victor
STINNER Victor added the comment: These random network failure occur with http://www.example.com/: https://github.com/python/cpython/pull/10608#issuecomment-464085852 I don't think that it's a good idea to use a public server for our tests. I would be better to use pythontest.net instead. --

[issue36019] test_urllib fail in s390x buildbots: http://www.example.com/

2019-02-18 Thread STINNER Victor
Change by STINNER Victor : -- title: test_urllib fail in s390x buildbots -> test_urllib fail in s390x buildbots: http://www.example.com/ ___ Python tracker ___ ___

[issue36021] [Security][Windows] webbrowser: WindowsDefault uses os.startfile() and so can be abused to run arbitrary commands

2019-02-18 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: @victor, the problem is with os.startfile or with WindowsDefault? just to know if we need to fix os.startfile or WindowsDefault. -- nosy: +matrixise ___ Python tracker

[issue35704] On AIX, test_unpack_archive_xztar fails with default MAXDATA settings

2019-02-18 Thread Nick Coghlan
Change by Nick Coghlan : -- pull_requests: +11941 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue36015] streamhandler canont represent streams with an integer as name

2019-02-18 Thread Vinay Sajip
Vinay Sajip added the comment: I'm not sure this is a problem with logging. The code immediately preceding the failure is: name = getattr(self.stream, 'name', '') if name: name += ' ' So, the failure occurs because the stream has a name attribute which is not a string. Even

[issue36019] test_urllib fail in s390x buildbots: http://www.example.com/

2019-02-18 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Use a public server or pythontest.net server (it's a public server on the Internet). could we the http requests? I use this practice for the unit test with an external web service, but for the integration tests, I prefer to use the real web service. ---

[issue36019] test_urllib fail in s390x buildbots: http://www.example.com/

2019-02-18 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: sorry, error with my copy/paste/fixing_words: but my sentence was "could we mock the http requests?" -- ___ Python tracker ___ _

[issue36020] HAVE_SNPRINTF and MSVC std::snprintf support

2019-02-18 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi, Do you suggest if this VM is correct for the tests? I will try to check with this one. https://developer.microsoft.com/en-us/windows/downloads/virtual-machines -- ___ Python tracker

[issue35704] On AIX, test_unpack_archive_xztar fails with default MAXDATA settings

2019-02-18 Thread miss-islington
miss-islington added the comment: New changeset 02c04f26dfa637db7091b7e16036a980bbf40893 by Miss Islington (bot) (Nick Coghlan) in branch 'master': bpo-35704: Include correct NEWS entry (GH-11914) https://github.com/python/cpython/commit/02c04f26dfa637db7091b7e16036a980bbf40893 --

[issue35704] On AIX, test_unpack_archive_xztar fails with default MAXDATA settings

2019-02-18 Thread Nick Coghlan
Change by Nick Coghlan : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue34720] Fix test_importlib.test_bad_traverse for AIX

2019-02-18 Thread Nick Coghlan
Change by Nick Coghlan : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36015] streamhandler canont represent streams with an integer as name

2019-02-18 Thread Riccardo Magliocchetti
Riccardo Magliocchetti added the comment: Yeah, I'm not sure the pr is just papering over the real issue :) Need to check what io.open sets on name. IF it setting the fd as name instead of creating a string that would be still be a bug in Python to me. Could you please wait a bit for me to c

[issue36022] [Security] logging.config should not use eval()

2019-02-18 Thread STINNER Victor
Change by STINNER Victor : -- title: logging.config should not use eval() -> [Security] logging.config should not use eval() ___ Python tracker ___ ___

[issue36022] logging.config should not use eval()

2019-02-18 Thread STINNER Victor
New submission from STINNER Victor : For logging "handlers", _install_handlers() of logging.config uses eval(): def _install_handlers(cp, formatters): """Install and return handlers""" hlist = cp["handlers"]["keys"] ... for hand in hlist: ... klass = section["cla

[issue36022] [Security] logging.config should not use eval()

2019-02-18 Thread STINNER Victor
STINNER Victor added the comment: The issue has been reported by Alexandre D'Hondt to th PSRT. I only selected Python 3.8 version, since currently, logging.config explicitly *documents* that eval() is used. Example: https://docs.python.org/3/library/logging.config.html#logging.config.listen

[issue35942] posixmodule.c:path_converter() returns an invalid exception message for broken PathLike objects

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

[issue36015] streamhandler canont represent streams with an integer as name

2019-02-18 Thread Ronald Oussoren
Ronald Oussoren added the comment: In Python 3.7.2: >>> open(2, 'a') <_io.TextIOWrapper name=2 mode='a' encoding='UTF-8'> >>> m = _ >>> m.name 2 >>> type(_) That is, when opening a file descriptor the name is set to the value of that file descriptor as an integer. BTW. The implementation o

[issue36020] HAVE_SNPRINTF and MSVC std::snprintf support

2019-02-18 Thread palotasb-conti
palotasb-conti added the comment: @matrixise: It works on my machine. ;) I would also add a check for `defined(_MSC_VER)` before `_MSC_VER < 1900` because the `MS_WIN32` does not seem to imply that the `_MSC_VER` macro is defined [1]. The correct check could be either #if defined(MS_W

[issue36020] HAVE_SNPRINTF and MSVC std::snprintf support

2019-02-18 Thread palotasb-conti
palotasb-conti added the comment: I have the following internal, almost-minimal test case for this bug. It also relies on Boost Python, but that could be eliminated to produce a similar test case. # CMakeLists.txt cmake_minimum_required(VERSION 3.0) project(python-boost-mcve) set(Boost_USE_

[issue36020] HAVE_SNPRINTF and MSVC std::snprintf support

2019-02-18 Thread palotasb-conti
palotasb-conti added the comment: For the record, I am basing the version check code on Boost also: https://www.boost.org/doc/libs/1_65_1/boost/convert/detail/config.hpp -- ___ Python tracker _

[issue36022] [Security] logging.config should not use eval()

2019-02-18 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Some discussion in issue15452 about using ast.literal_eval instead of eval which I think is the similar to this report. -- nosy: +xtreak ___ Python tracker __

[issue36021] [Security][Windows] webbrowser: WindowsDefault uses os.startfile() and so can be abused to run arbitrary commands

2019-02-18 Thread STINNER Victor
STINNER Victor added the comment: > just to know if we need to fix os.startfile or WindowsDefault. webbrowser shouldn't call os.startfile with a path to a program on the local hard drive. -- ___ Python tracker

[issue35537] use os.posix_spawn in subprocess

2019-02-18 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- pull_requests: +11942 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue36019] test_urllib fail in s390x buildbots: http://www.example.com/

2019-02-18 Thread STINNER Victor
STINNER Victor added the comment: > could we mock the http requests? No, the tests are functional tests which use deliberate HTTP request to public servers. I suggest to use a server that we control rather multiple "third-party" servers. I'm trying to keep a list of external services used b

[issue35945] Cannot distinguish between subtask cancellation and running task cancellation

2019-02-18 Thread twisteroid ambassador
twisteroid ambassador added the comment: There is a way to distinguish whether a task is being cancelled from the "inside" or "outside", like this: async def task1func(): task2 = asyncio.create_task(task2func()) try: await asyncio.wait((task2,)) except

[issue35954] Incoherent type conversion in configparser

2019-02-18 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch pull_requests: +11943 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-lis

[issue35954] Incoherent type conversion in configparser

2019-02-18 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: > Btw: The name "read_dict" [1] as well as its docstring say exactly the > opposite of what it does. It acts as a "save_dict". Maybe that can be fixed > on the go ... The name `read_dict` is correct, it reads from the dict given as parameter and changing the

[issue36023] Import configparser.ConfigParser repr

2019-02-18 Thread Rémi Lapeyre
New submission from Rémi Lapeyre : This is the current repr of the configparser.ConfigParser instances: >>> import configparser >>> config = configparser.ConfigParser() >>> config['sec'] = {} >>> config I think this could be improved to read: -- components: Library (Lib) messages:

[issue34294] re module: wrong capturing groups

2019-02-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 4a7f44a2ed49ff1e87db062e7177a56c6e4bbdb0 by Serhiy Storchaka (animalize) in branch 'master': bpo-34294: re module, fix wrong capturing groups in rare cases. (GH-11546) https://github.com/python/cpython/commit/4a7f44a2ed49ff1e87db062e7177a56c6e

[issue34294] re module: wrong capturing groups

2019-02-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +11944 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36023] Import configparser.ConfigParser repr

2019-02-18 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue36023] Improve configparser.ConfigParser repr

2019-02-18 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- title: Import configparser.ConfigParser repr -> Improve configparser.ConfigParser repr ___ Python tracker ___ __

[issue34294] re module: wrong capturing groups

2019-02-18 Thread miss-islington
miss-islington added the comment: New changeset 0e379d43acc25277f02262212932d3c589a2031b by Miss Islington (bot) in branch '3.7': bpo-34294: re module, fix wrong capturing groups in rare cases. (GH-11546) https://github.com/python/cpython/commit/0e379d43acc25277f02262212932d3c589a2031b

[issue31829] Portability issues with pickle

2019-02-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: I am not particularly interested in making Python 2 or ancient pickle protocols easier to use, sorry ;-) -- ___ Python tracker ___ _

[issue31829] Portability issues with pickle

2019-02-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This can help with migrating to Python 3. Python 2 programs often open files in text (default) mode for pickling and unpickling. With these changes you will get a warning when run the interpreter with the -3 option. You can also make the producer opening a

[issue34294] re module: wrong capturing groups

2019-02-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your PR Ma Lin! -- keywords: +3.7regression resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker _

[issue36023] Improve configparser.ConfigParser repr

2019-02-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Why only sections? ConfigParser contains a lot of other information. Section names you can get by calling the sections() method. >>> config.sections() ['sec'] -- nosy: +serhiy.storchaka ___ Python tracker

[issue35915] re.search extreme slowness (looks like hang/livelock), searching for patterns containing .* in a large string

2019-02-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker ___ _

[issue9134] sre bug: lastmark_save/restore

2019-02-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +Ma Lin versions: +Python 3.8 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue35072] re.sub does not play nice with chr(92)

2019-02-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: chr(92) is a single backspace character ('\\'). Since backspace has special meaning in the replacement string, it should be escaped. re.sub(r'', r'\\', stringy_thingy) -- nosy: +serhiy.storchaka stage: test needed -> resolved status: open -

[issue36023] Improve configparser.ConfigParser repr

2019-02-18 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: > Why only sections? ConfigParser contains a lot of other information. Indeed, the defaults might be useful too. Other things like options can be sessions specific and could clutter the repr if added. Would defaults() and sections() be the right behavior between

[issue34315] Regex not evalauated correctly

2019-02-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The regular expression engine is not platform depended. Please check that you run the same code. -- status: open -> pending ___ Python tracker ___

[issue23689] Memory leak in Modules/sre_lib.h

2019-02-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +Ma Lin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue4356] Add "key" argument to "bisect" module functions

2019-02-18 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi everybody, I opened PR 11781 to add a key argument to functions in the bisect module. I agree with @dmtr's points that this addition is not a bad design. As far as I can tell, the key function is at called at most once per item as this example where an assert

[issue28450] Misleading/inaccurate documentation about unknown escape sequences in regular expressions

2019-02-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +11945 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue34572] C unpickling bypasses import thread safety

2019-02-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 4371c0a9c0848f7a0947d43f26f234842b41efdf by Antoine Pitrou (tjb900) in branch 'master': bpo-34572: change _pickle unpickling to use import rather than retrieving from sys.modules (GH-9047) https://github.com/python/cpython/commit/4371c0a9c0848f

[issue34572] C unpickling bypasses import thread safety

2019-02-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +11946 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36015] streamhandler canont represent streams with an integer as name

2019-02-18 Thread Vinay Sajip
Vinay Sajip added the comment: > That is, when opening a file descriptor the name is set to the value of that > file descriptor as an integer. I see. But I wonder if there is anything that relies on the name being an integer? It seems pretty counter-intuitive for a 'name' attribute to be set

[issue36015] streamhandler cannot represent streams with an integer as name

2019-02-18 Thread Vinay Sajip
Change by Vinay Sajip : -- title: streamhandler canont represent streams with an integer as name -> streamhandler cannot represent streams with an integer as name ___ Python tracker _

[issue34572] C unpickling bypasses import thread safety

2019-02-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 3129432845948fdcab1e05042e99a19e9e2c3c71 by Antoine Pitrou (Miss Islington (bot)) in branch '3.7': bpo-34572: change _pickle unpickling to use import rather than retrieving from sys.modules (GH-9047) (GH-11921) https://github.com/python/cpython

[issue34572] C unpickling bypasses import thread safety

2019-02-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: This is pushed to 3.7 and master now. Thank you Tim for the report and the fix! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.6 ___ Python tracker

[issue36021] [Security][Windows] webbrowser: WindowsDefault uses os.startfile() and so can be abused to run arbitrary commands

2019-02-18 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- assignee: -> matrixise ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-02-18 Thread jt
jt added the comment: Just to add this, I now tested the proper pip upgrade approach, and it worked fine, like everything else I tried before (installing & using Cython, any other packages, ...). If there's anything else I should test, let me know! NuGet with venv/ensurepip would be awesome

[issue36024] ctypes: test_ctypes test_callbacks() crash on AArch64

2019-02-18 Thread STINNER Victor
New submission from STINNER Victor : Attached bug.py does crash *randomly* on AArch64. The code is extract from ctypes.test.test_as_parameter.AsParamPropertyWrapperTestCase.test_callbacks test. Example with Python 2.7.15 and Python 3.6.8 on RHEL8: # python2 bug.py Illegal instruction (core d

[issue36024] ctypes: test_ctypes test_callbacks() crash on AArch64

2019-02-18 Thread STINNER Victor
STINNER Victor added the comment: > I can reproduce the crash on Python 2.7.16rc compiled manually: > ./configure --enable-unicode=ucs4 --with-system-ffi && make I can also reproduce the crash on Python 3.7.2 compiled manually with: ./configure --with-pydebug && make (_ctypes uses system libff

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-02-18 Thread Jeremy Kloth
Jeremy Kloth added the comment: Thank you for your testing of the venv and pip workflows. At this point, I believe that all that remains would be for Steve Dower to incorporate the `IncludeVEnv=true` parameter into the nupkg build process. I personally do not see a problem with including th

[issue36011] ssl - tls verify on Windows fails

2019-02-18 Thread Christian Korneck
Christian Korneck added the comment: quick addition: It looks like all recent Windows versions (Win8/Server 2012, Win8.1/Server 2012R2, Win10 (older versions)/Server 2016, Win10-1809/Server 2019 behave the same (= only very few RootCAs are pre-installed out of the box, additional ones are ad

[issue36024] ctypes: test_ctypes test_callbacks() crash on AArch64

2019-02-18 Thread STINNER Victor
STINNER Victor added the comment: bug2.py: example simplified a little bit more. Changes: * unittest is no longer used * move local variables to globals, to make sure that memory is not released in any way during function calls -- Added file: https://bugs.python.org/file48150/bug2.py

[issue35954] Incoherent type conversion in configparser

2019-02-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Other methods do not convert key to string too. What is a use case for having a non-string section name? -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue36024] ctypes: test_ctypes test_callbacks() crash on AArch64

2019-02-18 Thread STINNER Victor
STINNER Victor added the comment: Sadly, even with debug symbols on RHEL8 and gcc -g -O0 -fno-omit-frame-pointer, gdb is unable to retrieve the backtrace when the crash occurs :-( Program received signal SIGILL, Illegal instruction. 0xbe7a0058 in ?? () (gdb) where #0 0xbe7a00

[issue36025] Breaking change in PyDate_FromTimeStamp API

2019-02-18 Thread Paul Ganssle
New submission from Paul Ganssle : The PyO3 test suite has been breaking since the alpha release of Python 3.8 because PyDateTimeAPI->Date_FromTimeStamp has had a breaking change in its API: https://github.com/PyO3/pyo3/issues/352 I believe this happened when `datetime.date.fromtimestamp` and

[issue36024] ctypes: test_ctypes test_callbacks() crash on AArch64

2019-02-18 Thread Florian Weimer
Change by Florian Weimer : -- nosy: +fweimer ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue36025] Breaking change in PyDate_FromTimeStamp API

2019-02-18 Thread Paul Ganssle
Change by Paul Ganssle : -- keywords: +patch pull_requests: +11947 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue36024] ctypes: test_ctypes test_callbacks() crash on AArch64

2019-02-18 Thread STINNER Victor
STINNER Victor added the comment: # gdb -args ./python ../bug2.py GNU gdb (GDB) Red Hat Enterprise Linux 8.2-5.el8 (gdb) run ... Program received signal SIGILL, Illegal instruction. 0xbded0058 in ?? () (gdb) disassemble $pc,$pc+10 Dump of assembler code from 0xbded0058 to 0x

[issue35867] NameError is not caught at Task execution

2019-02-18 Thread Emmanuel Arias
Emmanuel Arias added the comment: I test it and this have the same behavior on 3.7 and 3.8... I will work on this -- nosy: +eamanu versions: +Python 3.7, Python 3.8 ___ Python tracker __

[issue36026] Different error message when sys.settrace is used (regressions)

2019-02-18 Thread SylvainDe
New submission from SylvainDe : Context: Follow-up from https://bugs.python.org/issue35965 which was closed when we assumed the issue was on the coverage side. After nedbat investigation, it seems like the issue comes from call to "sys.settrace". Issue: -- A test relying on "se

[issue35941] ssl.enum_certificates() regression

2019-02-18 Thread nr
Change by nr : -- keywords: +patch pull_requests: +11948 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing

[issue36026] Different error message when sys.settrace is used (regressions)

2019-02-18 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue36026] Different error message when sys.settrace is used (regressions)

2019-02-18 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +serhiy.storchaka, vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue36025] Breaking change in PyDate_FromTimeStamp API

2019-02-18 Thread Paul Ganssle
Paul Ganssle added the comment: I've put *a* fix in there by introducing a new wrapper function. Ideally we would just point the C API at the argument clinic-generated function, but because it takes a single positional argument the argument clinic outputs a METH_O function instead of METH_VA

[issue36014] test_help_with_metavar broken

2019-02-18 Thread paul j3
Change by paul j3 : -- nosy: +paul.j3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue35186] distutils.command.upload uses deprecated platform.dist with bdist_rpm

2019-02-18 Thread Paul Ganssle
Change by Paul Ganssle : -- resolution: -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue35186] distutils.command.upload uses deprecated platform.dist with bdist_rpm

2019-02-18 Thread Paul Ganssle
Change by Paul Ganssle : -- versions: -Python 3.6, Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35186] distutils.command.upload uses deprecated platform.dist with bdist_rpm

2019-02-18 Thread Paul Ganssle
Change by Paul Ganssle : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list maili

[issue35949] Move PyThreadState into Include/internal/pycore_pystate.h

2019-02-18 Thread Eric Snow
Eric Snow added the comment: @Stefan, is it a problem for Cython if the relevant fields are exposed via C-API functions rather than directly on PyThreadState? -- ___ Python tracker _

[issue36024] ctypes: test_ctypes test_callbacks() crash on AArch64

2019-02-18 Thread Florian Weimer
Florian Weimer added the comment: We believe this is a libffi bug. On certain aarch64 implementations, it is necessary to flush both the writable mapping and the executable mapping. I have a patch which I confirmed to work. -- ___ Python tracker

[issue36024] ctypes: test_ctypes test_callbacks() crash on AArch64

2019-02-18 Thread Florian Weimer
Florian Weimer added the comment: Filed as an libffi issue: https://github.com/libffi/libffi/issues/470 -- ___ Python tracker ___ _

[issue36027] Consider adding modular multiplicative inverse to the math module

2019-02-18 Thread Raymond Hettinger
New submission from Raymond Hettinger : Having gcd() in the math module has been nice. Here is another number theory basic that I've needed every now and then: def multinv(modulus, value): '''Multiplicative inverse in a given modulus >>> multinv(191, 138)

[issue36028] Integer Division discrepancy with decimal

2019-02-18 Thread Au Vo
New submission from Au Vo : In Python3, there is a discrepancy of integer division with decimal. Considering these two examples: 4/ .4 ==10.0. But 4//.4== 9.0 Furthermore: 2//.2 == 9.0 3//.3 ==10.0 5//.5 ==10.0 6//.6 ==10.0 All answers should be 10.0? The problem is in Python3 and not in Py

[issue35949] Move PyThreadState into Include/internal/pycore_pystate.h

2019-02-18 Thread Stefan Behnel
Stefan Behnel added the comment: Well … yes. The exception fields are performance critical, and we try hard to make them visible to the C compiler so that swapping around exception state eats up as little CPU time as possible. You could argue that profiling and tracing are less critical, but

[issue35949] Move PyThreadState into Include/internal/pycore_pystate.h

2019-02-18 Thread Eric Snow
Eric Snow added the comment: Thanks for clarifying. :) On Mon, Feb 18, 2019 at 1:17 PM Stefan Behnel wrote: > The exception fields are performance critical, and we try hard to make them > visible to the C compiler so that swapping around exception state eats up as > little CPU time as possib

  1   2   >