Commit Graph

185 Commits

Author SHA1 Message Date
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
Tim Peters 2cf5e1920b Point out some platform vagaries in stat() and utime().
Bugfix candidate (the vagaries aren't new <wink>), but I don't intend to
backport this.
2004-11-04 21:27:48 +00:00
Johannes Gijsbers 9fc9789a0d Document that on Unix, the 'cmd' argument to the os.popen2/3/4 and
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()}).
2004-10-11 18:12:20 +00:00
Armin Rigo b6aa856f25 Patch #1009075, bug #952953: allow execve with empty 2nd argument 2004-09-27 19:54:33 +00:00
Martin v. Löwis dc3883f671 Patch #934711: Expose platform-specific entropy. 2004-08-29 15:46:35 +00:00
Tim Peters d6ef19309d SF bugs 996748: os.environ documentation should indicate unreliability
Clarifed that os.environ is captured once; emphasized that it's better
to assign to os.environ than to call putenv() directly (the putenv()
docs said so, but the environ docs didn't).
2004-07-26 00:42:41 +00:00
Neal Norwitz 76aa2eff4e Get doc to build (add missing backslash) 2004-07-19 01:39:54 +00:00
Tim Peters de8332171a SF bug 990749: os constants missing
A LaTeX comment identified the 6 os.O_XXX constants the docs claimed
are available on Windows but aren't.  The bug report listed the same 6.
Split these non-Windows constants into a different table with a possibly
correct "Availability:" claim.
2004-07-15 05:46:37 +00:00
Martin v. Löwis bdec50f027 Feature request #935915: Add os.path.devnull. 2004-06-08 08:29:33 +00:00
Andrew M. Kuchling e1ca355425 [Bug #918710] Add paragraph to clarify docs 2004-06-05 19:25:30 +00:00