Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Enhancement: call __init__() stackless #94

Closed
ghost opened this issue Oct 13, 2016 · 2 comments
Closed

Enhancement: call __init__() stackless #94

ghost opened this issue Oct 13, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Oct 13, 2016

Originally reported by: Anselm Kruis (Bitbucket: akruis, GitHub: akruis)


Currently __init__(self) runs at least at nesting level 1, even if soft switching is enabled(). This is usually not a big problem, because it is generally considered bad practise, to run complex code in __init__(self). Unfortunately the text test runner (or result) from the Python standard library calls the test cases from its __init__-method. This affects the test suite of Stackless, because the main tasklet now runs at nesting level 1. (PyDev runs the same tests at level 0).

Pull request #20 enhances Stackless to call __init__() stackless, if soft switching is enabled.


@ghost
Copy link
Author

ghost commented Oct 26, 2016

Original comment by Anselm Kruis (Bitbucket: akruis, GitHub: akruis):


implemented for 2.7-slp by pull request #20 (merged).

@ghost
Copy link
Author

ghost commented Nov 12, 2016

Original comment by Anselm Kruis (Bitbucket: akruis, GitHub: akruis):


Implemented:

  • 3.3-slp: 4188e7c9dda3
  • 3.4-slp: 7ade4d12c5e6
  • default-slp: 2fa4bc5264fd

@ghost ghost added this to the 3.3.7-slp milestone Sep 24, 2017
@ghost ghost closed this as completed Sep 24, 2017
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

0 participants