135201
You will be muted until you read the rules. Read them! @Rules_for_Python A group about the Python programming language. Offtopic things go here: @pythonofftopic Resources to learn python: @pythonres Group for Hy: @hylang Selenium: @SeleniumPython
Python groups in other languages
(⚠️Not managed by us ‼️)
Arabic @arabipython
Azerbaijani @azepug
Chinese @pythonzh
French @python_francais
German @pythonde
Hebrew @pythonisrael
Tamil @pythontamilcommunity
Indonesian @pythonid
Italian @python_ita @pythonita
Kazakh @python_kz
Malaysia @pythonmalaysia
Persian @pyfarsi
Portuguese @pythonbr
Russian @ru_python_beginners @ru_python @python_scripts
Spanish @PythonEsp
Swahili @python_eafrica
Turkish @python_tr
Uzbek @python_uz
If you have an active and well managed group that you want to be listed there, ask in the Meta group, link in the rules page.
hmm, But I have tried with different devices too
and getting same issue in all
Python groups in other languages
(⚠️Not managed by us ‼️)
Arabic @arabipython
Azerbaijani @azepug
Chinese @pythonzh
French @python_francais
German @pythonde
Hebrew @pythonisrael
Tamil @pythontamilcommunity
Indonesian @pythonid
Italian @python_ita @pythonita
Kazakh @python_kz
Malaysia @pythonmalaysia
Persian @pyfarsi
Portuguese @pythonbr
Russian @ru_python_beginners @ru_python @python_scripts
Spanish @PythonEsp
Swahili @python_eafrica
Turkish @python_tr
Uzbek @python_uz
If you have an active and well managed group that you want to be listed there, ask in the Meta group, link in the rules page.
Its upto u non sense , if you have any suggestions post it don't point out someone's experience plz
Читать полностью…
Shift + p , type python , search for the version you have configure it
Читать полностью…
STDERR: did not find executable at 'C:\ProgramData\anaconda3\python.exe': The system cannot find the path specified.
Do you really think python version???
Hello everyone, I tried to run Django in my VS Code but when I try to install it by : pipenv install Django
The below error appered:STDERR: did not find executable at 'C:\ProgramData\anaconda3\python.exe': The system cannot find the path specified.
Any thoughts how to overcome this?
https://wiki.python.org/moin/BeginnersGuide/NonProgrammers
Читать полностью…
Can you give me some tips on the best way to learn Python?
Читать полностью…
Python groups in other languages
(⚠️Not managed by us ‼️)
Arabic @arabipython
Azerbaijani @azepug
Chinese @pythonzh
French @python_francais
German @pythonde
Hebrew @pythonisrael
Tamil @pythontamilcommunity
Indonesian @pythonid
Italian @python_ita @pythonita
Kazakh @python_kz
Malaysia @pythonmalaysia
Persian @pyfarsi
Portuguese @pythonbr
Russian @ru_python_beginners @ru_python @python_scripts
Spanish @PythonEsp
Swahili @python_eafrica
Turkish @python_tr
Uzbek @python_uz
If you have an active and well managed group that you want to be listed there, ask in the Meta group, link in the rules page.
• Use a backtick (`) on both ends of your single line:
`print("hello world")`
• For more lines, use three backticks (```) before the first line, and after the last (and add the language you're using, Telegram now supports it):```python• You can also select text when typing, and select markdown formatting. Читать полностью…
def hello(name):
print(f"hello {name}")
```
Hi! This group is English-only. Please, translate your message into English and delete the non-English message. Or move to a group speaking your language (type "!ol" to see the list). Thank you!
Читать полностью…
Follow https://www.anaconda.com/docs/getting-started/anaconda/install#windows-installation
Читать полностью…
Yes python is installed but not configured with vs code
Читать полностью…
Hi! Just find where Python is useful for you: find that could be automated or scripted by Python in your job tasks or hobbies :)
And good luck!
Guess you need to learn about generics
https://typing.python.org/en/latest/reference/generics.html
steveYeah/using-generics-in-python-99010e5056eb" rel="nofollow">https://medium.com/@steveYeah/using-generics-in-python-99010e5056eb
A subclass of MutableMapping[str, str] or others,how to make the return type of the method such as get match parent class ,not using type ignore, pylance always think
def get(self, key , default = None) ->
str | None : ...
Ur revised context manager is much better than just close() I thought.
Wrapping the yield in a try with commit(), handling exceptions with rollback(), and ensuring close() always happens in finally is the standard pattern SQLAlchemy expects for managing transactions explicitly. This should solve the idle transaction problem for both reads and writes.
Hey
got a question (SQLAlchemy & Postgres)
dealing with postgres "idle" and "idle transactions" problem (there are tons of them in my db)
after researching alot , I realized session.close is not doing "commit" or "rollback" apparently
(my session manager context was like this:
def create_session() -> Generator[Session, None, None]:
db = LazySession(SessionLocal)
try:
yield db
finally:
db.close()
def create_session() -> Generator[Session, None, None]:
db = LazySession(SessionLocal)
try:
yield db
db.commit()
except Exception: # noqa
db.rollback()
raise
finally:
db.close()
Do you realize this is a coding group and the code is the only thing that is relevant here?
Читать полностью…