[issue3451] Asymptotically faster divmod and str(long)

2009-09-21 Thread steve21
Changes by steve21 : -- nosy: +steve21 ___ Python tracker <http://bugs.python.org/issue3451> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue6771] documentation/implementation error

2009-08-24 Thread steve21
New submission from steve21 : 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 for curses programs This m

[issue6765] math.log, log10 inconsistency

2009-08-23 Thread steve21
steve21 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 looks like

[issue6765] math.log, log10 inconsistency

2009-08-23 Thread steve21
New submission from steve21 : $ 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.log1

[issue6228] round() error

2009-06-07 Thread steve21
New submission from steve21 : 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", "credi

[issue5032] itertools.count step

2009-01-26 Thread steve21
steve21 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. But if I use a custom

[issue5032] itertools.count step

2009-01-26 Thread steve21
steve21 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 ite

[issue5032] itertools.count step

2009-01-22 Thread steve21
New submission from steve21 : 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

[issue5031] Thread.daemon docs

2009-01-22 Thread steve21
New submission from steve21 : 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. The entire Python program

[issue4776] distutils documentation

2008-12-29 Thread steve21
New submission from steve21 : '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-distutils.core doe

[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 "", line 1, in File "

[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 arbi