[Python-3000-checkins] r63200 - in python/branches/py3k: Doc/howto/functional.rst Doc/library/collections.rst Doc/library/datetime.rst Doc/library/json.rst Doc/library/modulefinder.rst Doc/library/plistlib.rst Doc/library/sched.rst Doc/library/so

Neal Norwitz nnorwitz at gmail.com
Wed May 14 07:24:59 CEST 2008


On Tue, May 13, 2008 at 5:51 AM, Benjamin Peterson
<musiccomposition at gmail.com> wrote:
> On Mon, May 12, 2008 at 11:55 PM, neal.norwitz
> <python-3000-checkins at python.org> wrote:
>> Author: neal.norwitz
>>  Date: Tue May 13 06:55:24 2008
>>  New Revision: 63200
>>
>>  Log:
>>  Convert a lot of print statements to print functions in docstrings,
>>  documentation, and unused/rarely used functions.
>>
>>  Modified: python/branches/py3k/Doc/tools/sphinxext/patchlevel.py
>>  ==============================================================================
>>  --- python/branches/py3k/Doc/tools/sphinxext/patchlevel.py      (original)
>>  +++ python/branches/py3k/Doc/tools/sphinxext/patchlevel.py
Tue May 13 06:55:24 2008
>>  @@ -63,9 +63,10 @@
>>          return get_header_version_info('.')
>>      except (IOError, OSError):
>>          version, release = get_sys_version_info()
>>  -        print >>sys.stderr, 'Can\'t get version info from
Include/patchlevel.h, ' \
>>  -              'using version of this interpreter (%s).' % release
>>  +        print('Can\'t get version info from Include/patchlevel.h, '
>>  +              'using version of this interpreter (%s).' % release,
>>  +              file=sys.stderr)
>>          return version, release
>>
>>   if __name__ == '__main__':
>>  -    print get_header_version_info('.')[1]
>>  +    print(get_header_version_info('.')[1])
>
> Please note that Sphinx (patchlevel.py) runs on Python 2.5 so this won't cut it.

I saw this after my previous mail.  Not sure if the discussion should
continue there or in this thread.  Note that this is the 3k branch and
code should run in 3k.  It can be modified to support both and that
seems like it would be a better alternative.

n


More information about the Python-3000-checkins mailing list