[Python-ideas] sys.args

Antoine Pitrou solipsis at pitrou.net
Fri Jul 26 17:02:32 CEST 2013


Le Fri, 26 Jul 2013 17:54:50 +0300,
Michael Foord <fuzzyman at gmail.com> a
écrit :
> 
> In principle I like it. I agree that argv is an unintuitive hang over
> from earlier days.
> 
> The only compatibility issue is that a lot of code out there
> (especially tests but not just tests) manipulates the contents of
> sys.argv to modify behaviour. Code might have to change to modifying
> sys.args and sys.argv, taking care to keep them in sync.

Yeah, and visually it can be quite... bothersome to distinguish between
the two. This is a recipe for stupid, nerve-grating bugs.

Regards

Antoine.




More information about the Python-ideas mailing list