[Python-checkins] cpython: Add news entry for the _source attribute created by namedtuple.

raymond.hettinger python-checkins at python.org
Wed Mar 23 21:05:28 CET 2011


http://hg.python.org/cpython/rev/d44d6b31abfb
changeset:   68881:d44d6b31abfb
user:        Raymond Hettinger <python at rcn.com>
date:        Wed Mar 23 13:05:02 2011 -0700
summary:
  Add news entry for the _source attribute created by namedtuple.

files:
  Misc/NEWS |  5 +++++
  1 files changed, 5 insertions(+), 0 deletions(-)


diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -87,6 +87,11 @@
 - Issue #11591: Prevent "import site" from modifying sys.path when python
   was started with -S.
 
+- collections.namedtuple() now adds a _source attribute to the generated
+  class.  This make the source more accessible than the outdated
+  "verbose" option which prints to stdout but doesn't make the source
+  string available.
+
 - Issue #11371: Mark getopt error messages as localizable.  Patch by Filip
   Gruszczyński.
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list