135201
You will be muted until you read the rules. Read them! @Rules_for_Python A group about the Python programming language. Offtopic things go here: @pythonofftopic Resources to learn python: @pythonres Group for Hy: @hylang Selenium: @SeleniumPython
That link looks pretty long—any chance you could put it on a pastebin or something simpler to look at? Curious about what's happening with the EOF issue.
Читать полностью…
I'll send a link to the code that is giving me issues
Читать полностью…
Python 3.8 I can read the data from stdin I get the interactive prompt but then the script exits
Читать полностью…
When I pipe data into a python script it exits interactive mode any way around this. Hope this is the proper forum for this question I've never asked
Читать полностью…
Follow solid principles, they help a lot in big projects
Читать полностью…
I’m working on a complex Python project and trying to design it for high performance and modularity.
How would you handle dynamic dependency injection, asynchronous data pipelines, and custom error propagation in a large-scale application while keeping it maintainable and testable ?
The approach depends on the type of application. But it helps to think in units that are responsible for the data retrieval and storage, logic and representation.
Читать полностью…
Like the framework suggests. If you don't use a framework, then pretend like you're writing one.
Читать полностью…
As soon as I can, I'll read everything carefully. Now i have to run 👍🏻😅
@Inchidi @c0x6a @notfromcambrigde @razorblade23 thx for the help ❤️❤️
You have not scratched the surface yet 😁
Try making your custom one... (decorator i mean)
It should be more familiar once you realize how it works internally
Pure functions are easy to test. They have an input and an output and no side-effects.
Читать полностью…
Yeah, me personally use them almost never
But it can be useful when you want to add a method to some class it semanticly belongs to, but does not need any class/instance data to execute
This is a new tool from github the storage is in the url
Читать полностью…
Rule 5️⃣: To share code or error tracebacks, use an online pasting service like:
- https://dpaste.org
- https://hastebin.com
- https://bin.kv2.dev
If you posted a wall of text, go back and delete it.
You can use python to automate stuff
Pentesting is a whole category for itself and not really related to python - and we do not help in hacking or scams here...
Let me google that for you: https://realpython.com/nltk-nlp-python/
Читать полностью…
Thanks! 👌
Could you give a quick example of how you implement it in a real project?
I’m curious about the practical structure 🐍🛠️
When building a large Python project, how do you structure your modules and packages for maximum maintainability 🐍🛠️?
Читать полностью…
if you watch closely on my example above has_liver() actually not using cls which means it should/could be staticmethod instead. from here you might realize what OOP is as a paradigm.
That said, a staticmethod does not need to be a pure function.
Читать полностью…
Like a function that you need inside the instance which performs an operation but does not need a reference to the instance. A pure function.
Читать полностью…