summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Issue #26173: Separate bad cert file tests and client rejection testMartin Panter2016-02-011-40/+54
| | | | | | | | | Test test_wrong_cert() runs a server that rejects the client's certificate, so ECONNRESET is reasonable in addition to SSLError. On the other hand, the other three tests don't even need to run a server because they are just testing the parsing of invalid certificate files. Also fix a ResourceWarning by closing the wrapped socket.
* Enhance os.scandir() docVictor Stinner2016-01-311-35/+38
| | | | | | | | | | | | | | Issue #26248, patch written by Ben Hoyt: 1) Clarify that the return values of is_dir()/is_file()/etc are cached separately for follow_symlinks True and False. 2) Be more specific about when the functions require a system call, and how it relates to caching and follow_symlinks. 3) DRY up common stuff between is_dir and is_file by saying "Caching, system calls made, and exceptions raised are as per is_dir" in is_file. 4) Tweak to the first paragraph of docs for is_dir/is_file to simplify: assume the follow_symlinks=True default, then note the follow_symlinks=False non-default case after.
* Issue #26242: Fix another one in importlib.rstBerker Peksag2016-01-301-1/+1
|
* Fix a markup error in socket.rstBerker Peksag2016-01-301-1/+1
|
* Issue #23076: Path.glob() now raises a ValueError if it's called with anBerker Peksag2016-01-304-0/+11
| | | | | | invalid pattern. Patch by Thomas Nyberg.
* Update "Creating Virtual Environments" link in venv documentationBerker Peksag2016-01-301-1/+1
|
* Update output of venv -hBerker Peksag2016-01-301-4/+5
| | | | | * Update description of the --system-site-packages option * Show --copies option in the usage
* Issue #4806: Avoid masking original TypeError in call with * unpackingMartin Panter2016-01-313-13/+58
| | | | Based on patch by Hagen Fürstenau and Daniel Urban.
* Issue #25934: Default to /fp:strict for ICC buildsZachary Ware2016-01-302-5/+14
|
* Issue #26173: Fix test_ssl confusion with non-existing cert and wrongcert.pemMartin Panter2016-01-302-14/+43
| | | | | | Testing for a non-existing certificate file is already done in test_errors(). Copy wrongcert.pem from Python 2 and use it to test the behaviour with a mismatched certificate.
* Issue #26202: copy.deepcopy() now correctly copies range() objects withSerhiy Storchaka2016-01-283-2/+15
| | | | non-atomic attributes.
* Issue #19883: Fixed possible integer overflows in zipimport.Serhiy Storchaka2016-01-282-153/+216
|
* Merge headsSerhiy Storchaka2016-01-289-18/+119
|\
| * Backport fixes on test_eintrVictor Stinner2016-01-281-5/+17
| | | | | | | | | | | | | | * Issue #25234: Skip test_eintr.test_open() under OS X to avoid hanging * Issue #25868: Try to make test_eintr.test_sigwaitinfo() more reliable especially on slow buildbots. Use a pipe to synchronize the parent and the child processes.
| * Issue #24705: Add a test case for ef84d21f5292Berker Peksag2016-01-281-0/+3
| |
| * Windows: Decode hostname from ANSI code pageVictor Stinner2016-01-282-2/+28
| | | | | | | | | | | | Issue #26227: On Windows, getnameinfo(), gethostbyaddr() and gethostbyname_ex() functions of the socket module now decode the hostname from the ANSI code page rather than UTF-8.
| * Add a link to PEP 384 in stable.rstBerker Peksag2016-01-281-1/+1
| |
| * Issue #19023: Document ctypes array and pointer classesMartin Panter2016-01-294-10/+70
| | | | | | | | Also add some more tests. Based on patch by Sye van der Veen.
* | Issue #26198: Added tests for "es", "et", "es#", "et#" and "C" format unitsSerhiy Storchaka2016-01-282-43/+228
|/ | | | of PyArg_Parse*() functions.
* Issue #26034: Improve wording of clear parameterBerker Peksag2016-01-281-4/+4
|
* Issue #26034: Sync documentation of --clear with its behaviorBerker Peksag2016-01-282-12/+8
| | | | Most of the docs has already been updated in c3c188a0325a.
* Issue #26199: Fix broken link in unittest.mock-examples.rstBerker Peksag2016-01-281-1/+1
| | | | Patch by Raphael Das Gupta.
* Issue #26220: Remove outdated comment about a question markMartin Panter2016-01-291-3/+0
|
* Issue #25507: revert incorrect movement of idleConf import in c548ad75160c.Terry Jan Reedy2016-01-272-1/+13
| | | | Augment htest to include all major IOBinding functions.
* Fix resize_compact()Victor Stinner2016-01-271-0/+2
| | | | | Issue #26217: resize_compact() must set wstr_length to 0 after freeing the wstr string. Otherwise, an assertion fails in _PyUnicode_CheckConsistency().
* Issue #26194: Fix undefined behavior for deque.insert() when len(d) == maxlenRaymond Hettinger2016-01-274-0/+28
|
* Remove unnecessary test case comment in urllib.parse.py. These are asserted ↵Senthil Kumaran2016-01-261-15/+0
| | | | as test cases.
* Fix a typo in a code exampleBrett Cannon2016-01-221-1/+1
|
* doc: i18n HTML templatesVictor Stinner2016-01-223-59/+59
| | | | | | | Issue #25907: Use {% trans %} tags in HTML templates to ease the translation of the documentation. The tag comes from Jinja templating system, used by Sphinx. Patch written by Julien Palard.
* code_richcompare() now uses the constants typesVictor Stinner2016-01-225-50/+246
| | | | | | | | | Issue #25843: When compiling code, don't merge constants if they are equal but have a different types. For example, "f1, f2 = lambda: 1, lambda: 1.0" is now correctly compiled to two different functions: f1() returns 1 (int) and f2() returns 1.0 (int), even if 1 and 1.0 are equal. Add a new _PyCode_ConstantKey() private function.
* merge 3.4Benjamin Peterson2016-01-221-0/+4
|\
| * reject negative data_sizeBenjamin Peterson2016-01-221-0/+4
| |
* | minor clarification on Zipfile 'x' mode - exclusive creation of a file.Senthil Kumaran2016-01-221-2/+2
| |
* | Merge update to pipDonald Stufft2016-01-222-1/+1
|\ \ | |/
| * Upgrade pip to 8.0.2Donald Stufft2016-01-222-1/+1
| |
* | Issue #18620: Improve Pool examples in multiprocessing documentationBerker Peksag2016-01-211-11/+26
| | | | | | | | | | | | | | | | | | | | A single call to Pool.apply_async() will create only one process. To use all of the pool's processes, it should be invoked multiple times: with Pool(processes=4) as pool: results = [pool.apply_async(func, ()) for i in range(4)] Patch by Davin Potts.
* | issue25909 - Correct the documentation of PyMapping_Items, PyMapping_Keys andSenthil Kumaran2016-01-212-14/+14
| | | | | | | | | | | | PyMapping_Values in Include/abstract.h and Doc/c-api/mapping.rst. Patch contributed by Sonali Gupta.
* | Issue #26106: doc: Move text of licenses to parsed literal blockVictor Stinner2016-01-212-177/+184
| | | | | | | | | | | | | | This change helps to ignore text of PSF, BEOPEN.com and CNRI licenses when translating the documentation. Patch written by Julien Palard who is translating Python 3.5 doc to french. Text of other licenses already used preformatted format.
* | merge 3.4 (#26171)Benjamin Peterson2016-01-212-0/+8
|\ \ | |/
| * prevent buffer overflow in get_data (closes #26171)Benjamin Peterson2016-01-212-0/+8
| |
* | merge 3.4Benjamin Peterson2016-01-211-0/+1
|\ \ | |/
| * fix refleak in error conditionBenjamin Peterson2016-01-211-0/+1
| |
* | merge 3.4 (#26172)Benjamin Peterson2016-01-211-1/+1
|\ \ | |/
| * remove script from epub (closes #26172)Benjamin Peterson2016-01-211-1/+1
| |
* | Replace fpgetmask() with fedisableexcept()Victor Stinner2016-01-201-6/+2
| | | | | | | | | | Issue #24520: On FreeBSD, fpgetmask() was deprecated long time ago. fedisableexcept() is now preferred.
* | issue25982 - Add a class definition for managers.Namespace in the ↵Senthil Kumaran2016-01-201-15/+17
| | | | | | | | multiprocessing docs.
* | Add _PyThreadState_UncheckedGet()Victor Stinner2016-01-207-26/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #26154: Add a new private _PyThreadState_UncheckedGet() function which gets the current thread state, but don't call Py_FatalError() if it is NULL. Python 3.5.1 removed the _PyThreadState_Current symbol from the Python C API to no more expose complex and private atomic types. Atomic types depends on the compiler or can even depend on compiler options. The new function _PyThreadState_UncheckedGet() allows to get the variable value without having to care of the exact implementation of atomic types. Changes: * Replace direct usage of the _PyThreadState_Current variable with a call to _PyThreadState_UncheckedGet(). * In pystate.c, replace direct usage of the _PyThreadState_Current variable with the PyThreadState_GET() macro for readability. * Document also PyThreadState_Get() in pystate.h
* | Issue #26147: xmlrpc now works with strings not encodable with usedSerhiy Storchaka2016-01-204-11/+30
| | | | | | | | non-UTF-8 encoding.
* | Issue #5626: Remove misleading comment from socket.gethostname() documentationBerker Peksag2016-01-201-5/+0
| | | | | | | | | | | | A machine can have more than one IP addresses so socket.gethostbyname(socket.gethostname()) probably won't return the correct one.
* | Issue #26157: Fix typos in asyncio-eventloop.rstBerker Peksag2016-01-201-4/+4
| | | | | | | | Initial patch by Carlo Beccarini.