python | Unsorted

Telegram-канал python - Python

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

Subscribe to a channel

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.

Читать полностью…

Python

hmm, But I have tried with different devices too
and getting same issue in all

Читать полностью…

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.

Читать полностью…

Python

Its upto u non sense , if you have any suggestions post it don't point out someone's experience plz

Читать полностью…

Python

Nonsense i use 3.12 without any issues

Читать полностью…

Python

Shift + p , type python , search for the version you have configure it

Читать полностью…

Python

Who said anything about vs code?

Читать полностью…

Python

STDERR: did not find executable at 'C:\ProgramData\anaconda3\python.exe': The system cannot find the path specified.

Do you really think python version???

Читать полностью…

Python

Higher versions are not compatible with django

Читать полностью…

Python

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?

Читать полностью…

Python

https://wiki.python.org/moin/BeginnersGuide/NonProgrammers

Читать полностью…

Python

Can you give me some tips on the best way to learn Python?

Читать полностью…

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.

Читать полностью…

Python

• 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
def hello(name):
print(f"hello {name}")
```

• You can also select text when typing, and select markdown formatting.

Читать полностью…

Python

Output is not really something specific to python

Читать полностью…

Python

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!

Читать полностью…

Python

Google is blocking you

Читать полностью…

Python

3.9 out of life 2025-10
3.10 out of life 2026-10

Читать полностью…

Python

https://devguide.python.org/versions/

Читать полностью…

Python

Error means issue with anaconda

Читать полностью…

Python

Follow https://www.anaconda.com/docs/getting-started/anaconda/install#windows-installation

Читать полностью…

Python

Yes python is installed but not configured with vs code

Читать полностью…

Python

Error shows…. Answer

Читать полностью…

Python

Try with python 3.9 or 3.10 edition of python

Читать полностью…

Python

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!

Читать полностью…

Python

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

Читать полностью…

Python

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 : ...

is incompatible with the base method

Читать полностью…

Python

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.

Читать полностью…

Python

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()

)
since SQLAlchemy following certain pattern (recommending to set autcommit = False)
Its wrapping everything in transaction(even SELECTs)
so to dealing with my problem apparently I have to do .commit() or rollback() on SELECTs too ..
after searching ,I came up with this :

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 have any recommendations or advice?

Читать полностью…

Python

Do you realize this is a coding group and the code is the only thing that is relevant here?

Читать полностью…
Subscribe to a channel