The State of Django 2025 is here – 4,600+ developers share how they use Django
The results of the annual Django Developers Survey, a joint initiative by the Django Software Foundation and JetBrains PyCharm, are out!
Here’s what stood out to us from more than 4,600 responses:
* HTMX and Alpine.js are the fastest-growing JavaScript frameworks used with Django.
* 38% of developers now use AI to learn or improve their Django skills.
* 3 out of 4 Django developers have over 3 years of professional coding experience.
* 63% of developers already use type hints, and more plan to.
* 76% of developers use PostgreSQL as their database backend.
What surprised you most? Are you using HTMX, AI tools, or type hints in your projects yet?
https://preview.redd.it/echnytaqlsxf1.png?width=1700&format=png&auto=webp&s=bc516c7398117e6fb878f92b00afb78e7578ddba
Get the full breakdown with charts and analysis: [https://lp.jetbrains.com/django-developer-survey-2025/](https://lp.jetbrains.com/django-developer-survey-2025/)
/r/djangolearning
https://redd.it/1oi2pw5
The results of the annual Django Developers Survey, a joint initiative by the Django Software Foundation and JetBrains PyCharm, are out!
Here’s what stood out to us from more than 4,600 responses:
* HTMX and Alpine.js are the fastest-growing JavaScript frameworks used with Django.
* 38% of developers now use AI to learn or improve their Django skills.
* 3 out of 4 Django developers have over 3 years of professional coding experience.
* 63% of developers already use type hints, and more plan to.
* 76% of developers use PostgreSQL as their database backend.
What surprised you most? Are you using HTMX, AI tools, or type hints in your projects yet?
https://preview.redd.it/echnytaqlsxf1.png?width=1700&format=png&auto=webp&s=bc516c7398117e6fb878f92b00afb78e7578ddba
Get the full breakdown with charts and analysis: [https://lp.jetbrains.com/django-developer-survey-2025/](https://lp.jetbrains.com/django-developer-survey-2025/)
/r/djangolearning
https://redd.it/1oi2pw5
About models and database engines
Hi, all. I'm developing an app for a company and their bureaucracy is killing me. So...
¿Can I develop an app with the default SQLite migrations and later deploy it on a PosgreSQL easily changing the DATABASES ENGINE in settings.py?
/r/django
https://redd.it/1oi3yr9
Hi, all. I'm developing an app for a company and their bureaucracy is killing me. So...
¿Can I develop an app with the default SQLite migrations and later deploy it on a PosgreSQL easily changing the DATABASES ENGINE in settings.py?
/r/django
https://redd.it/1oi3yr9
Reddit
From the django community on Reddit
Explore this post and more from the django community
Which linting rules do you always enable or disable?
I'm working on a Python LSP with a type checker and want to add some basic linting rules. So far I've worked on the rules from Pyflakes but was curious if there were any rules or rulesets that you always turn on or off for your projects?
Edit: thank you guys for sharing!
This is the project if you wanna take a look!
These are the rules I've committed to so far
/r/Python
https://redd.it/1oi1dkm
I'm working on a Python LSP with a type checker and want to add some basic linting rules. So far I've worked on the rules from Pyflakes but was curious if there were any rules or rulesets that you always turn on or off for your projects?
Edit: thank you guys for sharing!
This is the project if you wanna take a look!
These are the rules I've committed to so far
/r/Python
https://redd.it/1oi1dkm
GitHub
GitHub - stormlightlabs/beacon: Python LSP & Type Checker
Python LSP & Type Checker. Contribute to stormlightlabs/beacon development by creating an account on GitHub.
Learning Django Migrations
Hi everyone!
I recently joined a startup team, where I am creating the backend using Django. The startup originally hired overseas engineers through UpWork who decided to use Django over other languages and frameworks. Our code isn't live yet, and I run into even the smallest changes to a model,it blows up migrations & gives me error after error, and so I just wipe the local db and migrations and rebuild it.
Obviously, I can't do this when the code is live and has real data in it. Two questions: is this a pain point you face, and is it always this messy, or once you learn it does this 'mess' become manageable? and 2, what are some good resources that helped you improve your understanding of Django?
For context, I am a junior engineer and the only engineer at this startup, and I'm really anxious & stressed about how making updates to production is going to go if development is giving me such a hard time.
/r/django
https://redd.it/1ohjhhy
Hi everyone!
I recently joined a startup team, where I am creating the backend using Django. The startup originally hired overseas engineers through UpWork who decided to use Django over other languages and frameworks. Our code isn't live yet, and I run into even the smallest changes to a model,it blows up migrations & gives me error after error, and so I just wipe the local db and migrations and rebuild it.
Obviously, I can't do this when the code is live and has real data in it. Two questions: is this a pain point you face, and is it always this messy, or once you learn it does this 'mess' become manageable? and 2, what are some good resources that helped you improve your understanding of Django?
For context, I am a junior engineer and the only engineer at this startup, and I'm really anxious & stressed about how making updates to production is going to go if development is giving me such a hard time.
/r/django
https://redd.it/1ohjhhy
Reddit
From the django community on Reddit
Explore this post and more from the django community
Rookie alert - Facing a few race conditions / performance issues
Hi,
I built a micro-saas tool (Django backend, React frontend). Facing a bit of a race condition at times. I use firebase for the social login. Sometimes it takes a bit of time to login, but I have a redirect internally which redirects back to the login form if the required login info isn't available.
Looks like it is taking a couple of seconds to fetch the details from firebase and in the meantime the app simply goes back to the login page.
What are the best practices to handle these? Also what might be a good idea to measure some of the performance metrics?
P.S. I am beginner level coder (just getting started, so advanced apologies if this is a rookie question and thanks a lot for any support).
https://preview.redd.it/8o9u8wjpfvxf1.png?width=1560&format=png&auto=webp&s=36f0ca2bb65c9fd63990f10c67529f00abd04f86
https://preview.redd.it/4vww9wjpfvxf1.png?width=1014&format=png&auto=webp&s=d8015438c537ec59adb2521e80b4135d09d213c3
https://preview.redd.it/08dx1wjpfvxf1.png?width=1528&format=png&auto=webp&s=4ae326689894bd8d8ed50f82a2ca6ada1d3fff2b
/r/django
https://redd.it/1oibnhn
Hi,
I built a micro-saas tool (Django backend, React frontend). Facing a bit of a race condition at times. I use firebase for the social login. Sometimes it takes a bit of time to login, but I have a redirect internally which redirects back to the login form if the required login info isn't available.
Looks like it is taking a couple of seconds to fetch the details from firebase and in the meantime the app simply goes back to the login page.
What are the best practices to handle these? Also what might be a good idea to measure some of the performance metrics?
P.S. I am beginner level coder (just getting started, so advanced apologies if this is a rookie question and thanks a lot for any support).
https://preview.redd.it/8o9u8wjpfvxf1.png?width=1560&format=png&auto=webp&s=36f0ca2bb65c9fd63990f10c67529f00abd04f86
https://preview.redd.it/4vww9wjpfvxf1.png?width=1014&format=png&auto=webp&s=d8015438c537ec59adb2521e80b4135d09d213c3
https://preview.redd.it/08dx1wjpfvxf1.png?width=1528&format=png&auto=webp&s=4ae326689894bd8d8ed50f82a2ca6ada1d3fff2b
/r/django
https://redd.it/1oibnhn
IBM Flask App development KeyError
Hello, I am having an issue with a KeyError that wont go away and I really dont understand why. I am new to python and flask and have been following the IBM course (with a little googling inbetween). Can someone help with this problem? This is the error,
This is the error
This is my app code
This is my server code
This is all available from the IBM course online. I am so confused and dont know what to do, I tried changing the code to only use requests like this
changed code under advice from AI helper to access keys with .get\(\) method to avoid key error.... but it still gives me the error
still getting the same error even after removing traces of 'emotionPrediction' in my code.
emotionPrediction shows up as a nested dictionary as one of the first outputs that you have to format the output to only show emotions, which it does when I use the above code, it´s just not working in the app and leading to my confusion
this is the data before formatting i.e. the response object before formatting
Please let me know if there is any more info I can provide, and thanks in advance!
UPDATE: Thanks for your input everyone,
/r/flask
https://redd.it/1ohgl8h
Hello, I am having an issue with a KeyError that wont go away and I really dont understand why. I am new to python and flask and have been following the IBM course (with a little googling inbetween). Can someone help with this problem? This is the error,
This is the error
This is my app code
This is my server code
This is all available from the IBM course online. I am so confused and dont know what to do, I tried changing the code to only use requests like this
changed code under advice from AI helper to access keys with .get\(\) method to avoid key error.... but it still gives me the error
still getting the same error even after removing traces of 'emotionPrediction' in my code.
emotionPrediction shows up as a nested dictionary as one of the first outputs that you have to format the output to only show emotions, which it does when I use the above code, it´s just not working in the app and leading to my confusion
this is the data before formatting i.e. the response object before formatting
Please let me know if there is any more info I can provide, and thanks in advance!
UPDATE: Thanks for your input everyone,
/r/flask
https://redd.it/1ohgl8h
Introducing Kanchi - Free Open Source Celery Monitoring
I just shipped https://kanchi.io - a free open source celery monitoring tool (https://github.com/getkanchi/kanchi)
What does it do
Previously, I used flower, which most of you probably know. And it worked fine. It lacked some features like Slack webhook integration, retries, orphan detection, and a live mode.
I also wanted a polished, modern look and feel with additional UX enhancements like retrying tasks, hierarchical args and kwargs visualization, and some basic stats about our tasks.
It also stores task metadata in a Postgres (or SQLite) database, so you have historical data even if you restart the instance. It’s still in an early state.
Comparison to alternatives
Just like flower, Kanchi is free and open source. You can self-host it on your infra and it’s easy to setup via docker.
Unlike flower, it supports realtime task updates, has a workflow engine (where you can configure triggers, conditions and actions), has a great searching and filtering functionality, supports environment filtering (prod, staging etc) and retrying tasks manually. It has built in orphan task detection and comes with basic stats
Target Audience
Since by itself, it is just reading data from your message broker - and it’s working reliably, Kanchi can be used in production.
The next few releases will further target robustness and
/r/Python
https://redd.it/1oidpl8
I just shipped https://kanchi.io - a free open source celery monitoring tool (https://github.com/getkanchi/kanchi)
What does it do
Previously, I used flower, which most of you probably know. And it worked fine. It lacked some features like Slack webhook integration, retries, orphan detection, and a live mode.
I also wanted a polished, modern look and feel with additional UX enhancements like retrying tasks, hierarchical args and kwargs visualization, and some basic stats about our tasks.
It also stores task metadata in a Postgres (or SQLite) database, so you have historical data even if you restart the instance. It’s still in an early state.
Comparison to alternatives
Just like flower, Kanchi is free and open source. You can self-host it on your infra and it’s easy to setup via docker.
Unlike flower, it supports realtime task updates, has a workflow engine (where you can configure triggers, conditions and actions), has a great searching and filtering functionality, supports environment filtering (prod, staging etc) and retrying tasks manually. It has built in orphan task detection and comes with basic stats
Target Audience
Since by itself, it is just reading data from your message broker - and it’s working reliably, Kanchi can be used in production.
The next few releases will further target robustness and
/r/Python
https://redd.it/1oidpl8
Kanchi
Kanchi - Self-hosted Celery monitoring
Real-time Celery task monitoring with automatic orphan detection and workflow automation.
The HTTP caching Python deserves
# What My Project Does
[Hishel](https://hishel.com/1.0/) is an HTTP caching toolkit for python, which includes **sans-io** caching implementation, **storages** for effectively storing request/response for later use, and integration with your lovely HTTP tool in python such as HTTPX, requests, fastapi, asgi (for any asgi based library), graphql and more!!
Hishel uses **persistent storage** by default, so your cached responses survive program restarts.
After **2 years** and over **63 MILLION pip installs**, I released the first major version with tons of new features to simplify caching.
✨ Help Hishel grow! Give us a [star on GitHub](https://github.com/karpetrosyan/hishel) if you found it useful. ✨
# Use Cases:
HTTP response caching is something you can use **almost everywhere** to:
* Improve the performance of your program
* Work without an internet connection (offline mode)
* Save money and stop wasting API calls—make a single request and reuse it many times!
* Work even when your upstream server goes down
* Avoid unnecessary downloads when content hasn't changed (what I call "free caching"—it's completely free and can be configured to always serve the freshest data without re-downloading if nothing changed, like the browser's 304 Not Modified response)
# QuickStart
First, download and install Hishel using pip:
pip: `pip install "hishel[httpx, requests, fastapi, async]"==1.0.0`
We've installed several integrations just for demonstration—you
/r/Python
https://redd.it/1oilkc1
# What My Project Does
[Hishel](https://hishel.com/1.0/) is an HTTP caching toolkit for python, which includes **sans-io** caching implementation, **storages** for effectively storing request/response for later use, and integration with your lovely HTTP tool in python such as HTTPX, requests, fastapi, asgi (for any asgi based library), graphql and more!!
Hishel uses **persistent storage** by default, so your cached responses survive program restarts.
After **2 years** and over **63 MILLION pip installs**, I released the first major version with tons of new features to simplify caching.
✨ Help Hishel grow! Give us a [star on GitHub](https://github.com/karpetrosyan/hishel) if you found it useful. ✨
# Use Cases:
HTTP response caching is something you can use **almost everywhere** to:
* Improve the performance of your program
* Work without an internet connection (offline mode)
* Save money and stop wasting API calls—make a single request and reuse it many times!
* Work even when your upstream server goes down
* Avoid unnecessary downloads when content hasn't changed (what I call "free caching"—it's completely free and can be configured to always serve the freshest data without re-downloading if nothing changed, like the browser's 304 Not Modified response)
# QuickStart
First, download and install Hishel using pip:
pip: `pip install "hishel[httpx, requests, fastapi, async]"==1.0.0`
We've installed several integrations just for demonstration—you
/r/Python
https://redd.it/1oilkc1
GitHub
GitHub - karpetrosyan/hishel: Elegant HTTP Caching for Python
Elegant HTTP Caching for Python. Contribute to karpetrosyan/hishel development by creating an account on GitHub.
django-modern-csrf: CSRF protection without tokens
I made a package that replaces Django's default CSRF middleware with one based on modern browser features (Fetch metadata request headers and
The main benefit: no more
It works by checking the
The implementation is based on Go's standard library approach (there's a great article by Filippo Valsorda about it).
PyPI: https://pypi.org/project/django-modern-csrf/
GitHub: https://github.com/feliperalmeida/django-modern-csrf
Let me know if you have questions or run into issues.
/r/django
https://redd.it/1oihb4l
I made a package that replaces Django's default CSRF middleware with one based on modern browser features (Fetch metadata request headers and
Origin).The main benefit: no more
{% csrf_token %} in templates or csrfmiddlewaretoken on forms, no X-CSRFToken headers to configure in your frontend. It's a drop-in replacement - just swap the middleware and you're done.It works by checking the
Sec-Fetch-Site header that modern browsers send automatically. According to caniuse, it's supported by 97%+ of browsers. For older browsers, it falls back to Origin header validation.The implementation is based on Go's standard library approach (there's a great article by Filippo Valsorda about it).
PyPI: https://pypi.org/project/django-modern-csrf/
GitHub: https://github.com/feliperalmeida/django-modern-csrf
Let me know if you have questions or run into issues.
/r/django
https://redd.it/1oihb4l
Caniuse
headers HTTP header: Sec-Fetch-Site | Can I use... Support tables for HTML5, CSS3, etc
"Can I use" provides up-to-date browser support tables for support of front-end web technologies on desktop and mobile web browsers.
PyCharm: Hide library stack frames
Hey,
I made a PyCharm plugin called StackSnack that hides library stack frames.
Not everyone know that other IDEs have it as a built-in, so I've carefully crafted this one & really proud to share it with the community.
# What my project does
Helps you to filter out library stack frames(i.e. those that does not belong to your project, without imported files), so that you see frames of your own code. Extremely powerful & useful tool when you're debugging.
# Preview
https://imgur.com/a/v7h3ZZu
# GitHub
https://github.com/heisen273/stacksnack
# JetBrains marketplace
https://plugins.jetbrains.com/plugin/28597-stacksnack--library-stack-frame-hider
/r/Python
https://redd.it/1oicb3y
Hey,
I made a PyCharm plugin called StackSnack that hides library stack frames.
Not everyone know that other IDEs have it as a built-in, so I've carefully crafted this one & really proud to share it with the community.
# What my project does
Helps you to filter out library stack frames(i.e. those that does not belong to your project, without imported files), so that you see frames of your own code. Extremely powerful & useful tool when you're debugging.
# Preview
https://imgur.com/a/v7h3ZZu
# GitHub
https://github.com/heisen273/stacksnack
# JetBrains marketplace
https://plugins.jetbrains.com/plugin/28597-stacksnack--library-stack-frame-hider
/r/Python
https://redd.it/1oicb3y
GitHub
GitHub - heisen273/stacksnack: stack frame hider jetbrains plugin
stack frame hider jetbrains plugin. Contribute to heisen273/stacksnack development by creating an account on GitHub.
Why doesn't for-loop have it's own scope?
For the longest time I didn't know this but finally decided to ask, I get this is a thing and probably has been asked a lot but i genuinely want to know... why? What gain is there other than convenience in certain situations, i feel like this could cause more issue than anything even though i can't name them all right now.
I am also designing a language that works very similarly how python works, so maybe i get to learn something here.
/r/Python
https://redd.it/1oiwxt5
For the longest time I didn't know this but finally decided to ask, I get this is a thing and probably has been asked a lot but i genuinely want to know... why? What gain is there other than convenience in certain situations, i feel like this could cause more issue than anything even though i can't name them all right now.
I am also designing a language that works very similarly how python works, so maybe i get to learn something here.
/r/Python
https://redd.it/1oiwxt5
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Pyfory: Drop‑in replacement serialization for pickle/cloudpickle — faster, smaller, safer
**Pyfory** is the Python implementation of [Apache Fory™](https://github.com/apache/fory/blob/main/python/README.md) — a versatile serialization framework.
It works as a **drop‑in replacement for** `pickle`\*\*/\*\*`cloudpickle`, but with major upgrades:
* **Features**: Circular/shared reference support, protocol‑5 zero‑copy buffers for huge NumPy arrays and Pandas DataFrames.
* **Advanced hooks**: Full support for custom class serialization via `__reduce__`, `__reduce_ex__`, and `__getstate__`.
* **Data size**: \~25% smaller than pickle, and 2–4× smaller than cloudpickle when serializing local functions/classes.
* **Compatibility**: Pure Python mode for dynamic objects (functions, lambdas, local classes), or cross‑language mode to share data with Java, Go, Rust, C++, JS.
* **Security**: Strict mode to block untrusted types, or fine‑grained `DeserializationPolicy` for controlled loading.
/r/Python
https://redd.it/1oj0ogq
**Pyfory** is the Python implementation of [Apache Fory™](https://github.com/apache/fory/blob/main/python/README.md) — a versatile serialization framework.
It works as a **drop‑in replacement for** `pickle`\*\*/\*\*`cloudpickle`, but with major upgrades:
* **Features**: Circular/shared reference support, protocol‑5 zero‑copy buffers for huge NumPy arrays and Pandas DataFrames.
* **Advanced hooks**: Full support for custom class serialization via `__reduce__`, `__reduce_ex__`, and `__getstate__`.
* **Data size**: \~25% smaller than pickle, and 2–4× smaller than cloudpickle when serializing local functions/classes.
* **Compatibility**: Pure Python mode for dynamic objects (functions, lambdas, local classes), or cross‑language mode to share data with Java, Go, Rust, C++, JS.
* **Security**: Strict mode to block untrusted types, or fine‑grained `DeserializationPolicy` for controlled loading.
/r/Python
https://redd.it/1oj0ogq
GitHub
fory/python/README.md at main · apache/fory
A blazingly fast multi-language serialization framework powered by JIT and zero-copy. - apache/fory
A new easy way on Windows to pip install GDAL and other tricky geospatial Python packages
# What My Project Does
geospatial-wheels-index is a pip-compatible
simple index for the cgohlke/geospatial-wheels repository. It's just a few static html files served on GitHub Pages, and all the .whl files are pulled directly from
In addition to GDAL, this index points to the other prebuilt packages in
Contributions are welcome!
# Target Audience
Mostly folks who straddle the traditional GIS and the developer/data science worlds, the people who would love to run Linux but are stuck on Windows for one reason or another.
For myself, I'm tired of dealing with the lack of an easy way to install the GDAL binaries on Windows so that I can
# Comparison
Often you'll have to build these packages from source or rely on
The esteemed Christoph Gohlke has been providing prebuilt wheels for
/r/Python
https://redd.it/1oiufp2
# What My Project Does
geospatial-wheels-index is a pip-compatible
simple index for the cgohlke/geospatial-wheels repository. It's just a few static html files served on GitHub Pages, and all the .whl files are pulled directly from
cgohlke/geospatial-wheels. All you need to do is add an index flag:pip install --index https://gisidx.github.io/gwi gdal
In addition to GDAL, this index points to the other prebuilt packages in
geospatial-wheels: cartopy, cftime, fiona, h5py, netcdf4, pygeos, pyogrio, pyproj, rasterio, rtree, and shapely.Contributions are welcome!
# Target Audience
Mostly folks who straddle the traditional GIS and the developer/data science worlds, the people who would love to run Linux but are stuck on Windows for one reason or another.
For myself, I'm tired of dealing with the lack of an easy way to install the GDAL binaries on Windows so that I can
pip install gdal, especially in a uv virtual environment or a CI/CD context where using conda can be a headache.# Comparison
Often you'll have to build these packages from source or rely on
conda or another add-on package manager. For example, the official GDAL docs suggest various ways to install the binaries. This is often not possible or requires extra work.The esteemed Christoph Gohlke has been providing prebuilt wheels for
/r/Python
https://redd.it/1oiufp2
GitHub
GitHub - corbel-spatial/geospatial-wheels-index: A pip index for cgohlke/geospatial-wheels
A pip index for cgohlke/geospatial-wheels. Contribute to corbel-spatial/geospatial-wheels-index development by creating an account on GitHub.
Best courses Python and Django X
Hi all,
I have a new role at work, which is kind of link between IT and the technical role (I am coming from the techical side).
I enjoy coding and have basic python and java script skills which I get by with for personal projects and AI.
For this role, my work have agreed to fund some development and i am looking for the best python and mainly django x framework courses/plans to gain bettet knowledge anf best practice to be more aid to the IT department.
Wondered if anyone knew the best plan of action? Would likey need futher python training and then I am new to Django and offcial IT workflows and what not.
Tia
/r/Python
https://redd.it/1oj294x
Hi all,
I have a new role at work, which is kind of link between IT and the technical role (I am coming from the techical side).
I enjoy coding and have basic python and java script skills which I get by with for personal projects and AI.
For this role, my work have agreed to fund some development and i am looking for the best python and mainly django x framework courses/plans to gain bettet knowledge anf best practice to be more aid to the IT department.
Wondered if anyone knew the best plan of action? Would likey need futher python training and then I am new to Django and offcial IT workflows and what not.
Tia
/r/Python
https://redd.it/1oj294x
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Curious if someone has a better answer.
I'm designing an app where the user will be entering health information. The day/time the data is entered needs to be recorded which will be easy when I go live. As I'm developing and testing it I want to be able to store the data using different dates to simulate the way it will actually be used. I don't want to actually change the front end for this purposes because there are a lot of pages that are making posts to the app.
The way I thought of doing it is to have a conditional dialog box that pops up from each view asking for a day. The default will be the last date entered, which I can save in a text file each time so I don't have to re-enter and the dialog box will allow me to just increase by one day. This seems like the simplest way but it also seems like something that people have to deal with a lot as they're developing and thought I would post here to see if someone has a better solution or if there is something built into Django that does this for me.
/r/django
https://redd.it/1oj586h
I'm designing an app where the user will be entering health information. The day/time the data is entered needs to be recorded which will be easy when I go live. As I'm developing and testing it I want to be able to store the data using different dates to simulate the way it will actually be used. I don't want to actually change the front end for this purposes because there are a lot of pages that are making posts to the app.
The way I thought of doing it is to have a conditional dialog box that pops up from each view asking for a day. The default will be the last date entered, which I can save in a text file each time so I don't have to re-enter and the dialog box will allow me to just increase by one day. This seems like the simplest way but it also seems like something that people have to deal with a lot as they're developing and thought I would post here to see if someone has a better solution or if there is something built into Django that does this for me.
/r/django
https://redd.it/1oj586h
Reddit
From the django community on Reddit
Explore this post and more from the django community
Pylint 4 changes what's considered a constant. Does a use case exist?
Pylint 4 changed their definition of constants. Previously, all variables at the root of a module were considered constants and expected to be in all caps. With Pylint 4, they are now checking to see if a variable is reassigned non-exclusively. If it is, then it's treated as a "module-level variable" and expected to be in snake case.
So this pattern, which used to be valid, now raises an invalid-name warning.
SERIES_STD = ' ▌█' if platform.system() == 'Windows' else ' ▏▎▍▌▋▊▉█'
try:
SERIES_STD.encode(sys.__stdout__.encoding)
except UnicodeEncodeError:
SERIES_STD = ' |'
except (AttributeError, TypeError):
pass
This could be re-written to match the new definition of a constant, but doing so reduces readability.
In my mind any runtime code is placed in classes, function or guarded with a dunder name clause. This only leaves code needed for module initialization. Within that, I see two categories of variables at the module root, constants and globals.
* Constants
* After value is determine (like above example), it never changes
* All
/r/Python
https://redd.it/1oj4mcr
Pylint 4 changed their definition of constants. Previously, all variables at the root of a module were considered constants and expected to be in all caps. With Pylint 4, they are now checking to see if a variable is reassigned non-exclusively. If it is, then it's treated as a "module-level variable" and expected to be in snake case.
So this pattern, which used to be valid, now raises an invalid-name warning.
SERIES_STD = ' ▌█' if platform.system() == 'Windows' else ' ▏▎▍▌▋▊▉█'
try:
SERIES_STD.encode(sys.__stdout__.encoding)
except UnicodeEncodeError:
SERIES_STD = ' |'
except (AttributeError, TypeError):
pass
This could be re-written to match the new definition of a constant, but doing so reduces readability.
In my mind any runtime code is placed in classes, function or guarded with a dunder name clause. This only leaves code needed for module initialization. Within that, I see two categories of variables at the module root, constants and globals.
* Constants
* After value is determine (like above example), it never changes
* All
/r/Python
https://redd.it/1oj4mcr
Reddit
From the Python community on Reddit: Pylint 4 changes what's considered a constant. Does a use case exist?
Explore this post and more from the Python community
DNLP conferences look like a scam..
Not trying to punch down on other smart folks, but honestly, I feel like most NLP conference papers are kinda scams. Out of 10 papers I read, 9 have zero theoretical justification, and the 1 that does usually calls something a theorem when it’s basically just a lemma with ridiculous assumptions.
And then they all cliam about like a 1% benchmark improvement using methods that are impossible to reproduce because of the insane resource constraints in the LLM world.. Even more funny, most of the benchmarks and made by themselves
/r/MachineLearning
https://redd.it/1ojeldl
Not trying to punch down on other smart folks, but honestly, I feel like most NLP conference papers are kinda scams. Out of 10 papers I read, 9 have zero theoretical justification, and the 1 that does usually calls something a theorem when it’s basically just a lemma with ridiculous assumptions.
And then they all cliam about like a 1% benchmark improvement using methods that are impossible to reproduce because of the insane resource constraints in the LLM world.. Even more funny, most of the benchmarks and made by themselves
/r/MachineLearning
https://redd.it/1ojeldl
Reddit
From the MachineLearning community on Reddit
Explore this post and more from the MachineLearning community