gmpy and counting None

casevh casevh at gmail.com
Tue Oct 14 01:09:51 EDT 2008


On Oct 13, 12:43 pm, <mma... at gmx.net> wrote:
> Hi,
>
> I just stumbled upon the following issue (I am running Debian):
>
> $ python
> Python 2.5.2 (r252:60911, Sep 29 2008, 21:15:13)
> [GCC 4.3.2] on linux2
> Type "help", "copyright", "credits" or "license" for more information.>>> [2, None].count(None)
> 1
> >>> from gmpy import mpz
> >>> [mpz(2), None].count(None)
>
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> TypeError: coercion to gmpy.mpz type failed
>
>
>
> Is this a bug in gmpy?
>
> If yes is there any way to issue the bug athttp://code.google.com/p/gmpy/
> without creating a gmail account?

I've added it for you.

>
> Thanks
>
> Martin

Thanks for reporting the issue.

casevh



More information about the Python-list mailing list