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 — The punycode incremental encoder and decoder transform each chunk separately · Issue #160308 · python/cpython Open Labels stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error DescriptionBug description
>>> import codecs >>> 'ab'.encode('punycode') b'ab-' >>> encoder = codecs.getincrementalencoder('punycode')() >>> encoder.encode('a') + encoder.encode('b', final=True) b'a-b-' >>> b'a-b-'.decode('punycode') 'a-b' Punycode encodes the positions of the non-ASCII characters relative to the whole label, so a chunk cannot be encoded without the rest of the string; the same goes for decoding. The classes are two lines each, I think the right fix is to buffer until Related: #64331 (many incremental codecs do not handle fragmented data) mentions punycode in passing, in a list taken from that same Found by the Hypothesis tests in #160155, where it is pinned as CPython versions tested onCPython main (6e1bd24) Operating systems tested onLinux Linked PRsActivity
MetadataMetadataAssigneesLabelsstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-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. |