A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/086925.html below:

newbie variables question

newbie variables question newbie variables questionErno Kuusela erno-news at erno.iki.fi
Sun Apr 1 16:57:48 EDT 2001
In article <mailman.986005960.10805.python-list at python.org>, Michael
Hall <py.list at mulga.com.au> writes:

| But this does work:

| os.system('mv /tmp/install.log %s/install.log' %s SYSPRODIR)

[there's a typo, replace he second %s with %]

| Is this the normal/best way to do this in Python ... seems a little
| convoluted me, like there must be a simpler way. Bash for example would be
| happy with something like:

| mv /tmp/install.log $SYSPRODIR/install.log

there's a module for doing string interpolation like this
at <URL:http://www.lfw.org/python/>.

  -- erno

More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4