Martin Panter added the comment:

If you ignore the c[0] argument, the rest looks fine to me. See the 
documentation at 
<https://docs.python.org/2/reference/expressions.html#binary-arithmetic-operations>
 and 
<https://docs.python.org/2/library/stdtypes.html#numeric-types-int-float-long-complex>.

The double-slash operator is called “floor division”. If you are expecting some 
other rounding, see 
<https://docs.python.org/2/faq/programming.html#why-does-22-10-return-3>.

----------
nosy: +martin.panter
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
type: crash -> behavior
versions:  -Python 3.3, Python 3.4

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

Reply via email to