A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2019-May/157310.html below:

[Python-Dev] Unicode identifiers in test files?

[Python-Dev] Unicode identifiers in test files? [Python-Dev] Unicode identifiers in test files?Serhiy Storchaka storchaka at gmail.com
Sat May 4 02:48:04 EDT 2019
04.05.19 05:46, Eric V. Smith пише:
> Is there a policy against using Unicode identifiers in test files?
> 
> As part of adding !d to f-strings, there's a code path that's only 
> executed if the text of the expression is non-ascii. The easiest way to 
> exercise it, and the way I found a bug, is by using an identifier with 
> Unicode chars. I know we have a policy against this in Lib/, but what 
> about Lib/test/?
> 
> I could work around this with exec-ing some strings, but that seems like 
> added confusion that I'd avoid with a real Unicode identifier.

Could you use string literals with non-ascii characters? They are more 
used in tests.

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4