This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ python -m pip install --unstable-feature=resolver 'ansible-base @ https://github.com/ansible/ansible/archive/devel.zip#egg=ansible-base==2.10.0' 'ansible @ https://toshio.fedorapeople.org/ansible/acd/ansible/ansible-2.10.0.tar.gz#egg=ansible==2.10.0' -vvv | |
Non-user install because user site-packages disabled | |
Created temporary directory: /tmp/pip-ephem-wheel-cache-kp8fwlc8 | |
Created temporary directory: /tmp/pip-req-tracker-pf3nk6ah | |
Initialized build tracking at /tmp/pip-req-tracker-pf3nk6ah | |
Created build tracker: /tmp/pip-req-tracker-pf3nk6ah | |
Entered build tracker: /tmp/pip-req-tracker-pf3nk6ah | |
Created temporary directory: /tmp/pip-install-7ishjhrc | |
Collecting ansible-base==2.10.0 | |
Created temporary directory: /tmp/pip-unpack-r5dkz4c4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import anyio | |
from contextlib import asynccontextmanager | |
class NotYet(RuntimeError): | |
pass | |
class ResultGatheringTaskgroup: | |
def __init__(self): | |
self.result = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GOROOT_1_11_X64=/usr/local/go1.11 | |
ANDROID_HOME=/usr/local/lib/android/sdk | |
JAVA_HOME_11_X64=/usr/lib/jvm/zulu-11-azure-amd64 | |
ImageVersion=20190930.2 | |
LANG=C.UTF-8 | |
INVOCATION_ID=029524e610de4329ac57a8f3e8b21281 | |
JAVA_HOME_12_X64=/usr/lib/jvm/zulu-12-azure-amd64 | |
ANDROID_SDK_ROOT=/usr/local/lib/android/sdk | |
RUNNER_TOOL_CACHE=/opt/hostedtoolcache | |
JAVA_HOME=/usr/lib/jvm/zulu-11-azure-amd64 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Why do we have unadorned string literals (native strings) in our codebase? | |
Doesn't that put us in danger of UnicodeError exceptions? | |
(1) Your codebase should be using text by default. At the borders, you convert | |
strings from other APIs into text and then use text throughout, only | |
converting to bytes (or native strings) when those types are needed for | |
another, outside API. | |
(2) On Python2, text can be safely combined with (or compared to) text[1]_. Bytes | |
can be combined with bytes. And ascii-only bytes can be combined with text. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cherrypy | |
import cherrypy_cors | |
class Coordinator: | |
@cherrypy.expose | |
def index(self): | |
return """<html> | |
<script type="text/javascript"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pathlib import Path | |
import cherrypy | |
class Demo: | |
@cherrypy.expose | |
def index(self): | |
return Path('static/index.html').open(encoding='utf-8') |
- https://twitter.com/ZhikangZhang
- https://twitter.com/ossronny
- https://twitter.com/the_compiler
- https://twitter.com/pypi
- https://twitter.com/WillingCarol
- https://twitter.com/ThePyPA
- https://twitter.com/malemburg
- https://twitter.com/nlhkabu
- https://twitter.com/codewithanthony
- https://twitter.com/obestwalter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"sender": { | |
"avatar_url": "https://avatars0.githubusercontent.com/u/40318227?v=4", | |
"events_url": "https://api.github.com/users/diactoros%5Bbot%5D/events{/privacy}", | |
"followers_url": "https://api.github.com/users/diactoros%5Bbot%5D/followers", | |
"following_url": "https://api.github.com/users/diactoros%5Bbot%5D/following{/other_user}", | |
"gists_url": "https://api.github.com/users/diactoros%5Bbot%5D/gists{/gist_id}", | |
"gravatar_id": "", | |
"html_url": "https://github.com/apps/diactoros", | |
"id": 49109000, | |
"login": "diactoros[bot]", |