On Wed, Feb 09, 2011 at 04:46:52PM +0800, D. S. McNeil wrote:
> > Could you post an example [re: my whitespace issues --ed] to nail down
> > exactly what you're talking about?
> 
> sage: s = 'for i in range(3):\n' + ' '*4 + 'print i\n'
> sage: # add extra space, such as can often happen in practice
> sage: # when writing code, and I can't see it, because, well,
> sage: # it's whitespace..
> sage: s = s + '\n' + ' '*4 + '\n'
> sage:
> sage: fname = 'whitespace_pedantic.sage'
> sage: with open(fname,'w') as fp:
> ....:         fp.write(s)
> ....:
> sage: # Python is happy
> sage: execfile(fname)
> 0
> 1
> 2
> sage: # Sage is not
> sage: load(fname)
> ------------------------------------------------------------
>    File "<string>", line 5
> 
>      ^
> SyntaxError: invalid syntax

I think this should be fixed by trac ticket #9363 (merged in
sage-4.6.2.alpha1).

-Willem Jan

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to