$ ubuntu-support-status
$ ubuntu-security-status
# fun_with_pdb.py | |
if __name__ == '__main__': | |
import pdb;pdb.set_trace() | |
# create a text file: input.txt | |
"hello from text file" | |
# then enter following command in your terminal | |
# python3 fun_with_pdb.py < input.txt |
import os | |
import telegram | |
import requests | |
from bs4 import BeautifulSoup | |
from urllib.parse import urljoin | |
DAREBEE_URL = "https://www.darebee.com/" | |
API_KEY = os.getenv("API_KEY") | |
ID_JUERGEN = os.getenv("ID_JUERGEN") |
# coding=utf-8 | |
import pytest | |
from Products.Libs.string_utils import try_to_convert_list_to_windows_1252_text | |
@pytest.mark.parametrize("list_, encoding", [ | |
(["abc", "d€f"], "Windows-1252"), | |
(["我犀角鳥啄忘我", "我犀角鳥啄忘我"], "UTF-16") | |
]) |
from datetime import date | |
END_OF_EARLY_BIRD = date(2020, 6, 1) | |
def calculate_price(current_day): | |
# if today() > END_OF_EARLY_BIRD: | |
# no more call to today() => easy to test => no mock necessary | |
if current_day > END_OF_EARLY_BIRD: | |
return 1000 |
""" | |
Python 3.8 installieren ( + Pfad aktivieren) | |
In der Konsole: | |
# legt virtual env an | |
Python -m venv fastapi | |
cd fastapi |
class Index: | |
def do(self): | |
self._do_stuff() | |
def _do_stuff(self): | |
if "the_moon_shines": | |
pass | |
####################################### |
D = dict() | |
def access_dict(D): | |
return D.get("some_key", None) | |
def do_stuff(): | |
if access_dict() is None: | |
pass |
new sections | |
------------ | |
- version pinning | |
- exceptions (Sphinx = new versions Python 3 only), see https://github.com/zopefoundation/Zope/pull/581 | |
- requires.io | |
- adding a new key to the Zope configuration, see https://github.com/zopefoundation/Zope/issues/580 | |
- all zope projects in overview https://zope3.pov.lt/py3/travis.html?filter=zope and https://github.com/zopefoundation/meta/issues/4 | |
update sections | |
--------------- |
(ZEO) jugmac00@jugmac00-XPS-13-9370:~/Projects/ZEO$ bin/test -vv -j3 | |
Running tests at all levels | |
Running .EmptyLayer tests: | |
Set up .EmptyLayer in 0.000 seconds. | |
Running: | |
Ran 0 tests with 0 failures, 0 errors and 0 skipped in 0.000 seconds. | |
[Parallel tests running in zope.testrunner.layer.UnitTests: | |
.] | |
[Parallel tests running in .!no tests here!: | |
.] |