six-python

    10Hitze

    7Antwort

    Ich bin mit Python 2.7 auf einem Windows 7 OS Hier ist, was ich laufen: >>> import matplotlib.pyplot as plt Dann habe ich diese: Traceback (most recent call last): File "<pyshell#3>", line 1, i

    28Hitze

    2Antwort

    Ich möchte fragen, was der with_metaclass() Aufruf in der Definition einer Klasse bedeutet. Z. B .: class Foo(with_metaclass(Cls1, Cls2)): Ist es ein besonderer Fall, in dem eine Klasse von einem me

    12Hitze

    1Antwort

    Ich habe Probleme bei der Unterstützung von Python2 und Python3 auf einem type() Aufruf. Dies zeigt das Problem: from __future__ import unicode_literals name='FooClass' type(name, (dict,), {}) Ke

    10Hitze

    3Antwort

    Nach transifex Installation und ./manage.py den folgenden Fehler erscheint: Error: No modules named six. Python Sechs auf virtualenv installiert ist (von https://pypi.python.org/pypi/six) Django Ver