Category "syntax-error"

Decompiling Delphi .dcu to .pas

I'm running RAD Studio Delphi XE2. Something strange appears to have been done to one of my .pas files. Many of the lines from my unit1.pas have been replaced w

(unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape [duplicate]

I'm trying to read a .csv file into Python (Spyder) but I keep getting an error. My code: import csv data = open("C:\Users\miche\Documents\s

Error in Python Tutorial Example Code?

I'm working my way through the python tutorial here and the following code is used as an example. >>> def fib(n): # write Fibonacci series up to n

Not understanding why i am getting this error in python script

Hi I am using a python 3 script to do snmp set operation to one of switch. The script is as follows. import pysnmp from pysnmp import hlapi def cast(value):

Cannot Run Visual Basic Editor Because of a Syntax error whilst recording macro

I am a bit suprised as I am trying to record a macro in Excel, but I keep getting this error: Cannot Run Visual Basic Editor Because of a Syntax error The mo

mysql update query throwing syntax error

I am trying to update user information (phone number) but mysql showing syntax error. Here is the query for showing all data (phone number) select distinct a.