home.social

#pythontips — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #pythontips, aggregated by home.social.

fetched live
  1. Don't get me wrong, the learning curve is real!

    However Python devs have a head start — you already think in types, you already care about elegance + clean code.

    Which tip would've helped you most? Or any other ones?

  2. Happy 32nd anniversary, Python! Learn 32 practical Python one-liners that show why readability, simplicity, and power still define the language today.

    More details here: ostechnix.com/32-python-one-li

    #Python #Oneliners #Anniversary #Programming #Opensource #PythonTips

  3. 🐍💡 ¿Sabías que en Python __init__ no es el constructor?

    En Python solemos llamar “constructor” a __init__, pero técnicamente no lo es.
    El verdadero constructor es __new__, el método que crea la nueva instancia de la clase.
    Recién después de que __new__ devuelve el objeto, Python llama a __init__ para inicializar sus atributos.

    ¿Querés saber más? 👇

    juncotic.com/poo-metodos-espec

    #Python #Programación #DesarrolloSoftware #POO #CleanCode #AprenderPython #PythonTips

  4. 🔍 ¿Conocés los MÉTODOS ESPECIALES en Python?

    Los métodos con doble guión bajo (init, str, len, etc.) son una de las características más poderosas de Python, pero pocos los dominan realmente.

    En este nuevo artículo te explico:

    ✅ ¿Qué son realmente los métodos especiales?
    ✅ Los métodos más útiles en proyectos reales
    ✅ Cómo implementar operadores personalizados (+, -, ==, etc.)

    juncotic.com/poo-metodos-espec

    #Python #POO #Programación #DesarrolloSoftware #PythonTips #python

  5. Learn to write cleaner Python code with these 10 practical techniques: use dataclasses instead of dicts, implement enums for fixed choices, leverage pathlib over os.path, write pure functions, add proper docstrings, and handle exceptions specifically. Transform from "it works" to truly maintainable code. #Python #CleanCode #Programming #SoftwareDevelopment #CodingTips #PythonTips #Developer kdnuggets.com/stop-writing-mes

  6. A Leanpub Frontmatter Podcast Interview with Alex Telford, Author of Practical Python for Production Under Pressure: Managing the insanity that is developing pipelines alongside a production at full speed | Watch here: youtu.be/uDziREzkpdY #books #Python #VFX #SoftwareEngineering #PythonTips

  7. Leanpub book LAUNCH 🚀 Practical Python for Production Under Pressure: Managing the insanity that is developing pipelines alongside a production at full speed by Alex Telford youtu.be/nPvgqZZWJ5Y #books #booklaunch #Python #VFX #SoftwareEngineering #PythonTips

  8. Tuple instead of Lists in Python:
    Use a tuple instead of a list in Python when you need an immutable, hash able, and faster collection of fixed items.
    #PythonTips #PythonTuple #LearnPython #PythonDev #CodingTips #Immutable #PythonCode #DevLife #TupleVsLis

  9. Named Tuples in Python:
    A named tuple lets you create lightweight, immutable objects with named fields for better readability and access than regular tuples.
    #Python #PythonTips #NamedTuple #CodingTips #LearnPython #PythonDeveloper #CodeSmarter #100DaysOfCode #PythonHack #TechTip

  10. Single Element Tuple in Python:
    A single element tuple in Python is defined by placing a comma after the element, e.g., t = (5,).
    #Python #Tuple #PythonTips #LearnPython #Coding #PythonBasics #DevTips #SingleElementTuple #PythonProgramming #codenewbie

  11. Comprehension to create dictionaries in Python:
    Dictionary comprehension is a concise way to create dictionaries in a single line using a syntax similar to list comprehension.
    #Python #PythonTips #DictionaryComprehension #CodeNewbie #100DaysOfCode #LearnPython #OneLiner #PythonTricks #DevTips #CodingInPython

  12. Loop through dictionaries in Python:
    A dictionary in Python is a collection of key-value pairs. To loop through a dictionary, you can use several methods depending on what you want to access: keys, values, or both.
    #Python #PythonTips #LearnPython #Coding #PythonProgramming #100DaysOfCode #CodeNewbie #DevCommunity #ProgrammingTips #TechEducation #softwaredevelopment

  13. Dictionaries in Python:
    Dictionaries in Python are collections of key-value pairs that allow fast data retrieval based on unique keys.
    #Python #PythonTips #Dictionaries #LearnPython #Coding #PythonProgramming #CodeNewbie #100DaysOfCode #pythonbasics

  14. Iterate in Dictionaries in Python:
    Iterating in dictionaries means looping through keys, values, or key-value pairs using a for loop.
    #Python #PythonTips #CodeNewbie #100DaysOfCode #LearnPython #DevLife #Coding #PythonDictionaries #PythonLoops #womenwhocode

  15. Nested Dictionaries in Python:
    A nested dictionary in Python is a dictionary where values can also be dictionaries, allowing multi-level data storage.
    #PythonTips #NestedDictionary #LearnPython #PythonForBeginners #CodeSmart #PythonDev #PythonBasics #CodingTips

  16. Format string Method in Python :
    The format() method in Python inserts values into a string using placeholders{}. #pythoncoding #StringFormatting #formatMethod #pythontips #codingbasics

  17. Tuple concatenation in Python:
    Tuple concatenation in Python means combining two or more tuples using the + operator.
    #python #tuples #pythontips #TupleConcatenation #codesnippet #learnpython