Re: Spaces in path name

2008-03-14 Thread David S
By mapping network drives in windows I can get past these issues with path names. Thanks, David "Tim Golden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > David S wrote: >> Gets me further but still seems to be issue with space after 'Progra

Re: Spaces in path name

2008-03-14 Thread David S
nstallerdist') File "installer.py", line 26, in compile assert os.system('%s -quiet -Djava.target_version=%s -buildfile %s%s' % (ant , version, script, args)) == 0 AssertionError "Bryan Olson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] &

Re: Spaces in path name

2008-03-14 Thread David S
Hi, Using "C:\Program Files\apache-ant-1.7.0\bin\ant.bat" just gives me the same result. David "Dennis Lee Bieber" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Fri, 14 Mar 2008 04:37:12 GMT, "David S" <[EMAIL PROTECTED]>

Re: Spaces in path name

2008-03-13 Thread David S
; does not exist' % ANT_CMD) David "Mensanator" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] On Mar 13, 5:16 pm, "David S" <[EMAIL PROTECTED]> wrote: > Hi, > > I have some code in which I have to change some path names to get it to > w

Spaces in path name

2008-03-13 Thread David S
Hi, I have some code in which I have to change some path names to get it to work. The original code seems to have assumed that path names would not have any embedded spaces. I am not sure how to write the following line so when used in my script the path will be found. ANT_CMD = r'C:\Program

Handling global variables (Newbie)

2008-03-12 Thread David S
Hi, I have an error occurring at self.build_root = os.path.abspath(os.path.split(__file__)[0]) The error states 'NameError: global name '__file__' is not defined' In Python 2.5 I ran my script as a module in IDLE gui. How does _file_ get defined? Yours, David -- http://mail.python.

Re: chained attrgetter

2006-10-26 Thread David S.
Ah, pretty Python. Thanks, all. -- http://mail.python.org/mailman/listinfo/python-list

chained attrgetter

2006-10-25 Thread David S.
Does something like operator.getattr exist to perform a chained attr lookup? I came up with the following, but I can not help but think it is already done and done better. Peace, David S. def compose(funcs): """ return composite of funcs this does not support exten

Re: distutils

2006-05-10 Thread David S.
er that a script lived and somehow indicate the root of my source so that distutils could find other modules that the scripts use. Perhaps, I have not organized things appropriately--I do not know. I will try to read the doco again and see if I can infer some best practices. Peace, David S.

Re: distutils

2006-05-09 Thread David S.
not found a way to similarly rename these. Finally, it seems odd that I should have so many XXXsetup.py scripts in my package root directory. Thanks again, David S. -- http://mail.python.org/mailman/listinfo/python-list

distutils

2006-05-09 Thread David S.
other documentation or guides to using distutils. Peace, David S. -- http://mail.python.org/mailman/listinfo/python-list

Concurrency, I guess

2006-01-20 Thread David S.
://candygram.sourceforge.net/) might be the way for me to go, but I would still like to understand this pretty basic question. So any insight, advice, or references on the problem as described would be very welcome. It seems it must be fairly common. Peace, David S. -- http://mail.python.org/mailman

Re: standard doc style for method signatures

2005-05-31 Thread David S.
David S. alumni.tufts.edu> writes: > > Is there a generally accepted way to denote method signatures---that is, > expected type or required interface for each argument. > Here is an answer: http://python.org/peps/pep-0257.html http://www.python.org/peps/pep-0008.h

standard doc style for method signatures

2005-05-30 Thread David S.
Is there a generally accepted way to denote method signatures---that is, expected type or required interface for each argument. -- http://mail.python.org/mailman/listinfo/python-list

Re: global variables

2005-03-07 Thread David S.
M.N.A.Smadi grads.ece.mcmaster.ca> writes: > I need to have a varaible that will contain a value that will be > modified in one file, and when coming back to the same file it > should retain the same value. You must import the module in which the variable lives and qualify it appropriately.

Re: reuse validation logic with descriptors

2005-03-02 Thread David S.
re a little confused about properties and descriptors. > > regards > Steve Quite confused, actually, which was the reason for my original post. Thanks again to those who helped me and any other confused folks understand this bit of Python that much better. Peace, David S. -- http://mail

Re: reuse validation logic with descriptors

2005-03-01 Thread David S.
taken reading http://users.rcn.com/python/download/Descriptor.htm about 4 times along with your help to get this straight. Peace, David S. -- http://mail.python.org/mailman/listinfo/python-list

Re: reuse validation logic with descriptors

2005-03-01 Thread David S.
Steven Bethard gmail.com> writes: > > David S. wrote: > > I am looking for a way to implement the same simple validation on many > > instance attributes and I thought descriptors > > (http://users.rcn.com/python/download/Descriptor.htm) looked like the > >

reuse validation logic with descriptors

2005-03-01 Thread David S.
utes across multiple classes? Thanks, David S. -- http://mail.python.org/mailman/listinfo/python-list

Re: huge help for interactive python

2005-02-16 Thread David S.
David S. alumni.tufts.edu> writes: > I am sure it can be improved, but it was easy. By the > way, it generates LaTeK. LaTeX, rather. -- http://mail.python.org/mailman/listinfo/python-list

huge help for interactive python

2005-02-16 Thread David S.
If you are using ipython on Windows then you will have made sure you have Gary Bishop's readline library as instructed in the ipython install directions found at: http://ipython.scipy.org/ Even if you use the standard commandline tool, installing readline makes the basic command line a lot eas

Re: [newbie]How to install python under DOS and is there any Wxpython can be installed under dos?

2005-02-15 Thread David S.
john san att.net> writes: > > How to install python under DOS and is there any Wxpython-like can be > installed under dos? > > Thanks. > If you are looking for Windows installers then, yes. See: http://www.wxpython.org/ http://www.wxpython.org/download.php#binaries If you are really looking f

subprocess problem on Windows in IDLE and PythonWin

2005-02-15 Thread David S.
Python 2.4 on Windows XP In the python command-line the following works fine: >>> from subprocess import * >>> p = Popen('dir', stdout=PIPE) >From within IDLE or PythonWin I get the following exception: Traceback (most recent call last): File "", line 1, in -toplevel- p = Popen('dir', stdo