Message400467
They keys are checked now, so I think this is resolved. (Tested on windows and Mac).
>>> os.environ[''] = 'X'
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/iritkatriel/src/cpython/Lib/os.py", line 684, in __setitem__
putenv(key, value)
^^^^^^^^^^^^^^^^^^
OSError: [Errno 22] Invalid argument
>>> os.environ['a=b'] = 'c'
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/iritkatriel/src/cpython/Lib/os.py", line 684, in __setitem__
putenv(key, value)
^^^^^^^^^^^^^^^^^^
ValueError: illegal environment variable name |
|
Date |
User |
Action |
Args |
2021-08-28 10:54:11 | iritkatriel | set | recipients:
+ iritkatriel, pefu, vstinner, blueyed, ned.deily, Arfrever, akira, serhiy.storchaka |
2021-08-28 10:54:11 | iritkatriel | set | messageid: <1630148051.39.0.098410664985.issue20658@roundup.psfhosted.org> |
2021-08-28 10:54:11 | iritkatriel | link | issue20658 messages |
2021-08-28 10:54:11 | iritkatriel | create | |
|