1
1
submitted 2 months ago by martinn@programming.dev to c/python@lemmy.ml

cross-posted from: https://programming.dev/post/13395352

Would love to hear any suggestions, feedback or comments.

2
1
submitted 2 months ago by MichelDesmoulin@lemmy.ml to c/python@lemmy.ml
3
1
submitted 2 months ago by MichelDesmoulin@lemmy.ml to c/python@lemmy.ml
4
1
submitted 2 months ago by ylai@lemmy.ml to c/python@lemmy.ml
5
1
submitted 2 months ago by ylai@lemmy.ml to c/python@lemmy.ml
6
1
submitted 2 months ago by ylai@lemmy.ml to c/python@lemmy.ml
7
1
submitted 3 months ago by slyuser@lemmy.ml to c/python@lemmy.ml

Unleash Your Python Potential with Python IDLE: The Ultimate Beginner's Guide! From Installation Hacks to Secret Debugging Tricks, Master Python IDLE in Minutes! 💻🚀 #Python #Programming #BeginnerGuide

8
1
submitted 3 months ago* (last edited 3 months ago) by Communist@lemmy.ml to c/python@lemmy.ml

I'm just trying to control my smartlights with a script, it seems to be having a lot of problems, I really don't know what I'm doing, i'd appreciate any help I can get

Once I have a script that can individually turn lights on/off i can edit the rest myself, I just can't get the base functionality working.

9
1
submitted 3 months ago by bluestarshield@lemmy.ml to c/python@lemmy.ml

Hey, I've been looking to learn Python for a while, tried as a kid but got bored before I did anything. I was wondering if anyone knew of any good Python self-study workbooks? The ones with exercises in addition to theory. I'm using Mint, in case that brings up any IDE issues.

10
1
submitted 3 months ago by slyuser@lemmy.ml to c/python@lemmy.ml

Developed a script to perform mm to inches conversions, which was conveniently transformed into a web app using Streamlit.

11
1
submitted 3 months ago by cypherpunks@lemmy.ml to c/python@lemmy.ml
12
1
Python 3.13 gets a JIT (tonybaloney.github.io)
submitted 5 months ago by ylai@lemmy.ml to c/python@lemmy.ml
13
1
submitted 6 months ago by cypherpunks@lemmy.ml to c/python@lemmy.ml
14
1
submitted 6 months ago by Xer0@lemmy.ml to c/python@lemmy.ml

Just wondering if anyone is part of any Python chats, communities, forums etc, and which ones are good to join?

15
1
submitted 6 months ago by xiffu@kbin.social to c/python@lemmy.ml

Join chat rooms and explore programming content on Chat-to.dev.

16
1
submitted 8 months ago by ylai@lemmy.ml to c/python@lemmy.ml
17
1
submitted 8 months ago by ylai@lemmy.ml to c/python@lemmy.ml
18
1
submitted 8 months ago* (last edited 8 months ago) by makeasnek@lemmy.ml to c/python@lemmy.ml

I am working on a new django project which will use a MySQL database. Obviously there are several tables and attributes items in those tables have. I realize I could just document those attributes in the code itself, but more than one codebase may be accessing this database. I would rather have a more comprehensive solution to document relationships, expected CASEing of the text, allowed characters, etc.

I know UML exists, but it seems there are 1,000+ tools which do UML modeling, not all of which will gracefully do an SQL database.

Examples of things I want to document:

  • For a "user profile" there are various attributes: username (primary key), friendly name, etc
  • For a "task" - id (primary key), name (letters numbers and spaces only, max 56 characters), owner (a single username (foreign key(), assignees (zero or more usernames (list of foreign keys)), etc

Here's what I need:

  • GUI for building flowchart/model/whatever you call it showing each table and each attribute in each table, with ability to add notes to table or attribute. Attributes must have ability to be relational just like in a database.
  • FOSS only, must run on Linux. No "free" web-based garbage that will end up behind a paywall 5 years from now ie draw.io
  • Must store source files for this model in a text/xml/json/something file which can easily be put into our git repo
  • Must not be so tightly coupled to MySQL that is requires a database connection to work or couldn't be used if we switch to a non-MySQL backent. If it has templates for and knowledge about MySQL databases that's great but it shouldn't require them to be useful.

What do you suggest for this?

19
1
submitted 8 months ago by loki@lemmy.ml to c/python@lemmy.ml
20
1
The fraud was in the code (newsletter.mollywhite.net)
submitted 8 months ago by ylai@lemmy.ml to c/python@lemmy.ml
21
1
submitted 9 months ago by cypherpunks@lemmy.ml to c/python@lemmy.ml
22
1
submitted 11 months 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)
23
1
submitted 11 months ago by Ajsra@lemmy.ml to c/python@lemmy.ml
24
1
submitted 11 months ago* (last edited 11 months ago) by SurpriseCandid8978@lemmy.ca to c/python@lemmy.ml

Hi,

Does Anyone have any great resources to learn python for a non-programmer? Youtube? Free online courses, etc?

Im starting out and there is a lot out there. They all look good too.

So far, i got python installed lol.

Thanks,

Edit: thanks everyone. I have some homework to do and check out all the resources !

25
1
submitted 11 months ago by uthredii@lemmy.ml to c/python@lemmy.ml
view more: next ›

Python

3117 readers
4 users here now

News and discussions about the programming language Python


founded 5 years ago
MODERATORS