10.05.22 08:10, Venkat Ramakrishnan пише:
I'm wondering if there's a repository of test cases that
test the Python grammar. Any help would be appreciated.
See test_grammar and test_syntax. And there are some test files for
specific grammar features, like test_string_literals, test_unpack_ex,
Greetings!
I'm wondering if there's a repository of test cases that
test the Python grammar. Any help would be appreciated.
Thanks & Best Regards,
Venkat.
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le
On 5/9/2022 5:24 PM, Victor Stinner wrote:
If PYTHONSAFEPATH=1 only breaks a minority of use cases, maybe we can
consider to make it the default, as Perl did in Perl 5.26 (2017) to
increase its security:
https://perldoc.perl.org/perl5260delta#Removal-of-the-current-directory-(%22.%22)-from-@INC
Hi,
I added the -P command line option and the PYTHONSAFEPATH=1
environment variable to Python 3.11 beta 1 to not prepend an "unsafe
path" to sys.path such as the script's directory or the current
directory:
https://docs.python.org/dev/using/cmdline.html#cmdoption-P
Example:
--
$ echo 'N