Akuli
Akuli
``` >>> import pprint >>> from pygments.lexers import CLexer >>> pprint.pprint(list(CLexer().get_tokens("int x = 1 - 2, y = 1-2;"))) [(Token.Keyword.Type, 'int'), (Token.Text.Whitespace, ' '), (Token.Name, 'x'), (Token.Text.Whitespace, ' '), (Token.Operator,...
```python3 >>> from Crypto.PublicKey import ECC, RSA >>> ECC.generate(curve='p384') == RSA.generate(bits=4096) Traceback (most recent call last): File "", line 1, in File "/home/a/foo/env/lib/python3.10/site-packages/Crypto/PublicKey/ECC.py", line 807, in __eq__ return other.pointQ ==...
``` from Crypto.PublicKey import ECC key = ECC.generate(curve='p384') print(key) print(key.curve) print(key.public_key().curve) ``` pycryptodome 3.14.1 uses `NIST P-384` consistently: ``` EccKey(curve='NIST P-384', ...) NIST P-384 NIST P-384 ``` pycryptodome 3.15.0 sometimes...
This works at runtime, but fails to type check: ```python from Crypto.Cipher import AES cipher = AES.new(b"k"*32, AES.MODE_GCM, nonce=b"n"*12) print(cipher.encrypt_and_digest(b"hello world")) ``` The mypy error is: ``` asd.py:3: error: Item...
It should at least mention why not to use it, and why it is a "quick and dirty" solution in situations like this: ``` button.config(state="disabled") button.update() long_running_function() button.config(state="normal") ```
"When a tkinter program is running, Tk needs to process different kinds of events. ... Tk and most other GUI toolkits do that by simply checking for any new events...
Sometimes daemon threads are useful, because they don't prevent the program from quitting.
Fixes #1185 Fixes #1189
`cargo r` `cargo t` `cargo b` `cargo clippy` `cargo fmt` These are all I have used (sometimes with other flags e.g. `RUST_BACKTRACE=1 RUSTFLAGS='-A dead_code -A unused_imports' cargo r`, but I...