Closed Bug 1053080 Opened 10 years ago Closed 10 years ago

Improve mozbuild.util.memoize and add memoized_property

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla34

People

(Reporter: glandium, Assigned: glandium)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

      No description provided.
Blocks: 1053085
Blocks: 1053140
Comment on attachment 8472176 [details] [diff] [review]
Improve mozbuild.util.memoize and add memoized_property

Review of attachment 8472176 [details] [diff] [review]:
-----------------------------------------------------------------

::: python/mozbuild/mozbuild/test/test_util.py
@@ +483,5 @@
> +        # same type should give us the same id.
> +        instance_id = id(instance)
> +        del instance
> +        instance = foo()
> +        self.assertEqual(instance_id, id(instance))

I /think/ this is a CPython implementation detail (objects are refcounted and destroyed immediately). Meh.
Attachment #8472176 - Flags: review?(gps) → review+
https://hg.mozilla.org/mozilla-central/rev/44b0dcb52a8c
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
QA Whiteboard: [qa-]
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: