Re: python at command prompt

2007-11-01 Thread Mark Elston
* [EMAIL PROTECTED] wrote (on 11/1/2007 9:58 AM): > [snip] >> Sounds like your path isn't set correctly. See the first section >> here[1] on "Finding python.exe" >> >> -tkc >> >> [1]http://www.imladris.com/Scripts/PythonForWindows.html > > Thanks Tim, > I set the pythonpath to where the python in

Re: convert non-delimited to delimited

2007-08-27 Thread Mark Elston
* RyanL wrote (on 8/27/2007 10:59 AM): > I'm a newbie! I have a non-delimited data file that I'd like to > convert to delimited. > > Example... > Line in non-delimited file: > 01397256359210100534+42050-102800FM-15+1198KAIA > > Should be: > 0139,725635,9,2000,01,01,00,53,4,+42050,-10

Re: Exiting from python shell

2007-07-18 Thread Mark Elston
* James Stroud wrote (on 7/18/2007 4:27 PM): > Tobiah wrote: >> For years now, I've been exiting the shell by typing 'exit\n', >> being chid by the shell, and then typing ^D. I can't >> remember a time that I typed the ^D the first time. Call >> me an idiot if you must, but since someone took the

Re: About Eggs

2007-04-10 Thread Mark Elston
* Rob Wolfe wrote (on 4/10/2007 1:38 PM): > Mark Elston <[EMAIL PROTECTED]> writes: > >> This is probably a *really* stupid question but... >> I have looked at all the documentation I have for 2.4.3 >> and all the docs I can download for 2.5 and I simply cannot &

About Eggs

2007-04-10 Thread Mark Elston
This is probably a *really* stupid question but... I have looked at all the documentation I have for 2.4.3 and all the docs I can download for 2.5 and I simply cannot find anything, anywhere that documents what egg files are. I have read posts referring to them and have been able to deduce that th

Re: strange for loop construct

2007-01-05 Thread Mark Elston
* Gabriel Genellina wrote (on 1/5/2007 12:49 PM): > At Friday 5/1/2007 17:39, [EMAIL PROTECTED] wrote: > >> wordfreq = [wordlist.count(p) for p in wordlist] >> >> I would expect >> >> for p in wordlist: >> wordfreq.append(wordlist.count(p)) >> >> >> I didn't know you could have an expression i

Re: What is proper way to require a method to be overridden?

2007-01-05 Thread Mark Elston
* Paddy wrote (on 1/4/2007 10:20 PM): > belinda thom wrote: > >> On Jan 4, 2007, at 9:28 PM, Carl Banks wrote: >> >>> jeremito wrote: I am writing a class that is intended to be subclassed. What is the proper way to indicate that a sub class must override a method? >>> You can't (easily

Re: Writing to Registry

2006-11-16 Thread Mark Elston
Note: this is untested (since I don't like screwing around in the registry...) Have you tried using REG_DWORD? Mark * Samantha wrote (on 11/16/2006 3:48 PM): > I am working with this recipes: > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66011 > > The problem I am having is setting

Re: enumerate improvement proposal

2006-10-30 Thread Mark Elston
* James Stroud wrote (on 10/30/2006 4:39 PM): > Steve Holden wrote: >> How could you end up marrying someone who counts from one and not >> zero? ;-) > > She's the only other person I've ever met who used vi key binding at the > command line. > > James > > Well, there's your problem. You ne

Re: Komodo

2006-10-19 Thread Mark Elston
* SpreadTooThin wrote (on 10/19/2006 8:47 AM): > Why is it that (On MAC OS X) in Komodo 3.5 Professional, if I try to > find something in my script, > I am unable to change the text it is searching for? > Perhaps Emacs might work better ... :) Mark -- http://mail.python.org/mailman/listinfo/pyt

Re: How to execute a linux command by python?

2006-10-18 Thread Mark Elston
* [EMAIL PROTECTED] wrote (on 10/18/2006 11:32 AM): > Fredrik Lundh wrote: >> haishan chang wrote: >> >>> How to execute a linux command by python? >>> for example: execute "ls" or "useradd oracle" >>> Who can help me? >> start here: >> >> http://www.python.org/doc/lib/ >> >> > > After read

Re: Adding Worksheets to an Excel Workbook

2006-10-10 Thread Mark Elston
I expect this doesn't help him much. I get the impression he is looking more for a recipe. Just doing a Google search of python + excel I got the following which make some good starting points: http://www.markcarter.me.uk/computing/python/excel.html http://mail.python.org/pipermail/python-list/2

Re: preemptive OOP?

2006-10-04 Thread Mark Elston
* John Salerno wrote (on 10/4/2006 10:18 AM): > Kent Johnson wrote: > >>> There is certainly a *lot* of 'Gratuitous OOP' (GOOP?) out there. >> >> In my experience a lot of GOOP results > > LOL. Good thing we didn't go with the acronym from my phrase "preemptive > OOP" ;) Oops. I couldn't res

Re: preemptive OOP?

2006-10-04 Thread Mark Elston
* Kent Johnson wrote (on 10/4/2006 10:04 AM): > Mark Elston wrote: >> ... >> Without this prior planning, any expansion (not to mention bug fixing) >> becomes more difficult and makes the resulting code more brittle. While >> not all planning for the future requires OO,

Re: preemptive OOP?

2006-10-01 Thread Mark Elston
* Kent Johnson wrote (on 9/30/2006 2:04 PM): > John Salerno wrote: >> So my question in general is, is it a good idea to default to an OOP >> design like my second example when you aren't even sure you will need >> it? I know it won't hurt, and is probably smart to do sometimes, but >> maybe it