[Python-checkins] r69298 - python/trunk/Doc/library/optparse.rst
georg.brandl
python-checkins at python.org
Thu Feb 5 12:33:22 CET 2009
Author: georg.brandl
Date: Thu Feb 5 12:33:21 2009
New Revision: 69298
Log:
#4827: fix callback example.
Modified:
python/trunk/Doc/library/optparse.rst
Modified: python/trunk/Doc/library/optparse.rst
==============================================================================
--- python/trunk/Doc/library/optparse.rst (original)
+++ python/trunk/Doc/library/optparse.rst Thu Feb 5 12:33:21 2009
@@ -1511,7 +1511,7 @@
records that the option was seen::
def record_foo_seen(option, opt_str, value, parser):
- parser.saw_foo = True
+ parser.values.saw_foo = True
parser.add_option("--foo", action="callback", callback=record_foo_seen)
More information about the Python-checkins
mailing list