Re: SyntaxError: encoding declaration in Unicode string
On Fri, Feb 14, 2014 at 3:35 AM, Fidel N fidelpe...@gmail.com wrote: Hi: Just after updating, Im getting the following error in Leo log, and cant run my scripts: line 1: # -*- coding: utf-8 -*- line 2: #@+leo-ver=5 exception executing script File string, line 0 SyntaxError: encoding declaration in Unicode string The code recently changed towards encoding, and I think this error is related to that recent change. I dont know where is the problem. In my code I use a lot of strings such as: u'my string' and perhaphs they are related.http://stackoverflow.com/questions/3170211/why-declare-unicode-by-string-in-python 1. The recent addition (hack) that adds the Python encoding string at the start of some (not all) python scripts seems dubious to me. I am inclined to remove it. I shall do so unless someone can prove to me that it makes sense to leave it in. 2. u'x' is supposed to work with Python 3.3 and higher: http://www.python.org/dev/peps/pep-0414/ What version of Python are you using? Edward -- You received this message because you are subscribed to the Google Groups leo-editor group. To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+unsubscr...@googlegroups.com. To post to this group, send email to leo-editor@googlegroups.com. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/groups/opt_out.
Re: Errro importing JavaScript file
On Sat, Feb 15, 2014 at 3:19 AM, Reinhard Engel reinhard.engel...@googlemail.com wrote: The following JSLint-perfect JavaScript file will not import into Leo. Any Ideas? Thanks for this report. Rewriting the JS importer is a top priority for me. I'll start this project today. Edward -- You received this message because you are subscribed to the Google Groups leo-editor group. To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+unsubscr...@googlegroups.com. To post to this group, send email to leo-editor@googlegroups.com. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/groups/opt_out.
Re: How to call leo functions easily
On Fri, Feb 14, 2014 at 1:33 AM, nakedmind eric.medina.atie...@gmail.comwrote: I remember there was no clear easy way to reach a desired function directly. I think what is needed is a single command namespace in which all commands can be accessed. There is such a namespace, namely the dict c.commandsDict. Keys are command names; values are functions that implement the command. Leo creates those functions in various ways: they may be wrappers that call the real function. HTH. Edward -- You received this message because you are subscribed to the Google Groups leo-editor group. To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+unsubscr...@googlegroups.com. To post to this group, send email to leo-editor@googlegroups.com. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/groups/opt_out.
Re: SyntaxError: encoding declaration in Unicode string
python 2.7 And I changed nothing in my scripts, just updated from leo 2 months old to the recent one. Actually, to be able to keep working, Im using the older one, until I can run the scripts on the new one, so I can try/test anything and give feedback. -- You received this message because you are subscribed to the Google Groups leo-editor group. To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+unsubscr...@googlegroups.com. To post to this group, send email to leo-editor@googlegroups.com. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/groups/opt_out.
The first fruits of the move to git: anyone can now generate Leo's docs
I am, at last, getting more comfortable with various git work flows. Being able to clone test branches much more quickly than with bzr is a big plus. Recent revs revised .gitignore so that various screen shots are part of each working copy. This, and a change to LeoDocs.leo means that it should now be possible to generate all of Leo's docs as follows: 0. Install docutils and sphinx as needed. 1. Open LeoDocs.leo with Python 2 (to avoid docutils issues). 2. Select the node called Leo's Documentation 3. Alt-x make-sphinx. For the first time, this works properly for me in a throw-away test directory, created just to test this work flow. Edward -- You received this message because you are subscribed to the Google Groups leo-editor group. To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+unsubscr...@googlegroups.com. To post to this group, send email to leo-editor@googlegroups.com. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/groups/opt_out.
Re: The first fruits of the move to git: anyone can now generate Leo's docs
WoW ! 2014-02-17 3:18 GMT+08:00 Edward K. Ream edream...@gmail.com: I am, at last, getting more comfortable with various git work flows. Being able to clone test branches much more quickly than with bzr is a big plus. Recent revs revised .gitignore so that various screen shots are part of each working copy. This, and a change to LeoDocs.leo means that it should now be possible to generate all of Leo's docs as follows: 0. Install docutils and sphinx as needed. 1. Open LeoDocs.leo with Python 2 (to avoid docutils issues). 2. Select the node called Leo's Documentation 3. Alt-x make-sphinx. For the first time, this works properly for me in a throw-away test directory, created just to test this work flow. Edward -- You received this message because you are subscribed to the Google Groups leo-editor group. To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+unsubscr...@googlegroups.com. To post to this group, send email to leo-editor@googlegroups.com. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/groups/opt_out. -- 人生苦短, Pythonic! 冗余不做,日子甭过!备份不做,十恶不赦! KM keep growing environment culture which promoting organization be learnning! 俺: http://zoomquiet.io 许: http://creativecommons.org/licenses/by-sa/2.5/cn/ -- You received this message because you are subscribed to the Google Groups leo-editor group. To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+unsubscr...@googlegroups.com. To post to this group, send email to leo-editor@googlegroups.com. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/groups/opt_out.