[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:

[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 ___

[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:

[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

[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

[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

[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

[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/

[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)

[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:

[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:

[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)

[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:

[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

[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 --

[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
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

[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:

[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 ___ ___

[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

[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:

[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:

[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 --

[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

[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:

[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

[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
Change by STINNER Victor : -- pull_requests: +10068 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[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:

[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 ___

[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

[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

[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)

[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

[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

[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.)

[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 --

[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

[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 ___ ___

[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

[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:

[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,

[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

[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:

[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

[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

[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

[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

[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

[issue33015] Fix function cast warning in thread_pthread.h

2018-11-30 Thread STINNER Victor
STINNER Victor added the comment: > why was that only an issue on 2.7? I added PyMem_RawMalloc() to Python 3.4 and this function must be thread-safe. https://docs.python.org/dev/c-api/memory.html#raw-memory-interface "These functions are thread-safe, the GIL does not need to be held." I

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

2018-11-30 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I'm actually fine either way. Consider me a solid ±0 -- ___ Python tracker ___ ___

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

2018-11-30 Thread Nathaniel Smith
Nathaniel Smith added the comment: > In my experience people are more likely to run code through a linter than > they are to ever run an interpreter with DeprecationWarning enabled. This used to be true, and it was a disaster. So there's been a lot of work to fix it, and it's not true

[issue33015] Fix function cast warning in thread_pthread.h

2018-11-30 Thread Gregory P. Smith
Gregory P. Smith added the comment: I don't think it is crazy for 2.7, but I'd move that to its own issue as you already nicely addressed the problem related to this PR without needing that. -- ___ Python tracker

[issue35368] [2.7] Make PyMem_Malloc() thread-safe in debug mode

2018-11-30 Thread STINNER Victor
New submission from STINNER Victor : While fixing bpo-33015, I discovered that PyMem_Malloc() isn't thread-safe when Python is compiled in debug mode: https://bugs.python.org/issue33015#msg330806 I wrote PR 10828 to make PyMem_Malloc() thread-safe when Python is compiled in debug mode.

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

2018-11-30 Thread Steven D'Aprano
Steven D'Aprano added the comment: Looks like we have a stand-off between core devs, and no BDFL to make a ruling. There is support for the feature from at least Barry and Raymond (although I think Guido was cool on the idea, maybe?). Gregory, do you feel strongly enough about this that

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

2018-11-30 Thread Nathaniel Smith
Nathaniel Smith added the comment: Would it be more acceptable to use a DeprecationWarning? It's not really the right thing because we're not planning to ever actually remove the functionality. But, we've already gone to a lot of trouble to try to show DeprecationWarnings specifically to

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

2018-11-30 Thread Gregory P. Smith
Gregory P. Smith added the comment: Given that linters like pylint can already detect the common case of this issue when using `is` and `is not` to compare to a literal where == or != seems more appropriate, I don't think a warning is very useful. In my experience people are more likely to

[issue33015] Fix function cast warning in thread_pthread.h

2018-11-30 Thread STINNER Victor
STINNER Victor added the comment: > I don't think it is crazy for 2.7, but I'd move that to its own issue as you > already nicely addressed the problem related to this PR without needing that. Good idea. I created bpo-35368. I close this issue since it's now fixed. -- resolution:

[issue35368] [2.7] Make PyMem_Malloc() thread-safe in debug mode

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

[issue33130] functools.reduce signature uses `iterable`, documentation should use the same term

2018-11-30 Thread Ben Finney
Ben Finney added the comment: Hah, sorry to use a local-filesystem URL. (Hooray for locally-installed developer documentation!) The same section is online at https://docs.python.org/3/library/functools.html#functools.reduce . -- ___ Python

[issue35354] Generator functions stack overflow

2018-11-30 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Brett, the user had an invalid email address in their profile thus adding comments to the issue caused a server error while sending notification to them. So they have been removed from the issue. Please see :

[issue35369] List sorting makes duplicate comparisons

2018-11-30 Thread Tim Peters
Tim Peters added the comment: Yup, it can do some redundant comparisons; more on that here: https://mail.python.org/pipermail/python-dev/2018-August/155020.html I'm not inclined to make this already-difficult code even harder to understand for something that's quite likely not to matter -

[issue35369] List sorting makes duplicate comparisons

2018-11-30 Thread David Wyde
Change by David Wyde : Added file: https://bugs.python.org/file47963/sort.py ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35369] List sorting makes duplicate comparisons

2018-11-30 Thread David Wyde
New submission from David Wyde : Python's Timsort sometimes makes the same comparison twice. This leads to extra compares, which can hurt performance. Python sorts several length-3 permutations in 4 steps, and the problem accumulates with bigger data. There are ~9,800 duplicate less-than

[issue33130] functools.reduce signature uses `iterable`, documentation should use the same term

2018-11-30 Thread Ben Finney
Ben Finney added the comment: The library documentation (e.g. file:///usr/share/doc/python3/html/library/functools.html#functools.reduce ) also has this dissonance: > functools.reduce(`function`, `iterable` [, `initializer` ]) > >Apply function of two arguments cumulatively to the

[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)

[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)

[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

[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 --

[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

[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

[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:

[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()).

[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:

[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

[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

[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 --

[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 --

[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 --

[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 ___ ___

[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 ___

[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

[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 ___ ___

[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
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[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 --

[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:

[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:

[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 STINNER Victor
Change by STINNER Victor : -- pull_requests: +10061 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[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:

[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:

[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

[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 ___ ___

  1   2   >