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

Bring math, random and time symbols into global namespace #99

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Commits on Oct 27, 2024

  1. chips/samd21: Fix regex usage in uf2conv.py

    Was using \s for whitespace instead of \\s
    
    Signed-off-by: Keith Packard <[email protected]>
    keith-packard committed Oct 27, 2024
    Configuration menu
    Copy the full SHA
    4317ed7 View commit details
    Browse the repository at this point in the history
  2. ports/narrow-1284: Clean up smaller math builtin list

    Provide alias for 'pow', clean up inf and nan definitions.
    
    Signed-off-by: Keith Packard <[email protected]>
    keith-packard committed Oct 27, 2024
    Configuration menu
    Copy the full SHA
    cadcebf View commit details
    Browse the repository at this point in the history

Commits on Oct 28, 2024

  1. Add math, random and time names to global namespace (by default)

    Add '--global' parameters to snek-builtin.py to match namespaces from
    builtin function names, removing those namespaces so that the names
    appear in the global namespace.
    
    By default, the math, time and random namespaces are removed.
    
    Signed-off-by: Keith Packard <[email protected]>
    keith-packard committed Oct 28, 2024
    Configuration menu
    Copy the full SHA
    3ce9578 View commit details
    Browse the repository at this point in the history
  2. Update examples and docs to reflect removal of namespaces

    Fix all of the code to remove math., time. and random.
    
    Signed-off-by: Keith Packard <[email protected]>
    keith-packard committed Oct 28, 2024
    Configuration menu
    Copy the full SHA
    d2b6670 View commit details
    Browse the repository at this point in the history