- 05 Dec, 2018 17 commits
-
-
Victor Stinner authored
-
E Kawashima authored
Escape the \t and \n. Follow up from https://github.com/python/cpython/pull/10814.
-
Victor Stinner authored
On macOS, platform.platform() now uses mac_ver(), if it returns a non-empty release string, to get the macOS version rather than darwin version.
-
Matt Wheeler authored
Add a missing word `as` in `as well as an`. Linkify `threading.Thread`.
-
Oran Avraham authored
select() calls are retried on EINTR (per PEP 475). However, if a timeout was provided and the deadline has passed after running the signal handlers, rlist, wlist and xlist should be cleared since select(2) left them unmodified.
-
Serhiy Storchaka authored
-
Andre Delfino authored
-
Andre Delfino authored
-
Alex H authored
When running test_bdb.py as a script, `import test_module` would be importing the existing Lib/test/test_modules.py instead of the tempcwd/test_module.py module which was dynamically created by test_bdb.py itself.
-
William Grzybowski authored
-
Zackery Spytz authored
-
Sergey Fedoseev authored
-
Victor Stinner authored
* posixpath.expanduser() now returns the input path unchanged if the HOME environment variable is not set and pwd.getpwuid() raises KeyError (the current user identifier doesn't exist in the password database). * Add test_no_home_directory() to test_site.
-
Serhiy Storchaka authored
* bpo-31572: Get rid of PyObject_HasAttrString() in ctypes. * Fix error handling for _pack_. * Don't silence errors when look up in a dict. * Use _PyObject_LookupAttrId(). * More changes.
-
Victor Stinner authored
platform.libc_ver() now uses os.confstr('CS_GNU_LIBC_VERSION') if available and the *executable* parameter is not set. The default value of the libc_ver() *executable* parameter becomes None. 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%)
-
Zackery Spytz authored
-
Victor Stinner authored
On Travis CI, FTP tests of test_urllib2net randomly fail with "425 Security: Bad IP connecting". test.pythoninfo now also logs TRAVIS environment variable.
-
- 04 Dec, 2018 8 commits
-
-
Raymond Hettinger authored
-
Victor Stinner authored
Only platform._syscmd_file() uses subprocess. Move subprocess import inside this function to reduce the number of imports at Python startup. Remove also warnings import which is no longer needed.
-
Victor Stinner authored
-
stratakis authored
When using link time optimizations, the -flto flag is passed to BASECFLAGS, which makes it propagate to distutils. Those flags should be reserved for the interpreter and the stdlib extension modules only, thus moving those flags to CFLAGS_NODIST.
-
Andrew Dunai authored
Fix minor typo in test function name.
-
Serhiy Storchaka authored
-
Raymond Hettinger authored
-
Naglis authored
Fixes `loop.add_writer` and `loop.add_signal_handler` method documentation to correctly reference the callback parameter from method signature. https://bugs.python.org/issue35395
-
- 03 Dec, 2018 7 commits
-
-
Chris Withers authored
Also refactor the call recording imolementation and add some notes about its limitations.
-
Andrew Svetlov authored
-
Victor Stinner authored
* PyInit_time() now returns NULL if an exception is raised. * Rename PyInit_timezone() to init_timezone(). "PyInit_" prefix is a special prefix for function initializing a module. init_timezone() doesn't initialize a module and the function is not exported.
-
Victor Stinner authored
If HAVE_DECL_TZNAME, PyInit_timezone() now returns -1 on error.
-
Serhiy Storchaka authored
-
Zackery Spytz authored
Use "ll" instead of the nonstandard "q".
-
Xtreak authored
* Add create_autospec with partial function returned in getattr * Use self.assertFalse instead of assert * Use different names and remove object
-
- 02 Dec, 2018 1 commit
-
-
Ismo Toijala authored
-
- 01 Dec, 2018 3 commits
-
-
Serhiy Storchaka authored
-
Xtreak authored
-
Victor Stinner authored
Replace strncpy() with memcpy() in structseq_repr() to fix the following compiler warning: Objects/structseq.c:187:5: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] strncpy(pbuf, typ->tp_name, len); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Objects/structseq.c:185:11: note: length computed here len = strlen(typ->tp_name) > TYPE_MAXSIZE ? TYPE_MAXSIZE : The function writes the terminating NUL byte later.
-
- 30 Nov, 2018 4 commits
-
-
Victor Stinner authored
get_gmtoff() now returns time_t instead of int to fix the following Visual Studio warning: Modules\timemodule.c(1183): warning C4244: 'return': conversion from 'time_t' to 'int', possible loss of data
-
Victor Stinner authored
'here' variable is no longer needed.
-
stratakis authored
Modify asyncio tests to utilize the certificates from the test directory instead of its own set, as they are the same and with each update they had to be updated as well.
-
Siddhesh Poyarekar authored
Fix an undefined behaviour in the pthread implementation of PyThread_start_new_thread(): add a function wrapper to always return NULL. Add pythread_callback struct and pythread_wrapper() to thread_pthread.h.
-