Message170709
> +.. function:: int(number=0)
First argument is named "x".
>>> int(number=42)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'number' is an invalid keyword argument for this function
>>> int(x=42)
42
+ int(string, base=10)
Here can be not only string, but bytes or bytearray.
>>> int('42', 6)
26
>>> int(b'42', 6)
26
>>> int(bytearray(b'42'), 6)
26 |
|
| Date |
User |
Action |
Args |
| 2012-09-19 07:47:26 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, georg.brandl, rhettinger, terry.reedy, ezio.melotti, eric.araujo, cvrebert, docs@python, tshepang |
| 2012-09-19 07:47:26 | serhiy.storchaka | set | messageid: <[email protected]> |
| 2012-09-19 07:47:26 | serhiy.storchaka | link | issue14783 messages |
| 2012-09-19 07:47:25 | serhiy.storchaka | create | |
|