[issue34185] Lib/test/test_bdb.py failed when ran as a script

2018-12-05 Thread miss-islington
miss-islington added the comment: New changeset c7c4e938b98068e8e4e5fe56d441db696d47de78 by Miss Islington (bot) in branch '3.7': bpo-34185: Fix test module collision in test_bdb when ran as script. (GH-8537) https://github.com/python/cpython/commit/c7c4e938b98068e8e4e5fe56d441db696d47de78

[issue33023] Unable to copy ssl.SSLContext

2018-12-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 10934 fixes just a typo in the name of NotImplementedError. It fixes also a similar typo in IDLE. It adds new tests and fixes existing tests for NotImplementedError in SSLSocket. -- ___ Python tracker

[issue34738] Distutils: ZIP files don't include directory entries

2018-12-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +10193 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34738] Distutils: ZIP files don't include directory entries

2018-12-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +10194 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34738] Distutils: ZIP files don't include directory entries

2018-12-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 67a93b3a0b3814e97ef9d077b21325fc8ce351b2 by Serhiy Storchaka in branch 'master': bpo-34738: Add directory entries in ZIP files created by distutils. (GH-9419) https://github.com/python/cpython/commit/67a93b3a0b3814e97ef9d077b21325fc8ce351b2

[issue17185] unittest mock create_autospec doesn't correctly replace mocksignature

2018-12-05 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: While working on partials test case failure I found two more cases along the way. 1. When we call create_autospec it calls _get_signature_object that gets the signature for the given parameter. With functools.partial it returns a partial object

[issue35421] Expected result is not clear in case of list.append(list)

2018-12-05 Thread Lingaraj Gowdar
New submission from Lingaraj Gowdar : Currently the output of below append cannot be used for practical purpose, This jira is to get the expectation for a case in append. >>> a=[1,2] >>> a.append(a) >>> a [1, 2, [...]] >>> -- assignee: terry.reedy components: IDLE messages: 331148

[issue34987] A possible null pointer dereference in _pickle.c's save_reduce()

2018-12-05 Thread miss-islington
miss-islington added the comment: New changeset e2f376f284b7bf1388d85e99dce646cabc507016 by Miss Islington (bot) in branch '3.7': bpo-34987: Fix a possible null pointer dereference in _pickle.c's save_reduce(). (GH-9886)

[issue34987] A possible null pointer dereference in _pickle.c's save_reduce()

2018-12-05 Thread miss-islington
miss-islington added the comment: New changeset 92d912c344e6c21de46da29f0dc45b7e476fa79d by Miss Islington (bot) in branch '3.6': bpo-34987: Fix a possible null pointer dereference in _pickle.c's save_reduce(). (GH-9886)

[issue34185] Lib/test/test_bdb.py failed when ran as a script

2018-12-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +10191 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34185] Lib/test/test_bdb.py failed when ran as a script

2018-12-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +10192 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34185] Lib/test/test_bdb.py failed when ran as a script

2018-12-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +10190 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34185] Lib/test/test_bdb.py failed when ran as a script

2018-12-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 54fd45505b3a365e6d53441e6dd7e0d1ec13b46f by Serhiy Storchaka (Alex H) in branch 'master': bpo-34185: Fix test module collision in test_bdb when ran as script. (GH-8537)

[issue33023] Unable to copy ssl.SSLContext

2018-12-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +10189 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35390] ctypes not possible to pass NULL c_void_p in structure by reference

2018-12-05 Thread Dan
Change by Dan : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31715] Add mimetype for extension .mjs

2018-12-05 Thread Christian Heimes
Christian Heimes added the comment: It's technically a new feature. New features are not added to existing releases unless there is a very compelling reason. -- nosy: +christian.heimes ___ Python tracker

[issue31715] Add mimetype for extension .mjs

2018-12-05 Thread Myles Borins
Myles Borins added the comment: I see that when this landed it appears that it was removed from landing on "Python 2.7, Python 3.6, Python 3.7". Is there any chance to revisit this decision? I dug into the mimetype code and it doesn't appear that there is a way to rely on operating system

[issue35420] how to migrate a c-extension module to one that supports subinerpreters?

2018-12-05 Thread mattip
New submission from mattip : NumPy does not currently support subinterpreters, it has global state that is not cleaned up when releasing the module. I could not find a description of the steps I need to take to modernize the C-extension module to be able to used under a subinterpreter. It

[issue34604] Possible mojibake in pwd.getpwnam and grp.getgrnam

2018-12-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 34c7f0c04e2b4e715b2c3df1875af8939fbe7d0b by Serhiy Storchaka (William Grzybowski) in branch 'master': bpo-34604: Use %R because of invisible characters or trailing whitespaces. (GH-9165)

[issue34738] Distutils: ZIP files don't include directory entries

2018-12-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The inconsistency is not just with the tarfile module, but with other method of creating ZIP archives. The unix unzip command creates directories if needed, but I am not sure about other third-party utilities. Since all know ZIP creators creates entries

[issue34987] A possible null pointer dereference in _pickle.c's save_reduce()

2018-12-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +10188 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34987] A possible null pointer dereference in _pickle.c's save_reduce()

2018-12-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +10187 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34987] A possible null pointer dereference in _pickle.c's save_reduce()

2018-12-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 25d389789c59a52a31770f7c50ce9e02a8909190 by Serhiy Storchaka (Zackery Spytz) in branch 'master': bpo-34987: Fix a possible null pointer dereference in _pickle.c's save_reduce(). (GH-9886)

[issue34052] sqlite's create_function() raises exception on unhashable callback, but creates function

2018-12-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 5b25f1d03100e2283c1b129d461ba68ac0169a14 by Serhiy Storchaka (Sergey Fedoseev) in branch 'master': bpo-34052: Prevent SQLite functions from setting callbacks on exceptions. (GH-8113)

[issue22831] Use "with" to avoid possible fd leaks

2018-12-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: self.addCleanup(f.close) can not be used if the same file should be opened several times in the test. It can not be used also if the file is deleted in the test or in tearDown(). -- ___ Python tracker

[issue22831] Use "with" to avoid possible fd leaks

2018-12-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -10171, 10173, 10174, 10176, 10177, 10180 ___ Python tracker ___ ___

[issue22831] Use "with" to avoid possible fd leaks

2018-12-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -10171, 10173, 10174, 10176, 10177, 10179, 10180 ___ Python tracker ___ ___

[issue22831] Use "with" to avoid possible fd leaks

2018-12-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -10170, 10171, 10173, 10174 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue22831] Use "with" to avoid possible fd leaks

2018-12-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -10171, 10173, 10174, 10176, 10180 ___ Python tracker ___ ___ Python-bugs-list

[issue22831] Use "with" to avoid possible fd leaks

2018-12-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -10171, 10173, 10174, 10180 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue22831] Use "with" to avoid possible fd leaks

2018-12-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -10170, 10171, 10174 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue22831] Use "with" to avoid possible fd leaks

2018-12-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -10170 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22831] Use "with" to avoid possible fd leaks

2018-12-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -10170, 10171 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10184, 10185, 10186 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10184 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10184, 10185 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10181, 10182, 10183 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10183 versions: +Python 3.7, Python 3.8 -Python 3.5 ___ Python tracker ___ ___

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10181, 10182 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10181 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 31b635dbf0c7108f18bb3ce382b895374cff77fb by Victor Stinner in branch '3.6': bpo-10496: posixpath.expanduser() catchs pwd.getpwuid() error (GH-10919) (GH-10925) https://github.com/python/cpython/commit/31b635dbf0c7108f18bb3ce382b895374cff77fb

[issue22831] Use "with" to avoid possible fd leaks

2018-12-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 10926 is based on fd_leaks_tools1_2.patch. PR 10927 is based on fd_leaks_tools2_2.patch. PR 10928 is based on fd_leaks_tests1_2.patch. PR 10929 is based on fd_leaks_tests2_2.patch. Some of changes in these patches were already applied in other issues.

[issue22831] Use "with" to avoid possible fd leaks

2018-12-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +10177, 10178, 10179, 10180 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread miss-islington
miss-islington added the comment: New changeset 983d1ab0e6f4280f954bcba87db76e11131f1c33 by Miss Islington (bot) in branch '3.7': bpo-10496: posixpath.expanduser() catchs pwd.getpwuid() error (GH-10919) https://github.com/python/cpython/commit/983d1ab0e6f4280f954bcba87db76e11131f1c33

[issue22831] Use "with" to avoid possible fd leaks

2018-12-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -10160 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22831] Use "with" to avoid possible fd leaks

2018-12-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +10177, 10178, 10179 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue22831] Use "with" to avoid possible fd leaks

2018-12-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +10175, 10176 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22831] Use "with" to avoid possible fd leaks

2018-12-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +10177, 10178 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22831] Use "with" to avoid possible fd leaks

2018-12-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +10171, 10172, 10173, 10174 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue22831] Use "with" to avoid possible fd leaks

2018-12-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +10171, 10172 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22831] Use "with" to avoid possible fd leaks

2018-12-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +10173, 10175 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22831] Use "with" to avoid possible fd leaks

2018-12-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +10169, 10170, 10171 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue22831] Use "with" to avoid possible fd leaks

2018-12-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +10175, 10176, 10177 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue22831] Use "with" to avoid possible fd leaks

2018-12-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +10172, 10174 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22831] Use "with" to avoid possible fd leaks

2018-12-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +10169, 10170 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22831] Use "with" to avoid possible fd leaks

2018-12-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +10169 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10167, 10168 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10167 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +10164, 10165, 10166 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +10164, 10165 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +10164 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset f2f4555d8287ad217a1dba7bbd93103ad4daf3a8 by Victor Stinner in branch 'master': bpo-10496: posixpath.expanduser() catchs pwd.getpwuid() error (GH-10919) https://github.com/python/cpython/commit/f2f4555d8287ad217a1dba7bbd93103ad4daf3a8

[issue32787] Better error handling in ctypes

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

[issue35418] python hung or stuck somtimes randomly on windows server 2008R2

2018-12-05 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: You might try to check the list of DLLs loaded into the stuck python process and find third-party ones (e.g., antivirus). If there are any, disable the third-party software and try again. -- nosy: +izbyshev ___

[issue35412] test_future4 ran no test

2018-12-05 Thread STINNER Victor
STINNER Victor added the comment: There are a few more on Windows: 4 tests run no tests: test_dtrace test_future4 test_multiprocessing_fork test_multiprocessing_forkserver test_multiprocessing_fork and test_multiprocessing_forkserver should raise SkipTest on Windows. --

[issue28015] configure --with-lto builds fail when CC=clang on Linux, requires gold linker

2018-12-05 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- pull_requests: +10161 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28015] configure --with-lto builds fail when CC=clang on Linux, requires gold linker

2018-12-05 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- pull_requests: +10161, 10162, 10163 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue28015] configure --with-lto builds fail when CC=clang on Linux, requires gold linker

2018-12-05 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- pull_requests: +10161, 10162 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue22831] Use "with" to avoid possible fd leaks

2018-12-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +dstufft, eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22831] Use "with" to avoid possible fd leaks

2018-12-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 10921 is based on fd_leaks_distutils.patch. -- versions: +Python 3.8 -Python 3.5 ___ Python tracker ___

[issue22831] Use "with" to avoid possible fd leaks

2018-12-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +10159, 10160 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22831] Use "with" to avoid possible fd leaks

2018-12-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +10159 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: > Would it make sense to backport this fix in 3.6 and 3.7? I'd like to see it there, given that this bug surfaced in many use cases not involving any modern features or systemd at all. -- ___ Python tracker

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread STINNER Victor
STINNER Victor added the comment: Yes, I plan to try to backport the fix to stable branches. -- ___ Python tracker ___ ___

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: > I prefer to stick to the initial bug report which hasn't been fixed in 8 years I'm interested in fixing this bug too since it bit me in SCons and I had to use a local patch for it. I welcome the upstream fix and don't object to PR 10919. I'm not

[issue35389] Use gnu_get_libc_version() in platform.libc_ver()?

2018-12-05 Thread STINNER Victor
STINNER Victor added the comment: > Nice. I never liked the "parse the executable approach", but there wasn't > anything better available at the time. Aha. Well, it's not perfect but it works and was fast enough (since libc_ver() is never used in performance critical code) :-) I'm now

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread Antoine Pietri
Antoine Pietri added the comment: Would it make sense to backport this fix in 3.6 and 3.7? As distros increasingly move in the direction of using DynamicUser=yes for most stateless services, it would really help to have that, for instance in Debian Buster (which will probably be on 3.7 if

[issue35389] Use gnu_get_libc_version() in platform.libc_ver()?

2018-12-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Nice. I never liked the "parse the executable approach", but there wasn't anything better available at the time. -- nosy: +lemburg ___ Python tracker

[issue35257] Add LDFLAGS_NODIST for the LDFLAGS not intended for propagation to C extensions.

2018-12-05 Thread Miro Hrončok
Change by Miro Hrončok : -- nosy: +hroncok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread STINNER Victor
STINNER Victor added the comment: > If I understood PR 10919 correctly, sysconfig.get_config_var('userbase') can > now return unexpanded paths containing '~'. Is it intended despite the > previous discussion starting with msg135047? With my PR 10919, "python3 setup.py install" and "python3

[issue35257] Add LDFLAGS_NODIST for the LDFLAGS not intended for propagation to C extensions.

2018-12-05 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: And here is the difference between compiling the extension with the current tip, comparing to applying my current draft PR: Master branch with the linker flags propagated: running build running build_ext building 'demo' extension creating build

[issue31572] Avoid suppressing all exceptions in PyObject_HasAttr()

2018-12-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 398bd27967690f2c1a8cbf8d47a5613edd9cfb2a by Serhiy Storchaka in branch 'master': bpo-32787: Better error handling in ctypes. (#3727) https://github.com/python/cpython/commit/398bd27967690f2c1a8cbf8d47a5613edd9cfb2a --

[issue32787] Better error handling in ctypes

2018-12-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 398bd27967690f2c1a8cbf8d47a5613edd9cfb2a by Serhiy Storchaka in branch 'master': bpo-32787: Better error handling in ctypes. (#3727) https://github.com/python/cpython/commit/398bd27967690f2c1a8cbf8d47a5613edd9cfb2a --

[issue35257] Add LDFLAGS_NODIST for the LDFLAGS not intended for propagation to C extensions.

2018-12-05 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: So to better illustrate the actual issue I'll be using an example from the python documentation [0][1]. Get the demo.c and the setup.py. Compile cpython first with --with-lto and then compile the demo.c with ./python3 setup.py build. You will notice

[issue35257] Add LDFLAGS_NODIST for the LDFLAGS not intended for propagation to C extensions.

2018-12-05 Thread Charalampos Stratakis
Change by Charalampos Stratakis : Added file: https://bugs.python.org/file47977/setup.py ___ Python tracker ___ ___ Python-bugs-list

[issue35416] Fix potential resource warnings in distutils

2018-12-05 Thread Mickaël Schoentgen
Mickaël Schoentgen added the comment: OK then I updated the PR to only update code that would really leak resources. -- ___ Python tracker ___

[issue35389] Use gnu_get_libc_version() in platform.libc_ver()?

2018-12-05 Thread STINNER Victor
STINNER Victor added the comment: > Quick benchmark on Fedora 29: > python3 -m perf command ./python -S -c 'import platform; platform.libc_ver()' > 94.9 ms +- 4.3 ms -> 33.2 ms +- 1.4 ms: 2.86x faster (-65%) Oops, my benchmark in the commit message was wrong, it includes the startup time...

[issue26544] platform.libc_ver() returns incorrect version number

2018-12-05 Thread STINNER Victor
STINNER Victor added the comment: > bpo-26544: Make platform.libc_ver() less slow (GH-10868) > https://github.com/python/cpython/commit/8687bd86e6f138ef0699a1e9f3f9555765949b51 "Coarse benchmark on Fedora 29: 1.6 sec => 0.1 sec." Oops, my benchmark in the commit message was wrong, it

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: If I understood PR 10919 correctly, sysconfig.get_config_var('userbase') can now return unexpanded paths containing '~'. Is it intended despite the previous discussion starting with msg135047? -- nosy: +izbyshev

[issue35416] Fix potential resource warnings in distutils

2018-12-05 Thread Éric Araujo
Éric Araujo added the comment: I think the places that already use try/finally: close are correct. We try to minimize churn in distutils; changing to with is nice but does not fix errors or warning in these cases. The changes for the few spots that don’t use finally: close are welcome

[issue35408] Python3.7 crash in PyCFunction_New due to broken _PyObject_GC_TRACK

2018-12-05 Thread STINNER Victor
STINNER Victor added the comment: > If the call to PyCFunction_New is done from a C extension module, is it also > necessary to call Py_Initialize()? Py_Initialize() must always be called first. -- ___ Python tracker

[issue35389] Use gnu_get_libc_version() in platform.libc_ver()?

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

[issue35387] Dialogs on IDLE are accompanied by a small black window

2018-12-05 Thread Tal Einat
Tal Einat added the comment: Vlad, perhaps you could take a look at this? Note that Tcl/Tk 8.6.9 has recently been released (Nov 16th, 2018), which addresses several other issues pertaining to macOS Mojave. Can someone check this on Mojave with Tk 8.6.9? -- nosy: +vtudorache

[issue35408] Python3.7 crash in PyCFunction_New due to broken _PyObject_GC_TRACK

2018-12-05 Thread Enric Tejedor Saavedra
Enric Tejedor Saavedra added the comment: Hi Victor, Thank you for clarifying. If the call to PyCFunction_New is done from a C extension module, is it also necessary to call Py_Initialize()? -- ___ Python tracker

[issue35416] Fix potential resource warnings in distutils

2018-12-05 Thread Mickaël Schoentgen
Mickaël Schoentgen added the comment: I saw it but it is quite old and targetting 3.5. I opended this issue to target only distutils, easier to eventually backport than a big patch on a lot of files. -- ___ Python tracker

[issue35389] Use gnu_get_libc_version() in platform.libc_ver()?

2018-12-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 476b113ed8531b9fbb0bd023a05eb3af21996600 by Victor Stinner in branch 'master': bpo-35389: platform.libc_ver() uses os.confstr() (GH-10891) https://github.com/python/cpython/commit/476b113ed8531b9fbb0bd023a05eb3af21996600 --

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread STINNER Victor
STINNER Victor added the comment: I wrote PR #10919 which fix posix.expandpath() and also fix indirectly the site module. @Antoine Pietri: Would you mind to try the fix? -- ___ Python tracker

[issue35416] Fix potential resource warnings in distutils

2018-12-05 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: There is a similar open issue issue22831 with patches for distutils and Tools. -- nosy: +serhiy.storchaka, xtreak ___ Python tracker

[issue35419] Thread.is_alive while running Process.is_alive causes either premature termination or never-terminating.

2018-12-05 Thread Stan
New submission from Stan : Checking if thread.is_alive() while thread is checking on Process.is_alive() seemingly causes undefined behavior. The attached POC is expected to print "ThreadN.data == 1999" for N in range(0, 20) with some repeats. However the integers are spread all over the

[issue35418] python hung or stuck somtimes randomly on windows server 2008R2

2018-12-05 Thread Cao Hongfu
New submission from Cao Hongfu : Recently, python frequently(but randomly) hung or stuck at initialization(when I click the python.exe or use python cmd prompt) on my server(running windows server 2008R2), But everything is fine on my windows 7 PC). I tried reinstall python, but not

<    1   2   3   >