Commit graph

194 commits

Author SHA1 Message Date
Georg Brandl
c5207c8425 Patch #1714700: clarify os.linesep vs. tfiles opened in text mode.
(backport)
2007-05-11 11:04:26 +00:00
Neal Norwitz
6bf8fa66ff Deprecate os.popen* and popen2 module in favor of the subprocess module. (forgot the doc) 2007-05-11 07:13:30 +00:00
Georg Brandl
cae9f3d916 New test for rev. 54407 which only uses directories under TESTFN. 2007-03-21 09:10:29 +00:00
Neal Norwitz
c990f6454f Try backing out 54407 to see if it corrects the problems on the Windows
buildbots.  This rev was backported, so we will need to keep both branches
in sync, pending the outcome of the test after this checkin.
2007-03-20 05:23:09 +00:00
Georg Brandl
5a80ff6111 Add \versionadded tag. 2007-03-16 08:24:21 +00:00
Georg Brandl
8844e438b1 Patch #1273829: os.walk() now has a "followlinks" parameter. If set to
True (which is not the default), it visits symlinks pointing to
directories.
2007-03-16 08:22:40 +00:00
Martin v. Löwis
382abeff0f Patch #1490190: posixmodule now includes os.chflags() and os.lchflags()
functions on platforms where the underlying system calls are available.
2007-02-19 10:55:19 +00:00
Andrew M. Kuchling
d3aad0199e Point users to the subprocess module in the docs for os.system, os.spawn*, os.popen2, and the popen2 and commands modules 2006-10-27 14:53:41 +00:00
Ronald Oussoren
10168f25ad Patch #1580674: with this patch os.readlink uses the filesystem encoding to
decode unicode objects and returns an unicode object when the argument is one.
2006-10-22 10:45:18 +00:00
Skip Montanaro
94785ef142 Correct implementation and documentation of os.confstr. Add a simple test
case.  I've yet to figure out how to provoke a None return I can test.
2006-04-20 01:29:48 +00:00
Georg Brandl
5f284da2d4 Document recent fdopen() change. 2006-04-02 21:18:27 +00:00
Georg Brandl
b88e19c1fc bug #1444104: add note about fdopen() to os.open(). 2006-03-31 19:20:13 +00:00
Neal Norwitz
05a45599d7 Patch #1309579: wait3 and wait4 were added to the posix module by Chad J. Schroeder.
This was a fair amount of rework of the patch.  Refactored test_fork1 so it
could be reused by the new tests for wait3/4.  Also made them into new style
unittests (derive from unittest.TestCase).
2006-03-20 06:30:08 +00:00
Neal Norwitz
7356dcb705 SF #1442767, docs for os.statvfs miss f_bsize parameter. Will backport. 2006-03-03 23:11:42 +00:00
Georg Brandl
f4f4415a18 Patch #1393157: os.startfile() now has an optional argument to specify
a "command verb" to invoke on the file.
2006-02-18 22:29:33 +00:00
Georg Brandl
ffa6f3d942 Another typo. 2006-01-22 20:47:26 +00:00
Georg Brandl
4865e4a56f Correct several typos in libos.tex. Bug #1412227. 2006-01-22 19:34:59 +00:00
Georg Brandl
a635fbbcb0 Remove dots in \version{changed,added} argument and
correct argument order.
2006-01-15 07:55:35 +00:00
Georg Brandl
6bc6ed8b55 Bug #1395597: doc typo 2006-01-02 22:07:06 +00:00
Georg Brandl
852a542279 Bug #1373197: note that os.makedirs does not work with '..' 2005-12-17 17:47:42 +00:00
Georg Brandl
69cb3cde1a Bug #1343671: clarify docs for os.removedirs 2005-12-17 17:31:03 +00:00
Georg Brandl
c1d2f7b6ad Bug #1106572: clarify os.makedirs docs wrt umask 2005-12-17 17:14:12 +00:00
Georg Brandl
e3faaeb1d6 Bug #1357604: os.makedirs handles UNC paths 2005-11-22 20:14:29 +00:00
Georg Brandl
a6ba60232a Add a note to os.chown that permission constants can be combined 2005-11-22 19:15:27 +00:00
Neal Norwitz
94832209d1 SF bug #1328915, try to word kill a bit more generically. Backport candidate. 2005-10-18 05:07:49 +00:00
Neal Norwitz
7ecbc19e09 SF Bug #1008310, os.major() os.minor() example and description change. Will backport. 2005-10-03 05:47:38 +00:00
Neal Norwitz
92ff693eb1 Fix SF bug #991735, os.access reports true for read-only directories. Will backport 2005-10-03 05:13:46 +00:00
Andrew M. Kuchling
e1a385ab40 Explain what file descriptors are; this change has been sitting in my tree for a while 2005-08-31 13:50:17 +00:00
Fred Drake
9f3ae3e69d fix minor markup errors 2005-08-09 15:24:05 +00:00
Martin v. Löwis
ebd9d5ba1a Patch #1180695: Implement nanosecond stat resolution on FreeBSD,
add st_gen, st_birthtime.
2005-08-09 15:00:59 +00:00
Georg Brandl
2d8cc618db [ 755617 ] os module: Need a better description of "mode" 2005-07-18 08:16:33 +00:00
Georg Brandl
b37b8eca88 bug [ 872769 ] os.access() documentation should stress race conditions 2005-07-17 21:10:11 +00:00
Fred Drake
3e3b699adf add note that os.EX_* constants are subject to availability on the host
platform
2005-06-27 23:23:43 +00:00
Georg Brandl
6df3fd3790 bug [ 1186072 ] tempnam doc doesn't include link to tmpfile 2005-06-25 20:44:10 +00:00
Georg Brandl
03dbb4f50d Bug [ 1190563 ] os.waitpid docs don't specify return value for WNOHANG 2005-06-25 19:55:04 +00:00
Georg Brandl
0929b7e5f7 Patch [ 1213031 ] note that os.chown can have -1 as an argument 2005-06-25 18:52:24 +00:00
Georg Brandl
3da85ec682 correcting duplicate TeX markup 2005-06-25 18:46:09 +00:00
Georg Brandl
837a9769c9 Bug [ 1225705 ] os.environ documentation should mention unsetenv 2005-06-25 18:44:49 +00:00
Georg Brandl
debd3710b6 Clarify docs about os.popen[234]. 2005-06-10 19:55:35 +00:00
Hye-Shik Chang
5f937a7b8b Patch #1212117: Add optional attribute st_flags to os.stat_result
when the member is available on the platform. (Contributed by
Diego Petteno)
2005-06-02 13:09:30 +00:00
Skip Montanaro
5ff1492720 Add O_SHLOCK & O_EXLOCK. Closes patch #1103951. 2005-05-16 02:42:22 +00:00
Brett Cannon
7706c2da14 Update references specifying "Macintosh" to mean OS X semantics and not Mac OS
9.

Applies patch #1095802.  Thanks Jack Jansen.
2005-02-13 22:50:04 +00:00
Martin v. Löwis
4d394dfebb Truncate st_?time before comparing it with ST_?TIME in the tests. 2005-01-23 09:19:22 +00:00
Fred Drake
b184ae860e fix a bunch of spelling errors
(closes SF patch #1104868)
2005-01-19 03:39:17 +00:00
Martin v. Löwis
fe33d0ba87 Default stat_float_times to true. 2005-01-16 08:57:39 +00:00
Martin v. Löwis
22b457e03b Added SEEK_* constants. Fixes #711830. 2005-01-16 08:40:58 +00:00
Facundo Batista
bccc9a956a Added example to os.stat() 2005-01-07 02:50:22 +00:00
Walter Dörwald
3fa932f7ed Fix typo (from SF bug #1086127). 2004-12-15 23:44:18 +00:00
Tim Peters
7f13cfa674 os.walk(): Changed the "sum of bytes consumed by files" example to use
a generator expression instead of a listcomp.

Not a backport candidate (genexps are new in 2.4).
2004-11-22 16:53:46 +00:00
Tim Peters
919a3b40f9 SF bug 1071087: os.walk example for deleting a full tree is sometime wrong.
Clarify that the example assumes no links are present; the point of the
example is to illustrate a need for topdown=False, not to wrestle with
platform-dependent link convolutions.

Also spell os.path.join() out in full, instead of using a shortcut import.
The bug reporter was confused by that too, and it's clearer this way.

Bugfix candidate; but I don't intend to backport it.
2004-11-22 16:49:02 +00:00