mirror of https://github.com/python/cpython
Fix some typos
This commit is contained in:
parent
c8e5645f15
commit
51c18166bb
|
@ -67,7 +67,7 @@ Core and builtins
|
||||||
|
|
||||||
- Weak reference objects are now part of the core and offers a C API.
|
- Weak reference objects are now part of the core and offers a C API.
|
||||||
A bug which could allow a core dump when binary operations involved
|
A bug which could allow a core dump when binary operations involved
|
||||||
proxy reference has been fixed. weekref.ReferenceError is now a
|
proxy reference has been fixed. weakref.ReferenceError is now a
|
||||||
built-in exception.
|
built-in exception.
|
||||||
|
|
||||||
- unicode(obj) now behaves more like str(obj), accepting arbitrary
|
- unicode(obj) now behaves more like str(obj), accepting arbitrary
|
||||||
|
@ -279,7 +279,7 @@ Type/class unification and new-style classes
|
||||||
|
|
||||||
- For new-style classes, what was previously called __getattr__ is now
|
- For new-style classes, what was previously called __getattr__ is now
|
||||||
called __getattribute__. This method, if defined, is called for
|
called __getattribute__. This method, if defined, is called for
|
||||||
*every* attribute access. A new __getattr__ hook mor similar to the
|
*every* attribute access. A new __getattr__ hook more similar to the
|
||||||
one in classic classes is defined which is called only if regular
|
one in classic classes is defined which is called only if regular
|
||||||
attribute access raises AttributeError; to catch *all* attribute
|
attribute access raises AttributeError; to catch *all* attribute
|
||||||
access, you can use __getattribute__ (for new-style classes). If
|
access, you can use __getattribute__ (for new-style classes). If
|
||||||
|
@ -323,8 +323,8 @@ Core
|
||||||
makes unicode() behave like str() when applied to non-string/buffer
|
makes unicode() behave like str() when applied to non-string/buffer
|
||||||
objects.
|
objects.
|
||||||
|
|
||||||
- PyFile_WriteObject now passes Unicode object to the file's write
|
- PyFile_WriteObject now passes Unicode objects to the file's write
|
||||||
method. As a result, all file-like object which may be the target
|
method. As a result, all file-like objects which may be the target
|
||||||
of a print statement must support Unicode objects, i.e. they must
|
of a print statement must support Unicode objects, i.e. they must
|
||||||
at least convert them into ASCII strings.
|
at least convert them into ASCII strings.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue