On Wed, Jan 30, 2013 at 11:04 AM, Keshav Kini <keshav.k...@gmail.com> wrote:
> Travis Scrimshaw <tsc...@ucdavis.edu> writes:
>> Hey everyone,
>>    Should we be encouraging (or enforce) new code to be python 3
>> compliant? In particular, not using removed syntax such as exceptions
>> as `raise ExceptionType, args` or `<>` comparisons?
>
> Encouraging, yes; enforcing, I'd say no. I don't think a Python 3
> transition for Sage is even on the horizon at this point. That said,

I was enthusiastic about switching from trying out Python3 a little
for fun... however, when I actually tried to use Python3 for a brand
new project involved web development (something independent from
Sage), it was pretty annoying still, and I was forced back to python2.
 That's worrisome.   So at this point your assertion "a Python 3
transition for Sage is not on the horizon" is about right.

> there is plenty of "old-style" Python code in Sage which could at least
> be updated to 2.7 standards anyway. That old exception raising syntax
> you mentioned is one example. There are probably places where we could
> make use of `with` clauses and are not. We should be using the
> subprocess module instead of os.system (PEP 324). Etc....

I remember adding code that used "with" to Sage back in I think 2008
when working on generators for the coercion model.  We've been using
with for a long time.

> -Keshav
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-devel?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



-- 
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to