datetime, tzinfo ... strange conversion?

2006-04-01 Thread Tino Lange
Hi! I'm surprised about the following code, maybe you can give me a hint whether that's bug or feature? I'm just trying to convert local time to GMT and one method gives a strange result: ## > #! /usr/bin/env python > > import datetime, pytz > > _tz_utc = pytz.timezone("UT

Re: CSV Parser and unusual (?) linesterminator - misunderstanding?

2006-01-20 Thread Tino Lange
Peter Otten wrote: > Tino Lange wrote: > >> I'm trying to use the csv Parser included with Python. Field Delimiter is >> "|", Line Delimiter is "#". Unfortunately it doesn't work as expected. >> The parser seems to just ignore the 'line

CSV Parser and unusual (?) linesterminator - misunderstanding?

2006-01-20 Thread Tino Lange
Hi! I'm trying to use the csv Parser included with Python. Field Delimiter is "|", Line Delimiter is "#". Unfortunately it doesn't work as expected. The parser seems to just ignore the 'lineterminator'? Here's some example: > $ cat test.py > #! /usr/bin/env python > > import sys, csv, cStringIO

Re: pdb.py - why is this debugger different from all other debuggers?

2006-01-09 Thread Tino Lange
R. Bernstein wrote: Hi! To summarize, I think most of us readers here like your changes or at least didn't shout loud enough against it ;-) As I also would like to have a more powerful and gdb-like debugging facility in out-of-the-box python, I think it would be the best strategy to make a conso