[issue4827] optparse: Callback example 1 is confusing

2009-02-05 Thread Georg Brandl
Georg Brandl added the comment: You're right, I've fixed that in r69298. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue4827] optparse: Callback example 1 is confusing

2009-01-03 Thread Jason Kankiewicz
New submission from Jason Kankiewicz : "Callback example 1: trivial callback" reads Here’s an example of a callback option that takes no arguments, and simply records that the option was seen: def record_foo_seen(option, opt_str, value, parser): parser.saw_foo = True