[Python-checkins] peps: "basename" is now "stem" (preferred by Guido)

antoine.pitrou python-checkins at python.org
Sun Oct 27 16:56:16 CET 2013


http://hg.python.org/peps/rev/f579b30df881
changeset:   5227:f579b30df881
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Sun Oct 27 16:56:12 2013 +0100
summary:
  "basename" is now "stem" (preferred by Guido)

files:
  pep-0428.txt |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/pep-0428.txt b/pep-0428.txt
--- a/pep-0428.txt
+++ b/pep-0428.txt
@@ -374,7 +374,7 @@
     'c:\\'
     >>> p.name
     'pathlib.tar.gz'
-    >>> p.basename
+    >>> p.stem
     'pathlib.tar'
     >>> p.suffix
     '.gz'

-- 
Repository URL: http://hg.python.org/peps


More information about the Python-checkins mailing list