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

no no i see one start and then finish and then another fun start and finish like this, i wished all 3 will be start at same time, i found i need to use somethign others mechanism there to run this 3 fun at same like time without each other waiting for previous one,

i found though this my main() fun looks like async-await, but it is still normally calling the funcitons in it 😅

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

Python

Please don't ask meta questions like:

- Any user of $x here?
- Anyone used technology $y?
- Hello, I need help on $z!

Just ask about your problem directly! If you don't know what to ask, please read: http://catb.org/~esr/faqs/smart-questions.html

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

Python

async def main():
saved_path_1 = await download_file(
link=links_to_download[0],
)
saved_path_2 = await download_file(
link=links_to_download[1],
)
saved_path_3 = await download_file(
link=links_to_download[2],
)
if __name__ == "__main__":
asyncio.run(main())

See Basically i started newly the async-await things,
normally i listen if i call a normal_fun() like this then after first one finish next line fun will start to execute, so i make a async function and then call those here with await at beginning, now see the part, still i found after one has finish themn another start, i wished all the fun will start at instantly without it will wait for the previous one to start or finish, but it not works as i expected, so what i am missing here, why all 3 fun not starting same time, each 3 one of fun take about 10 seconds to do the work

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

Python

Hello , Has anyone worked with the SQLAlchemy database module in Python, who then inserted the database into the main code?

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

Python

docs.python.org/3/library/functools.html

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

Python

functools is stdlib but not built-in

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

Python

functools is functools

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

Python

That's not the stdlib

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

Python

hi, what's your favourite function from the stdlib?

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

Python

number guessing game tbh

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

Python

What kind of projects, for example?

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

Python

start building projects now

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

Python

before moving on to what?

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

Python

Can you let him figure that out?

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

Python

Why does this line
data: SongPayload = request.get_json() or {}
has this type
Any | dict[Any, Any]?
The issue is
"dict[Any, Any]" is not assignable to "SongPayload" means dict[Any, Any] is the culprit.
Can you get
dict[Any, Any]
out of Any | dict[Any, Any] in data: SongPayload = request.get_json() or {}?

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

Python

those 3 awaits run one at a time

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

Python

Read this

https://code.likeagirl.io/concurrency-parallelism-async-47312e0be553

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

Python

I'm sure out of 90k members at least one person have worked with sql alchemy before, ask your question directly.

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

Python

Here there is the official Python tutorial, to help you learn Python step by step:
https://docs.python.org/3/tutorial/index.html

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

Python

where's the tutorial

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

Python

do you mean built-in functions?

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

Python

functools is 100% stdlib

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

Python

functools.cache for sure

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

Python

I think that's the first project you build with Automation with python book.
It also has other cool projects.

I believe he'd benefit alot from that book, especially part II. (Page 183 onwards)

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

Python

Anything you can think of that doesn't require a GUI or external libraries. Since you haven't covered either.

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

Python

Practicing yes, also in the sense of your own projects. Recommended. Contributing to other projects; likely a no.

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

Python

I mean, should I keep learning more Python topics, or is what I’ve learned so far enough to start practicing and working on projects?

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

Python

I’ve learned quite a few Python basics so far: print, variables, data types, if statements, for loops, lists, functions, and dictionaries.

But I still have a lot left to learn, and honestly, I’m starting to feel a bit tired. I wanted to ask someone who’s experienced with Python: do you think what I’ve learned so far is enough to start with, or should I keep learning more before moving on?

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

Python

request.get_json() returns Any in flask stubs, so or {} widens to Any | dict

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

Python

I just wanted to know does it worth to spent years on learning this language and I got my answer

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