Re: Can't write to a directory made w/ os.makedirs

2012-01-01 Thread David Goldsmith
On Jan 1, 1:37 am, Tim Golden m...@timgolden.me.uk wrote: On 31/12/2011 22:13, OlyDLG wrote:   Hi!  I'm working on a script utilizing os.makedirs to make directories   to which I'm then trying to write files created by exe's spawned w/   subprocess.call; I'm developing in Stani's Python

Re: Can't write to a directory made w/ os.makedirs

2012-01-01 Thread David Goldsmith
On Jan 1, 7:05 am, Tim Golden m...@timgolden.me.uk wrote: On 01/01/2012 12:05, David Goldsmith wrote:   ie can the Python process creating the directories,     Yes.     and a subprocess called from it create a simple file?     No.     Depending on where you are in the filesystem, it may

Re: Can't write to a directory made w/ os.makedirs

2012-01-02 Thread David Goldsmith
On Jan 2, 6:09 am, Dave Angel d...@davea.name wrote: On 01/01/2012 10:14 PM, David Goldsmith wrote: On Jan 1, 7:05 am, Tim Goldenm...@timgolden.me.uk  wrote: On 01/01/2012 12:05, David Goldsmith wrote:    ie can the Python process creating the directories,    Yes

Re: Can't write to a directory made w/ os.makedirs

2012-01-03 Thread David Goldsmith
On Jan 1, 7:43 pm, MRAB pyt...@mrabarnett.plus.com wrote: On 02/01/2012 03:14, David Goldsmith wrote: On Jan 1, 7:05 am, Tim Goldenm...@timgolden.me.uk  wrote:  On 01/01/2012 12:05, David Goldsmith wrote:      ie can the Python process creating the directories,      Yes

[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

[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='?', default=getuser(), help