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
9074ef60
Commit
9074ef60
authored
Oct 16, 2001
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add fix for getattr(obj, name, default). Rearrange a few things.
parent
d892357b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
Misc/NEWS
Misc/NEWS
+14
-7
No files found.
Misc/NEWS
View file @
9074ef60
...
@@ -20,7 +20,7 @@ Type/class unification and new-style classes
...
@@ -20,7 +20,7 @@ Type/class unification and new-style classes
- doctest now finds and runs docstrings attached to new-style classes,
- doctest now finds and runs docstrings attached to new-style classes,
class methods, static methods, and properties.
class methods, static methods, and properties.
Core
Core
and builtins
- A very subtle syntactical pitfall in list comprehensions was fixed.
- A very subtle syntactical pitfall in list comprehensions was fixed.
For example: [a+b for a in 'abc', for b in 'def']. The comma in
For example: [a+b for a in 'abc', for b in 'def']. The comma in
...
@@ -31,15 +31,26 @@ Core
...
@@ -31,15 +31,26 @@ Core
Note that [a for a in <singleton>] is a convoluted way to say
Note that [a for a in <singleton>] is a convoluted way to say
[<singleton>] anyway, so it's not like any expressiveness is lost.
[<singleton>] anyway, so it's not like any expressiveness is lost.
- getattr(obj, name, default) now only catches AttributeError, as
documented, rather than returning the default value for all
exceptions (which could mask bugs in a __getattr__ hook, for
example).
Extension modules
- thread.start_new_thread() now returns the thread ID (previously None).
- binascii has now two quopri support functions, a2b_qp and b2a_qp.
- binascii has now two quopri support functions, a2b_qp and b2a_qp.
- readline now supports setting the startup_hook and the pre_event_hook.
- readline now supports setting the startup_hook and the pre_event_hook.
- posix supports chroot where available.
- posix supports chroot where available.
Library
- Decompression objects in the zlib module now accept an optional
second parameter to decompress() that specifies the maximum amount
of memory to use for the uncompressed data.
- thread.start_new_thread() now returns the thread ID (previously None).
Library
- doctest now excludes functions and classes not defined by the module
- doctest now excludes functions and classes not defined by the module
being tested, thanks to Tim Hochberg.
being tested, thanks to Tim Hochberg.
...
@@ -75,10 +86,6 @@ Library
...
@@ -75,10 +86,6 @@ Library
which indicates whether output is intended for the header 'Q'
which indicates whether output is intended for the header 'Q'
encoding.
encoding.
- Decompression objects in the zlib module now accept an optional
second parameter to decompress() that specifies the maximum amount
of memory to use for the uncompressed data.
Tools/Demos
Tools/Demos
- Demo/dns was removed. It no longer serves any purpose; a package
- Demo/dns was removed. It no longer serves any purpose; a package
...
...
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