Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue22314

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:pydoc.py: TypeError with a $LINES defined to anything
Type:behaviorStage:resolved
Components:Library (Lib)Versions:Python 3.4, Python 3.5, Python 2.7
process
Status:closedResolution:fixed
Dependencies:Superseder:
Assigned To:Nosy List: arigo, python-dev, serhiy.storchaka
Priority:normalKeywords:patch

Created on2014-08-31 13:17 byarigo, last changed2022-04-11 14:58 byadmin. This issue is nowclosed.

Files
File nameUploadedDescriptionEdit
pydoc_ttypager_lines.patchserhiy.storchaka,2014-11-18 09:43review
Messages (3)
msg226177 -(view)Author: Armin Rigo (arigo)*(Python committer)Date: 2014-08-31 13:17
$ LINES=20 pythonLib/test/test_pydoc.py...  File ".../Lib/pydoc.py", line 1448, in ttypager    r = inc = os.environ.get('LINES', 25) - 1TypeError: unsupported operand type(s) for -: 'str' and 'int'duh.
msg231310 -(view)Author: Serhiy Storchaka (serhiy.storchaka)*(Python committer)Date: 2014-11-18 09:43
Here is a patch.
msg231785 -(view)Author: Roundup Robot (python-dev)(Python triager)Date: 2014-11-27 22:15
New changeset50808dffd0bb by Serhiy Storchaka in branch '2.7':Issue#22314: pydoc now works when the LINES environment variable is set.https://hg.python.org/cpython/rev/50808dffd0bbNew changesetc6182a7e75fa by Serhiy Storchaka in branch '3.4':Issue#22314: pydoc now works when the LINES environment variable is set.https://hg.python.org/cpython/rev/c6182a7e75faNew changesetc8adee8a0ccb by Serhiy Storchaka in branch 'default':Issue#22314: pydoc now works when the LINES environment variable is set.https://hg.python.org/cpython/rev/c8adee8a0ccb
History
DateUserActionArgs
2022-04-11 14:58:07adminsetgithub: 66510
2014-11-27 22:55:05serhiy.storchakasetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2014-11-27 22:15:52python-devsetnosy: +python-dev
messages: +msg231785
2014-11-18 09:43:25serhiy.storchakasetfiles: +pydoc_ttypager_lines.patch

type: behavior
versions: + Python 3.4, Python 3.5
keywords: +patch
nosy: +serhiy.storchaka

messages: +msg231310
stage: patch review
2014-08-31 13:17:07arigocreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp