Skip to content

Conversation

@boegel
Copy link
Member

@boegel boegel commented Nov 8, 2019

This was overlooked when porting to Python 3.

While the __metaclass__ = Singleton that specifies a singleton class in Python 2 does no harm when using Python 3, it's blatantly ignored when using Python 3, so ActiveMNS isn't a singleton class at all then...

This is important w.r.t. the time required for running the easyconfig test suite, to avoid that 475k (identical) ActiveMNS instances are created...

@boegel boegel added bug fix python3 Python 3 compatibility labels Nov 8, 2019
@boegel boegel added this to the next release (4.0.2?) milestone Nov 8, 2019
Copy link
Contributor

@akesandgren akesandgren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@akesandgren
Copy link
Contributor

Going in, thanks @boegel!

@akesandgren akesandgren merged commit da43ef7 into easybuilders:develop Nov 8, 2019
@boegel boegel deleted the singleton_py3 branch November 8, 2019 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug fix python3 Python 3 compatibility

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants