Re: [Python-de] import bla-bla schlägt fehl!
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Stefan J. Betz wrote: | ich hab eine Python Datei die heißt z.B. bla-bla.py, wenn ich jetzt aber | python aufrufe und dann "import bla-bla" mache, dann bekomme ich nur eine | Fehlermeldung "Invalid Syntax" soweit ich das gesehen habe ist ja | demnach ein "-" nicht bei import erlaubt, aber wie kann ich dann die | bla-bla.py importieren? Oder warum ist ein "-" nicht erlaubt? "-" ist generell nicht erlaubt als Name, werder als Datei, noch Funktionsname, etc. Nenn deine Datei einfach bla_bla Gruß ~ Daniel - -- Once the philosopher stone has fallen from the tree, ~ nonsense appeared to fix the courious fear. .. . .. ... . . .. . ... . .. . ... . . . pgp key @ http://files.poelzi.org/pgp.txt ED80 E53D 5269 4BB1 1E73 3A53 CBF9 A421 0A7B 003D -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Debian - http://enigmail.mozdev.org iD8DBQFBB/VBy/mkIQp7AD0RAk+8AKCLXCmtRbrr+F/yDIHQzUT8Pa1hawCeKwn3 ABfXBWy0NmutC3ySaA8YjcE= =L8R6 -----END PGP SIGNATURE----- _______________________________________________ python-de maillist - python-de@python.net http://python.net/mailman/listinfo/python-de
participants (1)
-
daniel.poelzleithner