FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-43950: distinguish errors happening on character offset decoding by isidentical · Pull Request #27217 · python/cpython · GitHub

/ cpython Public

bpo-43950: distinguish errors happening on character offset decoding - #27217

Merged
pablogsal merged 1 commit into
python:mainfrom
colnotab:bpo-43950-error-check-on-offset-conversion
Jul 20, 2021
Merged

bpo-43950: distinguish errors happening on character offset decoding#27217
pablogsal merged 1 commit into
python:mainfrom
colnotab:bpo-43950-error-check-on-offset-conversion

Conversation

isidentical commented Jul 17, 2021
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Member

_PyPegen_byte_offset_to_character_offset now returns -1 on error since we need to distinguish 0-width lines from errors. Also the error checks are added to the call sites.

https://bugs.python.org/issue43950

Copy link
Copy Markdown
Member Author

Thanks @pablogsal!

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL