1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Python] When (and why) did Python2's built-in `file()` get deprecated? [duplicate]

Discussão em 'Python' iniciado por Stack, Outubro 1, 2024 às 00:02.

  1. Stack

    Stack Membro Participativo

    I recently had to port some ancient Python2 code to Python3 and bumped into the use of the file built-in function instead of open I've been used to.

    Interestingly there was no reference to file being deprecated and also the 2to3 tool did not report that this has or should be changed.

    Could anyone point me to a document explaining what happened?

    Continue reading...

Compartilhe esta Página