Commit Graph

58 Commits

Author SHA1 Message Date
Adam Turner b0329c31b3
Several PEPs: Normalise `Post-History` (#2375) 2022-03-09 16:04:44 +00:00
Brett Cannon bb4751379a
Many PEPs: Normalize the 'Created' field (#1805) 2021-02-09 08:54:26 -08:00
Mariatta cf3bad5ab3
Revert "Rename all .txt PEP files to .rst (GH-462)" (GH-464)
This reverts commit bb0e518ed3.
2017-11-11 11:28:55 -08:00
Huang Huang bb0e518ed3 Rename all .txt PEP files to .rst (GH-462)
For https://github.com/python/peps/issues/1
2017-11-11 10:30:43 -08:00
Benjamin Peterson 60d9b24542 promote m.p.o links to https 2017-06-11 12:02:39 -07:00
Marti Raudsepp 04a6af2ab1 Fix various typos, spelling and grammar errors
Errors detected using Topy (https://github.com/intgr/topy), all changes
verified by hand.
2016-07-11 18:35:35 +03:00
Brett Cannon 084c8e2b83 Tweak the reasoning for pathlib not sublcassing str. 2016-04-23 09:04:27 -07:00
Brett Cannon c26ed6d453 Clarify why pathlib doesn't inherit from str 2016-04-22 11:45:53 -07:00
Barry Warsaw e66a71839b More PEP updates. 2013-11-22 12:30:31 -05:00
Guido van Rossum 5a6cb6b60f Add Resolution header to PEP 428 (pathlib). 2013-11-20 13:44:22 -08:00
Guido van Rossum f00d87e468 Accept PEP 428 (pathlib). 2013-11-20 13:38:17 -08:00
Antoine Pitrou 734743d99b Assorted comments by Jim Jewett 2013-11-20 00:46:39 +01:00
Antoine Pitrou 3129ea6d88 Fix typo 2013-11-19 23:05:51 +01:00
Antoine Pitrou cb4b918b94 Fix outdated example 2013-11-19 23:04:11 +01:00
Antoine Pitrou c7f8d92125 `parent` is now a property returning the logical parent of the path 2013-11-19 22:01:14 +01:00
Antoine Pitrou 046c7012df "parents" is now a sequence property providing access to the path's ancestors 2013-11-19 21:51:19 +01:00
Antoine Pitrou ee543c9e5c The "parts" property now simply returns a tuple (the slightly magic slicing behaviour is gone) 2013-11-19 21:48:55 +01:00
Antoine Pitrou ea0c8221a0 s/is_sock/is_socket/ 2013-11-19 16:52:03 +01:00
Antoine Pitrou 01c58d9574 Replace "seven" with "several" :) 2013-11-19 16:45:47 +01:00
Antoine Pitrou e02e097151 Replace "NT path" with "Windows path" 2013-11-19 16:40:46 +01:00
Antoine Pitrou 00a5db2a5d Make owner() and group() methods, rather than properties.
It didn't make sense to keep them as properties as all other metadata-querying APIs
are now exposed under the form of methods (e.g. is_dir(), etc.), and there's no
stat() caching anymore.
2013-11-18 23:49:02 +01:00
Antoine Pitrou cf1a377f65 Add is_sock(), is_fifo(), is_block_device(), is_char_device() 2013-11-18 21:49:41 +01:00
Antoine Pitrou 36f5f1f633 Mention that resolve() canonicalizes the path under Windows 2013-11-18 21:48:50 +01:00
Antoine Pitrou 111b5e8681 Remove normcase(), it's not terribly useful and its presence can be misleading 2013-11-17 20:19:10 +01:00
Antoine Pitrou b20d53bfd6 Point out that resolve() is similar to realpath() 2013-11-17 16:49:07 +01:00
Antoine Pitrou cdf4a57e8d Explain match() behaviour 2013-11-17 16:47:01 +01:00
Antoine Pitrou 6ad419b864 The repr() of a Windows path now uses forward slashes (Guido).
Note that str() and bytes() still use backward slashes, which is the canonical path syntax.
2013-11-17 16:33:06 +01:00
Antoine Pitrou 193c166121 NTPath becomes WindowsPath 2013-11-16 22:31:45 +01:00
Antoine Pitrou 0866846d15 Implicit iteration is replaced by the iterdir() method 2013-11-16 20:08:09 +01:00
Antoine Pitrou 4e925eb9ad Point to readthedocs for detailed API spec 2013-11-16 19:57:44 +01:00
Antoine Pitrou 4318de0442 Kill raw_open() 2013-11-16 19:55:30 +01:00
Antoine Pitrou 4ddef5a086 Kill as_bytes() 2013-11-16 19:50:52 +01:00
Antoine Pitrou 08daab3583 Fix an example 2013-11-16 19:32:39 +01:00
Antoine Pitrou eb0946e474 Remove stat caching 2013-11-04 16:22:03 +01:00
Antoine Pitrou 7456c54989 Remove the st_* shortcuts 2013-11-04 16:20:12 +01:00
Antoine Pitrou 8ad14a255d relative() becomes relative_to() 2013-11-04 16:19:23 +01:00
Antoine Pitrou 52967be17a "basename" is now "stem" (preferred by Guido) 2013-10-27 16:56:12 +01:00
Antoine Pitrou 0851a088fc Add a discussion section 2013-10-25 21:28:38 +02:00
Antoine Pitrou e4f08b7f30 s/alteration/modification/ 2013-10-25 21:09:57 +02:00
Antoine Pitrou 3889008418 Simplify joinpath() example 2013-10-25 21:05:22 +02:00
Antoine Pitrou 64210a6ec2 Typo 2013-10-25 21:03:50 +02:00
Antoine Pitrou f36388059e Use a simpler example 2013-10-25 21:03:28 +02:00
Antoine Pitrou 9d74f7717b Remove openat support 2013-10-23 19:49:13 +02:00
Antoine Pitrou 41ca0b81e0 Mention the dedicated branch in the Mercurial repo. 2013-03-01 23:24:24 +01:00
Antoine Pitrou f463d32478 Add a as_uri() method as suggested by Charles-François, to return a file URI. 2013-03-01 23:10:53 +01:00
Antoine Pitrou 3b72e78196 Amend the collapsing the leading slashes to account for the POSIX special case of two leading slashes.
Thanks to Daniel Colascione for noticing.
2012-12-29 01:46:48 +01:00
Antoine Pitrou ee6f30d19a Replace subscription with slashing 2012-11-07 20:25:27 +01:00
Antoine Pitrou 7b8178a28b Path.join() is now Path.joinpath() 2012-11-07 20:06:20 +01:00
Antoine Pitrou 5e28b87e87 Rename relative_to() to relative(), removing the old relative() method. 2012-10-10 21:01:50 +02:00
Antoine Pitrou 18abe3c987 Add with_name() and with_suffix() methods. 2012-10-10 20:55:44 +02:00