Eric V. Smith

Results 32 comments of Eric V. Smith

I supposed the problem is that dumpscript is just too dumb. It has this code, after it checks for known field types: https://github.com/django-extensions/django-extensions/blob/0e5747586332333f572bcfbf674b712e11aa69dd/django_extensions/management/commands/dumpscript.py#L705C13-L707 ```python # A normal field (e.g. a...

> @ericvsmith Can you help with this one? We have a [description of the requirements](https://github.com/python-pillow/Pillow/issues/1888#issue-153265584) and are in need of a [better definition of the format requirements](https://github.com/python-pillow/Pillow/issues/1888#issue-153265584) and detailed description...

Are you saying that the Python-only version shows the problem? If so, could you simplify your example to remove the C version? And then simplify the Python-only version down to...

If a zip file contains "pkg/foo.py" but no "pkg/" entry, it will not be possible for "pkg" to be a namespace package portion.

For a (very) brief discussion on the strategy to implement this, see: http://mail.python.org/pipermail/import-sig/2012-May/000528.html

See also test_namespace_pkgs.py ZipWithMissingDirectory.test_missing_directory which is currently marked as expectedFailure.

I don't think such files are common: I've never seen such a file "in the wild". I created one, by accident, while testing PEP-420. OTOH, it was surprisingly easy to...

I think the argument for not setting the class attribute is that `field` is supposed to be invisible to the class user. My inclination would be to leave things as-is.

The argument there is that the default values would be useful, but not the default non-values (that is, `field`). It's entirely possible this was a bad decision, but it's where...