Hidden features of Sage

In the spirit of the StackOverflow threads of "hidden" language features, we can use this thread (community wiki) to aggregate useful but little-known features or tricks of Sage. Perhaps these can be collected and added to the documentation in the future.

It's a bit similar to specifying some strings as raw by prepending an r to '...' or "..." or '''...''' or """..."""; for instance in '\t' the backslash-t produces a tab, but in r'\t' it stays backslash-t.

Comments

Actually not ! You have to read the sources of Python to discover that fact. I wrote few months ago to the developer of itertools which told me that it was a minor speedup (if you want speed you will not use Python).

Comments

Sorry for not making this answer an anonymous wiki. In the recent versions of askbot, only one answer per user is allowed, so i had to trick by firts writing a comment, and then transform it into an answer, but that way i could not make it anonymous :(