Re: [Python-Dev] "if __name__ == '__main__'" at the bottom of python unittest files

2019-05-04 Thread Stephen J. Turnbull
Terry Reedy writes: > I agree that complete 100.000% test coverage is a nice ideal, but > sometimes the last percent can take hours to accomplish, if it is > indeed sensibly possible. 100% test coverage is an ideal. Reports *claiming* 100% coverage, however, are of practical benefit. The poi

Re: [Python-Dev] RFC: PEP 587 "Python Initialization Configuration": 2nd version

2019-05-04 Thread Victor Stinner
Hi INADA-san, This PEP is the result of 2 years of refactoring to *simplify* the *implementation*. I agree that bytes string is the native type on Unix. But. On Windows, Unicode is the native type. On Python 3, Unicode is the native type. One key of the simplified implementation is the unique PyCo

Re: [Python-Dev] RFC: PEP 587 "Python Initialization Configuration": 2nd version

2019-05-04 Thread Inada Naoki
2019年5月3日(金) 4:59 Victor Stinner : > > * PyConfig now only uses wchar_t* for strings (unicode): char* (bytes) > is no longer used. I had to hack CPython internals for that :-) I prefer char* to wchar_t* on Unix. Since UTF-8 dominated Unix world in these decades, wchar_t* is less usable on Unix no

Re: [Python-Dev] Unicode identifiers in test files?

2019-05-04 Thread Eric V. Smith
On 5/4/19 3:54 AM, Eric V. Smith wrote: On 5/4/19 2:48 AM, Serhiy Storchaka wrote: 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

Re: [Python-Dev] Unicode identifiers in test files?

2019-05-04 Thread Eric V. Smith
On 5/4/19 2:48 AM, Serhiy Storchaka wrote: 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 i