Giter VIP home page Giter VIP logo

annoying-vscode's Introduction

clue. dev. i have a website: Is biitle.nl up?

i use The best browser ever as my web browser, arch btw as my distro and i use Michealsoft Lunix.

i know how to code in: Python HTML CSS Javascript C# Python Lua Bash

and i love SQLite

i like these javascript frameworks: Svelte REACT... or don't

i use amd btw: AMD Ryzen 5 5600G

i use these for designs: Figma GIMP Inkscape Krita

the terminal i use: kitty

Wayland > Xorg

thanks for coming by

annoying-vscode's People

Contributors

fgclue avatar

Watchers

 avatar

annoying-vscode's Issues

I hate auto import

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.