How to get get_body() to work? (about email)

Jon Ribbens jon+usenet at unequivocal.eu
Sun Mar 19 14:07:53 EDT 2023


On 2023-03-19, Stefan Ram <ram at zedat.fu-berlin.de> wrote:
> Jon Ribbens <jon+usenet at unequivocal.eu> writes:
>>(Also, I too find it annoying to have to avoid, but calling a local
>>variable 'file' is somewhat suspect since it shadows the builtin.)
>
>   Thanks for your remarks, but I'm not aware
>   of such a predefined name "file"!

Ah, apparently it got removed in Python 3, which is a bit odd as the
last I heard it was added in Python 2.2 in order to achieve consistency
with other types.


More information about the Python-list mailing list