View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000227 | FreeCAD | Bug | public | 2010-12-30 12:12 | 2010-12-31 13:29 |
| Reporter | pperisin | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | not fixable | ||
| Product Version | 0.11 | ||||
| Summary | 0000227: Character '\' not working in python script | ||||
| Description | Hi, this line reports an error in python console from OCC import XCAFApp, TDocStd, TCollection, XCAFDoc, \ BRepPrimAPI, Quantity, TopLoc, gp, TPrsStd, XCAFPrs I think that this is ok. Using '\' character to continue command over many lines should be allowed Regards, Petar Perisin | ||||
| Additional Information | win 7 32bit build 3824 | ||||
| Tags | No tags attached. | ||||
| FreeCAD Information | |||||
|
|
Sorry, I guess you're wrong. If I open a python session from a normal command line window and do a: import os, \ sys I also get a syntax error. So far the behaviour of our GUI python console is exactly the same to the standard console in this regard. The backslash in general seems to be allowed but probably not inside an import statement. E.g. you can use it for this: "Hello, "\ "World!" |
|
|
Invalid item. |
FreeCAD