summaryrefslogtreecommitdiffstats
path: root/Doc/library/os.rst
Commit message (Collapse)AuthorAgeFilesLines
* Issue #24617: Add comment for os.mkdir about mode quirksTommy Beadle2016-06-021-4/+13
|
* Issue #25461: Rephrase os.walk() docVictor Stinner2015-10-231-3/+3
| | | | Patch written by Bernt Røskar Brenna.
* getuid() returns real process id not effective (closes #22307)Benjamin Peterson2014-08-311-4/+4
|
* Issue #21875: Remove vestigial references to Classic Mac OS in os module docs.Ned Deily2014-06-271-9/+2
|
* clarify when the list of subdirectories is read (closes #13779)Benjamin Peterson2014-06-161-3/+5
|
* specify that getuid() returns the real uid (closes #10503)Benjamin Peterson2014-06-071-1/+1
| | | | Patch by εσχατοκυριος.
* when an exception is raised in fdopen, never close the fd (changing on my ↵Benjamin Peterson2014-04-141-1/+1
| | | | mind on #21191)
* make sure fdopen always closes the fd in error cases (closes #21191)Benjamin Peterson2014-04-091-2/+3
|
* Fix note markup (#16805).Éric Araujo2014-03-121-1/+3
| | | | Patch by Tshepang Lekhonkhobe, reviewed by Georg Brandl.
* #13530: port to 2.7 branch (document what os.lseek returns).Georg Brandl2014-03-111-1/+1
|
* Issue #18747: document issue with OpenSSL's CPRNG state and forkChristian Heimes2013-10-291-0/+4
|
* Issue #19207: Improved cross-references in the os, os.path, and posix modulesSerhiy Storchaka2013-10-131-20/+22
| | | | documentation.
* Closes #15213: update comment for _PyOS_URandomGeorg Brandl2013-10-061-2/+3
|
* Closes #12350: clarify blocks/block size members of stat result.Georg Brandl2013-10-061-2/+2
|
* os.isatty is not Unix only. Correct the wrong documentation.Senthil Kumaran2013-09-071-2/+0
| | | | Addresses issue #18553
* #16530: the "options" arg of os.wait3 is required.Ezio Melotti2012-11-231-1/+1
|
* Backport from 3.2: link to mapping glossary entry in docs.Chris Jerdonek2012-11-031-1/+1
|
* Issue #15936: Reformat text for os.random to follow Larry Hastings suggestionAndrew Svetlov2012-10-161-2/+2
|
* Issue #15936: Add link from os.urandom to random.SystemRandomAndrew Svetlov2012-10-161-1/+3
|
* Restore [] where default arguments are not keywordsHynek Schlawack2012-05-221-1/+1
| | | | | | | | Reverts some changes of a36666c52115. In the case of os's `mknod(filename[, mode=0600[, device=0]])`, I have nested the [] as setting mode doesn't require to set device (but setting device requires to set mode).
* #14804: Remove [] around optional arguments with default valuesHynek Schlawack2012-05-221-2/+2
| | | | | Mostly just mechanical removal of []. In some rare cases I've pulled the default value up into the argument list.
* Issue #10433: Document unique behavior of 'os.getgroups' on Mac OS X.Ned Deily2012-04-301-0/+18
|
* update to new C roles and directivesSandro Tosi2012-01-141-23/+23
|
* #13233: fix typo.Ezio Melotti2011-10-201-1/+1
|
* #12277: add missing comma.Ezio Melotti2011-10-181-1/+1
|
* Issue #6476: Document that os.spawnle and os.spawnve are not thread-safe ↵Antoine Pitrou2011-07-181-1/+3
| | | | under Windows.
* Issue #12326: document the recommended idiom for checking sys.platform on ↵Antoine Pitrou2011-07-091-0/+7
| | | | | | Unix systems. Also, point to the various alternatives.
* Issue #12423: Fix os.abort() documentationVictor Stinner2011-07-081-2/+3
| | | | | The Python signal handler for SIGABRT is not called on os.abort() (only if the signal is raised manually or sent by another process). Patch by Kamil Kisiel.
* Fix closes issue10403 - Let's not use members anymore.Senthil Kumaran2011-07-041-5/+6
|
* Issue #8746: Correct faulty configure checks so that os.chflags() andNed Deily2011-06-281-0/+2
| | | | | | | os.lchflags() are once again built on systems that support these functions (*BSD and OS X). Also add new stat file flags for OS X (UF_HIDDEN and UF_COMPRESSED). Also add additional tests for os.chflags() and os.lchflags(). (Tests by Garrett Cooper)
* this should actually be an IOErrorBenjamin Peterson2011-05-201-1/+1
|
* add example for not using accessBenjamin Peterson2011-05-201-1/+20
|
* #10999: Add missing documentation for chflags constants to stat module docsR David Murray2011-03-101-10/+10
| | | | Patch by Michal Nowikowski.
* Fix markup problems.Georg Brandl2011-02-121-3/+3
|
* Merged revisions ↵R. David Murray2011-02-111-39/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 86542,87136,87216,87221,87228,87256,87337-87338,87372,87516,87571,88164 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86542 | r.david.murray | 2010-11-19 22:48:58 -0500 (Fri, 19 Nov 2010) | 2 lines Make test class name unique so that both test classes run. ........ r87136 | r.david.murray | 2010-12-08 17:53:00 -0500 (Wed, 08 Dec 2010) | 6 lines Have script_helper._assert_python strip refcount strings from stderr. This makes the output of the function and those that depend on it independent of whether or not they are being run under a debug build. ........ r87216 | r.david.murray | 2010-12-13 17:50:30 -0500 (Mon, 13 Dec 2010) | 2 lines #10698: fix typo in example. ........ r87221 | r.david.murray | 2010-12-13 19:55:46 -0500 (Mon, 13 Dec 2010) | 4 lines #10699: fix docstring for tzset: it does not take a parameter Thanks to Garrett Cooper for the fix. ........ r87228 | r.david.murray | 2010-12-13 21:25:43 -0500 (Mon, 13 Dec 2010) | 2 lines Turn on regrtest -W (rerun immediately) option for Windows, too. ........ r87256 | r.david.murray | 2010-12-14 21:19:14 -0500 (Tue, 14 Dec 2010) | 2 lines #10705: document what the values of debuglevel are and mean. ........ r87337 | r.david.murray | 2010-12-17 11:11:40 -0500 (Fri, 17 Dec 2010) | 2 lines #10559: provide instructions for accessing sys.argv when first mentioned. ........ r87338 | r.david.murray | 2010-12-17 11:29:07 -0500 (Fri, 17 Dec 2010) | 2 lines #10454: clarify the compileall docs and help messages. [changes to compileall.py were not backported, only the doc changes] ........ r87372 | r.david.murray | 2010-12-18 11:39:06 -0500 (Sat, 18 Dec 2010) | 2 lines #10728: the default for printing help is sys.stdout, not stderr. ........ r87516 | r.david.murray | 2010-12-27 15:09:32 -0500 (Mon, 27 Dec 2010) | 5 lines #7056: runtest and runtest_inner don't use testdir, so drop it from their sigs I've only tested regular runs and -j runs. If I've broken anything else I'm sure I'll hear about it sooner or later. ........ r87571 | r.david.murray | 2010-12-29 14:06:48 -0500 (Wed, 29 Dec 2010) | 2 lines Fix same typo in docs. ........ r88164 | r.david.murray | 2011-01-24 14:34:58 -0500 (Mon, 24 Jan 2011) | 12 lines #10960: fix 'stat' links, link to lstat from stat, general tidy of stat doc. Original patch by Michal Nowikowski, with some additions and wording fixes by me. I changed the wording from 'Performs a stat system call' to 'Performs the equivalent of a stat system call', since on Windows there are no stat/lstat system calls involved. I also extended Michal's breakout of the attributes into a list to the other paragraphs, and rearranged the order of the paragraphs in the 'stat' docs to make it flow better and put it in what I think is a more logical/useful order. ........
* Merged revisions 86892 via svnmerge fromÉric Araujo2010-11-301-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86892 | eric.araujo | 2010-11-30 18:20:31 +0100 (mar., 30 nov. 2010) | 2 lines Let’s keep “throw” for the generator method and use “raise” elsewhere. ........
* Merged revisions ↵Georg Brandl2010-11-261-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 85617-85622,85624,85626-85627,85629,85631,85635-85636,85638-85639,85641-85642 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85617 | georg.brandl | 2010-10-17 12:09:06 +0200 (So, 17 Okt 2010) | 1 line #5212: md5 weaknesses do not affect hmac, so remove the note about that. ........ r85618 | georg.brandl | 2010-10-17 12:14:38 +0200 (So, 17 Okt 2010) | 1 line #9086: correct wrong terminology about linking with pythonXY.dll. ........ r85619 | georg.brandl | 2010-10-17 12:15:50 +0200 (So, 17 Okt 2010) | 1 line Make file names consistent. ........ r85620 | georg.brandl | 2010-10-17 12:22:28 +0200 (So, 17 Okt 2010) | 1 line Remove second parser module example; it referred to non-readily-available example files, and this kind of discovery is much better done with the AST nowadays anyway. ........ r85621 | georg.brandl | 2010-10-17 12:24:54 +0200 (So, 17 Okt 2010) | 1 line #9105: move pickle warning to a bit more prominent location. ........ r85622 | georg.brandl | 2010-10-17 12:28:04 +0200 (So, 17 Okt 2010) | 1 line #9112: document error() and exit() methods of ArgumentParser. ........ r85624 | georg.brandl | 2010-10-17 12:34:28 +0200 (So, 17 Okt 2010) | 1 line Some markup and style fixes in argparse docs. ........ r85626 | georg.brandl | 2010-10-17 12:38:20 +0200 (So, 17 Okt 2010) | 1 line #9117: fix syntax for class definition. ........ r85627 | georg.brandl | 2010-10-17 12:44:11 +0200 (So, 17 Okt 2010) | 1 line #9138: reword introduction to classes in Python. ........ r85629 | georg.brandl | 2010-10-17 12:51:45 +0200 (So, 17 Okt 2010) | 1 line #5962: clarify sys.exit() vs. threads. ........ r85631 | georg.brandl | 2010-10-17 12:53:54 +0200 (So, 17 Okt 2010) | 1 line Fix capitalization. ........ r85635 | georg.brandl | 2010-10-17 13:03:22 +0200 (So, 17 Okt 2010) | 1 line #5121: fix claims about default values leading to segfaults. ........ r85636 | georg.brandl | 2010-10-17 13:06:14 +0200 (So, 17 Okt 2010) | 1 line #9237: document sys.call_tracing(). ........ r85638 | georg.brandl | 2010-10-17 13:13:37 +0200 (So, 17 Okt 2010) | 1 line Port changes to pickle docs apparently lost in py3k. ........ r85639 | georg.brandl | 2010-10-17 13:23:56 +0200 (So, 17 Okt 2010) | 1 line Make twisted example a bit more logical. ........ r85641 | georg.brandl | 2010-10-17 13:29:07 +0200 (So, 17 Okt 2010) | 1 line Fix documentation of dis.opmap direction. ........ r85642 | georg.brandl | 2010-10-17 13:36:28 +0200 (So, 17 Okt 2010) | 1 line #9730: fix example. ........
* Merged revisions 84945 via svnmerge fromGeorg Brandl2010-10-061-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84945 | georg.brandl | 2010-09-21 16:48:28 +0200 (Di, 21 Sep 2010) | 1 line #9911: doc copyedits. ........
* Merged revisions ↵Georg Brandl2010-10-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 82798,82805,83659,83977,84015,84018,84141,84264,84326-84327,84480,84482,84484,84530-84531,84553,84619,84915-84916 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r82798 | georg.brandl | 2010-07-11 11:23:11 +0200 (So, 11 Jul 2010) | 1 line #6774: explain shutdown() behavior varying with platform. ........ r82805 | georg.brandl | 2010-07-11 11:42:10 +0200 (So, 11 Jul 2010) | 1 line #7935: cross-reference to ast.literal_eval() from eval() docs. ........ r83659 | georg.brandl | 2010-08-03 14:06:29 +0200 (Di, 03 Aug 2010) | 1 line Terminology fix: exceptions are raised, except in generator.throw(). ........ r83977 | georg.brandl | 2010-08-13 17:10:49 +0200 (Fr, 13 Aug 2010) | 1 line Fix copy-paste error. ........ r84015 | georg.brandl | 2010-08-14 17:44:34 +0200 (Sa, 14 Aug 2010) | 1 line Add some maintainers. ........ r84018 | georg.brandl | 2010-08-14 17:48:49 +0200 (Sa, 14 Aug 2010) | 1 line Typo fix. ........ r84141 | georg.brandl | 2010-08-17 16:11:59 +0200 (Di, 17 Aug 2010) | 1 line Markup nits. ........ r84264 | georg.brandl | 2010-08-22 22:23:38 +0200 (So, 22 Aug 2010) | 1 line #9649: fix default value description. ........ r84326 | georg.brandl | 2010-08-26 16:30:15 +0200 (Do, 26 Aug 2010) | 1 line #9689: add links from overview to in-depth class API descriptions. ........ r84327 | georg.brandl | 2010-08-26 16:30:56 +0200 (Do, 26 Aug 2010) | 1 line #9681: typo. ........ r84480 | georg.brandl | 2010-09-04 00:33:27 +0200 (Sa, 04 Sep 2010) | 1 line More inclusive title. ........ r84482 | georg.brandl | 2010-09-04 00:40:02 +0200 (Sa, 04 Sep 2010) | 1 line #9760: clarify what context expression is. ........ r84484 | georg.brandl | 2010-09-04 00:49:27 +0200 (Sa, 04 Sep 2010) | 1 line Fix missing word. ........ r84530 | georg.brandl | 2010-09-05 19:07:12 +0200 (So, 05 Sep 2010) | 1 line #9747: fix copy-paste error in getresgid() doc. ........ r84531 | georg.brandl | 2010-09-05 19:09:18 +0200 (So, 05 Sep 2010) | 1 line #9776: fix some spacing. ........ r84553 | georg.brandl | 2010-09-06 08:49:07 +0200 (Mo, 06 Sep 2010) | 1 line #9780: both { and } are not valid fill characters. ........ r84619 | georg.brandl | 2010-09-08 12:43:45 +0200 (Mi, 08 Sep 2010) | 1 line Add Lukasz. ........ r84915 | georg.brandl | 2010-09-20 08:27:02 +0200 (Mo, 20 Sep 2010) | 1 line Fix typo. ........ r84916 | georg.brandl | 2010-09-20 08:29:01 +0200 (Mo, 20 Sep 2010) | 1 line Mention % as string formatting. ........
* Merged revisions 83163 via svnmerge fromAndrew M. Kuchling2010-07-261-2/+3
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83163 | andrew.kuchling | 2010-07-26 09:08:58 -0400 (Mon, 26 Jul 2010) | 1 line Reword paragraph ........
* Merged revisions 82849 via svnmerge fromJeroen Ruigrok van der Werven2010-07-131-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r82849 | jeroen.ruigrok | 2010-07-13 16:47:01 +0200 (di, 13 jul 2010) | 2 lines Fix documentation typo: wprite() -> write(). ........
* Document that an existing directory raises in mkdir().Georg Brandl2010-06-121-1/+2
|
* #8709: mention Windows support for os.devnull.Georg Brandl2010-05-211-2/+2
|
* ensure that availability information is on its own line at the end of the ↵Benjamin Peterson2010-05-061-133/+341
| | | | function docs
* In a number of places code still reversRonald Oussoren2010-05-051-1/+1
| | | | | | | | | to "sys.platform == 'mac'" and that is dead code because it refers to a platform that is no longer supported (and hasn't been supported for several releases). Fixes issue #7908 for the trunk.
* Add version info for os.kill and signal changes from #1220212.Brian Curtin2010-04-201-0/+2
|
* #8399: add note about Windows and O_BINARY.Georg Brandl2010-04-141-1/+2
|
* Add an x-ref to where the O_ constants are documented and move the SEEK_ ↵Georg Brandl2010-04-141-11/+17
| | | | constants after lseek().
* Implement #1220212. Add os.kill support for Windows.Brian Curtin2010-04-021-1/+8
| | | | | | | | | | | | | | os.kill takes one of two newly added signals, CTRL_C_EVENT and CTRL_BREAK_EVENT, or any integer value. The events are a special case which work with subprocess console applications which implement a special console control handler. Any other value but those two will cause os.kill to use TerminateProcess, outright killing the process. This change adds win_console_handler.py, which is a script to implement SetConsoleCtrlHandler and applicable handler function, using ctypes. subprocess also gets another attribute which is a necessary flag to creationflags in Popen in order to send the CTRL events.
* #2768: add a note on how to get a file descriptor.Georg Brandl2010-04-021-0/+4
|