Explore tweets tagged as #pythonnotes
@kodegurukul
Kode Gurukul
1 year
GRAB IT❗❗❗❗ Complete PYTHON Handwritten NotesπŸ‘βœ…πŸ’» . #pythonnotes #python #python3 #pythonprogramming #pythondeveloper #logistics #pythonforbeginners #pythoncoders #kodegurukul #pythoncodesnippets
1
3
26
@pythonnotes
python notes
3 years
walrus:
1
0
0
@n0wgray
Gray
1 year
GRAB IT❗❗❗❗ Complete PYTHON Handwritten NotesπŸ‘βœ…πŸ’» #pythonnotes #python #python3 #pythonprogramming #pythondeveloper #logistics #pythonforbeginners #pythoncoders #kodegurukul #pythoncodesnippets
0
0
1
@pythonnotes
python notes
3 years
The class collections.deque is a thread-safe double-ended queue designed for fast inserting and removing from both ends.
0
0
0
@pythonnotes
python notes
3 years
Because dataclasses just use normal Python class creation so two instances of class ABC share the same class variable a, which might not be a desired behavior in a dataclass, so it raises a ValueError to avoid this.
0
0
1
@pythonnotes
python notes
3 years
You can write neat code to use itertools.product() when you want to iterate the cartesian product of arrays. #python
0
5
7
@pythonnotes
python notes
3 years
Python uses data buffer to temporarily store data before it is sent to output device.
0
0
1
@pythonnotes
python notes
3 years
Both list.sort() and sorted() have a key parameter to specify a function to be called on each list element prior to making comparisons.
0
1
1
@pythonnotes
python notes
3 years
In #Python, if you want a more efficient and compact way to store homogeneous primitive data, use Python array, something like C language array.
2
0
0
@pythonnotes
python notes
3 years
MRO in #Python is a Method Resolution Order used in inheritance, which is the order a method is searched in a class hierarchy, from bottom to top and left to right.
0
0
1
@pythonnotes
python notes
3 years
When you set default value to field using a mutable object like list or dictionary, a ValueError will come out. Use default_factory instead. #Python
1
0
0
@pythonnotes
python notes
3 years
After #Python 3.8, you can use assignment expression to assign and return a value in the same expression, which is also called walrus operator (:=) as it resembles the eyes and tusks of a walrus on its side.
1
0
1
@pythonnotes
python notes
3 years
In #Python, an object is hashable if its hash code doesn't change, such as numeric types and str are all hashable. A tuple is hashable only if all its items are hashable.
0
0
0
@pythonnotes
python notes
3 years
When a #Python function is defined, the Python bytecode compiler determines how to fetch a variable that appears in it based on some variable lookup logic.
0
0
0