base64 module

K

Ken Fettig

Hello, I am trying to make use of the base64 module but am having problems.
Traceback (most recent call last):
File "<pyshell#1>", line 1, in ?
decodestring('SVNBKjAwKiAgICAgICAgICAqMDAqICAgICAg')
NameError: name 'decodestring' is not defined
What am I doing wrong. I am importing the base64 module, why can't I call
the decodestring method?
 
P

Peter van Kampen

Hello, I am trying to make use of the base64 module but am having problems.

Traceback (most recent call last):
File "<pyshell#1>", line 1, in ?
decodestring('SVNBKjAwKiAgICAgICAgICAqMDAqICAgICAg')
NameError: name 'decodestring' is not defined

What am I doing wrong. I am importing the base64 module, why can't I call
the decodestring method?

Scope and Namespaces. Try:
'ISA*00* *00* '

See http://www.python.org/doc/current/tut/node11.html

Hth,

PterK
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,189
Latest member
CryptoTaxSoftware

Latest Threads

Top