operation_parameters mutates fields

Bug #709359 reported by Gavin Panella
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lazr.restful
Triaged
Low
Unassigned

Bug Description

Fields passed into operation_parameters have their __name__ attribute
mutated.

{{{
foo = TextLine(__name__="foo")

@operation_parameters(aaa=foo)
def bar(): pass

assert foo.__name__ == "foo", foo.__name__
}}}

rename_parameters_as seems to assign to __name__ also.

Perhaps every parameter passed in should be copied first?

Revision history for this message
Robert Collins (lifeless) wrote :

Gavin, it would be lovely if you can triage as you file - thanks :)

Changed in lazr.restful:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Robert Collins (lifeless) wrote :

Triaging low for now, though this may be a dep for some functional fix we need elsewhere which would raise the importance.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.