You're attempting to print out control characters most of which have no
visible representation. For "\7", at least if you're running from bash, and
not in an IDE, you should get an audible bell. All decimal ordinals below
32 are control

You can find a list of the symbols here:
http://en.cppreference.com/w/c/language/ascii

Even though this is an ASCII table, the ordinals for characters are the
same as in UTF-8 encoding.

Regards.

On Thu, Nov 24, 2016 at 1:46 PM, andy <wa...@no.mail.local> wrote:

> when printing these 'escaped-number-texts' within Linux/Spyder3 ide
> console, i get funny symbols like a "phone-symbol", triangles or symbols
> for male or female.
>
> >>> print("\7") # gives a phone
> >>> print("\5")
> >>> print("\1")
> >>> print("\21")
> >>> print("\30")
> >>> print("\31")
> >>> print("\32")
>
> def phonesymbol():
>         print("\7")
>
> phonesymbol() # prints a phone symbol
>
> my question is, is this a bug or a feature of Spyder3?
> if it is a feature, where can I find the complete table of symbols?
>
> within bash - starting python3 - i get some ugly "unicode?" symbols,
> which look like a square containig tiny alphanumeric numbers.
>
> best regards
> andy
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to