Re: back to school... "1/3" --> float question, just eval?
Wes Turner <[email protected]> Fri, 10 Apr 2020 02:38:24 -0400
| Newsgroups | gmane.comp.python.education |
|---|---|
| Message-ID | <CACfEFw-TMd=EfygCsZ7qJPV3asWbFsK5MaDkh8qf98a+PF0G8w@mail.gmail.com> |
Should've re-read your first message before I replied:
- "CLN: camper_program.py: Cleanup camper program codestyle with black and
pyflakes"
https://github.com/4dsolutions/python_camp/pull/3
- "TST: camper_program.py: tests and exception handlin"
https://github.com/4dsolutions/python_camp/pull/4
- IDK if camper_program_with_tests.py or camper_program_pro.py would be
more or less helpful than just reviewing the (commits in the) PR
https://github.com/4dsolutions/python_camp/blob/master/PyCampNextLevel.ipynb
- Git
- https://learngitbranching.js.org/ is an excellent interactive resource
for learning git
- Password Hashes
- argon2 is a chosen cryptographic hash function:
https://en.wikipedia.org/wiki/Argon2
- Django now defaults to PBKDF2
https://docs.djangoproject.com/en/3.0/topics/auth/passwords/#how-django-stores-passwords
- https://en.wikipedia.org/wiki/Hashcat is really fast at password hashing
- Bitcoin has a number of SHA256 implementations; that may be the fastest
int eh whole world
- https://github.com/bitcoin/bitcoin/tree/master/src/crypto
- https://github.com/bitcoin/bitcoin/blob/master/src/crypto/sha256.cpp
- "Dumbcoin - An educational python implementation of a bitcoin-like
blockchain"
https://github.com/julienr/ipynb_playground/blob/master/bitcoin/dumbcoin/dumbcoin.ipynb
- https://en.wikipedia.org/wiki/Hyperledger#Members_and_governance
On Thu, Apr 9, 2020 at 10:30 PM Wes Turner <[email protected]> wrote:
> Are there unit tests for the supported operations?
> Is the UI logic a separate testable unit?
> Does it just fatal exception when parsing fails; or does the REPL loop
> catch the e.g. Value error?
>
> Instead of a CLI eval wrapper with regex, you could use ipywidgets in a
> notebook:
> https://ipywidgets.readthedocs.io/en/latest/examples/Using%20Interact.html
> https://ipywidgets.readthedocs.io/en/latest/examples/Widget%20List.html
>
> You can pair a notebook to a markdown file with jupytext so that the
> notebook autosaves as markdown, which works with mailman 3 mailing list
> archives
>
> On Thu, Apr 9, 2020, 1:44 PM kirby urner <[email protected]> wrote:
>
>>
>>> Try the following:
>>>
>>> from fractions import Fraction
>>> float(Fraction("1/3"))
>>>
>>> Knowing you, I'm sure you can figure out plenty of useful applications
>>> of this. :-)
>>>
>>> André
>>>
>>>
>> A totally excellent suggestion!
>>
>> I'm going to share that, by bringing campers here on tour, saying "this
>> is where Python educators hang out!"
>>
>> Maybe some of them will want to join us someday.
>>
>> Kirby
>>
>>
>> _______________________________________________
>> Edu-sig mailing list -- [email protected]
>> To unsubscribe send an email to [email protected]
>> https://mail.python.org/mailman3/lists/edu-sig.python.org/
>>
>
_______________________________________________
Edu-sig mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/edu-sig.python.org/