[issue33083] math.factorial accepts non-integral Decimal instances

2018-03-15 Thread John Yeung

Change by John Yeung <gallium.arsen...@gmail.com>:


--
nosy: +John.Yeung

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33083>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25735] math.factorial doc should mention integer return type

2015-11-25 Thread John Yeung

New submission from John Yeung:

The math module docs state

Except when explicitly noted otherwise, all return values are floats.

But math.factorial isn't what I would call explicit about returning int:

math.factorial(x)
Return x factorial. Raises ValueError if x is not integral or is negative.

At minimum, shouldn't the first sentence be "Return x factorial as an int."? I 
haven't tested on all Python versions, but math.factorial on 2.7 and 3.2 
definitely return int (or long in Python 2 when necessary).

--
assignee: docs@python
components: Documentation
messages: 255382
nosy: John.Yeung, docs@python
priority: normal
severity: normal
status: open
title: math.factorial doc should mention integer return type
versions: Python 3.5

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25735>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20987] Python for AS/400 (OS/400) is actually 2.7

2014-03-19 Thread John Yeung

New submission from John Yeung:

Not sure if this is the right place to report this, but the other platforms 
page https://www.python.org/download/other/ says the AS/400 port by Per 
Gummedal is 2.5. While it's true that he did port 2.5 quite a while back, the 
2.7 port has been available for 3 years now.

I will say that I'm happy to see any mention of this platform at all!

--
assignee: docs@python
components: Documentation
messages: 214172
nosy: John.Yeung, docs@python
priority: normal
severity: normal
status: open
title: Python for AS/400 (OS/400) is actually 2.7
type: enhancement

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20987
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com