summaryrefslogtreecommitdiffstats
path: root/Lib/os.py
Commit message (Collapse)AuthorAgeFilesLines
* - Fix typo in os.execvp docstring.Matthias Klose2010-01-311-1/+1
|
* Issue #5080: turn the DeprecationWarning from float arguments passedMark Dickinson2010-01-011-1/+1
| | | | | | to integer PyArg_Parse* format codes into a TypeError. Add a DeprecationWarning for floats passed with the 'L' format code, which didn't previously have a warning.
* avoid doing an uneeded import in a functionBenjamin Peterson2009-11-201-4/+4
|
* #5329: fix os.popen* regression from 2.5: don't execute commands as a sequencePhilip Jenvey2009-09-291-7/+8
| | | | | | through the shell. also document the correct subprocess replacement for this case patch from Jean-Paul Calderone and Jani Hakala
* Avoid invoking the parser/compiler just to test the presence of a function.Amaury Forgeot d'Arc2009-06-091-5/+1
|
* Issue #3708: os.urandom no longer goes into an infinite loop when passed aGregory P. Smith2008-09-021-5/+7
| | | | non-integer floating point number.
* Update __all__ for cookielib, csv, os, and urllib2 for objects imported intoBrett Cannon2008-08-181-1/+1
| | | | the module but exposed as part of the API.
* Revert copy_reg -> copyreg rename.Georg Brandl2008-05-201-1/+1
|
* Remove references to platform 'mac'Ronald Oussoren2008-05-121-17/+3
| | | | | The 'mac' platform (that is, os.name == 'mac') was used for the MacOS 9 port, which is no longer supported (as of Python 2.4 IIRC).
* Added module stub for copy_reg renaming in 3.0.Alexandre Vassalotti2008-05-111-1/+1
| | | | | | Renamed copy_reg to copyreg in the standard library, to avoid spurious warnings and ease later merging to py3k branch. Public documentation remains intact.
* fix issue2707 - os.walk docstring example correctness typo.Gregory P. Smith2008-05-061-1/+2
|
* Moved the errno import from inside the functions to theFacundo Batista2007-11-271-6/+3
| | | | module level. Fixes issue 1755179.
* Fix new pop() method on os.environ on ignorecase-platforms.Georg Brandl2007-10-261-1/+1
|
* Bug #1287: make os.environ.pop() work as expected.Georg Brandl2007-10-241-0/+6
|
* Patch #1181: add os.environ.clear() method.Georg Brandl2007-09-201-0/+8
|
* Deprecate os.popen* and popen2 module in favor of the subprocess module.Neal Norwitz2007-05-111-9/+29
|
* New test for rev. 54407 which only uses directories under TESTFN.Georg Brandl2007-03-211-3/+7
|
* Try backing out 54407 to see if it corrects the problems on the WindowsNeal Norwitz2007-03-201-7/+3
| | | | | buildbots. This rev was backported, so we will need to keep both branches in sync, pending the outcome of the test after this checkin.
* Patch #1273829: os.walk() now has a "followlinks" parameter. If set toGeorg Brandl2007-03-161-3/+7
| | | | | True (which is not the default), it visits symlinks pointing to directories.
* Move errno imports back to individual functions.Georg Brandl2006-12-111-2/+3
|
* Patch #1608267: fix a race condition in os.makedirs() is the directoryGeorg Brandl2006-12-091-3/+8
| | | | to be created is already there.
* os.urandom no longer masks unrelated exceptions like SystemExit orGeorg Brandl2006-08-011-1/+1
| | | | KeyboardInterrupt.
* Patch #1410998: remove "DOS" from os.py docstringGeorg Brandl2006-01-201-1/+1
|
* SF#1343671.Fredrik Lundh2005-11-121-1/+1
| | | | | The removedirs function removes empty directories, it doesn't empty them.
* bug #1177468: don't cache /dev/urandom file descriptor in os.urandomGeorg Brandl2005-07-041-8/+4
|
* Avoid using items() in environ.update(). Fixes #1124513.Martin v. Löwis2005-02-171-8/+18
| | | | Will backport to 2.4.
* Revert os.py 1.75, and directly implement update.Martin v. Löwis2005-01-291-0/+22
| | | | Fixes #1110478 and #1100235.
* Added SEEK_* constants. Fixes #711830.Martin v. Löwis2005-01-161-1/+8
|
* Document that on Unix, the 'cmd' argument to the os.popen2/3/4 andJohannes Gijsbers2004-10-111-0/+18
| | | | | | | | | | popen2.popen2/3/4 functions can be a sequence. All texts are a variation on the following: On \UNIX, \var{cmd} may be a sequence, in which case arguments will be passed directly to the program without shell intervention (as with \function{os.spawnv()}). If \var{cmd} is a string it will be passed to the shell (as with \function{os.system()}).
* Patch #1021596: Check for None to determine whether _urandomfd isMartin v. Löwis2004-09-181-1/+1
| | | | uninitialized.
* Whitespace normalization.Tim Peters2004-09-011-1/+1
|
* Use multi-line importAndrew M. Kuchling2004-08-311-2/+2
|
* Whitespace normalization.Tim Peters2004-08-291-4/+4
|
* Patch #934711: Expose platform-specific entropy.Martin v. Löwis2004-08-291-0/+21
|
* Feature request #935915: Add os.path.devnull.Martin v. Löwis2004-06-081-2/+4
|
* OS/2 has support for spawnvp() and spawnvpe() in the C libraries suppliedAndrew MacIntyre2004-04-041-2/+5
| | | | | | | with major C compilers (VACPP, EMX+gcc and [Open]Watcom). Also tidy up the export of spawn*() symbols in the os module to match what is found/implemented.
* SF #904720: dict.update should take a 2-tuple sequence like dict.__init_Raymond Hettinger2004-03-041-6/+0
| | | | | | | | (Championed by Bob Ippolito.) The update() method for mappings now accepts all the same argument forms as the dict() constructor. This includes item lists and/or keyword arguments.
* [Bug #829532] Invoking os.makedirs() with an argument that contains aAndrew M. Kuchling2003-12-231-0/+2
| | | | | | | directory name with a single dot fails. The patch skips creating directories named os.curdir. (Patch by Bram Moolenaar) 2.3 bugfix candidate.
* OS/2+EMX: make the link() emulation available as os.link()Andrew MacIntyre2003-12-021-0/+1
|
* SF #764121, docstring for spawnlp incorrectNeal Norwitz2003-07-021-1/+1
|
* Add optional 'onerror' argument to os.walk(), to control errorGuido van Rossum2003-05-131-3/+12
| | | | handling.
* New generator os.walk() does a bit more than os.path.walk() does, andTim Peters2003-04-251-1/+80
| | | | | seems much easier to use. Code, docs, NEWS, and additions to test_os.py (testing this sucker is a bitch!).
* Get rid of many apply() calls.Guido van Rossum2003-02-271-2/+2
|
* Whitespace normalization.Tim Peters2003-02-191-6/+6
|
* Migrate definitions of several platform-dependent path-related variablesSkip Montanaro2003-02-141-57/+16
| | | | into the relevant path modules. See patch #686397.
* Whitespace normalization.Tim Peters2003-01-291-3/+3
|
* SF patch 661583: Remove old code from lib\os.pyTim Peters2003-01-081-10/+8
| | | | | A patch from Andrew Wilkinson to change some bizarre old exec statements specific to NT and CE.
* Always define getenv(), as suggested by Guido. This means that os.getenv() ↵Jack Jansen2003-01-081-5/+5
| | | | is also defined for MacPython-OS9 (even though it doesn't actually do anything useful), and it shouldn't hurt on other platforms.
* Remove more DOS support.Martin v. Löwis2002-10-091-24/+6
|
* Change UserDict to IterableUserDictRaymond Hettinger2002-09-071-1/+1
|