Python Tutorials : Threading Beginners Tutorial - Subclassing (part 4-1)

preview_player
Показать описание
This is the 4th video of the Python threading for beginners tutorial.
In this we will be talking about how to subclass a threading class.
This will be part one of a two-part series on subclassing a
thread class.

Code can be found at my github:

As always leave some feedback as to what you liked or disliked.

Thank you.
Рекомендации по теме
Комментарии
Автор

Thank you for this multi-threading playlist! Managed to introduce me to this topic, even with no prior knowledge on it. On the topics of you making mistakes during videos, I think it's perfectly fine! Gives us an important glimpse into your troubleshooting prowses as well! :P

tpz
Автор

Loving the way you ask for your improvisation

raju
Автор

Thank you... With your code and your simple approach to the multithreading world of python... I just make my code to work.

paolocid
Автор

Wow, this is great vid. Thanks. As a side note though, I think we do the when we define our own init because, we want our instance do be a thread object itself, and hence inherit all the attributes. (Though, I'm not completely sure)

storyzcreator
Автор

Bro * is for args and ** is for kwargs.
For ex.
def fun(*a):
For x in a:
print(a)

fun("a", "b")

Output will be
a
b

kuldeepsharma
Автор

The stand-alone asterisk means any number of arguments can be supplied here. To my knowledge of course.

muhammadmubashirullahdurra
Автор

in case someone else is wondering about the 'lone asterisk input argument', I've found this post on stack-overflow which explains in some depth how it is used:

techtach
Автор

You should use PyCharm instaed, it will show you your bugs in realtime

magneat
Автор

i dont know why each of your thread is waiting for the previous thread's completion....


for i in range(7):
t = MyThread(number = i+1, func = double, args = [i, 10])
threads_list.append(t)
t.start()
##t.join()

for t in threads_list:
t.join()

this should make all the threads to start simultaneously
then all the threads should terminate

but your output is like :

thread1 has started

thread1 has completed
thread2 has started

thread2 has completed

i didn't get this....

Denverse
Автор

can i use super() fn in place of copying the try and finally blocks. Please clarify

venkatdevireddy
Автор

The content is great on these videos, but the audio is HORRIBLE. There's a great deal of background noise (sounds like traffic or something). Also, I'm guessing you're using a mic on a stand on your desk because when you type, the vibration is extremely loud (not key-clicks, the thumping). Have you considered a lapel mic or a cushioned pad for your mic and/or keyboard?

dcc
Автор

Not useful to me! Very messy coding, difficult to follow, same in the GitHub also, Not properly organized. However video 1, 2, 3 was very good, that's why I came here. Hope author will consider re-make the video.

kabirhasibul
Автор

By the way you do a lot of silly mistakes, but that's ok 😊👍

rishi
Автор

You make too many mistakes while coding. Better to remake whenever you make a mistake, let alone these many.

AsifIqbalR