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/2005-September/325731.html below:

error processing variables

error processing variables error processing variablesMarc 'BlackJack' Rintsch bj_666 at gmx.net
Fri Sep 9 19:10:44 EDT 2005
In <MjoUe.678$5g.365 at tornado.socal.rr.com>, el chupacabra wrote:

>>Your problem is that the def statement reassignes the name "toHPU" to a
>>function instead of a string.  So when the code runs, you're passing a
>>function object to s.copy2.
> 
>   So...how do fix it?

Don't give two different objects the same name!?

>>> import shutil
>>>
>>> #variables
>>> s = shutil

This can be written as ``import shutil as s`` or maybe you could use
``from shutil import copy2`` to import the `copy2` function into the
moduls namespace.

Ciao,
	Marc 'BlackJack' Rintsch

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