mirror of https://github.com/python/cpython
#6332: fix word dupes throughout the source.
This commit is contained in:
parent
6c860f97d7
commit
5a85d5c4f2
|
@ -328,7 +328,7 @@ Miscellaneous options
|
||||||
warning is triggered repeatedly for the same source line, such as inside a
|
warning is triggered repeatedly for the same source line, such as inside a
|
||||||
loop).
|
loop).
|
||||||
``module``
|
``module``
|
||||||
Print each warning only only the first time it occurs in each module.
|
Print each warning only the first time it occurs in each module.
|
||||||
``once``
|
``once``
|
||||||
Print each warning only the first time it occurs in the program.
|
Print each warning only the first time it occurs in the program.
|
||||||
``error``
|
``error``
|
||||||
|
|
|
@ -16184,7 +16184,7 @@ people seemed not to have picked it up. There's a Python script that
|
||||||
fixes old code: demo/scripts/classfix.py.
|
fixes old code: demo/scripts/classfix.py.
|
||||||
|
|
||||||
* There's a new reserved word: "access". The syntax and semantics are
|
* There's a new reserved word: "access". The syntax and semantics are
|
||||||
still subject of of research and debate (as well as undocumented), but
|
still subject of research and debate (as well as undocumented), but
|
||||||
the parser knows about the keyword so you must not use it as a
|
the parser knows about the keyword so you must not use it as a
|
||||||
variable, function, or attribute name.
|
variable, function, or attribute name.
|
||||||
|
|
||||||
|
@ -16434,7 +16434,7 @@ you could get away with the following:
|
||||||
(a) define a function of one argument and call it with any
|
(a) define a function of one argument and call it with any
|
||||||
number of arguments; if the actual argument count wasn't
|
number of arguments; if the actual argument count wasn't
|
||||||
one, the function would receive a tuple containing the
|
one, the function would receive a tuple containing the
|
||||||
arguments arguments (an empty tuple if there were none).
|
arguments (an empty tuple if there were none).
|
||||||
|
|
||||||
(b) define a function of two arguments, and call it with more
|
(b) define a function of two arguments, and call it with more
|
||||||
than two arguments; if there were more than two arguments,
|
than two arguments; if there were more than two arguments,
|
||||||
|
@ -16756,7 +16756,7 @@ Changes to the source code that affect C extension writers
|
||||||
----------------------------------------------------------
|
----------------------------------------------------------
|
||||||
|
|
||||||
The function strdup() no longer exists (it was used only in one places
|
The function strdup() no longer exists (it was used only in one places
|
||||||
and is somewhat of a a portability problem sice some systems have the
|
and is somewhat of a portability problem since some systems have the
|
||||||
same function in their C library.
|
same function in their C library.
|
||||||
|
|
||||||
The functions NEW() and RENEW() allocate one spare byte to guard
|
The functions NEW() and RENEW() allocate one spare byte to guard
|
||||||
|
|
|
@ -3794,7 +3794,7 @@ Library
|
||||||
- Bug #1565661: in webbrowser, split() the command for the default
|
- Bug #1565661: in webbrowser, split() the command for the default
|
||||||
GNOME browser in case it is a command with args.
|
GNOME browser in case it is a command with args.
|
||||||
|
|
||||||
- Made the error message for time.strptime when the data data and
|
- Made the error message for time.strptime when the data and
|
||||||
format do match be more clear.
|
format do match be more clear.
|
||||||
|
|
||||||
- Fix a bug in traceback.format_exception_only() that led to an error
|
- Fix a bug in traceback.format_exception_only() that led to an error
|
||||||
|
|
|
@ -37,6 +37,6 @@ options.
|
||||||
Then bang on it until it executes very simple Python statements.
|
Then bang on it until it executes very simple Python statements.
|
||||||
|
|
||||||
Now bang on it some more. At some point you'll want to use the os
|
Now bang on it some more. At some point you'll want to use the os
|
||||||
module; this is the time to start thinking about what to to with the
|
module; this is the time to start thinking about what to do with the
|
||||||
posix module. It's okay to simply #ifdef out those functions that
|
posix module. It's okay to simply #ifdef out those functions that
|
||||||
cause problems; the remaining ones will be quite useful.
|
cause problems; the remaining ones will be quite useful.
|
||||||
|
|
|
@ -1145,7 +1145,7 @@ Exception>
|
||||||
Standard methods & operators redefinition in classes
|
Standard methods & operators redefinition in classes
|
||||||
|
|
||||||
Standard methods & operators map to special '__methods__' and thus may be
|
Standard methods & operators map to special '__methods__' and thus may be
|
||||||
redefined (mostly in in user-defined classes), e.g.:
|
redefined (mostly in user-defined classes), e.g.:
|
||||||
class x:
|
class x:
|
||||||
def __init__(self, v): self.value = v
|
def __init__(self, v): self.value = v
|
||||||
def __add__(self, r): return self.value + r
|
def __add__(self, r): return self.value + r
|
||||||
|
|
|
@ -62,7 +62,7 @@ Permissions History
|
||||||
- Heiko Weinen was given SVN access on 29 April 2008 by MvL,
|
- Heiko Weinen was given SVN access on 29 April 2008 by MvL,
|
||||||
for GSoC contributions.
|
for GSoC contributions.
|
||||||
|
|
||||||
- Jesus Cea was was given SVN access on 24 April 2008 by MvL,
|
- Jesus Cea was given SVN access on 24 April 2008 by MvL,
|
||||||
for maintenance of bsddb.
|
for maintenance of bsddb.
|
||||||
|
|
||||||
- Guilherme Polo was given SVN access on 24 April 2008 by MvL,
|
- Guilherme Polo was given SVN access on 24 April 2008 by MvL,
|
||||||
|
|
|
@ -204,7 +204,7 @@ to print a warning each time it occurs (this may generate many
|
||||||
messages if a warning is triggered repeatedly for the same source
|
messages if a warning is triggered repeatedly for the same source
|
||||||
line, such as inside a loop);
|
line, such as inside a loop);
|
||||||
.B module
|
.B module
|
||||||
to print each warning only only the first time it occurs in each
|
to print each warning only the first time it occurs in each
|
||||||
module;
|
module;
|
||||||
.B once
|
.B once
|
||||||
to print each warning only the first time it occurs in the program; or
|
to print each warning only the first time it occurs in the program; or
|
||||||
|
|
Loading…
Reference in New Issue