Skip to content

Forbid duplicating of web.Application and web.Request  #602

Closed
@asvetlov

Description

I've found both Application and Request has .copy() method with unpredictable behavior.
We should forbid this one.

There are two options:

  1. Don't inherit web.Application and web.Request from dict but implement MutableMapping abc from scratch.
  2. Override .copy with raising NotImplementedErrorr exception.

I'm inclining to second choice.

The patch is trivial but requires two additional tests in our suite and docs change.

Any volunteers?

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions