Message78072
| Author | mark.dickinson |
|---|---|
| Recipients | fredrikj, mark.dickinson, pitrou, rhettinger, terry.reedy, vstinner |
| Date | 2008-12-19.22:19:49 |
| SpamBayes Score | 2.1545653e-05 |
| Marked as misclassified | No |
| Message-id | <1229725191.35.0.164713455653.issue3439@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
> ... so that ``k`` is approximately ``1 + int(log(abs(x), 2))``. I guess that could work. One other thing: the docs for the trunk seem to suggest that we should be using trunc here, rather than int. I'm looking at: http://docs.python.org/dev/library/stdtypes.html#numeric-types-int- float-long-complex and particularly the note (2), that says of int(x) and long(x): "Deprecated since version 2.6: Instead, convert floats to long explicitly with trunc()." |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008-12-19 22:19:51 | mark.dickinson | set | recipients: + mark.dickinson, rhettinger, terry.reedy, pitrou, vstinner, fredrikj |
| 2008-12-19 22:19:51 | mark.dickinson | set | messageid: <1229725191.35.0.164713455653.issue3439@psf.upfronthosting.co.za> |
| 2008-12-19 22:19:50 | mark.dickinson | link | issue3439 messages |
| 2008-12-19 22:19:49 | mark.dickinson | create | |