Date Parsing Question

2010-09-03 Thread Gavin
uot;, line 697, in parse return DEFAULTPARSER.parse(timestr, **kwargs) File "c:\python26\lib\site-packages\python_dateutil-1.5-py2.6.egg \dateutil\parser.py", line 303, in parse raise ValueError, "unknown string format" ValueError: unknown string format Am I out of luck with this package? Just wondering if anyone has used this to work with non-english dates. I'm also open to other ideas to handle this. Appreciate the assistance, Gavin -- http://mail.python.org/mailman/listinfo/python-list

DOS problem (simple fix??)

2005-01-07 Thread Gavin Bauer
My DOS window (running in windows ME) closes the second it finishes running my programs. As you can imagine, this makes it hard to see the results. I've gotten in the habit of putting raw_input("Press enter to exit") at the end of every program, and in addition to being pain in the butt, it often f

$5 Campaign - Packt Publishing

2015-12-23 Thread gavin . packt
Hey, Packt Publishing is inviting the tech world to explore its extensive library of eBooks and video courses for one amazing price. For the rest of December and into the New Year, every single eBook and video course Packt has ever created will be available on the publisher's website for just $

Context manager with class methods

2011-09-22 Thread Gavin Panella
it seems like something that ought to work. Gavin. -- http://mail.python.org/mailman/listinfo/python-list

Spaces from string specifier

2007-09-13 Thread Gavin Tomlins
ow to prevent this ? Regards Gavin --- Code Fragment --- fmtSqlP300Amp = 'UPDATE Patient SET \ O2AMP = "%s", O1AMP = "%s", OzAMP = "%s", PzAMP = "%s", P4AMP = "%s", CP4AMP = "%s", T6AMP = &quo

Checking the existence of parsed variables

2008-01-23 Thread Gavin Lusby
): if isnumeric(d[var]): var = float(d[var]) else: var = d[var] else: print 'ERROR: getcorey() parameter '+str(var)+' not specified' iErr += 1 _end_code___ ___ Since this doesn't work, any other ideas out there? Many thanks in advance, Gavin -- http://mail.python.org/mailman/listinfo/python-list

File.write() not working in a sleepy loop

2008-02-19 Thread Gavin Lusby
ep is finished. The sleep() is clearly after the write(). Thanks in advance, Gavin ___sample_code___sample_code___sample_code___sample_code___sample_code___sample_code___sample_code while i == 1: if pid <> -1: i = pid_exists(pid) if g.verbose: os.sy