Opened 8 years ago

Closed 8 years ago

#8383 closed (duplicate) function signature doesn't match what's expected

Reported by: vomjom Owned by: nobody
Component: File uploads/storage Version: master
Severity: Keywords:
Cc: vomjom@… Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


In django/core/files/, TemporaryUploadedFile's seek function only takes an offset, but as in shown in it should also takes a whence argument.

It'd be far better if TemporaryUploadedFile's file-object functions were more similar to InMemoryUploadedFile in that they would pass all the arguments, like:

def seek(self, *args, **kwargs):
    return*args, **kwargs)

And so on for the rest of the functions.

Change History (1)

comment:1 Changed 8 years ago by vomjom

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to duplicate
  • Status changed from new to closed

Oops, this looks like a dupe of #7769

Note: See TracTickets for help on using tickets.
Back to Top