i use as my web browser,
as my distro and i use
.
i like these javascript frameworks:
thanks for coming by
The repository where you make issues saying the worst problems that you have with code.
Ok so I am writing a program in python, and I was just coding it and it printed out:
% py sk.py
The Zen of Python, by Tim Peters
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
So I was thinking, what did it.
Then I found this issue on GitHub:
pallets/flask
| JiewenGuan
opened this issue on Feb 16 · 1 comment
why does my flask app prints out zen of python every time I run it? #4452
is this some kind of easter egg?
`(env) xxx@xxx-dev:~/xxx/xxxxxx# flask db upgrade
The Zen of Python, by Tim Peters
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than right now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
INFO [alembic.runtime.migration] Context impl SQLiteImpl....`
I was using sqlalchemy to mapping the database similar to the follows:
table A
id PK
name
table B
id PK
roleA_id FK(tableA id)
roleB_id FK(tableA id)
roleC_id FK(tableA id)
I know there are better way to map it as a many to many relationship, but I choose to do so for reasons. after this db migration the app starts to print out the zen of python every time I run flask run/shell/db migrate/db upgrade, sometime even prints it out for multiple times. everything else works normal, which makes me quite confused.
Environment:
Python version: 3.9.2
Package Version
alembic 1.7.5
astroid 2.9.3
autopep8 1.6.0
blinker 1.4
click 8.0.3
dnspython 2.2.0
email-validator 1.1.3
Flask 2.0.2
Flask-DebugToolbar 0.11.0
Flask-Login 0.5.0
Flask-Migrate 3.1.0
Flask-SQLAlchemy 2.5.1
Flask-WTF 1.0.0
greenlet 1.1.2
idna 3.3
importlib-metadata 4.10.1
importlib-resources 5.4.0
isort 5.10.1
itsdangerous 2.0.1
Jinja2 3.0.3
lazy-object-proxy 1.7.1
ldap3 2.9.1
Mako 1.1.6
MarkupSafe 2.0.1
mccabe 0.6.1
pip 21.3.1
pkg_resources 0.0.0
platformdirs 2.4.1
pyasn1 0.4.8
pycodestyle 2.8.0
pylint 2.12.2
python-dotenv 0.19.2
setuptools 44.1.1
SQLAlchemy 1.4.31
toml 0.10.2
typing_extensions 4.0.1
Werkzeug 2.0.2
wrapt 1.13.3
WTForms 3.0.1
zipp 3.7.0
And someone anwsered:
davidism
commented on Feb 16
Because you have something that does import this
, but it's not flask.
Then I tried fixing that a variable I used in a entry in tkinter wasn't defined
It still printed the same thing but opened the application and didn't crash.
But then....
I looked at the top of the file....
AND THERE IT WAS:
from this import d
Anyways, I hate auto import.
Bye.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.