Home
Search results “Python all magic methods”
Python OOP Tutorial 5: Special (Magic/Dunder) Methods
 
13:50
In this Python Object-Oriented Tutorial, we will be learning about special methods. These are also called magic or dunder methods. These methods allow us to emulate built-in types or implement operator overloading. These can be extremely powerful if used correctly. We will start by writing a few special methods of our own and then look at how some of them are used in the Standard Library. Let's get started. Python Docs: https://docs.python.org/3/reference/datamodel.html#special-method-names Python OOP 1 - Classes and Instances - https://youtu.be/ZDa-Z5JzLYM Python OOP 2 - Class Variables - https://youtu.be/BJ-VvGyQxho Python OOP 3 - Classmethods and Staticmethods - https://youtu.be/rq8cL2XMM5M Python OOP 4 - Inheritance - https://youtu.be/RSl87lqOXDE Python OOP 5 - Special (Magic/Dunder) Methods - https://youtu.be/3ohzBxoFHAY Python OOP 6 - Property Decorators - https://youtu.be/jCzT9XFZ5bw The code from this video can be found at: https://github.com/CoreyMSchafer/code_snippets/tree/master/Object-Oriented If you enjoy these videos and would like to support my channel, I would greatly appreciate any assistance through my Patreon account: https://www.patreon.com/coreyms Or a one-time contribution through PayPal: https://goo.gl/649HFY If you would like to see additional ways in which you can support the channel, you can check out my support page: http://coreyms.com/support/ Equipment I use and books I recommend: https://www.amazon.com/shop/coreyschafer You can find me on: My website - http://coreyms.com/ Facebook - https://www.facebook.com/CoreyMSchafer Twitter - https://twitter.com/CoreyMSchafer Google Plus - https://plus.google.com/+CoreySchafer44/posts Instagram - https://www.instagram.com/coreymschafer/ #Python
Views: 164921 Corey Schafer
Python tricks: Using magic (dunder) functions to create list-like objects
 
17:59
In this video I demonstrate how you can use magic functions, sometimes called dunder (double-underscore) functions, to support special list-like syntax in your own objects. Specifically, I will demonstrate __len__(), __contains__(), and __getitem__().
Views: 2493 Sebastiaan Mathôt
Learn to Program 10 : Inheritance Magic Methods
 
30:52
Code & Transcript : http://goo.gl/suIXKJ Interactive Tutorial with Quiz Here : http://goo.gl/VKnCYb Best Python Book : http://amzn.to/2aapV6S Support me on Patreon : https://www.patreon.com/derekbanas In this part of the tutorial I'll cover Inheritance, Operator Overloading, Polymorphism and Magic Methods, which are super awesome! If you missed previous parts of this tutorial watch those videos first. Thank you to Patreon supports like the following for helping me make this video https://www.facebook.com/cottageindustriesbuild/ @kyleaisho @thetwistedhat vjFaLk
Views: 28507 Derek Banas
Anjana Vakil - Using and abusing Python’s double-underscore methods and attributes
 
31:01
Anjana Vakil - Using and abusing Python’s double-underscore methods and attributes [EuroPython 2016] [21 July 2016] [Bilbao, Euskadi, Spain] (https://ep2016.europython.eu//conference/talks/using-and-abusing-pythons-double-underscore-methods-and-attributes) Python’s double-underscore ('`__`') methods and attributes go by many names, including “special”, “dunder”, and “magic”. You already use some, like `__init__`, but there are many more! In this talk, we’ll see how dunders can be useful, silly, dangerous, and fun! We’ll trick Python’s arithmetic and comparison operators. We’ll make objects behave like dictionaries and containers. We’ll reduce an object’s memory usage, and speed up membership tests. We’ll even try some naughty function hacks! ----- The curious Python methods and attributes surrounded by double underscores ('`__`') go by many names, including “special”, “dunder”, and “magic”. You probably use some of them, like `__init__`, every day. But that’s just the tip of the iceberg! In this talk, we’ll explore the weird and wonderful world of the double-underscore, and find out how dunders can be useful, silly, dangerous, and just fun! We’ll play pranks on Python’s builtin operators for arithmetic and comparison. We’ll make arbitrary objects behave like dictionaries and containers. We’ll reduce an object’s memory usage, and speed up tests for membership. We’ll even try some naughty function hacks that we should never use in real life! You'll get the most out of this talk if you're already comfortable writing object-oriented Python code. If you already use special dunder magic in your own code, that's excellent! You’ll have a chance to share your tips & tricks with the rest of the audience at the end of the talk. _Talk repo_: [https://github.com/vakila/dunders][1] [1]: https://github.com/vakila/dunders
Views: 7715 EuroPython Conference
Basic Python Tutorial Series: 15 - Dunder Dunder
 
36:28
Learn about python's magic methods and how to setup the Item class differently.
Magic Methods in Python
 
07:21
An intro to magic methods in Python. Enjoy! Reference: http://www.rafekettler.com/magicmethods.html
Magic Methods/ Special Methods/ Dunders - Python 3.5 - Part 1
 
04:20
Magic Methods/Special Methods/ Dunders - Python 3.5 __init__ __new__ __del__ __abs__ __round__ __pos__,__neg__,__invert__ __add__ __sub__, __mul__, __truediv__, __floordiv__, __moddiv__, __mod__, __pow__ __radd__ __iadd__ __rsub__, __isub__, __rmul__, __imul__, __rtruediv__, __itruediv__, __rfloordiv__, __ifloordiv__, __rmod__, __imod__, __rpow__, ipow __leftshift__, __rightshift__,__rleftshift__,__ileftshift__, __rrightshift__,__irightshift__ __and__, __or__, __xor__,__rand__ ,__ror__, __rxor__,__iand__, __ior__ ,__ixor__ __eq__, __ne__, __lt__, __le__, __gt__, __ge__ __bool__, __complex__, __float__, __int__ __call__ __contains___ __iter__,__next__,__reversed__ __getitem__, __setitem__, __delitem__ __getattr__ __getattribute__ __setattr__,__delattr__ __str__,__bytes__,__repr__,__format__ __len__ __hash__ __enter__,__exit__ __index__ __dir__ Magic Attributes: __name__ __class__ __dict__ __slots__ __doc__ __annotation__
Views: 2304 Sharp El
Python 01-23: Magic Methods
 
09:08
Python Magic Methods: __init__ __del__ __repr__ __str__ __int__ __lt__ __gt__ __eq__ __add__ __sub__ __mul__ ...
Views: 2011 Thomas Preuss
Descriptors, magic methods, and inheritance: oh my! (Jesse Shapiro)
 
23:00
It's very simple to write straightforward imperative code with Python. You can easily define classes and functions, and write behavior inside them. However, pure imperative design means that you'll likely end up writing the same patterns of code over and over - whether it's requests.get() or LOGGER = getLogger(__name__). By taking advantage of some of the more advanced features of the Python language, like descriptors, overridden magic methods, and creative uses of inheritance, we can make our code smaller and more expressive. Proper abstractions will also make it easier to test your code thoroughly and effectively - because you're not reimplementing behavior unnecessarily, you can properly test the one place you do implement it, and rely on it from then on. And, it becomes much easier to add features later on that rely on existing behavior - you just need to describe them in terms of the things you've already implemented. Presentation page -- https://2017.pycon.ca/schedule/23/
Views: 369 PyCon Canada
Python Magic Methods
 
31:18
Everything in Python is an object and nothing is special. Python's built-in objects can be added, called, indexed, or with'd, and with a little magic, so can yours! Use of magic methods, those prefixed/suffixed with double underscores, can increase the flexibility of your code while also making it shorter and simpler. Speaker: Nick Timkovich Link: https://github.com/nicktimko/chipy-magicmethods Founded in 2003, Chicago Python User Group is one of the world's most active programming language special interest groups with over 1,000 active members and many more prestigious alumni. Our main focus is the Python Programming Language. Website: http://www.chipy.org/ Mentorship: https://chipymentor.org/ Slack: https://chipy.slack.com Twitter: @ChicagoPython Date: 2018-08-09 Location: Sully's House, Chicago
Python Tutorial #51 - Konversions-Magic-Methods
 
07:56
In diesem Tutorial schauen wir uns die Magicmethods zu Casts aka Konversionen an. ❤❤❤ Früherer Zugang zu Tutorials, Abstimmungen, Live-Events und Downloads ❤❤❤ ❤❤❤ https://www.patreon.com/user?u=5322110 ❤❤❤ ❤❤❤ Keinen Bock auf Patreon? ❤❤❤ ❤❤❤ https://www.paypal.me/TheMorpheus ❤❤❤ 🌍 Website 🌍 https://the-morpheus.de ¯\_(ツ)_/¯ Tritt der Community bei ¯\_(ツ)_/¯ ** https://discord.gg/BnYZ8XS ** ** https://www.reddit.com/r/TheMorpheusTuts/ ** ( ͡° ͜ʖ ͡°) Mehr News? Mehr Code? ℱ https://www.facebook.com/themorpheustutorials 🐦 https://twitter.com/TheMorpheusTuts 🐙 https://github.com/TheMorpheus407/Tutorials Du bestellst bei Amazon? Bestell über mich, kostet dich null und du hilfst mir »-(¯`·.·´¯)-» http://amzn.to/2slBSgH Videowünsche? 🎁 https://docs.google.com/spreadsheets/d/1YPv8fFJOMRyyhUggK8phrx01OoYXZEovwDLdU4D4nkk/edit#gid=0 Fragen? Feedback? Schreib mir! ✉ https://www.patreon.com/user?u=5322110 ✉ https://www.facebook.com/themorpheustutorials ✉ https://discord.gg/BnYZ8XS ✉ [email protected] oder schreib einfach ein Kommentar :)
What's the meaning of underscores (_ & __) in Python variable names?
 
06:01
https://dbader.org/python-tricks ► Make those underscores count and write clean and beautiful Python, by example Leading underscores in Python variable names (for example _foo and __foo) protect developers from naming conflicts. In this video you'll learn how to work with these Pythonic coding conventions and why they exist. A single underscore in front of a variable name (prefix) is a hint that a variable is meant for internal use only. A double underscore prefix causes the Python interpreter to rewrite the variable name in order to avoid naming conflicts in subclasses. Double underscores are also called "dunders" in Python. Watch the video tutorial to see the details of how double underscore name mangling works and how it affects your own Python classes. FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python MUGS, T-SHIRTS & MORE: https://nerdlettering.com FREE Python Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
String Conversion in Python: When to Use __repr__ vs __str__
 
14:58
https://dbader.org/python-tricks ► String conversion in Python classes and other advanced OOP techniques When you define a custom class in Python and then try to print one of its instances to the console (or inspect it in an interpreter session) you get a relatively unsatisfying result. The default "to string" conversion behavior is basic and lacking in detail. By default all you get is a string containing the class name and the `id` of the object instance (which is the object's memory address in CPython). That's better than *nothing*, but it's also not very useful. The solution here is adding the `__str__` and `__repr__` "dunder" methods (some call them "magic methods") to your class. They are the Pythonic way to control how objects are converted to strings in different situations. In this tutorial video I'll do a deep dive on how Python's to-string conversion works and how you can add it to your own custom classes. I'll walk you through the __str__ and __repr__ methods, when to use each, and some tips on how to use them in real world scenarios. Just remember: * The result of `__str__` should be readable. * The result of `__repr__` should be unambiguous. * Always add a `__repr__` to your classes. The default implementation for `__str__` just calls `__repr__`, so you get the best of both worlds. To learn how to use the full potential of Python check out "Python Tricks: The Book" at the link below: https://dbader.org/pytricks-book FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery PYTHON TRICKS: THE BOOK https://dbader.org/pytricks-book SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com FREE Python Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Operator overloading - Intermediate Python Programming p.19
 
10:19
Welcome to part 19 of the intermediate Python programming tutorial series. In this tutorial, we are going to introduce the "special" or "magic" methods of Python, and, with that, talk about operator overloading, which is where we can define new ways for Python to handle operators like "+" in our example. https://pythonprogramming.net https://twitter.com/sentdex https://www.facebook.com/pythonprogramming.net/ https://plus.google.com/+sentdex
Views: 11163 sentdex
Special magic/dunder method, operator overloading, polymorphism : Python tutorial 202
 
22:29
Guys please help this channel to reach 20,000 subscribers. I'll keep uploading quality content for you. Python is easy programming language to learn and anyone can learn it, and these tutorials are 100% free in hindi. You can share this playlist with your brother, sisters and friends. This will surely add some values to their life. Complete Playlist link - https://www.youtube.com/playlist?list=PLwgFb6VsUj_lQTpQKDtLXKXElQychT_2j If you follow this complete playlist of python tutorial surely you will learn everything about python programming language. This video is all about special magic/dunder methods, operator overloading, polymorphism. Source Code Link - https://www.dropbox.com/s/c8vqlzxhx2ksp61/poly.py?dl=0
Views: 2119 Harshit vashisth
Python Tutorial: if __name__ == '__main__'
 
08:43
In this video, we will take a look at a common conditional statement in Python: if __name__ == '__main__': This conditional is used to check whether a python module is being run directly or being imported. If you enjoy these videos and would like to support my channel, I would greatly appreciate any assistance through my Patreon account: https://www.patreon.com/coreyms Or a one-time contribution through PayPal: https://goo.gl/649HFY If you would like to see additional ways in which you can support the channel, you can check out my support page: http://coreyms.com/support/ Equipment I use and books I recommend: https://www.amazon.com/shop/coreyschafer You can find me on: My website - http://coreyms.com/ Facebook - https://www.facebook.com/CoreyMSchafer Twitter - https://twitter.com/CoreyMSchafer Google Plus - https://plus.google.com/+CoreySchafer44/posts Instagram - https://www.instagram.com/coreymschafer/ #Python
Views: 405613 Corey Schafer
DiveInto - Advanced Python: 01 - Magic methods
 
01:37:02
Первое видео из курса Advanced Python на http://diveinto.ru
Views: 1960 Aleksey Pirogov
Python OOP Tutorial 1: Classes and Instances
 
15:24
In this Python Object-Oriented Tutorial, we will begin our series by learning how to create and use classes within Python. Classes allow us to logically group our data and functions in a way that is easy to reuse and also easy to build upon if need be. Let's get started. Python OOP 1 - Classes and Instances - https://youtu.be/ZDa-Z5JzLYM Python OOP 2 - Class Variables - https://youtu.be/BJ-VvGyQxho Python OOP 3 - Classmethods and Staticmethods - https://youtu.be/rq8cL2XMM5M Python OOP 4 - Inheritance - https://youtu.be/RSl87lqOXDE Python OOP 5 - Special (Magic/Dunder) Methods - https://youtu.be/3ohzBxoFHAY Python OOP 6 - Property Decorators - https://youtu.be/jCzT9XFZ5bw The code from this video can be found at: https://github.com/CoreyMSchafer/code_snippets/tree/master/Object-Oriented If you enjoy these videos and would like to support my channel, I would greatly appreciate any assistance through my Patreon account: https://www.patreon.com/coreyms Or a one-time contribution through PayPal: https://goo.gl/649HFY If you would like to see additional ways in which you can support the channel, you can check out my support page: http://coreyms.com/support/ Equipment I use and books I recommend: https://www.amazon.com/shop/coreyschafer You can find me on: My website - http://coreyms.com/ Facebook - https://www.facebook.com/CoreyMSchafer Twitter - https://twitter.com/CoreyMSchafer Google Plus - https://plus.google.com/+CoreySchafer44/posts Instagram - https://www.instagram.com/coreymschafer/ #Python
Views: 831851 Corey Schafer
Python OOP - 5 , Magic Methods (dunder methods), ileri seviye Python programlama
 
23:50
Merhaba arkadaşlar bu dersimizde Python da nesne yönelimli programlama ile ilgili olarak Magic Methods ve Overloading kavramları ile ilgili alıştırmalar yapacağız. Pythonda Object-Oriented Programming derslerine Magic methods yani Dunder methods incelemesi ile devam edeceğiz ve __str__ , __repr__ , __add__ kavramlarını öğreneceğiz. Magic Methods ve Overloading kavramlarını öğrenecek olduğumuz dersimizde yine etkili ve öğrenmenizi kolaylaştıran python örnekleri üzerinde duracağız. Sende Paylaş Daha Çok Öğrenen Olsun Haydi Derse :) Anahtar Kelimeler, python magic methods, __str__ using, __add__ using, __repr__ using, __str__ ve __repr__ farkları, dunder methods python, python sihirli fonksiyonlar, python kalıtım, sınıf kalıtımı, python inheritances, python subclass, isintance, python @classmethod, python @statikmethod python sınıf methodları, python statik method kullanımı, python method kullanımı, nesne yönelimli python, oop python, python oop lessons, free python lessons, python class, ileri seviye python dersleri, nesne yönlümli python, python class variable, class variable python, python create class, pythons scope, python projects, simple python, __init__ kullanımı, pythonda nesne oluşturma, python args, python *args, python**kwargs, pythonda arguman kullanimi, regular expression python, python düzenli ifadeler, python fonksiyonlarda argüman kullanımı, how o use args with python, python reduce, reduce fonskiyonu, python ileri seviye programlama teknikleri, reduce fonksiyonu nedir, python filter(), filter() function, python da filter fonskiyonu, filter fonksiyonu nasıl kullanılır, map ve filter fonksiyonu, python map function, how use map function, map fonksiyonu kullanımı, python dersleri, python programlama dersleri, izmir python programlama, python lambda fonkisyonu, lambda fonkisyonu kullanımı, lambda fonksiyonu nasıl kullanılır, Pythonda oyun yapımı, Python GUI kullanımı, python map() fonction Her konuda farklı örnekleri bulabilecek olduğumuz dersimiz ile ilgili aklınıza takılan ve paylaşmak istediklerinizi yorum kısımlarında paylaşınız Kanalıma Abone Olmayı Unutmayın http://www.youtube.com/c/SinanUrun Örnek ile ilgili kodları github üzerinden aşağıdaki adresten edinilebilir https://github.com/sinanurun Yine Daha Detaylı bilgi almak adına Python Programlamanın Temelleri video Serimizi İnceleyebilirsiniz. https://www.youtube.com/playlist?list=PLv5gvG08kLQekD20hqte2ptaV-O_QKybV Farklı Örnekler için: http://sinanurun.com https://github.com/sinanurun/Python_ileri_seviye Udemy Üzerinden Ücretsiz Python Kursudan Faydalanmak İçin Aşağıdaki Bağlantıyı Takip Edebilirsiniz. https://www.udemy.com/python-programlamann-temelleri Öğrenmeyi Seven Öğretmenden Bir Ders Hikayesi Daha Dinlemeye Hazırsanız Haydi Derse :)
Views: 287 Sinan Urun
Python Magic Methods
 
08:47
CSc 372: Video Project https://prezi.com/view/wKefIJPy7IllbPnyw9tT/
Views: 39 Brian Lane
Python OOP Tutorial 4: Inheritance - Creating Subclasses
 
19:40
In this Python Object-Oriented Tutorial, we will be learning about inheritance and how to create subclasses. Inheritance allows us to inherit attributes and methods from a parent class. This is useful because we can create subclasses and get all of the functionality of our parents class, and have the ability to overwrite or add completely new functionality without affecting the parents class in any ways. Let's get started. Python OOP 1 - Classes and Instances - https://youtu.be/ZDa-Z5JzLYM Python OOP 2 - Class Variables - https://youtu.be/BJ-VvGyQxho Python OOP 3 - Classmethods and Staticmethods - https://youtu.be/rq8cL2XMM5M Python OOP 4 - Inheritance - https://youtu.be/RSl87lqOXDE Python OOP 5 - Special (Magic/Dunder) Methods - https://youtu.be/3ohzBxoFHAY Python OOP 6 - Property Decorators - https://youtu.be/jCzT9XFZ5bw The code from this video can be found at: https://github.com/CoreyMSchafer/code_snippets/tree/master/Object-Oriented If you enjoy these videos and would like to support my channel, I would greatly appreciate any assistance through my Patreon account: https://www.patreon.com/coreyms Or a one-time contribution through PayPal: https://goo.gl/649HFY If you would like to see additional ways in which you can support the channel, you can check out my support page: http://coreyms.com/support/ Equipment I use and books I recommend: https://www.amazon.com/shop/coreyschafer You can find me on: My website - http://coreyms.com/ Facebook - https://www.facebook.com/CoreyMSchafer Twitter - https://twitter.com/CoreyMSchafer Google Plus - https://plus.google.com/+CoreySchafer44/posts Instagram - https://www.instagram.com/coreymschafer/ #Python
Views: 255945 Corey Schafer
__str__ and __repr__  - Intermediate Python Programming p.24
 
11:32
Welcome to part 24 of the intermediate Python programming tutorial series. In this tutorial, we're going to cover two new special methods: __str__ and __repr__. There are many different explanations about what __str__ and __repr__ are each used for. The main confusion, at least from what I can tell, is where and how __repr__ actually differs from __str__. https://pythonprogramming.net https://twitter.com/sentdex https://www.facebook.com/pythonprogramming.net/ https://plus.google.com/+sentdex
Views: 11335 sentdex
Special Methods, OOP, Iteration - Intermediate Python Programming p.21
 
13:30
Welcome to part 21 of the intermediate Python programming tutorial series. In this tutorial, we're going to take a unique opportunity to mesh OOP, iterables, iterators, special methods, AND generators. https://pythonprogramming.net https://twitter.com/sentdex https://www.facebook.com/pythonprogramming.net/ https://plus.google.com/+sentdex
Views: 9281 sentdex
Python OOP Tutorial 3: classmethods and staticmethods
 
15:20
In this Python Object-Oriented Tutorial, we will be learning about classmethods and staticmethods. Class methods are methods that automatically take the class as the first argument. Class methods can also be used as alternative constructors. Static methods do not take the instance or the class as the first argument. They behave just like normal functions, yet they should have some logical connection to our class. We will look at some examples of both of these in order to understand both in depth. Let's get started. Python OOP 1 - Classes and Instances - https://youtu.be/ZDa-Z5JzLYM Python OOP 2 - Class Variables - https://youtu.be/BJ-VvGyQxho Python OOP 3 - Classmethods and Staticmethods - https://youtu.be/rq8cL2XMM5M Python OOP 4 - Inheritance - https://youtu.be/RSl87lqOXDE Python OOP 5 - Special (Magic/Dunder) Methods - https://youtu.be/3ohzBxoFHAY Python OOP 6 - Property Decorators - https://youtu.be/jCzT9XFZ5bw The code from this video can be found at: https://github.com/CoreyMSchafer/code_snippets/tree/master/Object-Oriented If you enjoy these videos and would like to support my channel, I would greatly appreciate any assistance through my Patreon account: https://www.patreon.com/coreyms Or a one-time contribution through PayPal: https://goo.gl/649HFY If you would like to see additional ways in which you can support the channel, you can check out my support page: http://coreyms.com/support/ Equipment I use and books I recommend: https://www.amazon.com/shop/coreyschafer You can find me on: My website - http://coreyms.com/ Facebook - https://www.facebook.com/CoreyMSchafer Twitter - https://twitter.com/CoreyMSchafer Google Plus - https://plus.google.com/+CoreySchafer44/posts Instagram - https://www.instagram.com/coreymschafer/ #Python
Views: 310890 Corey Schafer
How to use Python Methods.
 
04:33
Learn all about Python Methods See full course at https://www.datacamp.com/courses/intro-to-python-for-data-science
Views: 23216 DataCamp
Magic Methods/ Special Methods/ Dunders - Python 3.5 - Part 4
 
08:10
Magic Methods/Special Methods/ Dunders - Python 3.5 __init__ __new__ __del__ __abs__ __round__ __pos__,__neg__,__invert__ __add__ __sub__, __mul__, __truediv__, __floordiv__, __moddiv__, __mod__, __pow__ __radd__ __iadd__ __rsub__, __isub__, __rmul__, __imul__, __rtruediv__, __itruediv__, __rfloordiv__, __ifloordiv__, __rmod__, __imod__, __rpow__, ipow __leftshift__, __rightshift__,__rleftshift__,__ileftshift__, __rrightshift__,__irightshift__ __and__, __or__, __xor__,__rand__ ,__ror__, __rxor__,__iand__, __ior__ ,__ixor__ __eq__, __ne__, __lt__, __le__, __gt__, __ge__ __bool__, __complex__, __float__, __int__ __call__ __contains___ __iter__,__next__,__reversed__ __getitem__, __setitem__, __delitem__ __getattr__ __getattribute__ __setattr__,__delattr__ __str__,__bytes__,__repr__,__format__ __len__ __hash__ __enter__,__exit__ __index__ __dir__ Magic Attributes: __name__ __class__ __dict__ __slots__ __doc__ __annotations__
Views: 523 Sharp El
Python Dunder (magic) methods 1 __str__ Vs __repr__ [3.6]
 
13:35
https://paypal.me/ambig/9 [support me @ paypal] https://patreon.com/Ambi [support me @ patreon] 188qee7LEoHvfPJZGSxEX44nf3VannvqDW [bitcoin] https://twitter.com/MrAmbiG1 [support me @ twitter] who am i? AWS-CSAA, VCAP6-DCA, VCA5-DCV, VCA6.5-DCV, VCP4-DCV, VCP5-DCV, VCP6-DCV, VCP6.5-DCV, VCP5-DT, VCP5-vCloud, VCP6-NV, VCE-CIA, EMC-ISA, Comptia Server+, Comptia A+, MCSE, MCTS-HyperV, MCTS-Office365, vExpert(2017)|
Views: 82 AmbiG1
[Hindi] Magic/Dunder Methods In Python? | Object Oriented Programming Using Python Tutorial #8
 
11:42
►This video is a part of this OOPs playlist : https://www.youtube.com/playlist?list=PLu0W_9lII9ahfRrhFcoB-4lpp9YaBmdCP ►Click here to subscribe - https://www.youtube.com/channel/UCeVMnSShP_Iviwkknt83cww Best Hindi Videos For Learning Programming: ►Learn Python In One Video - https://www.youtube.com/watch?v=qHJjMvHLJdg ►Learn JavaScript in One Video - https://www.youtube.com/watch?v=onbBV0uFVpo ►Learn PHP In One Video - https://www.youtube.com/watch?v=xW7ro3lwaCI ►Machine Learning Using Python - https://www.youtube.com/playlist?list=PLu0W_9lII9ai6fAMHp-acBmJONT7Y4BSG ►Creating & Hosting A Website (Tech Blog) Using Python - https://www.youtube.com/playlist?list=PLu0W_9lII9agAiWp6Y41ueUKx1VcTRxmf ►Advanced Python Tutorials - https://www.youtube.com/playlist?list=PLu0W_9lII9aiJWQ7VhY712fuimEpQZYp4 ►Object Oriented Programming In Python - https://www.youtube.com/playlist?list=PLu0W_9lII9ahfRrhFcoB-4lpp9YaBmdCP ►Python Data Science and Big Data Tutorials - https://www.youtube.com/playlist?list=PLu0W_9lII9agK8pojo23OHiNz3Jm6VQCH Follow Me On Social Media ►Website (created using Flask) - https://www.codewithharry.com ►Facebook - https://www.facebook.com/CodeWithHarry ►Instagram (Guaranteed Replies :)) - https://www.instagram.com/haris_magical/ ►Personal Facebook A/c - https://www.facebook.com/geekyharis Twitter - https://twitter.com/Haris_Is_Here
Views: 250 CodeWithHarry
How to work Python constructor bangla || Python __init__ method || Python magic method bangla
 
03:50
In this Python tutorial, You can learn the easiest way to Python __init__ method or magic method, class & objects in Bangla or Bengali. Here, I will discuss what is Class, & objects then how to work Python magic or __init__ or constructor methods in details.
Views: 119 The ConfusionCode
Petr Viktorin - The Magic of Attribute Access
 
26:47
Petr Viktorin - The Magic of Attribute Access [EuroPython 2014] [22 July 2014] Have you ever wondered how the "self" argument appears when you call a method? Did you know there is a general mechanism behind it? Come learn all about attributes and descriptors. ----- The first part of this talk will describe what exactly happens when you read or write an attribute in Python. While this behavior is, of course, explained in the Python docs, more precisely in the [Data model][1] section and [related][2] [writeups][3], the documentation gives one a "bag of tools" and leaves combining them to the reader. This talk, on the other hand, will present one chunk of functionality, the attribute lookup, and show how its mechanisms and customization options work together to provide the flexibility (and gotchas) Python provides. The topics covered will be: * method resolution order, with a nod to the C3 algorithm * instance-, class-, and metaclass-level variables * `__dict__` and `__slots__` * data/non-data descriptors * special methods (`__getattr__`, `__getattribute__`, `__setattr__`, `__dir__`) In the second part of the talk, I will show how to use the customization primitives explained before on several interesting and/or useful examples: * A proxy object using `__getattr__` * Generic desciptor - an ORM column sketch * the rudimentary `@property`, method, `staticmethod` reimplemented in pure Python (explained [here][2] and elsewhere), which lead to * SQLAlchemy's [`@hybrid_proprerty`][4] * Pyramid's deceptively simple memoizing decorator, [`@reify`][5] * An ["Unpacked" tuple properties][6] example to drive home the idea that descriptors can do more than provide attribute access (and mention weak dicts as a way to non-intrusively store data on an object) (These are subject to change as I compose the talk. Also some examples may end up interleaved with the theory.) Hopefully I'll have time to conclude with a remark about how Python manages to be a "simple language" despite having these relatively complex mechanisms. [1]: http://docs.python.org/3/reference/datamodel.html [2]: http://docs.python.org/3/howto/descriptor.html [3]: https://www.python.org/download/releases/2.3/mro/ [4]: http://docs.sqlalchemy.org/en/rel_0_9/orm/extensions/hybrid.html [5]: http://docs.pylonsproject.org/projects/pyramid/en/latest/api/decorator.html [6]: https://gist.github.com/encukou/9789993
Views: 1188 EuroPython Conference
Magic Methods/ Special Methods/ Dunders - Python 3.5 - Part 2
 
05:18
Magic Methods/Special Methods/ Dunders - Python 3.5 -Part 2 __init__ __new__ __del__ __abs__ __round__ __pos__,__neg__,__invert__ __add__ __sub__, __mul__, __truediv__, __floordiv__, __moddiv__, __mod__, __pow__ __radd__ __iadd__ __rsub__, __isub__, __rmul__, __imul__, __rtruediv__, __itruediv__, __rfloordiv__, __ifloordiv__, __rmod__, __imod__, __rpow__, ipow __leftshift__, __rightshift__,__rleftshift__,__ileftshift__, __rrightshift__,__irightshift__ __and__, __or__, __xor__,__rand__ ,__ror__, __rxor__,__iand__, __ior__ ,__ixor__ __eq__, __ne__, __lt__, __le__, __gt__, __ge__ __bool__, __complex__, __float__, __int__ __call__ __contains___ __iter__,__next__,__reversed__ __getitem__, __setitem__, __delitem__ __getattr__ __getattribute__ __setattr__,__delattr__ __str__,__bytes__,__repr__,__format__ __len__ __hash__ __enter__,__exit__ __index__ __dir__ Magic Attributes: __name__ __class__ __dict__ __slots__ __doc__ __annotation__
Views: 954 Sharp El
Magic Methods/ Special Methods/ Dunders - Python 3.5 - Part 3
 
07:33
Magic Methods/Special Methods/ Dunders - Python 3.5 __init__ __new__ __del__ __abs__ __round__ __pos__,__neg__,__invert__ __add__ __sub__, __mul__, __truediv__, __floordiv__, __moddiv__, __mod__, __pow__ __radd__ __iadd__ __rsub__, __isub__, __rmul__, __imul__, __rtruediv__, __itruediv__, __rfloordiv__, __ifloordiv__, __rmod__, __imod__, __rpow__, ipow __leftshift__, __rightshift__,__rleftshift__,__ileftshift__, __rrightshift__,__irightshift__ __and__, __or__, __xor__,__rand__ ,__ror__, __rxor__,__iand__, __ior__ ,__ixor__ __eq__, __ne__, __lt__, __le__, __gt__, __ge__ __bool__, __complex__, __float__, __int__ __call__ __contains___ __iter__,__next__,__reversed__ __getitem__, __setitem__, __delitem__ __getattr__ __getattribute__ __setattr__,__delattr__ __str__,__bytes__,__repr__,__format__ __len__ __hash__ __enter__,__exit__ __index__ __dir__ Magic Attributes: __name__ __class__ __dict__ __slots__ __doc__ __annotation__ Iterator-- Iterable http://stackoverflow.com/questions/9884132/what-exactly-are-pythons-iterator-iterable-and-iteration-protocols
Views: 640 Sharp El
Python OOP Tutorial 6: Property Decorators - Getters, Setters, and Deleters
 
09:33
In this Python Object-Oriented Tutorial, we will be learning about the property decorator. The property decorator allows us to define Class methods that we can access like attributes. This allows us to implement getters, setters, and deleters. Let's get started. Python OOP 1 - Classes and Instances - https://youtu.be/ZDa-Z5JzLYM Python OOP 2 - Class Variables - https://youtu.be/BJ-VvGyQxho Python OOP 3 - Classmethods and Staticmethods - https://youtu.be/rq8cL2XMM5M Python OOP 4 - Inheritance - https://youtu.be/RSl87lqOXDE Python OOP 5 - Special (Magic/Dunder) Methods - https://youtu.be/3ohzBxoFHAY Python OOP 6 - Property Decorators - https://youtu.be/jCzT9XFZ5bw The code from this video can be found at: https://github.com/CoreyMSchafer/code_snippets/tree/master/Object-Oriented If you enjoy these videos and would like to support my channel, I would greatly appreciate any assistance through my Patreon account: https://www.patreon.com/coreyms Or a one-time contribution through PayPal: https://goo.gl/649HFY If you would like to see additional ways in which you can support the channel, you can check out my support page: http://coreyms.com/support/ Equipment I use and books I recommend: https://www.amazon.com/shop/coreyschafer You can find me on: My website - http://coreyms.com/ Facebook - https://www.facebook.com/CoreyMSchafer Twitter - https://twitter.com/CoreyMSchafer Google Plus - https://plus.google.com/+CoreySchafer44/posts Instagram - https://www.instagram.com/coreymschafer/ #Python
Views: 168807 Corey Schafer
#54 Python Tutorial for Beginners | Method Overloading and Method Overriding in Python
 
10:17
Python Tutorial to learn Python programming with examples Complete Python Tutorial for Beginners Playlist : https://www.youtube.com/watch?v=hEgO047GxaQ&t=0s&index=2&list=PLsyeobzWxl7poL9JTVyndKe62ieoN-MZ3 Python Tutorial in Hindi : https://www.youtube.com/watch?v=JNbup20svwU&list=PLk_Jw3TebqxD7JYo0vnnFvVCEv5hON_ew Check out our website: http://www.telusko.com Follow Telusko on Twitter: https://twitter.com/navinreddy20 Follow on Facebook: Telusko : https://www.facebook.com/teluskolearnings Navin Reddy : https://www.facebook.com/navintelusko Follow Navin Reddy on Instagram: https://www.instagram.com/navinreddy20 Subscribe to our other channel: Navin Reddy : https://www.youtube.com/channel/UCxmkk8bMSOF-UBF43z-pdGQ?sub_confirmation=1 Telusko Hindi : https://www.youtube.com/channel/UCitzw4ROeTVGRRLnCPws-cw?sub_confirmation=1
Views: 7177 Telusko
Python Programming Tutorial - 33 - Classes and Self
 
07:49
Facebook - https://www.facebook.com/TheNewBoston-464114846956315/ GitHub - https://github.com/buckyroberts Google+ - https://plus.google.com/+BuckyRoberts LinkedIn - https://www.linkedin.com/in/buckyroberts reddit - https://www.reddit.com/r/thenewboston/ Support - https://www.patreon.com/thenewboston thenewboston - https://thenewboston.com/ Twitter - https://twitter.com/bucky_roberts
Views: 344574 thenewboston
Using the str Class Method in Python
 
04:38
This video is intended for use with the Introduction to Computer Science class at SSFS. It is often helpful to print out information about an object. Python provides a special class method, __str__ that can help do this. In this video we look at how to implement this method.
Views: 3617 Brian Wilkinson
Python Tutorial: Sets - Set Methods and Operations to Solve Common Problems
 
18:34
In this Python Programming Tutorial, we will be looking at the Set data structure in-depth and discovering how it can help us solve some common problems. The set can not only solve certain problems more quickly but is also more efficient in many cases. Let's get started... The code from this video can be found at: https://github.com/CoreyMSchafer/code_snippets/tree/master/Python/Python-Sets If you enjoy these videos and would like to support my channel, I would greatly appreciate any assistance through my Patreon account: https://www.patreon.com/coreyms Or a one-time contribution through PayPal: https://goo.gl/649HFY If you would like to see additional ways in which you can support the channel, you can check out my support page: http://coreyms.com/support/ Equipment I use and books I recommend: https://www.amazon.com/shop/coreyschafer You can find me on: My website - http://coreyms.com/ Facebook - https://www.facebook.com/CoreyMSchafer Twitter - https://twitter.com/CoreyMSchafer Google Plus - https://plus.google.com/+CoreySchafer44/posts Instagram - https://www.instagram.com/coreymschafer/ #Python
Views: 12098 Corey Schafer
Python - Object-Oriented Programming Tutorial | Classes, Instances, Attributes And Methods
 
06:59
Want access to all of our Python training videos? Visit our Learning Library, which features all of our training courses and tutorials at http://learn.infiniteskills.com?utm_source=youtube&utm_medium=youtube_video_description&utm_campaign=python_object_oriented_programming_classes_instances_attributes_methods&network=youtube More details on this Python Beyond the Basics - Object-Oriented Programming training can be seen at http://www.infiniteskills.com/training/python-beyond-the-basics-object-oriented-programming.html?utm_source=youtube&utm_medium=youtube_video_description&utm_campaign=python_object_oriented_programming_classes_instances_attributes_methods&network=youtube This clip is one example from the complete course. For more free Python tutorials please visit our main website. YouTube: https://www.youtube.com/user/OreillyMedia Facebook: https://www.facebook.com/OReilly/?fref=ts Twitter: https://twitter.com/OReillyMedia Website: http://www.oreilly.com/
Python Magic Methods - Bangla Tutorial
 
14:50
Full list of magic methods with examples: http://www.rafekettler.com/magicmethods.html
Views: 3909 Enam Mijbah Noor
Classes, Objects, Methods and Constructors - Python 3.5
 
08:25
Classes, Objects, Methods, Constructors, __init__, __new__, __new__(cls, *args, **kwargs), __init__( self, *args, **kwargs)
Views: 2735 Sharp El
20: Abstract Class and Abstract Method
 
10:34
In this video, we will learn the concepts of "Abstract Class" and "Abstract Method" in Python in detail. Code can be found at https://github.com/ashwin-pajankar/Python-OOP The free e-book can be found at https://leanpub.com/PythonOOP Please let me know your valuable feedback on the video by means of comments. Please like and share the video. Do not forget to subscribe to my channel for more educational videos on Programming. Please do visit my website http://www.AshwinPajankar.com I am on Google+ - http://plus.google.com/+AshwinPajankar And twitter - @AshwinPajankar Credits: Music: http://www.bensound.com Music: http://www.bensound.com/royalty-free-music
Views: 9742 Ashwin Pajankar
Python Methods and self
 
13:48
This Video Tutorial looks at a Python method and how it is added to a class. It also considers the formal parameter self.
Views: 17980 John Philip Jones

Annotated bibliography the hunger games
Skyscanner application letters
Most effective cover letter template
Chcbp application letters
The best writing service review