summaryrefslogtreecommitdiffstats
path: root/Lib/os.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #19218: Rename collections.abc to _collections_abc in order to speed ↵Christian Heimes2013-10-131-1/+1
| | | | up interpreter start
* Issue #19209: Remove import of copyreg from the os module to speed upChristian Heimes2013-10-111-27/+0
| | | | | | interpreter startup. stat_result and statvfs_result are now hard-coded to reside in the os module. The patch is based on Victor Stinner's patch.
* (Merge 3.3) Close #17702: On error, os.environb now removes suppress the exceptVictor Stinner2013-08-231-2/+2
|\ | | | | | | context when raising a new KeyError with the original key.
| * Close #17702: On error, os.environb now removes suppress the except contextVictor Stinner2013-08-231-2/+2
| | | | | | | | when raising a new KeyError with the original key.
* | Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a)Brett Cannon2013-07-041-7/+7
| |
* | Issue #18200: Update the stdlib (except tests) to useBrett Cannon2013-06-141-7/+7
| | | | | | | | ModuleNotFoundError.
* | Correction for 4f82b6cfee46.Richard Oudkerk2013-05-071-1/+6
| |
* | Fix os.__all__ to is passes test___all__Richard Oudkerk2013-05-071-6/+8
| |
* | (Merge 3.3) Close #17702: os.environ now raises KeyError with the originalVictor Stinner2013-04-141-4/+12
|\ \ | |/ | | | | | | environment variable name (str on UNIX), instead of using the encoded name (bytes on UNIX).
| * Close #17702: os.environ now raises KeyError with the original environmentVictor Stinner2013-04-141-4/+12
| | | | | | | | variable name (str on UNIX), instead of using the encoded name (bytes on UNIX).
* | modernize some modules' code by replacing ↵Giampaolo Rodola'2013-02-121-3/+2
| | | | | | | | OSError->ENOENT/ENOTDIR/EPERM/EEXIST occurrences with the corresponding pep-3151 exceptions (FileNotFoundError, NotADirectoryError, etc.)
* | Issue #15845: Fix comparison between bytes and string.Serhiy Storchaka2013-01-081-1/+4
|\ \ | |/ | | | | Patch by Alessandro Moura.
| * Issue #15845: Fix comparison between bytes and string.Serhiy Storchaka2013-01-081-1/+4
| |\
| | * Issue #15845: Fix comparison between bytes and string.Serhiy Storchaka2013-01-081-1/+4
| | |
| | * Revert the modification of e.strerror in 3.2 as that kind of change couldGregory P. Smith2012-06-031-3/+0
| | | | | | | | | | | | break someone's over specified test that depends on the exact error message.
* | | fix typo (#16720)Andrew Svetlov2012-12-241-1/+1
| | |
* | | Use OESeeror instead of os.error (#16720)Andrew Svetlov2012-12-241-7/+7
| | | | | | | | | | | | Patch by Serhiy Storchaka.
* | | Issue #16706: get rid of os.errorAndrew Svetlov2012-12-181-1/+1
| | |
* | | merge 3.3Benjamin Peterson2012-10-091-1/+1
|\ \ \ | |/ /
| * | compare singletons by identity not equality (closes #16712)Benjamin Peterson2012-10-091-1/+1
| | | | | | | | | | | | Patch from Serhiy Storchaka.
* | | #16135: Removal of OS/2 support (Python code partial cleanup)Jesus Cea2012-10-051-28/+4
|/ /
* | Issue #15202: Consistently use the name "follow_symlinks" forLarry Hastings2012-07-151-9/+9
| | | | | | | | new parameters in os and shutil functions. Patch by Serhiy Storchaka.
* | Issue #15177: Added dir_fd parameter to os.fwalk().Larry Hastings2012-06-251-7/+11
| |
* | Closes #15161: add support for giving path as a fd for truncate() and ↵Georg Brandl2012-06-241-0/+2
| | | | | | | | pathconf().
* | Issue #15154: Add "dir_fd" parameter to os.rmdir, remove "rmdir"Larry Hastings2012-06-231-4/+1
| | | | | | | | | | | | | | parameter from os.remove / os.unlink. Patch written by Georg Brandl. (I'm really looking forward to George getting commit privileges so I don't have to keep doing checkins on his behalf.)
* | Issue #14626: Fix buildbot issue on OpenIndiana 3.x machines. (Hopefully.)Larry Hastings2012-06-231-10/+21
| |
* | Issue #14626: Large refactoring of functions / parameters in the os module.Larry Hastings2012-06-221-13/+104
| | | | | | | | | | | | | | | | | | Many functions now support "dir_fd" and "follow_symlinks" parameters; some also support accepting an open file descriptor in place of of a path string. Added os.support_* collections as LBYL helpers. Removed many functions only previously seen in 3.3 alpha releases (often starting with "f" or "l", or ending with "at"). Originally suggested by Serhiy Storchaka; implemented by Larry Hastings.
* | Closes #10142: Support for SEEK_HOLE/SEEK_DATAJesus Cea2012-06-221-0/+1
| |
* | Fixes Issue #14992: os.makedirs(path, exist_ok=True) would raise an OSErrorGregory P. Smith2012-06-031-2/+14
|\ \ | |/ | | | | | | | | when the path existed and had the S_ISGID mode bit set when it was not explicitly asked for. This is no longer an exception as mkdir cannot control if the OS sets that bit for it or not.
| * Fixes Issue #14992: os.makedirs(path, exist_ok=True) would raise an OSErrorGregory P. Smith2012-06-031-2/+14
| | | | | | | | | | | | when the path existed and had the S_ISGID mode bit set when it was not explicitly asked for. This is no longer an exception as mkdir cannot control if the OS sets that bit for it or not.
* | #14862: Add missing names to os.__all__Petri Lehtinen2012-05-231-2/+9
| |
* | #14773: Fix os.fwalk() failing on dangling symlinksHynek Schlawack2012-05-151-7/+17
| |
* | use yield fromBenjamin Peterson2012-05-101-6/+3
| |
* | Backing out 86dc014cdd74. Not ready yetJesus Cea2012-04-261-1/+0
| |
* | Close #10142: Support for SEEK_HOLE/SEEK_DATAJesus Cea2012-04-261-0/+1
| |
* | Use os.path.samestat() instead of reinventing the wheel.Charles-François Natali2012-04-221-9/+2
| |
* | Issue #2377: Make importlib the implementation of __import__().Brett Cannon2012-04-141-0/+2
| | | | | | | | | | | | | | importlib._bootstrap is now frozen into Python/importlib.h and stored as _frozen_importlib in sys.modules. Py_Initialize() loads the frozen code along with sys and imp and then uses _frozen_importlib._install() to set builtins.__import__() w/ _frozen_importlib.__import__().
* | Merge 3.2: Issue #13703 plus some related test suite fixes.Georg Brandl2012-02-201-17/+0
|\ \ | |/
| * Merge from 3.1: Issue #13703: add a way to randomize the hash values of ↵Georg Brandl2012-02-201-17/+0
| |\ | | | | | | | | | | | | | | | | | | | | | | | | basic types (str, bytes, datetime) in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated. The environment variable PYTHONHASHSEED and the new command line flag -R control this behavior.
| | * Issue #13703: add a way to randomize the hash values of basic types (str, ↵Georg Brandl2012-02-201-17/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | bytes, datetime) in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated. The environment variable PYTHONHASHSEED and the new command line flag -R control this behavior.
* | | Following Nick's suggestion, rename posix.fdlistdir() to posix.flistdir(), toCharles-François Natali2012-02-061-1/+1
| | | | | | | | | | | | | | | be consistent with other functions accepting file descriptors (fdlistdir() was added in 3.3, so hasn't been released yet).
* | | Issue #13734: Add os.fwalk(), a directory walking function yielding fileCharles-François Natali2012-02-051-5/+96
| | | | | | | | | | | | descriptors.
* | | Issue #11459: A `bufsize` value of 0 in subprocess.Popen() really createsAntoine Pitrou2011-03-191-1/+3
|\ \ \ | |/ / | | | | | | unbuffered pipes, such that select() works properly on them.
| * | Issue #11459: A `bufsize` value of 0 in subprocess.Popen() really createsAntoine Pitrou2011-03-191-1/+3
| |\ \ | | |/ | | | | | | unbuffered pipes, such that select() works properly on them.
| | * Issue #11459: A `bufsize` value of 0 in subprocess.Popen() really createsAntoine Pitrou2011-03-191-1/+3
| | | | | | | | | | | | unbuffered pipes, such that select() works properly on them.
| | * Merged revisions 80421,80424 via svnmerge fromVictor Stinner2010-04-251-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r80421 | victor.stinner | 2010-04-23 23:41:56 +0200 (ven., 23 avril 2010) | 3 lines Issue #8391: os.execvpe() and os.getenv() supports unicode with surrogates and bytes strings for environment keys and values ........ r80424 | victor.stinner | 2010-04-24 00:55:39 +0200 (sam., 24 avril 2010) | 13 lines Fix test_undecodable_env of test_subproces for non-ASCII directory This test was introduced by r80421 (issue #8391). The fix: copy the environment variables instead of starting Python in an empty environement. In an empty environment, the locale is C and Python uses ASCII for the default file system encoding. The non-ASCII directory will be encoded using surrogates, but Python3 is unable to load a module or package with a filename using surrogates. See issue #8242 for more information about running Python3 with a non-ascii directory in an empty environement. ........
| | * Merged revisions 78316 via svnmerge fromEzio Melotti2010-02-221-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r78316 | ezio.melotti | 2010-02-22 17:59:01 +0200 (Mon, 22 Feb 2010) | 1 line #7310: fix the repr() of os.environ ........
| | * Merged revisions 77881 via svnmerge fromMatthias Klose2010-01-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r77881 | matthias.klose | 2010-01-31 17:48:44 +0100 (So, 31 Jan 2010) | 9 lines Merged revisions 77879 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r77879 | matthias.klose | 2010-01-31 17:46:26 +0100 (So, 31 Jan 2010) | 2 lines - Fix typo in os.execvp docstring. ........ ................
| | * Merged revisions 76723 via svnmerge fromAntoine Pitrou2009-12-091-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r76723 | antoine.pitrou | 2009-12-09 01:01:27 +0100 (mer., 09 déc. 2009) | 3 lines Issue #7461: objects returned by os.popen() should support the context manager protocol ........
| | * Merged revisions 73934 via svnmerge fromAmaury Forgeot d'Arc2009-07-111-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r73934 | amaury.forgeotdarc | 2009-07-11 11:35:13 +0200 (sam., 11 juil. 2009) | 3 lines #6358: Merge r73933: Add basic tests for the return value of os.popen().close(). And fix the implementation to make these tests pass with py3k ........