Author iritkatriel
Recipients Arfrever, akira, blueyed, iritkatriel, ned.deily, pefu, serhiy.storchaka, vstinner
Date 2021-08-28.10:54:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1630148051.39.0.098410664985.issue20658@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2021-08-28 10:54:11iritkatrielsetrecipients: + iritkatriel, pefu, vstinner, blueyed, ned.deily, Arfrever, akira, serhiy.storchaka
2021-08-28 10:54:11iritkatrielsetmessageid: <1630148051.39.0.098410664985.issue20658@roundup.psfhosted.org>
2021-08-28 10:54:11iritkatriellinkissue20658 messages
2021-08-28 10:54:11iritkatrielcreate