e shlex module::
>
> >>> import shlex
> >>> shlex.split('"foo bar" "some text"')
> ['foo bar', 'some text']
>
Thanks, that is exactly what i need.
Andreas Huesgen
--
http://mail.python.org/mailman/listinfo/python-list
strings "foo bar" and "some text" from
the commandline <"foo bar" "some text">)?
If not, do you have any other ideas how to handle this problem (increasing
commandline length, xml files might be a way)?
Regards,
Andreas Huesgen
Viel oder
var2)
var2
thanks in advance,
greets
Andreas Huesgen
--
http://mail.python.org/mailman/listinfo/python-list
onstruct, which is *not* the same as a try/except. The
> finally clause is always executed, whether or not an exception is raised.
Yes, of course it must be the try finally construct and not try/except.
Shame on me ;)
Andreas Huesgen
--
http://mail.python.org/mailman/listinfo/python-list
imic the c++ code snipped
above in python without adding a try-except-unlock-rethrow block around
every peace of code that locks some resources.
Greets,
Andreas Huesgen
--
http://mail.python.org/mailman/listinfo/python-list