should these be fixed for python 2.4?
Batista, Facundo
FBatista at uniFON.com.ar
Fri Oct 1 13:09:55 EDT 2004
[Alexander Schmolck]
#- Otherwise ``some_string`` almost certainly will be
#- constructed by something
#- along the lines of ``os.system('convert %s %s' % (infile,
#- outfile))`` which
#- of course is broken (e.g. ``infile = "with space"``).
I don't understand why you say that that is broken.
Do you want to do this?
>>> infile = "with space"
>>> outfile = "no_space"
>>> 'convert %s %s' % (infile, outfile)
'convert with space no_space'
Or just want to pass two args?
>>> infile = '"with space"'
>>> outfile = "no_space"
>>> 'convert %s %s' % (infile, outfile)
'convert "with space" no_space'
Or need to pass arguments with ``''`` and ``""``?
>>> infile = "\"with 'space'\""
>>> outfile = "no_space"
>>> cad = 'convert %s %s' % (infile, outfile)
>>> cad
'convert "with \'space\'" no_space'>>>
>>> print "[%s]" % cad
[convert "with 'space'" no_space]
. Facundo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20041001/1d22ba76/attachment.html>
More information about the Python-list
mailing list