Opened 6 years ago

Closed 6 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.

Attachments (0)

Change History (1)

comment:1 Changed 6 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

Add Comment

Modify Ticket

Change Properties
<Author field>
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.