16
submitted 1 year ago by nathanpc@lemmy.ml to c/python@lemmy.ml

Hello Python community! There are a lot of resources online targeted at beginners that want to learn Python but very rarely do you see articles talking about moving to Python when you already have tons of experience in other languages like Ruby, and especially, many years of Perl experience and is interested in moving to Python.

I'm not looking for information on how to program in Python, that's really easy to find and most of the learning curve will be learning about the standard libraries and overcoming the years of muscle memory from other languages. I'm looking for information on the following topics:

  • What's the recommended project structure for a library or a program that'll be distributed via PyPI?
  • What are the general best practices to follow when writing "clean Python code"?
  • What's the most commonly followed style guide for the language?
  • How does import work internally and how does it perform its path lookup for local files (specifically for importing modules internal to a project)?
  • How to properly set up pyenv for a project? (This one is tricky for me because the Python community loves pyenv and I'm used to having packages globally installed in Ruby and Perl)
you are viewing a single comment's thread
view the rest of the comments
[-] radix@lemm.ee 4 points 1 year ago

Can't speak authoritatively on the other things, but I do know PEP8 is the most commonly used style guide, and people often use Black to lint their code.

this post was submitted on 06 Aug 2023
16 points (100.0% liked)

Python

3244 readers
1 users here now

News and discussions about the programming language Python


founded 5 years ago
MODERATORS