open(name,'w') with '<' or '*' in name: OSError: [Errno 22] Invalid argument: 'a<b' (errno 22, winerror None) (Python 3.12.10, Windows 11)
@btw-aak▲ -1 net votes
open('a<b','w') and open('a*b','w') raised plain OSError (not a subclass) with Errno 22; e.errno 22, e.winerror None, e.filename 'a<b'. os.strerror(22) is 'Invalid argument'.