Serhiy Storchaka
06515833fe
Replaced outdated macros _PyUnicode_AsString and _PyUnicode_AsStringAndSize
...
with PyUnicode_AsUTF8 and PyUnicode_AsUTF8AndSize.
2016-11-20 09:13:07 +02:00
Steve Dower
bce26262d1
Issue #28732 : Raise ValueError when argv[0] is empty
2016-11-19 19:17:26 -08:00
Steve Dower
93ff8725b3
Issue #28732 : Raise ValueError when argv[0] is empty.
2016-11-19 19:03:54 -08:00
Steve Dower
859fd7bd7a
Issue #28732 : Raise ValueError when os.spawn*() is passed an empty tuple of arguments
2016-11-19 18:53:19 -08:00
Steve Dower
c3630612ab
Merge from 3.5 and fix a few other functions missing IPH handling.
2016-11-19 18:41:16 -08:00
Steve Dower
11f4326ca1
Issue #28732 : Fix crash in os.spawnv() with no elements in args
...
Prevents crashes in some other posixmodule.c functions
2016-11-19 18:33:39 -08:00
Serhiy Storchaka
852cc3335e
Issue #28585 : Restored docstring of os._isdir().
2016-11-08 20:26:18 +02:00
Serhiy Storchaka
579f038018
Issue #28585 : Restored docstring of os._isdir().
2016-11-08 20:21:22 +02:00
Martin Panter
b1321fba53
Issue #28394 : More typo fixes for 3.6+
2016-10-10 00:38:21 +00:00
Serhiy Storchaka
2674bc7229
Issue #27998 : Fixed bytes path support in os.scandir() on Windows.
...
Patch by Eryk Sun.
2016-10-08 20:16:57 +03:00
Christian Heimes
6f3f3e5ca4
Increase buffer for readlink() in case OS will support longer names one day.
2016-09-23 20:24:39 +02:00
Christian Heimes
3cb091e576
Increase buffer for readlink() in case OS will support longer names one day.
2016-09-23 20:24:28 +02:00
Victor Stinner
ec2319c46d
Fix memleak in os.getrandom()
...
Issue #27778 : Fix a memory leak in os.getrandom() when the getrandom() is
interrupted by a signal and a signal handler raises a Python exception.
Modify also os_getrandom_impl() to avoid the temporary buffer, use directly a
Python bytes object.
2016-09-20 23:00:59 +02:00
Victor Stinner
26c03bd7d5
Fix memory leak in path_converter()
...
Issue #28200 : Replace PyUnicode_AsWideCharString() with
PyUnicode_AsUnicodeAndSize().
2016-09-19 11:55:44 +02:00
Berker Peksag
bf3c1c3235
Issue #28075 : Fix test_access_denied in Python 3.5
...
I forgot there two variations of os.stat() in Python 3.5.
2016-09-18 13:56:29 +03:00
Berker Peksag
052e4f18c4
Issue #28075 : Merge from 3.5
2016-09-17 15:51:14 +03:00
Berker Peksag
0b4dc4846b
Issue #28075 : Check for ERROR_ACCESS_DENIED in Windows implementation of os.stat()
...
Patch by Eryk Sun.
2016-09-17 15:49:59 +03:00
Berker Peksag
3940499ca8
Issue #28156 : Export os.getpid() conditionally
...
Patch by Ed Schouten.
2016-09-15 20:45:16 +03:00
Berker Peksag
8181646931
Issue #28114 : Fix a crash in parse_envlist() when env contains byte strings
...
Patch by Eryk Sun.
2016-09-15 20:19:47 +03:00
Steve Dower
654a7bdf57
Adds missing assert suppression.
2016-09-11 20:19:32 -07:00
Steve Dower
6230aaf561
Issue #27781 : Fixes uninitialized fd when !MS_WINDOWS and !HAVE_OPENAT
2016-09-09 09:03:15 -07:00
Benjamin Peterson
768f3b4492
do not pretend to support passing a fd to access()
2016-09-05 15:29:33 -07:00
Benjamin Peterson
207116b84c
use Py_MAX
2016-09-08 11:28:06 -07:00
Steve Dower
940f33a50f
Issue #23524 : Finish removing _PyVerify_fd from sources
2016-09-08 11:21:54 -07:00
Steve Dower
513d7478a1
Fix mismatched if blocks in posixmodule.c.
2016-09-08 10:41:50 -07:00
Steve Dower
cc16be85c0
Issue #27781 : Change file system encoding on Windows to UTF-8 (PEP 529)
2016-09-08 10:35:16 -07:00
Benjamin Peterson
840ef8f84b
more linux -> __linux__
2016-09-07 14:45:10 -07:00
Victor Stinner
e66987e626
os.urandom() now blocks on Linux
...
Issue #27776 : The os.urandom() function does now block on Linux 3.17 and newer
until the system urandom entropy pool is initialized to increase the security.
This change is part of the PEP 524.
2016-09-06 16:33:52 -07:00
Victor Stinner
9b1f474df6
Add os.getrandom()
...
Issue #27778 : Expose the Linux getrandom() syscall as a new os.getrandom()
function.
This change is part of the PEP 524.
2016-09-06 16:18:52 -07:00
Victor Stinner
581139cb34
Run Argument Clinic on posixmodule.c
...
Issue #17884 .
2016-09-06 15:54:20 -07:00
Benjamin Peterson
ca47063998
replace Py_(u)intptr_t with the c99 standard types
2016-09-06 13:47:26 -07:00
Benjamin Peterson
af580dff4a
replace PY_LONG_LONG with long long
2016-09-06 10:46:49 -07:00
Benjamin Peterson
ed4aa83ff7
require a long long data type ( closes #27961 )
2016-09-05 17:44:18 -07:00
Benjamin Peterson
b1cb8b2872
merge 3.5
2016-09-05 15:35:45 -07:00
Brett Cannon
3f9183b5ac
Issue #26027 , #27524 : Add PEP 519/__fspath__() support to os and
...
os.path.
Thanks to Jelle Zijlstra for the initial patch against posixmodule.c.
2016-08-26 14:44:48 -07:00
Ned Deily
eb3be66b3a
Issue #27736 : Prevent segfault after interpreter re-initialization due
...
to ref count problem introduced in code for Issue #27038 in 3.6.0a3.
Patch by Xiang Zhang.
2016-08-15 14:40:38 -04:00
Serhiy Storchaka
d73c31899e
Issue #26800 : Undocumented support of general bytes-like objects
...
as paths in os functions is now deprecated.
2016-08-06 23:22:08 +03:00
Martin Panter
70214ad55d
Issue #17599 : Use unique _Py_REPARSE_DATA_BUFFER etc names to avoid conflict
...
The conflict occurs with Min GW, which already defines REPARSE_DATA_BUFFER.
Also, Min GW uses a lowercase <windows.h> filename.
2016-08-04 02:38:59 +00:00
Benjamin Peterson
bf5868d2c5
merge 3.5 ( #27656 )
2016-07-30 23:22:24 -07:00
Benjamin Peterson
dbaa559b7f
all SCHED_ constants are optional ( closes #27656 )
2016-07-30 23:21:50 -07:00
Steve Dower
262dc1e71d
Issue #27533 : Release GIL in nt._isdir
2016-07-17 20:50:28 -07:00
Steve Dower
b22a67737e
Issue #27533 : Release GIL in nt._isdir
2016-07-17 20:49:38 -07:00
Brett Cannon
044283a426
Issue #27512 : Don't segfault when os.fspath() calls an object whose
...
__fspath__() raises an exception.
Thanks to Xiang Zhang for the patch.
2016-07-15 10:41:49 -07:00
Serhiy Storchaka
2954f83999
- Issue #27332 : Fixed the type of the first argument of module-level functions
...
generated by Argument Clinic. Patch by Petr Viktorin.
2016-07-07 18:20:03 +03:00
Serhiy Storchaka
1a2b24f02d
Issue #27332 : Fixed the type of the first argument of module-level functions
...
generated by Argument Clinic. Patch by Petr Viktorin.
2016-07-07 17:35:15 +03:00
Brett Cannon
a32c4d0531
Issue #27038 : Expose DirEntry as os.DirEntry.
...
Thanks to Jelle Zijlstra for the code portion of the patch.
2016-06-24 14:14:44 -07:00
Brett Cannon
c78ca1e044
Issue #27186 : Update os.fspath()/PyOS_FSPath() to check the return
...
type of __fspath__().
As part of this change, also make sure that the pure Python
implementation of os.fspath() is tested.
2016-06-24 12:03:43 -07: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
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
Brett Cannon
b4f43e90d9
Clarify documentation for os.fspath().
2016-06-09 14:32:08 -07:00