473,569 Members | 2,688 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

spurious syntax error when updating to 2.4 ?

Hi,

I'm doing some preparation for a hopefully upcoming transition to
python 2.4 (from 2.3.4) on winxp platform

However, I'm getting SyntaxErrors in files that worked fine in 2.3, it
tells me that e.g.

newLanguage.lan guage =
languageElement[0].firstChild.dat a.encode("ascii ")

this line is broken

However, if I modify my file just for the heck of it and comment that
particular line, I still might get syntax error on that particular
line, or if I insert a line before that particular line I might get
away with it?

Has anyone seen anything similar, or even better knows what causes
this?

/Simon

Jul 21 '05 #1
1 1204
Replying to self,

it seems to be related to
https://sourceforge.net/tracker/inde...70&atid=105470
(Syntax error on large file with MBCS encoding)
even though my files had # -*- coding: ascii -*-
However, if I removed this explicit ascii encoding then I did not get
any syntax error.

/Simon

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
248449
by: Dave | last post by:
I have 2 tables, one with names, and another with addresses, joined by their CIVICID number (unique to the ADDRESSINFO table) in Oracle. I need to update a field in the NAMEINFO table for a particular surname in a particular town. I can select the records fine with this syntax (testing in Oracle SQL* Plus) SELECT NAMEINFO.LASTNAME,...
5
5124
by: S.Patten | last post by:
Hi, I have a problem with updating a datetime column, When I try to change the Column from VB I get "Incorrect syntax near '942'" returned from '942' is the unique key column value However if I update any other column the syntax is fine
4
2279
by: KKramsch | last post by:
My code is generating this type of error: Security Error: Content at http://nonexistent.org/somepage.html may not load data from about:blank. The "about:blank" page mentioned in the error message is a pop-up window, whose content is 100% dynamically-generated, and which is in fact *owes its existence* to code in the referring page...
12
2871
by: ColinWard | last post by:
Hi. I am trying to run the following code when the user clicks a button, but I am getting a syntax error in the SQL. I have a feeling it has to do with brackets. Can anyone help? here is the SQL(watch for word wrap: StrSql = "insert into(ProductName)" 'SQL string which executes with the RunSQL statement
4
11517
by: Robert | last post by:
What is the syntax to use in a VBA script to execute a pass-through? Thanx
2
1037
by: Mike W | last post by:
VB .NET 2003: When I click on the Start button (>) in Visual Studio to run my project, I get several messages in the Task List window. The first says: C:\code\CaliberGenerator\Inherited Forms\frmDepartmentSummary.vb(278): 'frmDeptUpdate' is not a member of 'CaliberGenerator.frmMDIParent'. However, in the frmMDIParent Class, at the...
0
855
by: Mike W | last post by:
VB .NET 2003: When I click on the Start button (>) in Visual Studio to run my project, I get several messages in the Task List window. The first says: C:\code\CaliberGenerator\Inherited Forms\frmDepartmentSummary.vb(278): 'frmDeptUpdate' is not a member of 'CaliberGenerator.frmMDIParent'. However, in the frmMDIParent Class, at the...
1
1652
by: Jeff Silverman | last post by:
I have a PHP program that almost works. I'm running it from the command line and simulating a form using a GET method. That part is working, but I get spurious records with all of the fields concatenated into a single field. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;...
2
4795
by: technocraze | last post by:
Hi guys, I have encountered this error when updating the values to the MS Acess table. Error : Update on linked table failed. ODBC sql server error Timeout expired. MS Acess is my front end and sql server is my backend server. This error occured whenever i step through and when it reaches rs.update it jux hangs down there and thereafter...
0
7703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7926
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8138
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7679
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6287
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5223
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3657
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1228
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.