Skip to main content

A basic interface for implementing Object Oriented While Loops

Project description

OBJECT ORIENTED WHILE LOOPS (WhileObjects)

Interface for the While class to subclass and make your own Object Oriented While Loops

DESCRIPTION

While objects are are a new data structure in which we retain reference to our loop indefinitely, you can pick up the iteration where you left off much later in the script, or instantiate a new loop and not even run it at first

Installation

pip install WhileObjects

Usage

i: The current iteration value first: The starting value of the loop end: The end value of the loop op: The operater used to do comparison if the loop should continue increment: The value by which the loop should increment/decrement calc: The calculated value of the current iteration

The class While has the following methods: isFinished: Returns False if there are still iterations left to be done. start: Runs the full loop. The user should implement their calculation in a subclass. step: Steps through one iteration of the loop. The user should implement their calculation in a subclass. clear: Clears the stored work unit/other data.

Project details


Release history Release notifications | RSS feed

This version

0.3

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

WhileObjects-0.3.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

WhileObjects-0.3-py3-none-any.whl (1.6 kB view details)

Uploaded Python 3

File details

Details for the file WhileObjects-0.3.tar.gz.

File metadata

  • Download URL: WhileObjects-0.3.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for WhileObjects-0.3.tar.gz
Algorithm Hash digest
SHA256 6e8223c95b1a1bf3b8dc7b1d0e91aa14c4d708a3276840d9044d475284054765
MD5 9a93ea0f94d215aad7b1bd7d3647b9af
BLAKE2b-256 0c491e4ff99d67bdcdb073755cfd2772adde519063a8806363f52406803dfb39

See more details on using hashes here.

File details

Details for the file WhileObjects-0.3-py3-none-any.whl.

File metadata

  • Download URL: WhileObjects-0.3-py3-none-any.whl
  • Upload date:
  • Size: 1.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for WhileObjects-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ffe83a70901d651cac624ebc31d111ddc088bf66c503f5760db0cd0f655ceb0f
MD5 83e369a80a68e51d52c00e2fed6357cc
BLAKE2b-256 8a5fd73a3a7d499d036afb03d02061f62cf002bf7d8a7bdbfc1eba3e006f677c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page