Re: passing command line arguments

2007-09-07 Thread darren kirby
%s \ > (sys.argv[0], string.join(sys.argv[1:])) You don't want the 's' on the last format operator. Try: print 'The arguments of %s are "%s"' % \ (sys.argv[0], string.join(sys.argv[1:])) > any help would be greatly appreciated > >

Re: My 'time' module is broken, unsure of cause

2007-08-23 Thread darren kirby
hon 2.4.3 (#2, Oct 6 2006, 07:52:30) > [GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > > >>> import time > >>> time.time() > >

My 'time' module is broken, unsure of cause

2007-08-23 Thread darren kirby
this? Any hints for me to track this issue down? Any further information I could provide? Thanks for consideration, -d -- darren kirby :: Part of the problem since 1976 :: http://badcomputer.org "...the number of UNIX installations has grown to 10, with more expected..." - Dennis Ritchie and Ken Thompson, June 1972 -- http://mail.python.org/mailman/listinfo/python-list

Re: Can a low-level programmer learn OOP?

2007-07-14 Thread darren kirby
g--- Mel? Is that you? http://www.pbm.com/~lindahl/mel.html -d -- darren kirby :: Part of the problem since 1976 :: http://badcomputer.org "...the number of UNIX installations has grown to 10, with more expected..." - Dennis Ritchie and Ken Thompson, June 1972 -- http://mail.python

Re: PHP5 programmer learning Python

2007-05-27 Thread darren kirby
ienced you will probably want to check out "Dive into Python. [2] Have fun, -d [1] http://pleac.sourceforge.net/ [2] http://diveintopython.org/toc/index.html -- darren kirby :: Part of the problem since 1976 :: http://badcomputer.org "...the number of UNIX installations has grown t

Re: Reading (and writing?) audio file tags

2007-05-24 Thread darren kirby
ad me: "Mutagen works on Python 2.3+ and has no dependencies outside the CPython standard library" so it should work on Windows I think. It is just pure Python so there you go... > In the absence of something suitable, I'll probably go back to dumping > the tags via a

Re: help - python can't find file

2007-05-21 Thread darren kirby
d like RTFM but I do think that you could use some reading on Linux CLI usage. You say you have some Linux books? I say this as my reading of your message indicates your problems lie with misunderstanding the shell/paths etc, not with Python itself... -d -- darren kirby :: Part of the

Re: stock quotes

2006-09-14 Thread Darren Kirby
On 9/13/06, Donlingerfelt <[EMAIL PROTECTED]> wrote: > I would like to download stock quotes from the web, store them, do > calculations and sort the results. However I am fairly new and don't have a > clue how to parse the results of a web page download. I can get to the > site, but do not know

Re: Twisted vs POS (Plain-old sockets)

2006-09-04 Thread Darren Kirby
On 9/3/06, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: > On Sun, 3 Sep 2006 00:19:17 -0700, Darren Kirby <[EMAIL PROTECTED]> wrote: > >Hey all, > > > >I have a (FOSS) project here that I am about to start that requires TCP > >networking support, and

Twisted vs POS (Plain-old sockets)

2006-09-03 Thread Darren Kirby
I am really just fishing for opinions here...If it makes a difference: Depending on performance parts of this app may well end up as a prototype for a final (...alternative?) C++ implementation.Thanks for consideration, -d-- darren kirby :: Part of the problem since 1976 :: http://badcomputer.org &q

Re: Favorite flavor of Linux? (for python or anything else)

2005-12-04 Thread darren kirby
nt now. In any event, it is an excellant timesaver if you have a network of similar systems. emerge from source on your staging server, build a bin package, and push it to the rest of the systems. -d -- darren kirby :: Part of the problem since 1976 :: http://badcomputer.org/ "...the numbe

Re: exception KeyboardInterrupt and os.system command

2005-11-28 Thread darren kirby
I could find a reason for this behavior, and the site tells me the package is unmaintained, and has security flaws which will not be fixed. So I guess I will find a new mp3 decoder... -- darren kirby :: Part of the problem since 1976 :: http://badcomputer.org "...the number of

exception KeyboardInterrupt and os.system command

2005-11-27 Thread darren kirby
have 2.4 installed... OS is Linux, if it matters. If you need to see the code it is here: http://badcomputer.org/unix/dir2ogg/dir2ogg.bot Although, this code is the program as it stands, not the code I am testing. Thanks, -d -- darren kirby :: Part of the problem since 1976 :: http://badcompu

Re: Windows vs Linux [was: p2exe using wine/cxoffice]

2005-10-26 Thread darren kirby
how to do this with bash/readline I will be > indebted to them and it will increase my chances of switching to Linux > a bit! (Although not at work where I have no choice!) Try ctrl-r in bash, then type your first few letters... -d -- darren kirby :: Part of the problem since 1976 ::

[OT] Re: output from external commands

2005-10-24 Thread darren kirby
? In any event, I will refrain from trying to help people here until I get over this silly stage I seem to be stuck in... it just doesn't seem worth it. I am not trying to sound like a whiner here, I just wish you experts would go easy on us novices... -d -- darren kirby :: Part of the

Re: output from external commands

2005-10-24 Thread darren kirby
readlines(): >>> . . . process(line) Or check out subprocess if you have 2.4.. > James > > -- > My blog: http://www.crazydrclaw.com/ > My homepage: http://james.colannino.org/ -d -- darren kirby :: Part of the problem since 1976 :: http://badcomputer.org "

Re: Formatting Time

2005-06-03 Thread darren kirby
a little confused as to how you have a float that represents seconds? This will only work if 'seconds' is an int ( al la ' 44342865') but maybe it could help you? -d -- darren kirby :: Part of the problem since 1976 :: http://badcomputer.org "...the number of UNIX ins

Re: Python Challenge ahead [NEW] for riddle lovers

2005-05-02 Thread darren kirby
quoth the Reinhold Birkenfeld: > > Somehow writing '[a-z]{1}' is strange... > > Reinhold >>> t = /text of page source.../ >>> re.findall('[a-z][A-Z]{3}[a-z][A-Z]{3}[a-z]', t) Sorry dude! When it comes to logic puzzles I am easily frustrated, and

Re: Python Challenge ahead [NEW] for riddle lovers

2005-05-02 Thread darren kirby
x27;, t) You should get ten results. Consider all ten together to get your solution... -d -- darren kirby :: Part of the problem since 1976 :: http://badcomputer.org "...the number of UNIX installations has grown to 10, with more expected..." - Dennis Ritchie and Ken Thompson, J

Re: Python Challenge ahead [NEW] for riddle lovers

2005-04-29 Thread darren kirby
am currently stuck. It's starting to hurt my head. There are 478 results in the form *BBBsBBB* but the thing said 'exactly' right, well there are 10 results in the form *sBBBsBBBs* None of them seem to work... I quit ;) -- darren kirby :: Part of the problem since 1976 :