Re: trouble with pyvtk

2007-05-17 Thread obaudys
On May 18, 2:22 pm, LokiDawg <[EMAIL PROTECTED]> wrote: > All is well until the last line (writing the file), after which the > following error occurs: > File "/usr/lib/python2.4/site-packages/pyvtk/common.py", line 140, > in get_datatype > if is_int(obj): return self.default_int > Runt

Re: Quote aware split

2007-05-16 Thread obaudys
On May 16, 8:51 pm, "BJörn Lindqvist" <[EMAIL PROTECTED]> wrote: > How is the code different from shlex.split? Shlex only splits by whitespace. I needed something to split out SQL statements from a Postgresql dump, so the ideal way of doing that is to split by semicolons. However, postgresql fun

Re: Quote aware split

2007-05-15 Thread obaudys
On May 16, 1:18 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > The "is" operator checks object *identity*, that is, if both operands are > actually the same object. It may or may not work here, depending on many > implementation details. You really should check if they are *equal* > instead: