- Bug fixes
- Internal operation fixes
aleat3.output.colored
fixes
- Documentation rewriting
- Some contents were migrated or removed
- Some contents were highlighted
- Trivial fixes
__author__
is now onaleat3.__init__
(notaleat3.constructor
)- The
aleat3.output.init_errors
will no longer support module tests, according to PR #28 - Made some type hint annotations
- The "patch functions" (from
aleat3.output.colored
, line 49, on the second level of thetry/except
block) are now aliases of the parentbase()
- Bug fixes
- Documentation fixes
- Bug fixes
- Improved error handling
- The
aleat3.fixme
folder has been deleted according to the issue #5
- Minor bug fixes
- Constructor (
__init__
) issues solved.
- Constructor (
- Special progress: we are now on GitHub!
- This change came with even more changes:
- There are Markdown documents (like this one!)
- New 'tests' folder.
- This change came with even more changes:
- The object
aleat3.Aleatoryous
has changes.- For the
extras
parameter, it also accepts tuples.
- For the
- The aleat3 scripts have been deleted.
- New features
- New
Aleatoryous()
mode option:"random"
. Check documentation to learn more. - New variable:
LIST_EXAMPLE
- New
- Minor bug fixes
- Variable minor fixes
- The aleat3 scripts has changes. Check documentation to learn about this fixes.
- Minor bug fixes
- Some variable fixes
- New
setup()
feature: console_scripts.- View documentation, at section "aleat3 scripts".
- Some variable fixes
- 'Applications' library fixes
CoinWinners.py
fixed
- Code bug fixes
- Get the
__version__
and the__author__
data easier.
- Get the
- Minor bug fixes
- Less repetitions at code.
- 'Applications' library corrected
- New colored output
- More Colorama functions are used
- New 'Applications' file:
diceMove.py
- Play with the computer to gain 50 points with
aleatory.dice
- Play with the computer to gain 50 points with
- Minor bug fixes
- Less repetitions at code.
- Variable
aleat3.constructor.__version__
corrected.
- Bug fixes attempted
- Fixed
aleat3.Aleatoryous.first_given()
method.
- Fixed
- New feature: 'Applications' library.
Let's talk about this new feature. At aleat3.applications
library you can run many
examples of Aleatoryous programming. The unable examples at this version are:
- diceInterface.py
- Use tkinter library for a dice interface.
- rouletteWinners.py
- Operate a long string of names and get 5 winners.
- coinWinners.py
- Play with Heads or Tails and receive if you won or not.
To call this functions, import the example and just run()
it:
from aleat3.applications import rouletteWinners # As an example
rouletteWinners.run()
- Minor bug fixes
- Sometimes, the
module_test()
function failed at__main__
level.
- Sometimes, the
- New developer features: Module tests
- We are talking about
module_test()
function. View the new section Module tests.
- We are talking about
- New features:
- Some output is colored with Colorama.
- To view this function, you must install the Colorama library at PyPi.
- New function: coinToBool. View the aleatory.coin section to learn more.
- Some output is colored with Colorama.
This version where released before, but it returned several errors. Then, version 0.0.9 is now released.
- Minor bugs resolved:
- Sometimes, version 0.0.6 could not make the "no-repetition" operation.
- Minor bugs resolved:
- Sometimes, version 0.0.5 did not return
__version__
output correctly. - Some exception handling were wrong at versions 0.0.4 and 0.0.5.
- The operations are much cleaner and without repetitions.
- Sometimes, version 0.0.5 did not return
- New option at
Aleatoryous.first_given()
: no-repetition.- View the "Iterating with aleatory.roulette" section to learn more about his feature.
- Some variables deleted or recycled:
- Private variables recycled
- Minor bugs resolved:
- Cleaner output
- Faster operations
- Some variables deleted or recycled:
- Variable
Aleatoryous.cache
deleted - Variable
Aleatoryous.it
deleted - Private variables recycled
- Variable
At version 0.0.2, you could change the Aleatoryous mode by typing:
obj = Aleatoryous("aleatory.coin")
obj.mode = "Dice"
But now, that operation is forbidden, and the system might return a message like this:
Traceback (most recent call last):
File .../-.py in <module>
obj.mode = "Dice"
^
AttributeError: object "Aleatoryous" has no attribute "mode"
Instead of that, use the new method Aleatoryous.changemode():
obj.changemode("aleatory.dice")
Also, in version 0.0.3, you can get the mode name of your object:
print(obj.getmode())