|
NtotheTC posted:As an aside, what syntax is this? I've not seen this before in Python.
|
# ¿ Mar 9, 2017 15:30 |
|
|
# ¿ Apr 29, 2024 11:55 |
|
xgalaxy posted:Apologies if this has been asked in here before. code:
|
# ¿ Dec 1, 2017 18:48 |
|
LochNessMonster posted:I was wondering there was a more pythonic way of doing this: List comprehensions are pretty pythonic. How about something like this? code:
|
# ¿ Dec 21, 2017 20:36 |
|
Eela6 posted:IAmKale, I like your solution except for one thing: it doesn't duplicate the behavior of the original function in the case that a key in d1 is missing from d2. The original function will raise a KeyError, but yours will silently ignore that key.
|
# ¿ Dec 21, 2017 22:38 |
|
I have a bit of a conundrum: how do I lint my code when my application's Python environment is contained in a Docker container? I just spun up a new Django project and stumbled a bit when I realized that I don't know what environment path to point the linter to. This is preventing Flake8 from understanding that I have Django installed, and it's outputting typical linting issues like the E0401 one below: I feel as though my only option is to maintain a virtual environment on my machine that I'll have to keep in sync with the dependencies running in the Docker image that's serving the actual application. Unless there's a better way?
|
# ¿ Dec 30, 2017 04:16 |
|
nonathlon posted:What's a stable library for building a REST client?
|
# ¿ Jan 7, 2019 16:11 |
|
Falcon2001 posted:Ah, thanks! That totally fixes it.
|
# ¿ Jul 29, 2019 17:16 |
|
|
# ¿ Apr 29, 2024 11:55 |
|
KICK BAMA KICK posted:
code:
|
# ¿ May 11, 2020 19:56 |