homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author skrah
Recipients eric.smith, loewis, pitrou, r.david.murray, skrah, srid
Date 2010年06月19日.12:24:41
SpamBayes Score 0.00035784775
Marked as misclassified No
Message-id <1276950283.42.0.587403765048.issue9020@psf.upfronthosting.co.za>
In-reply-to
Content
You can simulate this on Linux by compiling with:
 BASECFLAGS="-funsigned-char"
Then:
Index: Parser/tokenizer.c
===================================================================
--- Parser/tokenizer.c (revision 81682)
+++ Parser/tokenizer.c (working copy)
@@ -1366,6 +1366,8 @@
 break;
 }
 while (Py_ISALNUM(c) || c == '_') {
+ c = EOF; // tok_nextc can return EOF
+ printf("c: %d\n", Py_CHARMASK(c));
 c = tok_nextc(tok);
 }
 tok_backup(tok, c);
>>> eval("abcd")
c: -1
c: -1
c: -1
c: -1
c: -1
c: -1
Also, during compilation you get tons of warnings about using
char as an array subscript:
Objects/stringlib/split.h: In function ‘stringlib_split_whitespace’:
Objects/stringlib/split.h:70: warning: array subscript has type ‘char’
Objects/stringlib/split.h:74: warning: array subscript has type ‘char’
Objects/stringlib/split.h:91: warning: array subscript has type ‘char’
History
Date User Action Args
2010年06月19日 12:24:43skrahsetrecipients: + skrah, loewis, pitrou, eric.smith, r.david.murray, srid
2010年06月19日 12:24:43skrahsetmessageid: <1276950283.42.0.587403765048.issue9020@psf.upfronthosting.co.za>
2010年06月19日 12:24:41skrahlinkissue9020 messages
2010年06月19日 12:24:41skrahcreate

AltStyle によって変換されたページ (->オリジナル) /