| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
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()}).
|
|
|
|
| |
uninitialized.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
(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.
|
|
|
|
|
|
|
| |
directory name with a single dot fails. The patch skips creating
directories named os.curdir. (Patch by Bram Moolenaar)
2.3 bugfix candidate.
|
| |
|
| |
|
|
|
|
| |
handling.
|
|
|
|
|
| |
seems much easier to use. Code, docs, NEWS, and additions to test_os.py
(testing this sucker is a bitch!).
|
| |
|
| |
|
|
|
|
| |
into the relevant path modules. See patch #686397.
|
| |
|
|
|
|
|
| |
A patch from Andrew Wilkinson to change some bizarre old exec statements
specific to NT and CE.
|
|
|
|
| |
is also defined for MacPython-OS9 (even though it doesn't actually do anything useful), and it shouldn't hurt on other platforms.
|
| |
|
| |
|
|
|
|
| |
Closes SF bug 605731.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.)
|
|
|
|
| |
don't include a " -> None" for functions that have no return value.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
[ 530236 ] os.py assumes existence of statvfs_resul
This was pretty dense of me. Sorry.
2.2.1 candidate.
|
|
|
|
|
|
|
|
| |
(the types come from different modules on different platforms).
Added tests for pickling these types.
May be a bugfix candidate.
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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?)
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Fixed a typo in a docstring.
|
|
|
|
| |
(This avoids defining non-working versions of these on the Mac.)
|
| |
|
|
|
|
|
|
| |
split so the logic does not fail in corner cases.
This closes bug #407.
|
|
|
|
|
|
|
|
|
|
| |
comments, docstrings or error messages. I fixed two minor things in
test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't").
There is a minor style issue involved: Guido seems to have preferred English
grammar (behaviour, honour) in a couple places. This patch changes that to
American, which is the more prominent style in the source. I prefer English
myself, so if English is preferred, I'd be happy to supply a patch myself ;)
|
|
|
|
|
| |
an empty argument list -- another patch he's checking in will make
this illegal (the first argument should always be the program name).
|