I'm not quite sure what you're asking. min and max are not fundamentally 
changed between Python3 except that the cmp keyword will no longer be 
valid. So if you do min(L) or min(L, key=foo), both will work in Python3, 
up to how you are doing comparisons within L. For that, it is localized to 
the objects of L, so you should *not* do anything in the call to min.

Best,
Travis


On Monday, November 6, 2017 at 4:21:06 AM UTC+10, Jori Mäntysalo wrote:
>
> Is it possible to run min(L) in Python2 and at the same time check if it 
> could be run in Python3 for given L? 
>
> Reason: allow_multiple_edges() on generic_graph.py and keep_label='min' 
> (or 'max'), can we have a nice deprecation? 
>
> -- 
> Jori Mäntysalo 
>

-- 
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 https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to