[issue3451] Asymptotically faster divmod and str(long)

2009-09-21 Thread steve21
Changes by steve21 steve872929...@yahoo.com.au: -- nosy: +steve21 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3451 ___ ___ Python-bugs-list

[issue6771] documentation/implementation error

2009-08-24 Thread steve21
New submission from steve21 steve872929...@yahoo.com.au: The documentation and implementation disagree. Documentation: Module curses.wrapper Convenience function to ensure proper terminal setup and resetting on application entry and exit. ... 15.10. curses.wrapper — Terminal handler

[issue6765] math.log, log10 inconsistency

2009-08-23 Thread steve21
New submission from steve21 steve872929...@yahoo.com.au: $ python3.1 Python 3.1 (r31:73572, Jul 6 2009, 21:21:12) [GCC 4.4.0 20090506 (Red Hat 4.4.0-4)] on linux2 Type help, copyright, credits or license for more information. import math math.log10(1000) 3.0 math.log(1000, 10

[issue6765] math.log, log10 inconsistency

2009-08-23 Thread steve21
steve21 steve872929...@yahoo.com.au added the comment: Mark, ... that's what log10 is there for. That would be a good point if the documentation said that. However, all the docs for log10 say is: math.log10(x) Return the base-10 logarithm of x. So we have a python function log10() which

[issue6228] round() error

2009-06-07 Thread steve21
New submission from steve21 steve872929...@yahoo.com.au: I wish to round the float 697.04157958254996 to 10 decimal digits after the decimal point. $ python3.0 Python 3.0.1 (r301:69556, Jun 7 2009, 14:51:41) [GCC 4.3.2 20081105 (Red Hat 4.3.2-7)] on linux2 Type help, copyright, credits

[issue5032] itertools.count step

2009-01-26 Thread steve21
steve21 steve872929...@yahoo.com.au added the comment: Here's a couple of functions I use with count and step: def cf_e(): '''return: (iterator) the infinite continued fraction for e e=[2; 1, 2, 1, 1, 4, 1, 1, 6, 1 , ... , 1, 2k, 1, ...] ''' yield 2 for k in itertools.count

[issue5032] itertools.count step

2009-01-26 Thread steve21
steve21 steve872929...@yahoo.com.au added the comment: I already use the second version of the count function you give (without default arguments which I am not a big fan of). I'm not saying its difficult or unreadable to bypass itertools.count and write your own enhanced count function

[issue5031] Thread.daemon docs

2009-01-22 Thread steve21
New submission from steve21 steve872929...@yahoo.com.au: In the threading module the Thread.daemon documentation says: The thread’s daemon flag. This must be set before start() is called, otherwise RuntimeError is raised. The initial value is inherited from the creating thread

[issue5032] itertools.count step

2009-01-22 Thread steve21
New submission from steve21 steve872929...@yahoo.com.au: I'd like to request a 'step' argument be added for itertools.count. It would be useful in the same way that step is useful for the 'range' function. ('range' and 'count' are very similar - 'count' could even be merged into 'range

[issue4776] distutils documentation

2008-12-29 Thread steve21
New submission from steve21 steve872929...@yahoo.com.au: 'data_files' and 'package_dir' are arguments for distutils.core.setup that some packages use in their setup.py. However, the manual entry for distutils.core. setup, at http://docs.python.org/dev/3.0/distutils/apiref.html#module

[issue4478] shutil.copyfile documentation

2008-11-30 Thread steve21
New submission from steve21 [EMAIL PROTECTED]: $ python3.0 Python 3.0rc3 (r30rc3:67312, Nov 22 2008, 21:38:46) import shutil shutil.copyfile('/tmp/f', '/tmp/f') Traceback (most recent call last): File stdin, line 1, in module File /a/lib/python3.0/shutil.py, line 47, in copyfile raise

[issue4404] os.listdir() documentation error

2008-11-23 Thread steve21
New submission from steve21 [EMAIL PROTECTED]: The documentation entry for os.listdir(path) at html docs at http://docs.python.org/dev/3.0/library/os.html#module-os says: os.listdir(path) Return a list containing the names of the entries in the directory. The list is in arbitrary order