Search Results
| Search type | Search syntax |
|---|---|
| Tags | [tag] |
| Exact | "words here" |
| Author | user:1234 user:me (yours) |
| Score | score:3 (3+) score:0 (none) |
| Answers | answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
| Views | views:250 |
| Code | code:"if (foo != bar)" |
| Sections | title:apples body:"apples oranges" |
| URL | url:"*.example.com" |
| Saves | in:saves |
| Status | closed:yes duplicate:no migrated:no wiki:no |
| Types | is:question is:answer |
| Exclude | -[tag] -apples |
| For more details on advanced search visit our help page | |
Results tagged with python
Search options not deleted user 7575
Python is a dynamically typed, high-level interpreted programming language. Its design focuses on clear syntax, an intuitive approach to object-oriented programming, and making the right way to do things obvious. Python supports modules and exceptions, and has an extensive standard module library. Python is general-purpose and thus used widely, from the web to embedded systems.
2 votes
Accepted
Python - defining exit method before importing
If you want to customize imports Python has facilities for this. …
1 vote
Python - Service, how to get a code review
I would check to see if there is a local Python Users Group. People on those lists are usually interested in helping out other Python developers. …
2 votes
Accepted
How to use database adapters' cursors safely?
I believe creating a cursor starts a transaction in postgresql. If that's the case (I don't know for sure) then: INSERTS and UPDATES would not be reflected in other sessions because of transactio …
2 votes
Accepted
Python multiple inheritance or decorators for composable behaviours
Python does some work to fix some issues with inheritance, however there are numerous ways of unintentionally confusing the method resolution order (mro) of classes. …
3 votes
How to handle configuration of Python modules, especially when used standalone and in framew...
TL;DR: Pass as args in init. Balance the use of libraries against the limiting factor they may represent to others who don't use those libraries and don't want to. There is a general rule of thumb t …
2 votes
Using a closure to avoid code duplication in Python
TL;DR: Create function (ideally at import time, not execution time) unless you need to save state A closure is so named because you "close over" a lexical variable in the enclosing scope. This allow …
8 votes
When to use python function nesting?
TL;DR: Use function nesting when you need the characteristics of function nesting Function Nesting Use Cases (mostly functional idioms, almost certainly incomplete since it's off the top of my head): …
12 votes
Best practices for execution of untrusted code
For the most security: create a container with only Python and it's dependencies and the container's dependencies create a container without all devices that aren't absolutely necessary (ie. network …
3 votes
3 answers
525 views
Is there a name for this functional programming construct/pattern?
It also has strong similarities to decorators and Python context managers since it provides a way to encapsulate pre and post execution behaviors in one function. …
7 votes
Why store a function inside a python dictionary?
There are 2 techniques that leap to my mind which you may be referring to, neither of which are Pythonic in that they are more broad than one language. 1. The technique of information hiding/encapsu …
0 votes
How can I keep a production Python environment secure?
For example ImageMagick, the python executable itself or a system library that python uses. … There is no vertically integrated solution specific to python or django that I know of. …
1 vote
How can I convince my client that the task was complex and the time I took is fair?
TL;DR: Establish a rapport. Do regular status updates and offer options that save money, or meet their needs better. So accurate estimation is good. What's even better is timely communication as so …