summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Issue #22570: Renamed Py_SETREF to Py_XSETREF.Serhiy Storchaka2016-04-0637-132/+132
|
* Add Text=str. Make ItemsView derive from AbstractSet, not Set (which is the ↵Guido van Rossum2016-04-051-1/+6
| | | | concrete set).
* Many changes from the upstream repo (https://github.com/python/typing).Guido van Rossum2016-04-052-179/+371
| | | | | | | | | | | | | | | | | | | | | | | | This syncs to rev 7b43ada77821d23e55e3a4b35f6055a59b9e1ad7 there. Summary: - Add typing.DefaultDict (as a generic variant of collections.defaultdict). - Use collections.Reversible if it exists (only relevant for Python 3.6). - Revamped generic class behavior to conform to updated PEP 484. - Improve speed of Generic.__new__. - Make sure __init__ is called for new Generic instances. Fix issue #26391. - Refactor async support to be compatible with 3.2, 3.3, 3.4. - Remove 'io' and 're' from __all__ (they still exist, just not included by "import *"). Fix issue #26234. - Change @overload -- you can now use it outside stubs (you still cannot call the decorated function though).
* Issue #6953: Rearrange and expand Readline module documentationMartin Panter2016-04-053-75/+136
| | | | | | | | | | | | | | | | | * Group functions into six new subsections * Document the underlying Readline function or variable accessed * get_history_length() returns the history file limit * clear_history() is conditionally compiled in * Clarify zero and one bases for history item indexes * parse_and_bind() uses its argument directly as an init line * Change "command line" to "line buffer" for consistency * read_init_file() also executes the file * read_history_file() replaces the previous history * write_history_file() overwrites any existing file * Differentiate history file lines from history list items, which could be multi-line * Add more information about completion, also addressing Issue #10796 * libedit (Editline) may be used on any platform; detection is OS X specific
* Fix typos in documentation and commentsMartin Panter2016-04-057-13/+13
|
* Issue #23735: Avoid sighandler_t Gnu-ismMartin Panter2016-04-031-1/+1
|
* Issue #23735: Add SIGWINCH handler for Readline 6.3+ support, by Eric PriceMartin Panter2016-04-036-0/+87
|
* Issue #26586: Handle excessive header fields in http.server, by Xiang ZhangMartin Panter2016-04-033-0/+18
|
* Issue #26679: Fix description of KEY_PPAGE and KEY_NPAGE constantsBerker Peksag2016-04-021-2/+2
| | | | Patch by Robert Bachmann and SilentGhost.
* Issue #26688: Fix module name in mock docsBerker Peksag2016-04-021-3/+3
| | | | Patch by Ashley Anderson.
* Issue #26678: Fix indexing of datetime.tzinfo and timezone classesMartin Panter2016-04-011-59/+63
| | | | Also fix links to the “tzinfo” class and attributes.
* Added a cookbook recipe for a logging context manager.Vinay Sajip2016-04-011-0/+102
|
* asyncio: Don't log ConnectionAbortedErrorVictor Stinner2016-04-015-5/+10
| | | | | Issue #26509: In fatal error handlers, don't log ConnectionAbortedError which occur on Windows.
* asyncio: allow None as wait timeoutVictor Stinner2016-04-012-6/+24
| | | | | | Fix GH#325: Allow to pass None as a timeout value to disable timeout logic. Change written by Andrew Svetlov and merged by Guido van Rossum.
* asyncio: sync overlapped.c with GitHubVictor Stinner2016-04-011-0/+6
| | | | | | | | | | On Python 3.3, use aliases: * PyMem_RawMalloc = PyMem_Malloc * PyMem_RawFree = PyMem_Free These aliases are not need in Python 3.5, but this change makes synchronization of code base simpler.
* Issue #22854: Fix logic for skipping testMartin Panter2016-03-311-1/+1
|
* Remove redundant leading zeroes in PEP references.Serhiy Storchaka2016-03-316-15/+15
|
* Issue #22854: Skip pipe seek tests on WindowsMartin Panter2016-03-311-2/+7
|
* Issue #22854: Clarify documentation about UnsupportedOperation and add testsMartin Panter2016-03-316-35/+130
| | | | | Also change BufferedReader.writable() and BufferedWriter.readable() to always return False.
* Issue #26492: Added additional tests for exhausted iterators of mutable ↵Serhiy Storchaka2016-03-303-0/+24
| | | | sequences.
* Issue #26494: Fixed crash on iterating exhausting iterators.Serhiy Storchaka2016-03-3019-22/+92
| | | | | | Affected classes are generic sequence iterators, iterators of str, bytes, bytearray, list, tuple, set, frozenset, dict, OrderedDict, corresponding views and os.scandir() iterator.
* Fix typo in xml.dom.pulldom.rstBerker Peksag2016-03-301-1/+3
| | | | Reported by Matthew Cole on docs@p.o.
* test_urllibnet: set timeout on test_fileno()Victor Stinner2016-03-301-1/+1
| | | | Use the default timeout of 30 seconds to avoid blocking forever.
* Fix ResourceWarning in test_unittest when interruptedVictor Stinner2016-03-291-3/+6
|
* Issue #25911: Backport os._DummyDirEntry fixesVictor Stinner2016-03-291-2/+36
| | | | | | | | | * Fix test_os.BytesWalkTests on Windows * Mimick better the reference os.DirEntry on Windows * _DummyDirEntry now caches os.stat() result * _DummyDirEntry constructor now tries to get os.stat() * Fix os._DummyDirEntry.is_symlink(), don't follow symbolic links: use os.stat(path, follow_symlinks=False).
* Issue #26643: Add missing shutil resources to regrtest.pyVictor Stinner2016-03-291-0/+1
|
* Document None as timeout for asyncio.timeout()Andrew Svetlov2016-03-291-0/+2
|
* Issue #25314: store_true and store_false also create appropriate defaults.Raymond Hettinger2011-11-201-4/+6
|
* Issue #23804: Fix SSL recv/read(0) to not return 1024 bytesMartin Panter2016-03-284-5/+15
|
* Issue #25195: Fix a regression in mock.MagicMockBerker Peksag2016-03-273-0/+24
| | | | | | | _Call is a subclass of tuple (changeset 3603bae63c13 only works for classes) so we need to implement __ne__ ourselves. Patch by Andrew Plummer.
* Issue #23758: Improve num_params docs of create_{function,aggregate} functionsBerker Peksag2016-03-272-3/+36
| | | | | | | | If you pass -1, the callable can take any number of arguments. Added tests to verify the behavior. Initial patch by Cédric Krier.
* Document sqlite3.Cursor.close()Berker Peksag2016-03-271-0/+6
| | | | | | | The behaviour of the close method is tested by ClosedCurTests in Lib/sqlite3/test/dbapi.py. This is basically a backport of https://github.com/ghaering/pysqlite/issues/73.
* sqlite3 documentation: Connection.iterdump() is a methodBerker Peksag2016-03-271-2/+2
|
* Issue #26644: Raise ValueError for negative SSLSocket.recv() and read()Martin Panter2016-03-273-0/+19
|
* _pickle: Fix load_counted_tuple(), use Py_ssize_t for sizeVictor Stinner2016-03-141-1/+1
| | | | Fix a warning on Windows 64-bit.
* Issue#26616:Fixed a bug in datetime.astimezone() method.Alexander Belopolsky2016-03-253-1/+16
|
* doctest: fix _module_relative_path() error messageVictor Stinner2016-03-251-2/+3
| | | | | Write the module name rather than <module> in the error message, if module has no __file__ attribute (ex: package).
* Issue #25654:Victor Stinner2016-03-255-19/+39
| | | | | | | | | * multiprocessing: open file with closefd=False to avoid ResourceWarning * _test_multiprocessing: open file with O_EXCL to detect bugs in tests (if a previous test forgot to remove TESTFN) * test_sys_exit(): remove TESTFN after each loop iteration Initial patch written by Serhiy Storchaka.
* Issue #21925: Fix test_warnings for release modeVictor Stinner2016-03-251-2/+2
| | | | Use -Wd comment line option to log the ResourceWarning.
* Use Py_uintptr_t for atomic pointersVictor Stinner2016-01-223-30/+31
| | | | | | | | Issue #26161: Use Py_uintptr_t instead of void* for atomic pointers in pyatomic.h. Use atomic_uintptr_t when <stdatomic.h> is used. Using void* causes compilation warnings depending on which implementation of atomic types is used.
* pystate.h: fix _PyThreadState_UncheckedGet()Victor Stinner2016-03-241-2/+0
| | | | Declare the function even if thread support is disabled.
* warnings.formatwarning(): catch exceptionsVictor Stinner2016-03-243-2/+29
| | | | | | Issue #21925: warnings.formatwarning() now catches exceptions on linecache.getline(...) to be able to log ResourceWarning emitted late during the Python shutdown process.
* Fix test_warnings.test_improper_option()Victor Stinner2016-03-241-6/+9
| | | | | test_warnings: only run test_improper_option() and test_warnings_bootstrap() once. The unit test doesn't depend on self.module.
* Issue #26621: Remove unnecessary test.Stefan Krah2016-03-231-1/+0
|
* Issue #26525: Change chr example to match change in ord example.Terry Jan Reedy2016-03-231-1/+1
|
* Makefile.pre.in (profile-opt): Fix bashism.doko@ubuntu.com2016-03-231-1/+1
|
* Enhance _tracemalloc debug modeVictor Stinner2016-03-221-1/+1
| | | | Issue #26588: Enhance assertion in set_reentrant()
* Fix _tracemalloc start/stopVictor Stinner2016-03-221-14/+0
| | | | | | | | | Issue #26588: Fix _tracemalloc start/stop: don't play with the reentrant flag. set_reentrant(1) fails with an assertion error if tracemalloc_init() is called first in a thread A and tracemalloc_start() is called second in a thread B. The tracemalloc is imported in a thread A. Importing the module calls tracemalloc_init(). tracemalloc.start() is called in a thread B.
* Issue #24266: Cancel history search mode with Ctrl+C in Readline 7Martin Panter2016-03-222-0/+6
|
* merge 3.4 (#17167)Benjamin Peterson2016-03-221-1/+1
|\