[Bug]: incompatible (wrt CPython int's) processing of strings by int() constructor with spaces
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
The bug is in how GraalPy's int() constructor parses strings: a leading non-breaking space (\xa0) makes it raise ValueError, while CPython 3.13 strips it. Start by reproducing int("\xa0123") on GraalPy and comparing it with CPython's whitespace handling for int(). Done when int("\xa0123") returns 123, matching CPython 3.13, and the change is covered by a test.
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
An example:
Python 3.13.14 (Thu Sep 17 18:51:21 UTC 2026)
[Graal, Oracle GraalVM, Java 25.0.4.1.1 (amd64)] on 'linux'
Type "help", "copyright", "credits" or "license" for more information.
>>> int("\xa0123")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
int("\xa0123")
~~~^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: '\xa0123'
vs
Python 3.13.15 (tags/v3.13.15:4061bc4c35f, Aug 12 2026, 12:19:57) [GCC 14.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> int("\xa0123") # ignores leading/trailing spaces
123
Operating system
Linux
CPU architecture
x86_64
GraalPy version
25.4.4.1.1
JDK version
No response
Context configuration
No response
Steps to reproduce
See description.
Expected behavior
As in the CPython 3.13.
Stack trace
Additional context
No response
- 主要言語
- Python
- スター
- 1.7k
- フォーク
- 156
- 平均マージ
- 5時間 11分
- マージ済み PR(30日)
- 51
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
oracle/graalpython のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
oracle/graalpython#1105 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
oracle/graalpython#1102 ·
メンテナーはふだん 1 日以内に返信
-
zoneinfo.TZPATH is empty on POSIX: sysconfig TZPATH is not set対応中かも @graemerocher が 3 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 15/100
oracle/graalpython#1206 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 44/100
oracle/graalpython#1198 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: invalid signature of int.__new__ and missing signatures for __new__ dunders in extensionsオープンbug
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
oracle/graalpython#1192 ·
メンテナーはふだん 1 日以内に返信
oracle/graalpython の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 2 日以内に返信
-
Status: Triage Type: Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
-
Objects.List treats versions=false (and similar flags) as true対応中かも @andaaron が今日担当しました。 オープンpriority: p2 type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
googleapis/storage-testbench#829 ·
メンテナーはふだん 2 日以内に返信
-
[Bug]: memory provider treats 1:1 DMs as shared surfaces, so DM turns never receive reviewed recordsオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
rlaope/oh-my-hermes#2088 ·
メンテナーはふだん 1 日以内に返信