commit | 3bbb72265411585e64a5d2ccb5ba51763f20e311 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Sat Jun 11 16:12:08 2011 -0500 |
committer | Benjamin Peterson <benjamin@python.org> | Sat Jun 11 16:12:08 2011 -0500 |
tree | 8ec38156f5e1b1851dcc8f0490e941bb56435427 | |
parent | 703f7c4bf5fa98f9b8b11593d3fa37eb68eae896 [diff] [blame] |
allow __dir__ to return any sequence
diff --git a/Misc/NEWS b/Misc/NEWS index e2538fc..e13f72c 100644 --- a/Misc/NEWS +++ b/Misc/NEWS
@@ -10,6 +10,9 @@ Core and Builtins ----------------- +- Loosen type restrictions on the __dir__ method. __dir__ can now return any + sequence, which will be converted to a list and sorted by dir(). + - Issue #12265: Make error messages produced by passing an invalid set of arguments to a function more informative.