- 24 Jun, 2019 9 commits
-
-
Xtreak authored
-
ziheng authored
-
Andrew Svetlov authored
-
Steve Dower authored
-
Victor Stinner authored
-
Jeroen Demeyer authored
-
Victor Stinner authored
* regrtest: Add --cleanup option to remove "test_python_*" directories of previous failed test jobs. * Add "make cleantest" to run "python3 -m test --cleanup".
-
Gabe Appleton authored
At the moment you can definitely use UDPLITE sockets on Linux systems, but it would be good if this support were formalized such that you can detect support at runtime easily. At the moment, to make and use a UDPLITE socket requires something like the following code: ``` >>> import socket >>> a = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, 136) >>> b = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, 136) >>> a.bind(('localhost', 44444)) >>> b.sendto(b'test'*256, ('localhost', 44444)) >>> b.setsockopt(136, 10, 16) >>> b.sendto(b'test'*256, ('localhost', 44444)) >>> b.setsockopt(136, 10, 32) >>> b.sendto(b'test'*256, ('localhost', 44444)) >>> b.setsockopt(136, 10, 64) >>> b.sendto(b'test'*256, ('localhost', 44444)) ``` If you look at this through Wireshark, you can see that the packets are different in that the checksums and checksum coverages change. With the pull request that I am submitting momentarily, you could do the following code instead: ``` >>> import socket >>> a = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDPLITE) >>> b = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDPLITE) >>> a.bind(('localhost', 44444)) >>> b.sendto(b'test'*256, ('localhost', 44444)) >>> b.set_send_checksum_coverage(16) >>> b.sendto(b'test'*256, ('localhost', 44444)) >>> b.set_send_checksum_coverage(32) >>> b.sendto(b'test'*256, ('localhost', 44444)) >>> b.set_send_checksum_coverage(64) >>> b.sendto(b'test'*256, ('localhost', 44444)) ``` One can also detect support for UDPLITE just by checking ``` >>> hasattr(socket, 'IPPROTO_UDPLITE') ``` https://bugs.python.org/issue37345
-
Inada Naoki authored
`_PyUnicode_Writer` is a relatively complex structure. Initializing it is significant overhead when decoding short ASCII string.
-
- 23 Jun, 2019 1 commit
-
-
Pablo Galindo authored
-
- 22 Jun, 2019 5 commits
-
-
Pablo Galindo authored
-
Ben Darnell authored
When the Windows default event loop changed, `asyncio-policy.rst` was updated but `asyncio-eventloop.rst` was missed.
-
Jörn Heissler authored
… as proposed in PEP 572; key is now evaluated before value. https://bugs.python.org/issue35224
-
mbarkhau authored
Rephrase and clarify that "the entire Python program exits when only daemon threads are left". This matches the documentation at https://docs.python.org/3/library/threading.html#thread-objects.
-
Xtreak authored
When the test is ran with `PYTHONWARNINGS=error` the environment variable is passed to the python interpreter used in `assert_python_ok` where `DeprecationWarning` from `@asyncio.coroutine` is converted into an error. Ignore the `DeprecationWarning` in `assert_python_ok`. https://bugs.python.org/issue37323
-
- 21 Jun, 2019 10 commits
-
-
-
Steve Dower authored
-
Victor Stinner authored
test_gdb no longer fails if it gets an "unexpected" message on stderr: it now ignores stderr. The purpose of test_gdb is to test that python-gdb.py commands work as expected, not to test gdb.
-
Brad authored
This is to help prevent people from accidentally installing into the wrong Python interpreter if they are not aware of which Python interpreter `pip` points to.
-
Joannah Nanjekye authored
-
Paul Monson authored
-
Zackery Spytz authored
Also, add a missing call to va_end() in PySys_Audit().
-
Michael Felt authored
* Switch to officially supported curses from 3rd-party ASIS supported ncurses * stop saying optional modules osaudiodev and spwd are missing on AIX Patch by M.Felt
-
Aeros authored
* Docs: Improved phrasing Removed usage of second person pronouns in the section and made the assumption of "uneasiness" in code style transition more neutral. * Removed trailing whitespace on line 34
-
Shashank Parekh authored
-
- 20 Jun, 2019 7 commits
-
-
Pablo Galindo authored
-
Victor Stinner authored
* Mention bpo of PyImport_Cleanup removal * Fix bpo number of PyByteArray_Init removal
-
Paul Monson authored
-
Jeroen Demeyer authored
-
İsmail Arılık authored
-
Eric V. Smith authored
-
Hai Shi authored
It was listed as `binaryfunc`. It should be `unaryfunc`.
-
- 19 Jun, 2019 8 commits
-
-
Victor Stinner authored
* Mention issue in which ByByteArray_Init() has been removed. * Fix typo
-
Victor Stinner authored
In pylifecycle.c: pass tstate argument, rather than interp argument, to functions.
-
Harmon authored
Add a missing single quote character in the documentation for `io.TextIOWrapper.reconfigure`.
-
Paul Monson authored
-
Steve Dower authored
-
Vinay Sajip authored
-
Vinay Sajip authored
-
Victor Stinner authored
* Rename PyImport_Cleanup() to _PyImport_Cleanup() and move it to the internal C API. Add 'tstate' parameters. * Remove documentation of _PyImport_Init(), PyImport_Cleanup(), _PyImport_Fini(). All three were documented as "For internal use only.".
-