Why does this (very simple piece of) code does not work?

Matteo Dell'Amico della at toglimi.linux.it
Mon Aug 16 15:15:31 CEST 2004

jblazi wrote:
>        os.rename(x,y)

> Traceback (most recent call last):
>   File "<stdin>", line 9, in ?
> OSError: [Errno 22] Invalid argument

Works fine here (Linux). Maybe you're using a platform where you use 
invalid characters for the filename?


More information about the Python-list mailing list