Hi!

Occasionally a sequence in the OEIS is marked with the keyword
'dead'. For various reasons. But it's meaning is clear:

*   "Here is nothing of interest. Move on."*

In Python this is expressed by 'None' or in Julia by the 
constant 'nothing'. Normally, if there is nothing of interest
you don't talk about it. I think this is natural. 

Or as Stefan Karpinski wrote on SO: "In both languages, this
value is not printed at an interactive prompt when an expression
evaluates to it, but is otherwise just a normal value. There's
nothing magical about it other than the printing behavior and
the fact that people agree by convention that it is the value
one returns when there is nothing interesting to return."

Sage behaves very differently: It draws all my attention to 
such cases. Trying to fetch relevant information from the 
OEIS suddenly a big pink box opens and tells me:

------------------------------------------
/opt/sagemath-8.4/local/lib/python2.7/site-packages/sage/databases/oeis.py:667: 
RuntimeWarning: This sequence is dead: "A154917: Duplicate of A001045."
warn('This sequence is dead: "{}: {}"'.format(self.id(), self.name()), 
RuntimeWarning)
-----------------------------------------

It not only warns me, it also tells me how it constructed 
the warning. I think it would be more appropriate not to 
warn, return 'None' and keep silent in such cases.

Peter

-- 
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