[issue35356] A possible reference leak in the nis module

2018-11-30 Thread miss-islington
miss-islington added the comment: New changeset 3473ca424142cb8f1453ba802ba642060b5ce779 by Miss Islington (bot) in branch '3.6': bpo-35356: Fix a possible reference leak in nis.maps(). (GH-10808) https://github.com/python/cpython/commit/3473ca424142cb8f1453ba802ba642060b5ce779 -- n

[issue35356] A possible reference leak in the nis module

2018-11-30 Thread miss-islington
miss-islington added the comment: New changeset e604b6c53e7dce6d4cf52525f4ae57352d489cba by Miss Islington (bot) in branch '3.7': bpo-35356: Fix a possible reference leak in nis.maps(). (GH-10808) https://github.com/python/cpython/commit/e604b6c53e7dce6d4cf52525f4ae57352d489cba --

[issue35356] A possible reference leak in the nis module

2018-11-30 Thread miss-islington
miss-islington added the comment: New changeset f3fe21a3cacbc5d13c3e61cefb36ce0efe617cd7 by Miss Islington (bot) in branch '2.7': bpo-35356: Fix a possible reference leak in nis.maps(). (GH-10808) https://github.com/python/cpython/commit/f3fe21a3cacbc5d13c3e61cefb36ce0efe617cd7 --

[issue35356] A possible reference leak in the nis module

2018-11-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35353] Add frame command to pdb

2018-11-30 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- title: Add frame command to pub -> Add frame command to pdb ___ Python tracker ___ ___ Pytho

[issue35358] avoid '-' in importlib.import_module and builtins.__import__

2018-11-30 Thread Stéphane Wirtel
New submission from Stéphane Wirtel : maybe related to this issue: https://bugs.python.org/issue18831 we can't import a module where the name contains '-', for example from my-module import my_function but with importlib.import_module we can import this module. import_module does not respect

[issue35350] importing "ctypes" immediately causes a segmentation fault

2018-11-30 Thread David
David added the comment: Small update: After commenting out Py_XDECREF(self->restype) in function CThunkObject_dealloc(PyObject *_self), I can import ctypes without getting a segmentation fault. static void CThunkObject_dealloc(PyObject *_self) { CThunkObject *self = (CThunkObject *)_se

[issue35358] avoid '-' in importlib.import_module and builtins.__import__

2018-11-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: '-' is not special. The import statement requires the module name been an identifier. This is just a requirement of Python syntax. But when pass the module name as a string, there is no such limitation in CPython. This is like an attribute name or keyword

[issue30410] Documentation for sys.stdout encoding does not reflect the new Windows behavior in Python 3.6+

2018-11-30 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: Ping. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue30410] Documentation for sys.stdout encoding does not reflect the new Windows behavior in Python 3.6+

2018-11-30 Thread Paul Moore
Paul Moore added the comment: The proposed wording seems a bit over-complex to me. Maybe the following re-wording would be easier to understand? The character encoding is platform-dependent. Non-Windows platforms use the locale encoding (see locale.getpreferredencoding()).

[issue35358] avoid '-' in importlib.import_module and builtins.__import__

2018-11-30 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: hi @serhiy, I understand but today, by error my CI has started to run the tests of an external python package and in the tests, there was a lot of `from my-module import XYZ` but in the django project, they load this module via importlib.import_module or bu

[issue35352] test_asyncio fails on RHEL8

2018-11-30 Thread Andrew Svetlov
Andrew Svetlov added the comment: The strange thing is these tests are passed on our build bots. In logs I see only ConnectionResetError. Can it be related to your configuration? -- ___ Python tracker

[issue35336] Bug in C locale coercion with PYTHONCOERCECLOCALE=1

2018-11-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset 55e498058faf8c97840556f6d791c2c392732dc3 by Victor Stinner in branch 'master': bpo-35336: Fix PYTHONCOERCECLOCALE=1 (GH-10806) https://github.com/python/cpython/commit/55e498058faf8c97840556f6d791c2c392732dc3 -- __

[issue35336] Bug in C locale coercion with PYTHONCOERCECLOCALE=1

2018-11-30 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10058 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

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

2018-11-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ping. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue35327] Using skipTest with subTest gives a misleading UI.

2018-11-30 Thread Martin Panter
Martin Panter added the comment: Sounds very similar to Issue 25894, discussing how to deal with tests where different subtests errored, failed, skipped and passed. -- nosy: +martin.panter ___ Python tracker __

[issue35336] Bug in C locale coercion with PYTHONCOERCECLOCALE=1

2018-11-30 Thread STINNER Victor
STINNER Victor added the comment: > PYTHONCOERCECLOCALE=1 should not force C locale coercion, Python should still > check if the LC_CTYPE locale is "C". Reference: https://docs.python.org/dev/using/cmdline.html#envvar-PYTHONCOERCECLOCALE "If (...) the current locale reported for the LC_CTYP

[issue35336] Bug in C locale coercion with PYTHONCOERCECLOCALE=1

2018-11-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset df738d56fe798b3586ed71775df25bf127789cf6 by Victor Stinner in branch '3.7': bpo-35336: Fix PYTHONCOERCECLOCALE=1 (GH-10806) (GH-10813) https://github.com/python/cpython/commit/df738d56fe798b3586ed71775df25bf127789cf6 -- __

[issue35336] Bug in C locale coercion with PYTHONCOERCECLOCALE=1

2018-11-30 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue35347] test_socket: NonBlockingTCPTests.testRecv() uses a weak 100 ms sleep as synchronization

2018-11-30 Thread miss-islington
Change by miss-islington : -- pull_requests: +10059 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35347] test_socket: NonBlockingTCPTests.testRecv() uses a weak 100 ms sleep as synchronization

2018-11-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset ebd5d6d6e6e4e751ba9c7534004aadfc27ba9265 by Victor Stinner in branch 'master': bpo-35347: Fix test_socket.NonBlockingTCPTests (GH-10791) https://github.com/python/cpython/commit/ebd5d6d6e6e4e751ba9c7534004aadfc27ba9265 --

[issue35347] test_socket: NonBlockingTCPTests.testRecv() uses a weak 100 ms sleep as synchronization

2018-11-30 Thread miss-islington
Change by miss-islington : -- pull_requests: +10060 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30167] site.main() does not work on Python 3.6 and superior if PYTHONSTARTUP is set

2018-11-30 Thread INADA Naoki
Change by INADA Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue35347] test_socket: NonBlockingTCPTests.testRecv() uses a weak 100 ms sleep as synchronization

2018-11-30 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10061 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35347] test_socket: NonBlockingTCPTests.testRecv() uses a weak 100 ms sleep as synchronization

2018-11-30 Thread miss-islington
miss-islington added the comment: New changeset 365f21c2d3756a6768c5b0d479aaf5c2a568b80b by Miss Islington (bot) in branch '3.7': bpo-35347: Fix test_socket.NonBlockingTCPTests (GH-10791) https://github.com/python/cpython/commit/365f21c2d3756a6768c5b0d479aaf5c2a568b80b -- nosy: +mis

[issue35347] test_socket: NonBlockingTCPTests.testRecv() uses a weak 100 ms sleep as synchronization

2018-11-30 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10062 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35347] test_socket: NonBlockingTCPTests.testRecv() uses a weak 100 ms sleep as synchronization

2018-11-30 Thread miss-islington
miss-islington added the comment: New changeset af7e81f71858519de8d2bafcb38fce8cca86aa0a by Miss Islington (bot) in branch '3.6': bpo-35347: Fix test_socket.NonBlockingTCPTests (GH-10791) https://github.com/python/cpython/commit/af7e81f71858519de8d2bafcb38fce8cca86aa0a -- _

[issue33930] Segfault with deep recursion into object().__dir__

2018-11-30 Thread INADA Naoki
INADA Naoki added the comment: microbench: $ ./python.patched -m perf timeit --compare-to ./python.master -s 'o="foo"' 'o.encode' python.master: . 29.3 ns +- 0.6 ns python.patched: . 30.9 ns +- 1.3 ns Mean +- std dev: [python.master] 29.3 ns +- 0.6 ns

[issue35359] [2.7][Windows] Define _CRT_SECURE_NO_WARNINGS to build Modules\zlib\

2018-11-30 Thread STINNER Victor
New submission from STINNER Victor : The compilation of Modules\zlib\ on Python 2.7 emits a lot of warnings: see AppVeyor logs above. I propose to define _CRT_SECURE_NO_WARNINGS in the pythoncore project to make these warnings quiet, to spot more easily new warnings. Attached PR adds _CRT_SE

[issue35359] [2.7][Windows] Define _CRT_SECURE_NO_WARNINGS to build Modules\zlib\

2018-11-30 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +10063 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue35347] test_socket: NonBlockingTCPTests.testRecv() uses a weak 100 ms sleep as synchronization

2018-11-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset dab59fa56054d6c0f75ae7013337f7baaa248076 by Victor Stinner in branch '2.7': bpo-35347: Fix test_socket.NonBlockingTCPTests (GH-10791) (GH-10817) https://github.com/python/cpython/commit/dab59fa56054d6c0f75ae7013337f7baaa248076 --

[issue35360] [Windows] Update SQLite dependency

2018-11-30 Thread STINNER Victor
New submission from STINNER Victor : Windows and macOS installers require SQLite, but they require different versions! Windows uses 3.21 or 3.14, but macOS uses 3.22. I'm talking about the following line in PCbuild\get_externals.bat: set libraries=%libraries% sqlite-3.21.0.0 * 3.6, 3.7 a

[issue35360] [Windows] Update SQLite dependency

2018-11-30 Thread STINNER Victor
Change by STINNER Victor : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___

[issue33930] Segfault with deep recursion into object().__dir__

2018-11-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Inada. There is a large overhead for iterating. Try to add --duplicate=1000. -- ___ Python tracker ___ _

[issue35347] test_socket: NonBlockingTCPTests.testRecv() uses a weak 100 ms sleep as synchronization

2018-11-30 Thread STINNER Victor
STINNER Victor added the comment: Ok, test_socket should depend a little bit less on time now ;-) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker __

[issue35347] test_socket: NonBlockingTCPTests.testRecv() uses a weak 100 ms sleep as synchronization

2018-11-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset 304315d251dbb4e85dd86056ba1925f25e646ca1 by Victor Stinner in branch 'master': bpo-35347: Cleanup test_socket.NonBlockingTCPTests (GH-10818) https://github.com/python/cpython/commit/304315d251dbb4e85dd86056ba1925f25e646ca1 --

[issue35360] [Windows] Update SQLite dependency

2018-11-30 Thread STINNER Victor
STINNER Victor added the comment: First the sqlite branch should be updated in: https://github.com/python/cpython-source-deps Then a new tag should be created in this repository. I tried to update cpython-source-deps, but "git push" never completed. I will retry next week ;-) -- __

[issue35361] Update libffi dependency to 3.2.1?

2018-11-30 Thread STINNER Victor
New submission from STINNER Victor : Python 2.7 and 3.6 embed a copy of libffi 3.1, whereas libffi 3.2.1 was released on November 12, 2014. Should we update libffi? I'm talking about the directory Modules/_ctypes/libffi/. It seems like Fedora 29 still uses libffi 3.1: $ rpm -q libffi libffi-

[issue33930] Segfault with deep recursion into object().__dir__

2018-11-30 Thread INADA Naoki
INADA Naoki added the comment: $ ./python.patched -m perf timeit --compare-to ./python.master -s 'o="foo"' 'o.encode' --duplicate=1 python.master: . 23.1 ns +- 0.5 ns python.patched: . 24.6 ns +- 0.5 ns Mean +- std dev: [python.master] 23.1 ns +- 0.

[issue35350] importing "ctypes" immediately causes a segmentation fault

2018-11-30 Thread David
David added the comment: Another small update: After I recompiled Python with the commented out statement, I did a small test if loading a shared library works. I compiled the following test function to testib.so: #include void test_func(void); void test_func(void) { printf("hell

[issue35352] test_asyncio fails on RHEL8

2018-11-30 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: It seems I can reproduce it on Fedora as well by setting stronger crypto defaults through 'update-crypto-policies --set FUTURE'. Repo located here: https://gitlab.com/redhat-crypto/fedora-crypto-policies/tree/master The changes are many, but if I com

[issue35352] test_asyncio fails on RHEL8

2018-11-30 Thread Andrew Svetlov
Andrew Svetlov added the comment: Maybe this is the reason. asycio test suite uses these ssl contexts: https://github.com/python/cpython/blob/master/Lib/test/test_asyncio/utils.py#L72-L92 Maybe bumping used protocol version will help to pass tests on your box. Would you try it? -- _

[issue35358] avoid '-' in importlib.import_module and builtins.__import__

2018-11-30 Thread Eric V. Smith
Eric V. Smith added the comment: I dynamically load a lot of modules whose names contain hyphens, or are otherwise non-identifiers (like 3rdparty.py). The suggested change would break a lot of working code. The only thing I can see being possible is to add a warning that no one would likely

[issue35352] test_asyncio fails on RHEL8

2018-11-30 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: I believe I figured out the issue, at least on the master branch. While checking the certificates used by asyncio tests within the test_asyncio folder I noticed they were quite outdated when compared to the more recent updated ones with the test/ fold

[issue33015] Fix function cast warning in thread_pthread.h

2018-11-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9eea6eaf23067880f4af3a130e3f67c9812e2f30 by Victor Stinner (Siddhesh Poyarekar) in branch 'master': bpo-33015: Fix UB in pthread PyThread_start_new_thread (GH-6008) https://github.com/python/cpython/commit/9eea6eaf23067880f4af3a130e3f67c9812e2f3

[issue33015] Fix function cast warning in thread_pthread.h

2018-11-30 Thread miss-islington
Change by miss-islington : -- pull_requests: +10064 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue33015] Fix function cast warning in thread_pthread.h

2018-11-30 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10065 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35338] set union/intersection/difference could accept zero arguments

2018-11-30 Thread Josh Rosenberg
Josh Rosenberg added the comment: set.union() without constructing the set you call union on only happens to work for the set.union(a) case because `a` is already a set. union takes arbitrary iterables, not just sets, and you're just cheating by explicitly passing `a` as the expected self ar

[issue33015] Fix function cast warning in thread_pthread.h

2018-11-30 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10066 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35362] list inheritor with abc method does not raise

2018-11-30 Thread vassilis Lemonidis
Change by vassilis Lemonidis : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue35362] list inheritor with abc method does not raise

2018-11-30 Thread vassilis Lemonidis
New submission from vassilis Lemonidis : The following does not raise: class Test(list, metaclass=ABCMeta): @abstractmethod def test(self): pass test = Test() There is not enough documentation to support this problem, so I believe this can be classified as a bug. Anyone please

[issue33015] Fix function cast warning in thread_pthread.h

2018-11-30 Thread miss-islington
miss-islington added the comment: New changeset b1355352d14a0a67107aba7ec6f26f17716a by Miss Islington (bot) in branch '3.7': bpo-33015: Fix UB in pthread PyThread_start_new_thread (GH-6008) https://github.com/python/cpython/commit/b1355352d14a0a67107aba7ec6f26f17716a -- nos

[issue35362] list inheritor with abstract content does not raise

2018-11-30 Thread vassilis Lemonidis
Change by vassilis Lemonidis : -- title: list inheritor with abc method does not raise -> list inheritor with abstract content does not raise ___ Python tracker ___ __

[issue35363] test_eintr: test_open() hangs randomly on x86-64 El Capitan 3.x buildbot

2018-11-30 Thread STINNER Victor
New submission from STINNER Victor : test_open() of test_eintr hangs randomly on x86-64 El Capitan 3.x buildbot. test_eintr failed but then passed when run again. pythoninfo: platform.platform: Darwin-15.6.0-x86_64-i386-64bit # macOS 10.11 (El Capitan) https://buildbot.python.org/all/#/bui

[issue35363] test_eintr: test_open() hangs randomly on x86-64 El Capitan 3.x buildbot

2018-11-30 Thread STINNER Victor
STINNER Victor added the comment: I'm unable to reproduce the bug on macOS 10.13.6 using: ./python.exe -m test -F test_eintr --timeout=60 I modified the test to display immediately result into stdout: diff --git a/Lib/test/test_eintr.py b/Lib/test/test_eintr.py index 25f86d3..47b89d3 100

[issue35363] test_eintr: test_open() hangs randomly on x86-64 El Capitan 3.x buildbot

2018-11-30 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue35358] avoid '-' in importlib.import_module and builtins.__import__

2018-11-30 Thread Guido van Rossum
Guido van Rossum added the comment: Do not change this. I'd rather see it documented that importlib can import any name as long as it doesn't contain a dot, slash or backslash. (Clearly the fact that Django loads it is an additional argument that this should be supported, not forbidden.) It

[issue33015] Fix function cast warning in thread_pthread.h

2018-11-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8f83c2fb19c45350c2161d9e75dab4cd2bcaee28 by Victor Stinner in branch '2.7': bpo-33015: Fix UB in pthread PyThread_start_new_thread (GH-6008) (GH-10823) https://github.com/python/cpython/commit/8f83c2fb19c45350c2161d9e75dab4cd2bcaee28 -

[issue33015] Fix function cast warning in thread_pthread.h

2018-11-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset 03b1200dfd03061e9ad0bff8199967bd80b9b900 by Victor Stinner in branch '3.6': bpo-33015: Fix UB in pthread PyThread_start_new_thread (GH-6008) (GH-10822) https://github.com/python/cpython/commit/03b1200dfd03061e9ad0bff8199967bd80b9b900 -

[issue33015] Fix function cast warning in thread_pthread.h

2018-11-30 Thread STINNER Victor
STINNER Victor added the comment: Ok, the bug should now be fixed. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue35363] test_eintr: test_open() hangs randomly on x86-64 El Capitan 3.x buildbot

2018-11-30 Thread STINNER Victor
STINNER Victor added the comment: I stopped my manual test after 71 iterations. -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue35338] set union/intersection/difference could accept zero arguments

2018-11-30 Thread Mark Dickinson
Mark Dickinson added the comment: > set.union() without constructing the set you call union on only happens to > work for the set.union(a) case because `a` is already a set. Good point. I wasn't thinking clearly about the unbound-methodness of this. > I'm -1 on making any changes to set.unio

[issue35352] test_asyncio fails on RHEL8

2018-11-30 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- keywords: +patch pull_requests: +10067 stage: -> patch review ___ Python tracker ___ ___ Pytho

[issue35352] test_asyncio fails on RHEL8

2018-11-30 Thread STINNER Victor
STINNER Victor added the comment: > The strange thing is these tests are passed on our build bots. RHEL8 has a very strict security policy by default. I'm not sure if any OS run on buildbot has a security policy as strict as RHEL8? > Maybe bumping used protocol version will help to pass test

[issue35352] test_asyncio fails on RHEL8

2018-11-30 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Also on Fedora the same set of security policies can be set as RHEL8 by utilizing 'update-crypto-policies --set NEXT' -- ___ Python tracker _

[issue31046] ensurepip does not honour the value of $(prefix)

2018-11-30 Thread Matej Cepl
Matej Cepl added the comment: Per https://devguide.python.org/pullrequest/, can I ask you Xavier to prepare a proper pull request for this patch to the GitHub repo, please? -- nosy: +mcepl ___ Python tracker __

[issue33015] Fix function cast warning in thread_pthread.h

2018-11-30 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10068 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue33015] Fix function cast warning in thread_pthread.h

2018-11-30 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10069 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue33015] Fix function cast warning in thread_pthread.h

2018-11-30 Thread STINNER Victor
STINNER Victor added the comment: Oh... test_threaded_import started to crash on Python 2.7: $ ./python -m test -F -v test_threaded_import (...) 0:00:00 load avg: 1.06 [ 3] test_threaded_import Trying 20 threads ... OK. Trying 50 threads ... OK. Trying 20 threads ... OK. Segmentation fault (

[issue33015] Fix function cast warning in thread_pthread.h

2018-11-30 Thread STINNER Victor
STINNER Victor added the comment: I wrote PR 10828 to make PyMem_Malloc() thread-safe in debug mode as well.. But I'm not sure that it's ok to push such change later in the 2.7 development cycle... So I wrote PR 10829 which only modified PyThread_start_new_thread(): use malloc/free instead

[issue35352] test_asyncio fails on RHEL8

2018-11-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset b062ba77b617b0f89b7ea25d14cc77c991462ad4 by Victor Stinner (stratakis) in branch 'master': bpo-35352: test_asyncio uses the certificate set from the test directory (GH-10826) https://github.com/python/cpython/commit/b062ba77b617b0f89b7ea25d14cc

[issue35352] test_asyncio fails on RHEL8

2018-11-30 Thread miss-islington
Change by miss-islington : -- pull_requests: +10070 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35352] test_asyncio fails on RHEL8

2018-11-30 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10071 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue28608] Support creating hardlink using `pathlib`

2018-11-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Since Path already supports symlinking, it would be reasonable to add hardlinking (e.g. as `Path.link_to`). But as you said one may as well call `os.link(path1, path2)`. -- ___ Python tracker

[issue33015] Fix function cast warning in thread_pthread.h

2018-11-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset bc9f53f69e8207027bf2b18e3d01b30401e76ace by Victor Stinner in branch '2.7': bpo-33015: Use malloc() in PyThread_start_new_thread() (GH-10829) https://github.com/python/cpython/commit/bc9f53f69e8207027bf2b18e3d01b30401e76ace -- ___

[issue35364] Datetime “fromtimestamp()” ignores inheritance if timezone is not None

2018-11-30 Thread Adrien
New submission from Adrien : Hello. I created a class inheriting from "datetime.datetime". While creating a new instance using the classmethod "fromtimestamp" it seems to work, except if I provide a timezone object. In such case, the returned object is of base type datetime. This looks like

[issue35352] test_asyncio fails on RHEL8

2018-11-30 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10072 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35352] test_asyncio fails on RHEL8

2018-11-30 Thread Andrew Svetlov
Andrew Svetlov added the comment: IIRC two copies exist from very early development times when asyncio was not a part of Python stdlib. -- ___ Python tracker ___

[issue35352] test_asyncio fails on RHEL8

2018-11-30 Thread STINNER Victor
STINNER Victor added the comment: > IIRC two copies exist from very early development times when asyncio was not > a part of Python stdlib. Yeah, that was my guess as well. Maybe data_file() could be simplified or replaced by support.findfile(), but I chose the easy solution (minimize chang

[issue35352] test_asyncio fails on RHEL8

2018-11-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7212148c95947b0fdfcb0c8e37d4357287bdb4bd by Victor Stinner in branch 'master': bpo-35352: Cleanup test_asyncio/utils.py (GH-10831) https://github.com/python/cpython/commit/7212148c95947b0fdfcb0c8e37d4357287bdb4bd -- __

[issue35352] test_asyncio fails on RHEL8

2018-11-30 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10073 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35364] Datetime “fromtimestamp()” ignores inheritance if timezone is not None

2018-11-30 Thread Adrien
Adrien added the comment: Actually, this also occurs while using "astimezone()" on a custom child class (I suppose this method is used by "fromtimestamp()"). -- ___ Python tracker __

[issue35365] Use wchar_t* buffer instead of Unicode object in code page decoder

2018-11-30 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Currently the code page decoder uses the legacy Unicode C API for creating an output buffer as a Unicode object with PyUnicode_WCHAR_KIND. Proposed PR makes it using a raw wchar_t* buffer. This is necessary for deprecating and removing the legacy Unicode

[issue35366] Monkey Patching class derived from ctypes.Union doesn't work

2018-11-30 Thread Vijay
New submission from Vijay : I am trying to "monkey patch" a class derived from Python ctypes "Union", but I am unable to do so - getting weird errors and sometimes seg-faults. The same thing works quite well when deriving from ctypes "Structure". I have narrowed this to down to the simplest p

[issue35352] test_asyncio fails on RHEL8

2018-11-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset 38bed786a219c65d5a51c7ef4ffd97e12653a095 by Victor Stinner in branch '3.7': [3.7] bpo-35352: test_asyncio uses the certificate set from the test directory (GH-10826) (GH-10834) https://github.com/python/cpython/commit/38bed786a219c65d5a51c7ef4f

[issue35352] test_asyncio fails on RHEL8

2018-11-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset 02250e57c37339ea6de08ab077a307e75eef02f5 by Victor Stinner in branch '3.6': bpo-35352: test_asyncio uses the certificate set from the test directory (GH-10826) (GH-10832) https://github.com/python/cpython/commit/02250e57c37339ea6de08ab077a307e7

[issue35352] test_asyncio fails on RHEL8

2018-11-30 Thread STINNER Victor
STINNER Victor added the comment: I leave the issue open until someone validates manually that the issue os fixed in all branches with stricter security (ex: RHEL8). -- ___ Python tracker __

[issue35358] Document that importlib.import_module accepts names that are not valid Python syntax

2018-11-30 Thread Brett Cannon
Brett Cannon added the comment: I agree that this shouldn't change and at best can be a documentation update to mention the fact that importlib.import_module() doesn't restrict itself to valid syntax names on purpose. -- assignee: -> docs@python components: +Documentation nosy: +doc

[issue35366] Monkey Patching class derived from ctypes.Union doesn't work

2018-11-30 Thread Martijn Pieters
Martijn Pieters added the comment: This is a repeat of old-tracker issue 1700288, see https://github.com/python/cpython/commit/08ccf202e606a08f4ef85df9a9c0d07e1ba1#diff-998bfefaefe2ab83d5f523e18f158fa4, which fixed this for StructType_setattro but failed to do the same for UnionType_seta

[issue34867] Add mode to disable small integer and interned string caches

2018-11-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Steven, thank you for splitting this off for proper discussion. To me, the base issue is that CPython is both the language reference implementation and, as yet, the main production implementation. As the latter, it has unintended and unwanted bugs and inten

[issue35354] Generator functions stack overflow

2018-11-30 Thread Brett Cannon
Brett Cannon added the comment: How did you make a recursive generator? The 'yield' would have paused execution. Do you have code you can share to reproduce? Otherwise blowing your stack out is normal behaviour in a function which you can deal with by lowering your stack depth with sys.setre

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

2018-11-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: I like this proposal better than a separate test mode. But users will see compiler warnings for main modules and for packages recompiled for a new version or for a maintenance releases with a byte code bump, and for unprecompiled packages on systems that do

[issue35367] FileExistsError During os.symlink() Displays Arrow in the Wrong Direction

2018-11-30 Thread Rich Jones
New submission from Rich Jones : If I try to create a symlink which already exists, I get a FileExistsError. In this error message, the explanatory arrow is pointing in the wrong direction. This gave us a big scare in our logs! Example: ``` $ ls HELLO.txt $ python3 Python 3.7.0 (default, Jul

[issue35367] FileExistsError During os.symlink() Displays Arrow in the Wrong Direction

2018-11-30 Thread Eryk Sun
Change by Eryk Sun : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> os.symlink: FileExistsError shows wrong message ___ Python tracker

[issue31177] unittest mock's reset_mock throws an error when an attribute has been deleted

2018-11-30 Thread Eli_B
Change by Eli_B : -- pull_requests: +10074 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue29657] os.symlink: FileExistsError shows wrong message

2018-11-30 Thread Rich Jones
Rich Jones added the comment: @Larry - that would be an acceptable solution! I'm here because I encountered this error independently. I explain why the arrow is a problem here: https://bugs.python.org/issue35367 The issue is that the '->' notation is already used by the standard operating

[issue35365] Use wchar_t* buffer instead of Unicode object in code page decoder

2018-11-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +10075 stage: -> patch review ___ Python tracker ___ ___ Python-bug

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

2018-11-30 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue35352] test_asyncio fails on RHEL8, or on Fedora using NEXT security policy

2018-11-30 Thread STINNER Victor
STINNER Victor added the comment: I tested on Fedora 29 using: sudo update-crypto-policies --set NEXT With this config, I was able to reproduce the test_asyncio failure on 3.6, 3.7 and master branches. I confirm that the commits fixed test_asyncio in these 3 branches. Thanks Charalampos

[issue33015] Fix function cast warning in thread_pthread.h

2018-11-30 Thread Gregory P. Smith
Gregory P. Smith added the comment: why was that only an issue on 2.7? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

  1   2   >