We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f9d8ab commit c9742feCopy full SHA for c9742fe
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/BuiltinFunctions.java
@@ -449,7 +449,7 @@ public abstract static class ChrNode extends PythonBuiltinNode {
449
@TruffleBoundary
450
@Specialization
451
public String charFromInt(int arg) {
452
- if (arg >= 0 && arg < 1114111) {
+ if (arg >= 0 && arg <= 1114111) {
453
return Character.toString((char) arg);
454
} else {
455
throw raise(ValueError, "chr() arg not in range(0x110000)");
0 commit comments