Movatterモバイル変換


[0]ホーム

URL:


call of non-function (type string) error

Andrew Dalkedalke at acm.org
Wed Apr 11 13:51:05 EDT 2001


Graham Guttocks:>This doesn't seem to work for me:>>>>> CIPHER = "DES3">>>> import Crypto.Cipher>>>> cipher = getattr(Crypto.Cipher, CIPHER)>Traceback (most recent call last):>  File "<stdin>", line 1, in ?>AttributeError: DES3How aboutCIPHER = "DES3"Crypto = __import__("Crypto.Cipher.%s" % CIPHER)cipher = getattr(Crypto.Cipher, CIPHER)(Sorry, don't have Crypto installed to test it out.)                    Andrewdalke at acm.org


More information about the Python-listmailing list

[8]ページ先頭

©2009-2025 Movatter.jp