Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
0e928584
Commit
0e928584
authored
Mar 28, 2009
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
give os.symlink and os.link() better parameter names #5564
parent
a31aa45f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
Doc/library/os.rst
Doc/library/os.rst
+6
-4
Doc/library/string.rst
Doc/library/string.rst
+1
-0
No files found.
Doc/library/os.rst
View file @
0e928584
...
@@ -924,9 +924,10 @@ Files and Directories
...
@@ -924,9 +924,10 @@ Files and Directories
.. versionadded:: 2.3
.. versionadded:: 2.3
.. function:: link(s
rc, dst
)
.. function:: link(s
ource, link_name
)
Create a hard link pointing to *src* named *dst*. Availability: Unix.
Create a hard link pointing to *source* named *link_name*. Availability:
Unix.
.. function:: listdir(path)
.. function:: listdir(path)
...
@@ -1246,9 +1247,10 @@ Files and Directories
...
@@ -1246,9 +1247,10 @@ Files and Directories
Added access to values as attributes of the returned object.
Added access to values as attributes of the returned object.
.. function:: symlink(s
rc, dst
)
.. function:: symlink(s
ource, link_name
)
Create a symbolic link pointing to *src* named *dst*. Availability: Unix.
Create a symbolic link pointing to *source* named *link_name*. Availability:
Unix.
.. function:: tempnam([dir[, prefix]])
.. function:: tempnam([dir[, prefix]])
...
...
Doc/library/string.rst
View file @
0e928584
...
@@ -243,6 +243,7 @@ does an index lookup using :func:`__getitem__`.
...
@@ -243,6 +243,7 @@ does an index lookup using :func:`__getitem__`.
Some simple format string examples::
Some simple format string examples::
"First, thou shalt count to {0}" # References first positional argument
"First, thou shalt count to {0}" # References first positional argument
"Bring me a {}" # Implicitly references the first positional argument
"My quest is {name}" # References keyword argument 'name'
"My quest is {name}" # References keyword argument 'name'
"Weight in tons {0.weight}" # 'weight' attribute of first positional arg
"Weight in tons {0.weight}" # 'weight' attribute of first positional arg
"Units destroyed: {players[0]}" # First element of keyword argument 'players'.
"Units destroyed: {players[0]}" # First element of keyword argument 'players'.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment