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 — unicodedata.bidirectional does not return expected default value for certain code points · Issue #142224 · python/cpython Closed Closed Copy link Labels 3.15bugs and security fixesbugs and security fixesextension-modulesC modules in the Modules dirC modules in the Modules dirtopic-unicodetype-featureA feature request or enhancementA feature request or enhancement DescriptionBug reportBug description:Per UAX #44, "entries for a code point may be omitted in a data file of the code point has a default value for the property in question.". Additionally, certain default properties can be "complex", which means that the correct default for the value is contingent on a code point range or other conditions. In the case of BiDi, these default values are defined for code point ranges, in DerivedBidiClass.txt. As an illustrative example, consider two code points, U+0378 and U+0590. The first is in the private use block, and the second is an unassigned code point in the hebrew block. Per Although I have not investigated thoroughly, it appears that other complex default values are also not being handled correctly: for instance UAX#11 indicates that the East_Asian_Width property of U+2FFFE should be 'W', but This issue was first encountered in python 3.13.7, and I have verified it is still present in 3.15, as of 8801c6d. import unicodedata # both assertions should pass assert unicodedata.bidirectional(chr(0x0378)) == 'L' assert unicodedata.bidirectional(chr(0x0590)) == 'R' CPython versions tested on:CPython main branch Operating systems tested on:macOS Linked PRsReacted by Cosimo Lupo Activity
MetadataMetadataAssigneesLabels3.15bugs and security fixesbugs and security fixesextension-modulesC modules in the Modules dirC modules in the Modules dirtopic-unicodetype-featureA feature request or enhancementA feature request or enhancement ProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402520 — 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. |