Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | SF#1343671. | Fredrik Lundh | 2005-11-12 | 1 | -1/+1 |
| | | | | | The removedirs function removes empty directories, it doesn't empty them. | ||||
* | bug #1177468: don't cache /dev/urandom file descriptor in os.urandom | Georg Brandl | 2005-07-04 | 1 | -8/+4 |
| | |||||
* | Avoid using items() in environ.update(). Fixes #1124513. | Martin v. Löwis | 2005-02-17 | 1 | -8/+18 |
| | | | | Will backport to 2.4. | ||||
* | Revert os.py 1.75, and directly implement update. | Martin v. Löwis | 2005-01-29 | 1 | -0/+22 |
| | | | | Fixes #1110478 and #1100235. | ||||
* | Added SEEK_* constants. Fixes #711830. | Martin v. Löwis | 2005-01-16 | 1 | -1/+8 |
| | |||||
* | Document that on Unix, the 'cmd' argument to the os.popen2/3/4 and | Johannes Gijsbers | 2004-10-11 | 1 | -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 is | Martin v. Löwis | 2004-09-18 | 1 | -1/+1 |
| | | | | uninitialized. | ||||
* | Whitespace normalization. | Tim Peters | 2004-09-01 | 1 | -1/+1 |
| | |||||
* | Use multi-line import | Andrew M. Kuchling | 2004-08-31 | 1 | -2/+2 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2004-08-29 | 1 | -4/+4 |
| | |||||
* | Patch #934711: Expose platform-specific entropy. | Martin v. Löwis | 2004-08-29 | 1 | -0/+21 |
| | |||||
* | Feature request #935915: Add os.path.devnull. | Martin v. Löwis | 2004-06-08 | 1 | -2/+4 |
| | |||||
* | OS/2 has support for spawnvp() and spawnvpe() in the C libraries supplied | Andrew MacIntyre | 2004-04-04 | 1 | -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 Hettinger | 2004-03-04 | 1 | -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 a | Andrew M. Kuchling | 2003-12-23 | 1 | -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 MacIntyre | 2003-12-02 | 1 | -0/+1 |
| | |||||
* | SF #764121, docstring for spawnlp incorrect | Neal Norwitz | 2003-07-02 | 1 | -1/+1 |
| | |||||
* | Add optional 'onerror' argument to os.walk(), to control error | Guido van Rossum | 2003-05-13 | 1 | -3/+12 |
| | | | | handling. | ||||
* | New generator os.walk() does a bit more than os.path.walk() does, and | Tim Peters | 2003-04-25 | 1 | -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 Rossum | 2003-02-27 | 1 | -2/+2 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2003-02-19 | 1 | -6/+6 |
| | |||||
* | Migrate definitions of several platform-dependent path-related variables | Skip Montanaro | 2003-02-14 | 1 | -57/+16 |
| | | | | into the relevant path modules. See patch #686397. | ||||
* | Whitespace normalization. | Tim Peters | 2003-01-29 | 1 | -3/+3 |
| | |||||
* | SF patch 661583: Remove old code from lib\os.py | Tim Peters | 2003-01-08 | 1 | -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 Jansen | 2003-01-08 | 1 | -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öwis | 2002-10-09 | 1 | -24/+6 |
| | |||||
* | Change UserDict to IterableUserDict | Raymond Hettinger | 2002-09-07 | 1 | -1/+1 |
| | |||||
* | Have os.environ() inherit from the iterable version of UserDict. | Raymond Hettinger | 2002-09-06 | 1 | -1/+1 |
| | | | | Closes SF bug 605731. | ||||
* | Fix for SF bug 601077 by Zack Weinberg. | Guido van Rossum | 2002-09-03 | 1 | -5/+12 |
| | | | | | | | | The new execvpe code would sometimes do the wrong thing when a non-executable file existed earlier in the path and an executable file of the same name existed later in the path. This patch restores the proper behavior (which is to execute the second file). When only a non-executable file exists, the correct error is still reported. | ||||
* | SF patch 590294: os._execvpe security fix (Zack Weinberg). | Guido van Rossum | 2002-08-05 | 1 | -21/+6 |
| | | | | | | | | | | | | | | 1) Do not attempt to exec a file which does not exist just to find out what error the operating system returns. This is an exploitable race on all platforms that support symbolic links. 2) Immediately re-raise the exception if we get an error other than errno.ENOENT or errno.ENOTDIR. This may need to be adapted for other platforms. (As a security issue, this should be considered for 2.1 and 2.2 as well as 2.3.) | ||||
* | Be consistent with the functions in the posix/nt module: docstrings | Fred Drake | 2002-07-02 | 1 | -3/+3 |
| | | | | don't include a " -> None" for functions that have no return value. | ||||
* | SF 563203. Replaced 'has_key()' with 'in'. | Raymond Hettinger | 2002-06-01 | 1 | -2/+4 |
| | |||||
* | Patch 550804: Make os.environ.copy() return a copy. | Martin v. Löwis | 2002-05-02 | 1 | -0/+4 |
| | |||||
* | Convert a pile of obvious "yes/no" functions to return bool. | Tim Peters | 2002-04-04 | 1 | -2/+2 |
| | |||||
* | .... | Michael W. Hudson | 2002-03-15 | 1 | -1/+1 |
| | |||||
* | Fix | Michael W. Hudson | 2002-03-15 | 1 | -2/+9 |
| | | | | | | | | [ 530236 ] os.py assumes existence of statvfs_resul This was pretty dense of me. Sorry. 2.2.1 candidate. | ||||
* | Special support for pickling os.stat and os.stat_vfs results portably | Michael W. Hudson | 2002-03-06 | 1 | -0/+20 |
| | | | | | | | | (the types come from different modules on different platforms). Added tests for pickling these types. May be a bugfix candidate. | ||||
* | OS/2 EMX port Library and regression test changes: | Andrew MacIntyre | 2002-02-24 | 1 | -4/+15 |
| | | | | | | | | | | | Lib/ os.py os2emxpath.py // added - OS/2 EMX specific path manipulation routines popen2.py site.py Lib/test/ test_fcntl.py test_longexp.py | ||||
* | Whitespace normalization. | Tim Peters | 2001-10-30 | 1 | -2/+2 |
| | |||||
* | SF patch #474590 -- RISC OS support | Guido van Rossum | 2001-10-24 | 1 | -0/+7 |
| | |||||
* | SF patch #460805 by Chris Gonnerman: Support for unsetenv() | Guido van Rossum | 2001-10-19 | 1 | -2/+26 |
| | | | | | | | | This adds unsetenv to posix, and uses it in the __delitem__ method of os.environ. (XXX Should we change the preferred name for putenv to setenv, for consistency?) | ||||
* | Unify _Environ processing on riscos with other platforms. | Martin v. Löwis | 2001-03-07 | 1 | -11/+12 |
| | |||||
* | fix typo in extending __all__ for riscos platform - closes bug 406296 | Skip Montanaro | 2001-03-06 | 1 | -1/+1 |
| | |||||
* | Use r""" instead of """ for the docstring so that backslashes are preserved. | Ka-Ping Yee | 2001-03-02 | 1 | -1/+1 |
| | |||||
* | Fix by Donn Cave for BeOS (SF #403642): | Guido van Rossum | 2001-03-02 | 1 | -4/+13 |
| | | | | | | | | | | | | | | UNIX style fork/execve/wait are not fully compatible with thread support on BeOS. For Python, that means neither fork() from import nor import from a fork work reliably. os._execvpe() does the latter, importing tempfile to set up a tantalizing target for hackers. This patch replaces both the tempfile name generation and the exec that uses it, in case we're on BeOS. Need this for setup:distutils:execvp(); symptoms are random crashes and internal BeOS error messages about th name, in case we're on BeOS. It's an issue because setup.py + distutils calls os.execvp(); symptoms are random crashes during setup.py, and internal BeOS error messages about thread IDs. | ||||
* | RISCOS changes by dschwertberger. | Guido van Rossum | 2001-03-02 | 1 | -15/+35 |
| | |||||
* | added some elements missing from __all__ | Skip Montanaro | 2001-02-28 | 1 | -1/+2 |
| | |||||
* | added several more __all__ lists | Skip Montanaro | 2001-02-06 | 1 | -0/+56 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2001-01-15 | 1 | -3/+3 |
| | |||||
* | popen4(): Added for Unix. | Fred Drake | 2000-09-28 | 1 | -3/+7 |
| | | | | Fixed a typo in a docstring. |