diff options
author | Fred Drake <fdrake@acm.org> | 2005-10-28 14:39:47 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2005-10-28 14:39:47 (GMT) |
commit | db390c1ad8e2c8049e1d0d3828a979c75d1621b9 (patch) | |
tree | 110d3485f390abc738015ff6eb071a310febe856 /Misc | |
parent | f3396542806e9c6d1dfafda5d1e53296d3d1af09 (diff) | |
download | cpython-db390c1ad8e2c8049e1d0d3828a979c75d1621b9.zip cpython-db390c1ad8e2c8049e1d0d3828a979c75d1621b9.tar.gz cpython-db390c1ad8e2c8049e1d0d3828a979c75d1621b9.tar.bz2 |
fix typos, mostly in comments
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/cheatsheet | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Misc/cheatsheet b/Misc/cheatsheet index 718c77b..d50ed2e 100644 --- a/Misc/cheatsheet +++ b/Misc/cheatsheet @@ -1308,7 +1308,7 @@ Special informative state attributes for some types: tb_next (frame/None, R/O): next level in stack trace (toward the frame where the exception occurred) tb_frame (frame, R/O): execution frame of the current level - tb_lineno (int, R/O): line number where the exception occured + tb_lineno (int, R/O): line number where the exception occurred tb_lasti (int, R/O): precise instruction (index into bytecode) Slices: @@ -1597,7 +1597,7 @@ whitespace[, the string <sep> as a separator. maxsplit=0]]) join(words[, sep=' Concatenate a list or tuple of words with ']) interveningseparators; inverse of split. -replace(s, old, Returns a copy of string <s> with all occurences of +replace(s, old, Returns a copy of string <s> with all occurrences of new[, maxsplit=0] substring<old> replaced by <new>. Limits to <maxsplit> firstsubstitutions if specified. strip(s) Return a string that is (a copy of) <s> without leadingand @@ -1620,7 +1620,7 @@ litteralize backslashes. $ matches end of the string (of every line in MULTILINE mode) * 0 or more of preceding regular expression (as many as possible) + 1 or more of preceding regular expression (as many as possible) -? 0 or 1 occurence of preceding regular expression +? 0 or 1 occurrence of preceding regular expression *?, +?, ?? Same as *, + and ? but matches as few characters as possible {m,n} matches from m to n repetitions of preceding RE {m,n}? idem, attempting to match as few repetitions as possible |