summaryrefslogtreecommitdiffstats
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-28598: Support __rmod__ for RHS subclasses of str in % string formatting ↵Xiang Zhang2017-03-011-2/+6
| | | | operations (GH-366)
* Issue #14376: sys.exit now accepts longs as well as ints. Thanks Gareth Rees.Mark Dickinson2017-02-021-1/+1
|
* Don't use getentropy() on LinuxVictor Stinner2017-01-091-2/+9
| | | | | | | Issue #29188: Support glibc 2.24 on Linux: don't use getentropy() function but read from /dev/urandom to get random bytes, for example in os.urandom(). On Linux, getentropy() is implemented which getrandom() is blocking mode, whereas os.urandom() should not block.
* only include sys/random.h if it seems like it might have something useful ↵Benjamin Peterson2017-01-021-1/+1
| | | | (#29057)
* ring in 2017 for PythonBenjamin Peterson2017-01-021-1/+1
|
* add a specific configure check for sys/random.h (closes #28932)Benjamin Peterson2016-12-201-1/+1
|
* Issue #28676: Prevent missing 'getentropy' declaration warning on macOS.Ned Deily2016-11-121-0/+3
| | | | Initial patch by Gareth Rees.
* Issue #28616: Correct help for sys.version_info releaselevel component.Ned Deily2016-11-041-1/+1
| | | | Patch by Anish Tambe.
* Issue #21720: Improve exception message when the type of fromlist is unicodeBerker Peksag2016-10-161-2/+3
|
* Issue #24098: Fixed possible crash when AST is changed in process ofSerhiy Storchaka2016-10-071-0/+180
| | | | compiling it.
* Issue #28139: Fix messed up indentationMartin Panter2016-09-173-49/+47
| | | | | Also update the classmethod and staticmethod doc strings and comments to match the RST documentation.
* Issue #27806: Fix 32-bit builds on macOS Sierra 10.12 broken by removal ofsashk2016-09-161-4/+4
| | | | deprecated QuickTime/QuickTime.h header file. Patch by sashk.
* Issue #24366: Fix indentationMartin Panter2016-09-152-6/+6
| | | | | Backports changes by Victor Stinner, Hirokazu Yamamoto, li4ick and Benjamin Peterson.
* fix misleading indentation (closes #28139)Benjamin Peterson2016-09-141-1/+1
|
* Issue #26020: Fix evaluation order for set literalsRaymond Hettinger2016-09-081-2/+4
|
* Issue #15578: Correctly incref the parent module while importing.Eric Snow2016-09-081-0/+2
|
* Spelling and grammar fixes in code comments and documentationMartin Panter2016-07-281-1/+1
|
* make too many nested blocks be a SyntaxError instead of a SystemError ↵Benjamin Peterson2016-07-151-1/+1
| | | | | | (closes #27514) Patch by Ammar Askar.
* Issue #25523: Correct "a" article to "an" articleMartin Panter2015-11-021-1/+1
| | | | | | This changes the main documentation, doc strings, source code comments, and a couple error messages in the test suite. In some cases the word was removed to fix the grammar.
* reduce marshal stack size in debug mode on windows (closes #27019)Benjamin Peterson2016-07-071-0/+5
|
* Issue #23908: os functions, open() and the io.FileIO constructor now rejectSerhiy Storchaka2016-07-011-1/+18
| | | | | unicode paths with embedded null character on Windows instead of silently truncate them.
* Issue #27301: Fixed incorrect return code for error in compile.c.Serhiy Storchaka2016-06-151-1/+1
|
* Fix typo in commentMartin Panter2016-06-101-1/+1
|
* Fix typo in code commentMartin Panter2016-06-041-1/+1
|
* Issue #27076: Doc, comment and test function name spelling fixesMartin Panter2016-05-262-2/+2
| | | | Most fixes to Doc/ and Lib/ directories by Ville Skyttä.
* Issue #26168: Fixed possible refleaks in failing Py_BuildValue() with the "N"Serhiy Storchaka2016-05-201-42/+68
| | | | format unit.
* Issue #26874: Simplify the divmod docstring.Zachary Ware2016-04-281-1/+1
| | | | Now it actually matches the prose docs.
* Issue #26874: Make divmod docstring and full doc matchZachary Ware2016-04-281-1/+1
|
* Issue #26778: Fixed "a/an/and" typos in code comment and documentation.Serhiy Storchaka2016-04-172-2/+2
|
* Issue #4806: Avoid masking TypeError when *-unpacking a generatorMartin Panter2016-01-311-2/+4
| | | | Based on patch by Hagen Fürstenau.
* Correct “an” → “a” with “Unicode”, “user”, “UTF”, etcMartin Panter2016-04-151-2/+2
| | | | This affects documentation and code comments.
* Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREFSerhiy Storchaka2016-04-103-4/+4
| | | | in places where Py_DECREF was used.
* Issue #22570: Renamed Py_SETREF to Py_XSETREF.Serhiy Storchaka2016-04-064-5/+5
|
* Issue #26476: Fixed compilation error when use PyErr_BadInternalCall() in C++.Serhiy Storchaka2016-03-031-1/+1
| | | | Patch by Jeroen Demeyer.
* Issue #22836: Keep exception reports sensible despite errorsMartin Panter2016-02-282-3/+15
|
* Issue #25698: Importing module if the stack is too deep no longer replacesSerhiy Storchaka2016-02-101-7/+25
| | | | imported module with the empty one.
* Issue #26198: Fixed error messages for some argument parsing errors.Serhiy Storchaka2016-02-071-12/+21
| | | | | Fixed the documented about buffer overflow error for "es#" and "et#" format units.
* code_richcompare() now uses the constants typesVictor Stinner2016-01-221-47/+6
| | | | | | | | | 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.
* Issue24733 - Remove unreachable code in traceback.cSenthil Kumaran2016-01-051-4/+0
|
* 2016 will be another year of writing copyrighted codeBenjamin Peterson2016-01-011-1/+1
|
* Issue #20440: More use of Py_SETREF.Serhiy Storchaka2015-12-271-8/+5
| | | | | This patch is manually crafted and contains changes that couldn't be handled automatically.
* Issue #20440: Massive replacing unsafe attribute setting code with specialSerhiy Storchaka2015-12-243-7/+4
| | | | macro Py_SETREF.
* Issue #25678: Copy buffer objects to null-terminated strings.Serhiy Storchaka2015-11-201-5/+16
| | | | | | | | Avoid buffer overreads when int(), long(), float(), and compile() are passed buffer objects. Similar code is removed from the complex() constructor, where it was not reachable. Patch backported from issue #24802 by Eryk Sun.
* Issue #25003: os.urandom() doesn't use getentropy() on Solaris becauseVictor Stinner2015-10-011-4/+8
| | | | | getentropy() is blocking, whereas os.urandom() should not block. getentropy() is supported since Solaris 11.3.
* remove tabs from ceval.c (closes #24895)Benjamin Peterson2015-08-201-173/+173
|
* check return value of PyString_FromStringAndSize for NULL (closes #24734)Benjamin Peterson2015-07-271-1/+4
| | | | Patch by Pankaj Sharma.
* Added the const qualifier for char* argument of Py_EnterRecursiveCall().Serhiy Storchaka2015-06-211-1/+1
|
* Fixed indentation of Python examples in C comments.Serhiy Storchaka2015-06-101-2/+2
|
* sync opcode prediction code with python 3Benjamin Peterson2015-06-011-10/+4
|
* Issue #19543: Emit deprecation warning for known non-text encodings.Serhiy Storchaka2015-05-311-27/+182
| | | | | | | | | | Backported issues #19619: encode() and decode() methods and constructors of str, unicode and bytearray classes now emit deprecation warning for known non-text encodings when Python is ran with the -3 option. Backported issues #20404: io.TextIOWrapper (and hence io.open()) now uses the internal codec marking system added to emit deprecation warning for known non-text encodings at stream construction time when Python is ran with the -3 option.