[Patches] [ python-Patches-680474 ] Fix for the bug #679880: 'compile' refuses BOM.

SourceForge.net noreply@sourceforge.net
Sun, 09 Feb 2003 12:47:11 -0800


Patches item #680474, was opened at 2003-02-04 22:17
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=680474&group_id=5470

Category: Parser/Compiler
Group: Python 2.3
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Kirill Simonov (kirill_simonov)
Assigned to: M.-A. Lemburg (lemburg)
Summary: Fix for the bug #679880: 'compile' refuses BOM.

Initial Comment:
This is a signed char issue.

----------------------------------------------------------------------

>Comment By: Just van Rossum (jvr)
Date: 2003-02-09 21:47

Message:
Logged In: YES 
user_id=92689

Thanks, I've applied the patch (rev. 2.72 of tokenize.c) and added two little tests to test_builtin.py.

----------------------------------------------------------------------

Comment By: Kirill Simonov (kirill_simonov)
Date: 2003-02-08 17:04

Message:
Logged In: YES 
user_id=36553

I have attached a small test that contains
two exec's. The first one is for a file object
and  the second one is for a string.
The second exec fails while it shouldn't.


----------------------------------------------------------------------

Comment By: M.-A. Lemburg (lemburg)
Date: 2003-02-08 15:32

Message:
Logged In: YES 
user_id=38388

Could you also provide a few (unit-)tests for this ?
Thanks.

----------------------------------------------------------------------

Comment By: Neal Norwitz (nnorwitz)
Date: 2003-02-04 22:23

Message:
Logged In: YES 
user_id=33168

The patch is small (2 lines) and seems ok.  MAL, if you can
review and it makes sense, I'll test & checkin.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=680474&group_id=5470