Benjamin Peterson
11a693d330
merge 3.4
2016-06-13 23:41:40 -07:00
Benjamin Peterson
06d49bb895
sync ordering of stddef.h includes with expat 2.1.1
2016-06-13 23:41:19 -07:00
doko@ubuntu.com
17f0e61891
- Modules/_collectionsmodule.c: Mark one more internal symbol as static.
2016-06-14 07:27:58 +02:00
Martin Panter
4074f93b33
Issue #16182 : Merge readline locale fix from 3.5
2016-06-14 02:47:56 +00:00
Martin Panter
f00c49df10
Issue #16182 : Fix readline begidx, endidx, and use locale encoding
...
Based on patch by Serhiy Storchaka.
2016-06-14 01:16:16 +00:00
doko@ubuntu.com
fcff437de3
- Comment out socket (SO_REUSEPORT) and posix (O_SHLOCK, O_EXLOCK) constants
...
exposed on the API which are not implemented on GNU/Hurd. They would not
work at runtime anyway.
2016-06-13 16:33:04 +02:00
Berker Peksag
f84f259b0b
Merge from 3.5
2016-06-12 19:18:17 +03:00
Berker Peksag
0e1d6802ff
Fix typo in _sqlite/module.h
2016-06-12 19:17:49 +03:00
Berker Peksag
0f355c0022
Issue #27190 : Merge from 3.5
2016-06-12 14:10:24 +03:00
Berker Peksag
7bea2347c7
Issue #27190 : Raise NotSupportedError if sqlite3 is older than 3.3.1
...
Patch by Dave Sawyer.
2016-06-12 14:09:51 +03:00
Serhiy Storchaka
b62ff6eb57
Issue #25455 : Fixed a crash in repr of recursive functools.partial objects.
2016-06-12 11:51:26 +03:00
Serhiy Storchaka
179f960d47
Issue #25455 : Fixed a crash in repr of recursive functools.partial objects.
2016-06-12 11:44:06 +03:00
Serhiy Storchaka
f0ee5ccd19
Issue #25455 : Fixed a crash in repr of ElementTree.Element with recursive tag.
2016-06-12 09:47:20 +03:00
Serhiy Storchaka
9062c261a4
Issue #25455 : Fixed a crash in repr of ElementTree.Element with recursive tag.
2016-06-12 09:43:55 +03:00
Benjamin Peterson
f0d4621aa2
merge 3.5 ( #26556 )
2016-06-11 13:33:58 -07:00
Benjamin Peterson
b5ad54990f
merge 3.4 ( #26556 )
2016-06-11 13:33:17 -07:00
Benjamin Peterson
196d7db395
upgrade expt to 2.1.1 ( closes #26556 )
2016-06-11 13:28:56 -07:00
Brett Cannon
96881cd621
Issue #27186 : Add os.PathLike support to DirEntry
...
Initial patch thanks to Jelle Zijlstra.
2016-06-10 14:37:21 -07:00
Serhiy Storchaka
f41b82fb19
Issue #26282 : PyArg_ParseTupleAndKeywords() and Argument Clinic now support
...
positional-only and keyword parameters in the same function.
2016-06-09 16:30:29 +03:00
Brett Cannon
b4f43e90d9
Clarify documentation for os.fspath().
2016-06-09 14:32:08 -07:00
Serhiy Storchaka
5dee6551e2
Issue #26305 : Argument Clinic now uses braces in C code as required by PEP 7.
2016-06-09 16:16:06 +03:00
Serhiy Storchaka
2561bf6ae0
Issue #26305 : Argument Clinic now escapes braces. No need to double them.
2016-06-09 16:03:23 +03:00
Serhiy Storchaka
ebe95fdabb
Issue #26305 : Argument Clinic now escapes braces. No need to double them.
2016-06-09 16:02:15 +03:00
Barry Warsaw
efe7256083
Fix a comment.
2016-06-08 17:55:49 -04:00
Barry Warsaw
118598a072
Issue #27066 : Fixed SystemError if a custom opener (for open()) returns a
...
negative number without setting an exception.
2016-06-08 17:54:43 -04:00
Barry Warsaw
480e28538d
Issue #27066 : Fixed SystemError if a custom opener (for open()) returns
...
a negative number without setting an exception.
2016-06-08 17:47:26 -04:00
Martin Panter
1ab2f14281
Issue #27164 : Merge raw Deflate zdict support from 3.5
2016-06-05 12:07:48 +00:00
Martin Panter
3f0ee83f14
Issue #27164 : Allow decompressing raw Deflate streams with predefined zdict
...
Based on patch by Xiang Zhang.
2016-06-05 10:48:34 +00:00
Ethan Furman
d62548afed
issue27186: add open/io.open; patch by Jelle Zijlstra
2016-06-04 14:38:43 -07:00
Ethan Furman
410ef8e230
issue27186: add C version of os.fspath(); patch by Jelle Zijlstra
2016-06-04 12:06:26 -07:00
Benjamin Peterson
59ae8ec75f
merge 3.5
2016-06-02 12:42:40 -07:00
Benjamin Peterson
f585414813
remove (hilarious) defaults for various constants getpath.c needs
2016-06-02 12:41:35 -07:00
Benjamin Peterson
53595c4879
replace custom validation logic in the parse module with a simple DFA validator ( closes #26526 )
...
Patch from A. Skrobov.
2016-06-02 11:30:18 -07:00
Martin Panter
e2e71685f3
Issue #27171 : Fix typo in exception message
2016-06-02 10:13:47 +00:00
Martin Panter
0b7d84de6b
Issue #27171 : Merge typo fixes from 3.5
2016-06-02 10:11:18 +00:00
Martin Panter
e26da7c03a
Issue #27171 : Fix typos in documentation, comments, and test function names
2016-06-02 10:07:09 +00:00
Martin Panter
e514093a2f
Issue #27125 : Merge typo fixes from 3.5
2016-05-30 05:24:49 +00:00
Martin Panter
a90a4a9651
Issue #27125 : Remove duplicated words from documentation and comments
2016-05-30 04:04:50 +00:00
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)
46833e73af
Fix issue27146 - add stdio.h include to posixmodule.c for ctermid().
2016-05-28 21:06:41 +00:00
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)
fa76eeec70
Fix issue27146 - add stdio.h include to posixmodule.c for ctermid().
2016-05-28 21:03:48 +00:00
Martin Panter
6bb91f3b6e
Issue #20699 : Document that “io” methods accept bytes-like objects
...
This matches the usage of ZipFile and BufferedWriter. This still requires
return values to be bytes() objects.
Also document and test that the write() methods should only access their
argument before they return.
2016-05-28 00:41:57 +00:00
Martin Panter
0fdf41d847
Issue #5784 : Expand documentation and tests for zlib wbits parameter
...
Based on documentation by AM Kuchling.
2016-05-27 07:32:11 +00:00
Martin Panter
46f50726a0
Issue #27076 : Doc, comment and tests spelling fixes
...
Most fixes to Doc/ and Lib/ directories by Ville Skyttä.
2016-05-26 05:35:26 +00:00
Benjamin Peterson
5a093c158a
fix indentation and add curlies ( closes #27093 )
2016-05-23 22:47:50 -07:00
Martin Panter
c249221dfd
Issue #20699 : Merge io bytes-like fixes from 3.5
2016-05-28 01:07:08 +00:00
Martin Panter
f4affb71bc
Issue #5784 : Merge zlib from 3.5
2016-05-27 08:00:24 +00:00
Martin Panter
3e04d5b306
Issue #27076 : Merge spelling from 3.5
2016-05-26 06:03:19 +00:00
Benjamin Peterson
c35f491a06
merge 3.5 ( #27093 )
2016-05-23 22:48:05 -07:00
Stefan Krah
1f9eb879d5
Issue #26857 : The gethostbyaddr_r() workaround is no longer needed with
...
api-level >= 23. Patch by Xavier de Gaye.
2016-05-22 17:35:34 +02:00
Serhiy Storchaka
2a95219bc4
Issue #26168 : Fixed possible refleaks in failing Py_BuildValue() with the "N"
...
format unit.
2016-05-20 22:31:50 +03:00
Serhiy Storchaka
13e602ea0f
Issue #26168 : Fixed possible refleaks in failing Py_BuildValue() with the "N"
...
format unit.
2016-05-20 22:31:14 +03:00
Victor Stinner
da23056a3e
Issue #27056 : Fix _Unpickler_Read() to avoid integer overflow
2016-05-20 21:16:59 +02:00
Victor Stinner
19ed27ec2b
Optimize pickle.load() and pickle.loads()
...
Issue #27056 : Optimize pickle.load() and pickle.loads(), up to 10% faster to
deserialize a lot of small objects.
2016-05-20 11:42:37 +02:00
doko@ubuntu.com
bc7315068f
- make some internal symbols static
2016-05-18 01:06:01 +02:00
Serhiy Storchaka
c944c2dab8
Issue #26995 : Added tests for "f", "d", "D", "S", "Y", and "U" format codes
...
in PyArg_ParseTuple().
2016-05-16 10:12:15 +03:00
Serhiy Storchaka
f95455da4c
Issue #26995 : Added tests for "f", "d", "D", "S", "Y", and "U" format codes
...
in PyArg_ParseTuple().
2016-05-16 10:11:47 +03:00
Serhiy Storchaka
acef5de6ec
Backported tests for issue #18531 .
2016-05-16 09:55:32 +03:00
Senthil Kumaran
0594cff293
merge from 3.5
...
issue27018 - Fix the documentation of select.epoll.register method.
2016-05-14 21:29:03 -07:00
Senthil Kumaran
507898d35d
issue27018 - Fix the documentation of select.epoll.register method.
2016-05-14 21:28:22 -07:00
Martin Panter
f0dbf7a6ab
Issue #26870 : Add readline.set_auto_history(), originally by Tyler Crompton
2016-05-15 01:26:25 +00:00
Martin Panter
0e40df6e54
Merge ctypes from 3.5
2016-05-14 06:17:30 +00:00
Martin Panter
2dc1bbb659
Remove outdated PEP 291 compatibility requirement comment
2016-05-14 05:55:38 +00:00
Serhiy Storchaka
6a8af9ab36
Issue #25745 : Fixed leaking a userptr in curses panel destructor.
2016-05-09 00:14:22 +03:00
Serhiy Storchaka
df40b62390
Issue #25745 : Fixed leaking a userptr in curses panel destructor.
2016-05-09 00:11:59 +03:00
Serhiy Storchaka
ce41287e99
Issue #18531 : Single var-keyword argument of dict subtype was passed
...
unscathed to the C-defined function. Now it is converted to exact dict.
2016-05-08 23:36:44 +03:00
Serhiy Storchaka
dea76376cb
Issue #23815 : Fixed crashes related to directly created instances of types in
...
_tkinter and curses.panel modules.
2016-05-08 20:46:55 +03:00
Serhiy Storchaka
e3f1b0911e
Issue #23815 : Fixed crashes related to directly created instances of types in
...
_tkinter and curses.panel modules.
2016-05-08 20:46:22 +03:00
Martin Panter
1ce738e08f
Merge typo fixes from 3.5
2016-05-08 14:02:35 +00:00
Martin Panter
4c35964b76
Corrections for a/an in code comments and documentation
2016-05-08 13:53:41 +00:00
Martin Panter
129fe04d4d
Issue #26512 : Clarify Integral; tidy up table of rounding functions
...
Based on patch by Julien.
2016-05-08 12:22:37 +00:00
Martin Panter
18933ed6ab
Issue #26512 : Merge rounding doc from 3.5
2016-05-08 12:34:58 +00:00
Berker Peksag
1a269d09f6
Issue #26924 : Fix Windows buildbots
...
sem_unlink is defined as
#define SEM_UNLINK(name) 0
under Windows.
2016-05-07 21:13:50 +03:00
Berker Peksag
0ce9cd985b
Issue #26924 : Do not define _multiprocessing.sem_unlink under Android
...
Android declares sem_unlink but doesn't implement it.
2016-05-07 20:39:20 +03:00
Serhiy Storchaka
deab18dfd0
Issue #26708 : Use the "const" qualifier for immutable strings.
...
This can help to avoid unintentional modification.
2016-05-07 16:45:18 +03:00
Serhiy Storchaka
c2f7d87897
Issue #26932 : Fixed support of RTLD_* constants defined as enum values,
...
not via macros (in particular on Android). Patch by Chi Hsuan Yen.
2016-05-04 09:44:44 +03:00
Serhiy Storchaka
7a9579c0ce
Got rid of redundand "self" parameter declarations.
...
Argument Clinic is now able to infer all needed information.
2016-05-02 13:45:20 +03:00
Berker Peksag
312f208568
Issue #18916 : Update thread module docstrings
...
* Fix acquire() signature
* Remove outdated help(LockType) reference
* Replace PyThread_allocate_lock() with threading.Lock()
Patch by Christopher Welborn.
2016-05-02 12:26:00 +03:00
Berker Peksag
720e65541c
Issue #18916 : Update thread module docstrings
...
* Fix acquire() signature
* Remove outdated help(LockType) reference
* Replace PyThread_allocate_lock() with threading.Lock()
Patch by Christopher Welborn.
2016-05-02 12:25:35 +03:00
Berker Peksag
a2570626c8
Issue #26898 : Fix typo in math.isclose() docstring
...
Patch by Marco Buttu.
2016-05-01 11:27:59 +03:00
Berker Peksag
d6e6f8b829
Issue #26898 : Fix typo in math.isclose() docstring
...
Patch by Marco Buttu.
2016-05-01 11:27:37 +03:00
Berker Peksag
0ac70c0e90
Fix typos. Reported by andportnoy on GitHub.
2016-04-29 16:54:10 +03:00
Serhiy Storchaka
54b60cf628
Issue #26822 : Decreased an overhead of using _PyArg_NoKeywords() in calls of
...
itemgetter, attrgetter and methodcaller objects.
2016-04-29 09:12:25 +03:00
Serhiy Storchaka
6dfcde5e29
Issue #26822 : Decreased an overhead of using _PyArg_NoKeywords() in calls of
...
itemgetter, attrgetter and methodcaller objects.
2016-04-29 09:10:55 +03:00
Stefan Krah
fb7c8ae4e7
Issue #26863 : HAVE_FACCESSAT should (currently) not be defined on Android.
2016-04-26 17:04:18 +02:00
Stefan Krah
fa935c4727
Issue #26854 : Android has a different include path for soundcard.h.
2016-04-26 16:48:48 +02:00
Stefan Krah
8d013a8d36
Issue #26846 : Post commit cleanup.
2016-04-26 16:34:41 +02:00
Stefan Krah
432dfcf3bc
Issue #26857 : Workaround for missing symbol "gethostbyaddr_r" on Android.
2016-04-26 16:20:17 +02:00
Stefan Krah
45009778aa
Issue #20306 : Android is the only system that returns NULL for the pw_passwd
...
field. Rather than cluttering the tests, translate the arguably more correct
"None" to an empty string.
2016-04-26 11:43:21 +02:00
Stefan Krah
267b639a26
Issue #20306 : The pw_gecos and pw_passwd fields are not required by POSIX.
...
If they aren't present, set them to an empty string.
2016-04-26 01:09:18 +02:00
Stefan Krah
8e1da5823b
Issue #26846 : Workaround for non-standard stdlib.h on Android.
2016-04-25 22:48:42 +02:00
Serhiy Storchaka
745145a7da
Issue #26822 : itemgetter, attrgetter and methodcaller objects no longer
...
silently ignore keyword arguments.
2016-04-23 10:53:43 +03:00
Serhiy Storchaka
c2a2a751cf
Issue #26822 : itemgetter, attrgetter and methodcaller objects no longer
...
silently ignore keyword arguments.
2016-04-23 10:51:39 +03:00
Martin Panter
abe4d52a1a
Merge doc and comment fixes from 3.5
2016-04-19 23:23:16 +00:00
Martin Panter
8f26565ba9
Fix spelling (inital), grammar (may translates) in documentation, comments
2016-04-19 04:03:41 +00:00
Serhiy Storchaka
b6a9c9761c
Issue #26778 : Fixed "a/an/and" typos in code comment, documentation and error
...
messages.
2016-04-17 09:39:28 +03:00
Serhiy Storchaka
6a7b3a77b4
Issue #26778 : Fixed "a/an/and" typos in code comment and documentation.
2016-04-17 08:32:47 +03:00
Martin Panter
8b04a945ef
Merge typo fixes from 3.5
2016-04-16 09:29:17 +00:00
Martin Panter
119e502277
Fix typos in code comments and documentation
2016-04-16 09:28:57 +00:00
Gregory P. Smith
b0c6380640
merge heads
2016-04-15 16:47:32 -07:00
Martin Panter
b030991a5f
Issue #26535 : Correct docs regarding the struct buffer size
2016-04-15 23:03:54 +00:00