Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-57179: Add note on symlinks for os.walk (#94799) | Stanley | 2022-10-07 | 1 | -1/+2 |
| | |||||
* | gh-87901: Remove the encoding argument from os.popen (GH-92836) | Inada Naoki | 2022-05-19 | 1 | -3/+2 |
| | |||||
* | gh-87901: Add encoding to os.popen (GH-92374) | Inada Naoki | 2022-05-06 | 1 | -1/+2 |
| | |||||
* | Fix missing spaces in os.walk example (GH-29918) | 辰冢 | 2022-02-18 | 1 | -2/+2 |
| | |||||
* | bpo-42053: Remove misleading check in os.fwalk() (GH-27669) | Serhiy Storchaka | 2021-08-08 | 1 | -2/+1 |
| | | | | os.fwalk() does not support integer as the first argument, and never supported. | ||||
* | bpo-44631: Make the repr() of the _Environ class more readable. (#27128) | Leonardo Freua | 2021-07-20 | 1 | -3/+5 |
| | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> | ||||
* | bpo-43651: Fix EncodingWarning in `os.fdopen()` and test_os (GH-25654) | Inada Naoki | 2021-04-29 | 1 | -4/+4 |
| | |||||
* | bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25145) | Inada Naoki | 2021-04-04 | 1 | -2/+4 |
| | | | | | | | | | | | | | | | | | | | * test_asyncio * test_bz2 * test_math * test_cmath * test_cmd_line * test_cmd_line_script * test_compile * test_contextlib * test_profile * ctypes/test/test_find * test_multiprocessing * test_configparser * test_csv * test_dbm_dumb * test_decimal * test_difflib * os.fdopen() calls io.text_encoding() to emit EncodingWarning for right place. | ||||
* | bpo-31904: Disable os.popen and popen test cases on VxWorks (GH-21687) | pxinwr | 2020-12-15 | 1 | -45/+49 |
| | |||||
* | bpo-39481: Implementation for PEP 585 (#18239) | Guido van Rossum | 2020-04-07 | 1 | -2/+3 |
| | | | | | | | | | | | | This implements things like `list[int]`, which returns an object of type `types.GenericAlias`. This object mostly acts as a proxy for `list`, but has attributes `__origin__` and `__args__` that allow recovering the parts (with values `list` and `(int,)`. There is also an approximate notion of type variables; e.g. `list[T]` has a `__parameters__` attribute equal to `(T,)`. Type variables are objects of type `typing.TypeVar`. | ||||
* | bpo-40094: Add os.waitstatus_to_exitcode() (GH-19201) | Victor Stinner | 2020-04-01 | 1 | -6/+2 |
| | | | | | | | | | | | | | | Add os.waitstatus_to_exitcode() function to convert a wait status to an exitcode. Suggest waitstatus_to_exitcode() usage in the documentation when appropriate. Use waitstatus_to_exitcode() in: * multiprocessing, os, subprocess and _bootsubprocess modules; * test.support.wait_process(); * setup.py: run_command(); * and many tests. | ||||
* | bpo-36144: Update os.environ and os.environb for PEP 584 (#18911) | Charles Burkland | 2020-03-13 | 1 | -1/+19 |
| | |||||
* | bpo-39567: Add audit for os.walk(), os.fwalk(), Path.glob() and ↵ | Serhiy Storchaka | 2020-02-12 | 1 | -3/+7 |
| | | | | Path.rglob(). (GH-18372) | ||||
* | bpo-39395: putenv() and unsetenv() always available (GH-18135) | Victor Stinner | 2020-01-24 | 1 | -26/+6 |
| | | | | | | | | The os.putenv() and os.unsetenv() functions are now always available. On non-Windows platforms, Python now requires setenv() and unsetenv() functions to build. Remove putenv_dict from posixmodule.c: it's not longer needed. | ||||
* | bpo-38878: Fix os.PathLike __subclasshook__ (GH-17336) | Bar Harel | 2019-12-22 | 1 | -1/+5 |
| | | | | Quick subclasshook fix using the same method is being used in collections.abc (up to a certain degree). | ||||
* | bpo-38994: Implement __class_getitem__ for PathLike (GH-17498) | Batuhan Taşkaya | 2019-12-08 | 1 | -0/+3 |
| | | | https://bugs.python.org/issue38994 | ||||
* | closes bpo-25461: Update os.walk() docstring to match the online docs. ↵ | Bernt Røskar Brenna | 2019-09-10 | 1 | -4/+5 |
| | | | | (GH-11836) | ||||
* | Fix punctuation in `os.execvpe` docstring. (GH-15051) | Hasan Ramezani | 2019-09-09 | 1 | -1/+1 |
| | |||||
* | bpo-36085: Enable better DLL resolution on Windows (GH-12302) | Steve Dower | 2019-03-29 | 1 | -0/+37 |
| | |||||
* | Use generator instead of list in code examples (GH-11203) | Recursing | 2018-12-23 | 1 | -2/+2 |
| | | | | There is no need to create a list for `sum` Also, becomes consistent with the first example in Doc/library/os.rst | ||||
* | Assume the raw environ is always declared. (GH-8707) | Benjamin Peterson | 2018-08-08 | 1 | -6/+0 |
| | | | posixmodule.c always declares environ, so don't bother catching a NameError in os.py. | ||||
* | bpo-32297: Few misspellings found in Python source code comments. (#4803) | Mike | 2017-12-14 | 1 | -1/+1 |
| | | | | | | | | * Fix multiple typos in code comments * Add spacing in comments (test_logging.py, test_math.py) * Fix spaces at the beginning of comments in test_logging.py | ||||
* | bpo-30152: Reduce the number of imports for argparse. (#1269) | Serhiy Storchaka | 2017-09-25 | 1 | -12/+9 |
| | |||||
* | bpo-30441: Fix bug when modifying os.environ while iterating over it (#2409) | Osvaldo Santana Neto | 2017-07-01 | 1 | -1/+3 |
| | |||||
* | bpo-25996: Added support of file descriptors in os.scandir() on Unix. (#502) | Serhiy Storchaka | 2017-03-30 | 1 | -17/+25 |
| | | | | os.fwalk() is sped up by 2 times by using os.scandir(). | ||||
* | bpo-19930: The mode argument of os.makedirs() no longer affects the file (#799) | Serhiy Storchaka | 2017-03-24 | 1 | -1/+1 |
| | | | permission bits of newly-created intermediate-level directories. | ||||
* | bpo-28682: Added support for bytes paths in os.fwalk(). (#489) | Serhiy Storchaka | 2017-03-07 | 1 | -3/+7 |
| | |||||
* | Fixes empty tuple case. | Steve Dower | 2016-11-20 | 1 | -1/+1 |
| | |||||
* | Issue #28732: Adds new errors to spawnv emulation for platforms that only ↵ | Steve Dower | 2016-11-20 | 1 | -0/+4 |
| | | | | have fork and execv | ||||
* | Issue #28353: os.fwalk() no longer fails on broken links. | Serhiy Storchaka | 2016-10-25 | 1 | -2/+2 |
|\ | |||||
| * | Issue #28353: os.fwalk() no longer fails on broken links. | Serhiy Storchaka | 2016-10-25 | 1 | -2/+2 |
| | | |||||
| * | Issue #25911: Backport os._DummyDirEntry fixes | Victor Stinner | 2016-03-29 | 1 | -2/+36 |
| | | | | | | | | | | | | | | | | | | * Fix test_os.BytesWalkTests on Windows * Mimick better the reference os.DirEntry on Windows * _DummyDirEntry now caches os.stat() result * _DummyDirEntry constructor now tries to get os.stat() * Fix os._DummyDirEntry.is_symlink(), don't follow symbolic links: use os.stat(path, follow_symlinks=False). | ||||
| * | Fixed a bug in os.walk() with bytes path on Windows caused by merging fixes | Serhiy Storchaka | 2016-02-24 | 1 | -1/+1 |
| | | | | | | | | for issues #25995 and #25911. | ||||
| * | Issue #25995: os.walk() no longer uses FDs proportional to the tree depth. | Serhiy Storchaka | 2016-02-11 | 1 | -11/+2 |
| | | |||||
* | | Issue #27998: Removed workarounds for supporting bytes paths on Windows in | Serhiy Storchaka | 2016-10-05 | 1 | -67/+3 |
| | | | | | | | | | | os.walk() function and glob module since os.scandir() now directly supports them. | ||||
* | | Issue #28324: Remove vestigal MacOS 9 references in os.py docstring. | Ned Deily | 2016-10-02 | 1 | -3/+3 |
| | | | | | | | | Patch by Chi Hsuan Yen. | ||||
* | | Issue #27781: Change file system encoding on Windows to UTF-8 (PEP 529) | Steve Dower | 2016-09-08 | 1 | -4/+1 |
| | | |||||
* | | Issue #27355: Removed support for Windows CE. It was never finished, | Larry Hastings | 2016-09-05 | 1 | -23/+2 |
| | | | | | | | | and Windows CE is no longer a relevant platform for Python. | ||||
* | | Issue #26027, #27524: Add PEP 519/__fspath__() support to os and | Brett Cannon | 2016-08-26 | 1 | -1/+3 |
| | | | | | | | | | | | | os.path. Thanks to Jelle Zijlstra for the initial patch against posixmodule.c. | ||||
* | | Issue #27186: Update os.fspath()/PyOS_FSPath() to check the return | Brett Cannon | 2016-06-24 | 1 | -30/+41 |
| | | | | | | | | | | | | | | type of __fspath__(). As part of this change, also make sure that the pure Python implementation of os.fspath() is tested. | ||||
* | | Fix some PEP 8 violations. | Brett Cannon | 2016-06-09 | 1 | -10/+6 |
| | | |||||
* | | issue27186: fix fsencode/fsdecode and update tests; patch by Jelle Zijlstra | Ethan Furman | 2016-06-04 | 1 | -2/+2 |
| | | |||||
* | | issue27186: add PathLike ABC | Ethan Furman | 2016-06-04 | 1 | -1/+16 |
| | | |||||
* | | issue27186: add C version of os.fspath(); patch by Jelle Zijlstra | Ethan Furman | 2016-06-04 | 1 | -17/+18 |
| | | |||||
* | | issue27182: update fsencode and fsdecode for os.path(); patch by Dusty Phillips | Ethan Furman | 2016-06-04 | 1 | -8/+14 |
| | | |||||
* | | issue27186 -- initial docs, tests, and python version of os.fspath | Ethan Furman | 2016-06-02 | 1 | -0/+21 |
| | | |||||
* | | Fix os._DummyDirEntry.is_symlink() | Victor Stinner | 2016-03-29 | 1 | -6/+17 |
| | | | | | | | | | | Issue #25911: Fix os._DummyDirEntry.is_symlink(), don't follow symbolic links: use os.stat(path, follow_symlinks=False). | ||||
* | | Enhance os._DummyDirEntry | Victor Stinner | 2016-03-24 | 1 | -2/+23 |
| | | | | | | | | | | | | | | | | | | Issue #25911: * Try to fix test_os.BytesWalkTests on Windows * Try to mimick better the reference os.DirEntry on Windows * _DummyDirEntry now caches os.stat() result * _DummyDirEntry constructor now tries to get os.stat() | ||||
* | | Issue #25995: os.walk() no longer uses FDs proportional to the tree depth. | Serhiy Storchaka | 2016-02-11 | 1 | -1/+5 |
| | | | | | | | | Different solution from 3.5. | ||||
* | | Issue #25994: Added the close() method and the support of the context manager | Serhiy Storchaka | 2016-02-11 | 1 | -39/+55 |
|/ | | | | protocol for the os.scandir() iterator. |