-
Notifications
You must be signed in to change notification settings - Fork 20
Make true CPython subset #28
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
Conversation
Tested both examples successfully on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few questions about some of the changes but mostly looking good to me. I'll do some testing today as well.
Sweet! Changes made! |
Hey! Let me know if this is good to go, and whether we want to line up changes to places where this is a dependency (@ladyada) before merging. |
@BlitzCityDIY this Drop In Worked just fine yeah? |
@ladyada yesss running as we speak on the azure project |
@tekktrik i think this is good to release with a maj vers bump and we'll See What Breaks :) |
🥳 |
Updating https://github.com/adafruit/Adafruit_CircuitPython_Debouncer to 2.0.1 from 2.0.0: > Merge pull request adafruit/Adafruit_CircuitPython_Debouncer#39 from awordforthat/add-typing > Set language to "en" for documentation > Switch to inclusive terminology > Increase min lines similarity > Patch .pre-commit-config.yaml > change discord badge > Patch: Replaced discord badge image > Updated gitignore > Update Black to latest. Updating https://github.com/adafruit/Adafruit_CircuitPython_Logging to 4.0.0 from 3.7.6: > Merge pull request adafruit/Adafruit_CircuitPython_Logging#28 from tekktrik/dev/cpython-subset > Set language to "en" for documentation > Switch to inclusive terminology > Increase min lines similarity > Patch .pre-commit-config.yaml
Resolves #27 by:
pylint
errors for such functions as they really shouldn't be used in user code.Logger
is the only logger, other loggers have been converted intoHandler
or subclasses of it.PrintHandler
has been changed toStreamHandler
, with the defaultstream
argument tosys.stderr
Logger
can now take a name that gets added to the corresponding global variablegetLogger()
now returnsNone
if the requested logger isn't found, as opposed to creating onePrintLogger
is nowPrintHandler
and should be used like a handler toLogger
hasHandlers()
has been added to help offset the previous changeFileHandler
was moved, and is imported from the main file (e.g.from adafruit_logging import FileHandler
)FileHandler
is now a subclass ofStreamHandler
Additionally:
setup.py
has been modified accordingly