[IronPython] Cryptic traceback when encoding name is incorrect

Snaury snaury at gmail.com
Mon Jul 17 09:20:57 PDT 2006


# -*- coding: nonsense -*-
print "Testing..."

Traceback (most recent call last):
  File mscorlib, line unknown, in .ctor
  File mscorlib, line unknown, in .ctor
TypeError: Value cannot be null.
Parameter name: encoding

I think it should properly state that encoding name is invalid.


More information about the users mailing list