[issue38678] TypeError raised trying to run TPT 10.3 Example 2 in Python 3.4.3

2019-11-03 Thread David Goldsmith
New submission from David Goldsmith : When I run the second example code of Section 10.3 of The Python Tutorial: import argparse from getpass import getuser parser = argparse.ArgumentParser(description='An argparse example.') parser.add_argument('name', nargs='?'

[issue38675] Sug. for the scope example in TPT Chapter 9

2019-11-03 Thread David Goldsmith
Change by David Goldsmith : -- title: Sug. for the scope example in TPT Cjapter 9 -> Sug. for the scope example in TPT Chapter 9 ___ Python tracker <https://bugs.python.org/issu

[issue38675] Sug. for the scope example in TPT Cjapter 9

2019-11-03 Thread David Goldsmith
New submission from David Goldsmith : In The Python Tutorial, at the end of Section 9.2.1 "Scopes and Namespaces Example," there occurs the statement: "You can also see that there was no previous binding for spam before the global assignment." Indeed, one can &qu