summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* asyncio: sync with TulipVictor Stinner2014-07-089-5/+63
| | | | | | | | | | | - Tulip issue 185: Add a create_task() method to event loops. The create_task() method can be overriden in custom event loop to implement their own task class. For example, greenio and Pulsar projects use their own task class. The create_task() method is now preferred over creating directly task using the Task class. - tests: fix a warning - fix typo in the name of a test function - Update AbstractEventLoop: add new event loop methods; update also the unit test
* Issue #11259: asynchat.async_chat().set_terminator() now raises a ValueError ifVictor Stinner2014-07-073-0/+13
| | | | the number of received bytes is negative.
* asynchat: PEP8-ify the codeVictor Stinner2014-07-072-57/+68
|
* Issue #12523: asynchat.async_chat.push() now raises a TypeError if it doesn'tVictor Stinner2014-07-073-0/+22
| | | | get a bytes string
* Issue #21925: PyImport_Cleanup(): Remove unused parameter inVictor Stinner2014-07-071-1/+1
| | | | PySys_FormatStderr() call
* Issue #21781, _ssl: Fix asn1obj2py() on Windows 64-bit, "s#" format requiresVictor Stinner2014-07-071-1/+1
| | | | size to be a Py_ssize_t, not an int. _ssl.c is now "Py_ssize_t clean".
* Issue #17846: Clarify note about Solution Folders.Zachary Ware2014-07-071-2/+5
| | | | Initial patch by Kathleen Weaver.
* Fix MSVC edition mismatch.Zachary Ware2014-07-071-1/+1
|
* Issue #21707: Fix tests on Windows.Berker Peksag2014-07-071-1/+1
|
* asyncio: sync with TulipVictor Stinner2014-07-072-2/+2
| | | | | Backout the "Tulip issue 181: Faster create_connection()" changeset, it was a mistake.
* asyncio: sync with TulipVictor Stinner2014-07-073-4/+4
| | | | | | | | - Tulip issue #181: Faster create_connection(). Call directly waiter.set_result() in the constructor of _ProactorBasePipeTransport and _SelectorSocketTransport, instead of using of delaying the call with call_soon(). - Cleanup iscoroutine()
* Merge headsSerhiy Storchaka2014-07-073-9/+21
|\
| * Issue #21707: Add missing kwonlyargcount argument to ↵Berker Peksag2014-07-073-9/+21
| | | | | | | | ModuleFinder.replace_paths_in_code().
* | Issue #21881: Just omit tests for platform-specific NaN representation in ↵Serhiy Storchaka2014-07-071-6/+2
|/ | | | test_tcl.
* Issue #19593: Use specific asserts in importlib tests.Serhiy Storchaka2014-07-075-7/+7
|
* Merge headsSerhiy Storchaka2014-07-0723-94/+223
|\
| * Issue #20639: calling Path.with_suffix('') allows removing the suffix again.Antoine Pitrou2014-07-073-4/+12
| | | | | | | | Patch by July Tikhonov.
| * Issue #21714: Disallow the construction of invalid paths using ↵Antoine Pitrou2014-07-073-0/+15
| | | | | | | | Path.with_name(). Original patch by Antony Lee.
| * Issue #21923: Prevent AttributeError in distutils.sysconfig.customize_compilerNed Deily2014-07-063-1/+27
| | | | | | | | due to possible uninitialized _config_vars. Original patch by Alex Gaynor.
| * #20135: move FAQ about mutable default arguments to the programming FAQs page.Ezio Melotti2014-07-062-56/+56
| |
| * Closes #21921: Fix ResourceWarning in the asyncio examples: close the eventVictor Stinner2014-07-052-3/+12
| | | | | | | | | | loop at exit. Patch written by Vajrasky Kok (I modified also the "hello world" example using a coroutine).
| * Closes #21886, #21447: Fix a race condition in asyncio when setting the resultVictor Stinner2014-07-059-7/+31
| | | | | | | | | | of a Future with call_soon(). Add an helper, a private method, to set the result only if the future was not cancelled.
| * Issue #21920: Add a missing colon to the __main__ doc.Berker Peksag2014-07-051-1/+1
| | | | | | | | Patch by Stefan Tatschner.
| * Issue #21897: Fix a crash with the f_locals attribute with closure variables ↵Antoine Pitrou2014-07-053-1/+56
| | | | | | | | when frame.clear() has been called.
| * properly decref the return value of close()Benjamin Peterson2014-07-051-3/+5
| |
| * Issue #21892, #21893: Partial revert of changeset 4f55e802baf0, PyErr_Format()Victor Stinner2014-07-041-18/+8
| | | | | | | | uses "%zd" for Py_ssize_t, not PY_FORMAT_SIZE_T
* | Issue #21881: Be more tolerant in test_tcl to not parsable by float() NaNSerhiy Storchaka2014-07-071-6/+6
|/ | | | representations (on mips and m68k platforms).
* Add an index entry for exec() builtin.Berker Peksag2014-07-041-0/+1
| | | | Reported by Draic Kin on docs@.
* Issue #21151: Fixed a segfault in the winreg module.Zachary Ware2014-07-033-2/+20
| | | | | | | When ``None`` was passed as a ``REG_BINARY`` value to SetValueEx, PyMem_DEL was called on an uninitialized buffer. Patch by John Ehresman. (Also an incidental typo fix in a comment in test_winreg)
* Update docs about tp_richcompareAndrew Svetlov2014-07-031-1/+3
|
* Fix guidance for subclassing collections.Set()Raymond Hettinger2014-07-022-2/+2
|
* asyncio: sync with TulipVictor Stinner2014-07-024-7/+23
| | | | | | | | | | * _UnixSubprocessTransport: fix file mode of stdin. Open stdin in write mode, not in read mode * Examples: close the event loop at exit * More reliable CoroWrapper.__del__. If the constructor is interrupted by KeyboardInterrupt or the coroutine objet is destroyed lately, some the _source_traceback attribute doesn't exist anymore. * repr(Task): include also the future the task is waiting for
* Issue #21090: io.FileIO.readall() does not ignore I/O errors anymore. Before,Victor Stinner2014-07-022-2/+5
| | | | it ignored I/O errors if at least the first C call read() succeed.
* Use try-finally idiom in example for locks in multiprocessingAndrew Svetlov2014-07-021-2/+4
|
* More idlelib cleanup inspired by pyflakes.Terry Jan Reedy2014-07-023-5/+5
|
* Issue #18258: Fix test discovery for test_codecmaps_*.Zachary Ware2014-07-026-22/+6
|
* Delete a few unused names suggested by pyflakes.Terry Jan Reedy2014-07-015-10/+10
|
* Issue #8677: make the zlib module "ssize_t clean" for parsing parametersVictor Stinner2014-07-011-0/+1
|
* Closes #21780: make the unicodedata module "ssize_t clean" for parsing ↵Victor Stinner2014-07-011-2/+8
| | | | parameters
* Issue #21781: Make the ssl module "ssize_t clean" for parsing parameters.Victor Stinner2014-07-012-2/+11
| | | | ssl.RAND_add() now supports strings longer than 2 GB.
* asyncio: Fix test_sleep_cancel(): call_later() mock has no self parameterVictor Stinner2014-07-011-2/+2
|
* Closes #21892, #21893: Use PY_FORMAT_SIZE_T instead of %zi or %zu to format CVictor Stinner2014-07-012-13/+26
| | | | size_t, because %zi/%u is not supported on all platforms.
* Issue #21891: remove extraneous semicolon.Ned Deily2014-07-011-1/+1
|
* Issue #18592: Refactor 2 SearchDialogBase.create_(option/other)_buttons methodsTerry Jan Reedy2014-07-012-124/+70
| | | | | | to remove duplication and return info for tests. Rewrite corresponding tests. Test_create_option_buttons was not testing anything because of buggy comparisons. Use Python subscripting to get widget options.
* Issue #13689: Remove a dead link from howto/urllib.Berker Peksag2014-07-011-3/+1
|
* Issue #18592: Add unittests for SearchDialogBase. Patch by Phil Webster.Terry Jan Reedy2014-07-012-10/+213
|
* Issue #21882: In turtle demos, remove module scope gui and sys calls byTerry Jan Reedy2014-06-307-61/+51
| | | | either deleting or moving to the module's main function.
* Issue #21163: BaseEventLoop.run_until_complete() and test_utils.run_briefly()Victor Stinner2014-06-303-1/+14
| | | | | don't log the "destroy pending task" message anymore. The log is redundant for run_until_complete() and useless in run_briefly().
* asyncio: sync with TulipVictor Stinner2014-06-303-10/+52
| | | | | | | | | | | - Sort imports - Simplify/optimize iscoroutine(). Inline inspect.isgenerator(obj): replace it with isinstance(obj, types.GeneratorType) - CoroWrapper: check at runtime if Python has the yield-from bug #21209. If Python has the bug, check if CoroWrapper.send() was called by yield-from to decide if parameters must be unpacked or not. - Fix "Task was destroyed but it is pending!" warning in test_task_source_traceback()
* Fix typo in socket.getaddrinfo() docstring.Berker Peksag2014-06-301-4/+4
| | | | Reported by Krishna Kumar Thakur on docs@.