Meta-issue / design principle: minimize implicit arguments, global arguments, and singletons

Open
#313 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
15/100
Issue type
Refactor
Clarity
Needs clarification
Activity status
Stale
Tech stack
python

Research direction

Start by locating the @local and @vectorize decorators and tracing how they implicitly access an IPython.parallel Client. Review the global state and singleton usage involved, then map the affected callers before choosing a design. Done means the decorators and related code no longer rely on implicit arguments, global state, or singletons without introducing hangs or bugs.

Written by the indexing model from the issue text.

Description

enhancement

To facilitate reasoning and remove sources of hangs and bugs, we need to remove all global state and singletons. This means we should refactor the @local and @vectorize decorators as well, since these need to implicitly access an IPython.parallel Client.

We can revisit relaxing this in the future, but for now, this is the standing policy.

Dominant language
Python
Stars
5
Forks
1
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from enthought/distarray

All issues in enthought/distarray

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.