- 24 Feb, 2017 2 commits
-
-
Louie Lu authored
-
Ivan Levkivskyi authored
-
- 23 Feb, 2017 6 commits
-
-
Steve Dower authored
-
INADA Naoki authored
bpo-29463 added optional "docstring" field to 4 AST types. While it is optional, it breaks backward compatibility because AST constructor requires number of positional argument is same to number of fields. AST types accepts empty arguments, and incomplete keyword arguments. But it's not big problem because field can be filled after creation, and checked when compiling. So stop requiring complete set of fields for positional arguments too.
-
Victor Stinner authored
Add a comment to prevent further attempts to avoid a copy for optimization.
-
Arne de Laat authored
-
Martijn Pieters authored
When you use `'%s' % SubClassOfStr()`, where `SubClassOfStr.__rmod__` exists, the reverse operation is ignored as normally such string formatting operations use the `PyUnicode_Format()` fast path. This patch tests for subclasses of `str` first and picks the slow path in that case. Patch by Martijn Pieters.
-
Benjamin Peterson authored
-
- 22 Feb, 2017 6 commits
-
-
INADA Naoki authored
* bpo-29463: Add docstring field to some AST nodes. ClassDef, ModuleDef, FunctionDef, and AsyncFunctionDef has docstring field for now. It was first statement of there body. * fix document. thanks travis! * doc fixes
-
Matthias Bussonnier authored
bpo-29546: Improve from-import error message with location
-
Christian Heimes authored
sock_addr_t is used to define the minimum size of any socket address on the stack. Let's make sure that an AF_ALG address always fits. Coverity complains because in theory, AF_ALG might be larger than any of the other structs. In practice it already fits. Closes Coverity CID 1398948, 1398949, 1398950 Signed-off-by: Christian Heimes <christian@python.org>
-
Anthony Zhang authored
-
Matthias Bussonnier authored
Nick Coghlan said on bpo-28814: > inspect.getargvalues() and inspect.formatargvalues() were deprecated > in Python 3.5 as part of implementing bpo-20438 > This is incorrect, as these are *frame* introspection related functions, > not callable introspection ones. The documentation and implementation > layout is confusing though, as they're interleaved with the callable > introspection operation This commit undeprecates these functions and adds a note to ignore previous deprecation notices.
-
Xiang Zhang authored
-
- 21 Feb, 2017 7 commits
-
-
INADA Naoki authored
PyObject_GetAttrString intern temporary key string. It's completely redudant.
-
Matthieu Dartiailh authored
-
INADA Naoki authored
-
INADA Naoki authored
-
INADA Naoki authored
use "union" merge strategy for Misc/NEWS.
-
Jim Fasarakis-Hilliard authored
As of Python 3.6 **kwargs are ordered, thus, remove the paragraph stating that ordering is undefined and change snippet to remove the unecessary sorted call. * Add sentence mentioning guaranteed output order of kwargs
-
Matthias Bussonnier authored
Clarify that methods take a string which is interpreted as a regex, not a regex object. Also clarify what the old `-1`, `0`, `1` and `2` options were.
-
- 20 Feb, 2017 7 commits
-
-
Mark Dickinson authored
* Fix incorrect handling of signed zeros for complex-related classes. * Add Misc/NEWS entry.
-
INADA Naoki authored
lookdict_unicode() and lookdict_unicode_nodummy() may raise exception when key is not unicode.
-
Paul Schreiber authored
-
Serhiy Storchaka authored
no longer affects a partial object after creation.
-
Xiang Zhang authored
-
INADA Naoki authored
3eea8c67 missed dot at the end of paragraph.
-
Vinay Sajip authored
* Fixed bpo-29565: Corrected ctypes passing of large structs by value. Added code and test to check that when a structure passed by value is large enough to need to be passed by reference, a copy of the original structure is passed. The callee updates the passed-in value, and the test verifies that the caller's copy is unchanged. A similar change was also added to the test added for bpo-20160 (that test was passing, but the changes should guard against regressions). * Reverted unintended whitespace changes.
-
- 19 Feb, 2017 3 commits
-
-
INADA Naoki authored
-
Berker Peksag authored
* Drop duplicate work 'object' in lzma docs * Fix typo in os docs: fpr -> for
-
Steve Dower authored
-
- 18 Feb, 2017 3 commits
-
-
Barry Warsaw authored
bpo-22807: Expose platform UUID generation safety information.
-
Nick Coghlan authored
``local.getlocale(locale.LC_CTYPE)`` and ``locale.getpreferredencoding(False)`` may give different answers in some cases (such as the ``en_IN`` locale). ``re.LOCALE`` uses the latter, so update the test case to match.
-
Nick Coghlan authored
-
- 16 Feb, 2017 5 commits
-
-
Senthil Kumaran authored
-
matejcik authored
-
Eric Appelt authored
* bpo-29026: Clarity documentation of time.time Clarify the documentation of time.time by more precisely defining what is meant by "seconds since the epoch" on most platforms. Additionally explain how gmtime and localtime may be used to extract calendar components and convert to a more common date format. * bpo-29026: Minor improvements for time.time doc * bpo-29026: Consistency fixes for time.time doc
-
Matthias Bussonnier authored
-
INADA Naoki authored
-
- 15 Feb, 2017 1 commit
-
-
Yen Chi Hsuan authored
bltinmodule.c: Added in b744ba1d and no longer necessary since d64e8a75 posixmodule.c: Added in d1cd4d41 and no longer necessary since efb00c0c pythonrun.c: Added in 73d538b9 and no longer necessary since d6009517 sysmodule.c: Added in 5467d4c0 and no longer necessary since a2c17c58
-