GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Python 3.14 REPL blanks links above terminal rows when pasting · Issue #135055 · python/cpython Open Labels 3.14bugs and security fixesbugs and security fixes3.15bugs and security fixesbugs and security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-replRelated to the interactive shellRelated to the interactive shelltype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error DescriptionBug reportBug description:In Python 3.14 beta 2, pasting code that has more lines than the height of my terminal window will result in the lines just above the terminal window being blank. To reproduce:
class Point: __slots__ = ('x', 'y') __match_args__ = ('x', 'y') def __init__(self, x: float, y: float) -> None: object.__setattr__(self, 'x', x) object.__setattr__(self, 'y', y) def __repr__(self): cls = type(self).__name__ return f'{cls}(x={self.x!r}, y={self.y!r})' def __eq__(self, other): if not isinstance(other, Point): return NotImplemented return (self.x, self.y) == (other.x, other.y) def __hash__(self): return hash((self.x, self.y)) def __setattr__(self, name, value): raise AttributeError(f"Can't set attribute {name!r}") def __delattr__(self, name): raise AttributeError(f"Can't delete attribute {name!r}") def __getstate__(self): return (self.x, self.y) def __setstate__(self, state): fields = ('x', 'y') for field, value in zip(fields, state): object.__setattr__(self, field, value) This is essentially the same as the "Blank lines" section of issue #119517. I assume this is being done for performance reasons, but this is going to make my life harder when teaching. I often use a large font when teaching, so it's not uncommon that I'll paste a block of code that is longer than the terminal height. Being able to scroll up and show my students what was pasted is an essential feature for me when teaching. CPython versions tested on:3.14 Operating systems tested on:Linux Activity
MetadataMetadataAssigneesLabels3.14bugs and security fixesbugs and security fixes3.15bugs and security fixesbugs and security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-replRelated to the interactive shellRelated to the interactive shelltype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error ProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |