Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid using call triggering c++ call execution in default parameters init #804

Merged
merged 2 commits into from
Jul 16, 2024

Conversation

obrix
Copy link
Member

@obrix obrix commented Jul 15, 2024

Do not use a constructor triggering a c++ call from within a default parameters list, it is evaluated at declaration and can trigger a call before proper pypowsybl init.

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Does this PR already have an issue describing the problem?

What kind of change does this PR introduce?

What is the current behavior?

What is the new behavior (if this is a feature change)?

Does this PR introduce a breaking change or deprecate an API?

  • Yes
  • No

If yes, please check if the following requirements are fulfilled

  • The Breaking Change or Deprecated label has been added
  • The migration steps are described in the following section

What changes might users need to make in their application due to this PR? (migration steps)

Other information:

…parameters list, is evaluated at declaration and can trigger a call before proper pypowsybl init.

Signed-off-by: Bertrand Rix <bertrand.rix@artelys.com>
@obrix obrix requested a review from HugoKulesza July 15, 2024 07:34
@HugoKulesza HugoKulesza merged commit 58cfcbe into main Jul 16, 2024
6 checks passed
@HugoKulesza HugoKulesza deleted the fix_init_parameters branch July 16, 2024 08:22
HugoKulesza added a commit that referenced this pull request Jul 16, 2024
…parameters list, is evaluated at declaration and can trigger a call before proper pypowsybl init. (#804)

Signed-off-by: Bertrand Rix <bertrand.rix@artelys.com>
Co-authored-by: HugoKulesza <94374655+HugoKulesza@users.noreply.github.com>
geofjamg pushed a commit that referenced this pull request Aug 24, 2024
…parameters list, is evaluated at declaration and can trigger a call before proper pypowsybl init. (#804)

Signed-off-by: Bertrand Rix <bertrand.rix@artelys.com>
Co-authored-by: HugoKulesza <94374655+HugoKulesza@users.noreply.github.com>
geofjamg pushed a commit that referenced this pull request Aug 27, 2024
…parameters list, is evaluated at declaration and can trigger a call before proper pypowsybl init. (#804)

Signed-off-by: Bertrand Rix <bertrand.rix@artelys.com>
Co-authored-by: HugoKulesza <94374655+HugoKulesza@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants