if enable_edit:
if not (cmd or script):
- for filename in args:
- flist.open(filename)
+ for filename in args[:]:
+ if flist.open(filename) is None:
+ # filename is a directory actually, disconsider it
+ args.remove(filename)
if not args:
flist.new()
if enable_shell:
Core and Builtins
-----------------
+- Issue #3573: IDLE hangs when passing invalid command line args
+ (directory(ies) instead of file(s))
+
+ Thanks to Guilherme Polo for patch and to Roger Serwy for review.
+
- Issue #1683368: object.__new__ and object.__init__ raise a TypeError if they
are passed arguments and their complementary method is not overridden.