Guido van Rossum
61de0ac4bb
Reindented according to new standard, without tabs.
...
Also added one more os2 specific piece of code, by Jeff Rush.
1997-12-05 21:24:30 +00:00
Barry Warsaw
58a88b3e34
_Environ(): Added __getinitargs__() method so os.environ.copy() works,
...
as does unpickling, as in: pickle.loads(pickle.dumps(os.environ)).
Hope this is right! Don't shoot me Guido. :-)
1997-12-01 04:30:19 +00:00
Guido van Rossum
8e9ebfd337
os2 patch by Jeff Rush
1997-11-22 21:53:48 +00:00
Guido van Rossum
a28dab5ea2
Write out the dynamic OS choice, to avoid exec statements.
...
Adding support for a new OS is now a bit more work, but I bet that
'dos' or 'nt' will cover most situations...
1997-08-29 22:36:47 +00:00
Guido van Rossum
3b8e20d2c2
Added hook to os.environ to call putenv(), if it exists.
1996-07-24 00:55:17 +00:00
Guido van Rossum
b7677095d4
make sure os.environ exists (maybe empty)
1995-08-07 20:15:23 +00:00
Guido van Rossum
4c7fa4b774
set mac path separator to newline
1995-03-14 17:53:54 +00:00
Guido van Rossum
030afb1d3a
add execvpe -- mix of execvp and execve
1995-03-14 17:27:18 +00:00
Guido van Rossum
ca9321e6d0
Import posixpath for freeze script
1994-10-05 15:17:55 +00:00
Guido van Rossum
a28f2dc321
do fake "import posix" for freeze.py script
1994-08-17 12:33:28 +00:00
Guido van Rossum
2979b01ff8
Merge changes
1994-08-01 11:18:30 +00:00
Guido van Rossum
dd8cb446e1
Some minute changes.
1993-12-29 15:33:08 +00:00
Guido van Rossum
e65cce5eec
* string.py: added rindex(), rfind(); changed index() to interpret
...
negative start indices starting from the right.
* ftplib.py: debug() -> set_debuglevel(); change demo to use __init__().
* os.py: added execl, execlp, and execvp.
* lambda.py: removed (now that we have built-in map, reduce, bagof, lambda)
* test_b{1,2}.py, testall.out: added tests for bagof, lambda, map, reduce
* commands.py: use os, not posix
* test_grammar.py: make it easy to disable non-portable int overflow tests
* dis.py: don't abuse range()
1993-11-08 15:05:21 +00:00
Guido van Rossum
35fb82a33f
* os.py: _exit doesn't exist in all variations of posix
...
* Added fcmp() to test_support.py and use it in test*.py
1993-01-26 13:04:43 +00:00
Guido van Rossum
7a461e5aaf
New module regsub contains sub(), gsub() and split() as in nawk.
...
string.splitfields(s, '') now returns [s] as split() in nawk.
Added _exit to exported functions of os.
1992-09-20 21:41:09 +00:00
Guido van Rossum
b59cdd4356
Add separator
1992-04-06 14:03:45 +00:00
Guido van Rossum
1a76ef260d
Added definition for pardir ('..')
1992-03-31 18:57:28 +00:00
Guido van Rossum
31104f4624
Initial revision
1992-01-14 18:28:36 +00:00