#python
The latest AI and developer news about #python, with the original source and a short summary.
The latest AI and developer news about #python, with the original source and a short summary.
Use Django's `_meta.related_objects` to find all reverse ForeignKeys and update them in bulk.
In a for loop, on_commit callbacks must fix the current value using a lambda default argument.
Repl.it has launched a built-in key-value database that can be used instantly without any separate setup.
Using RangeKeyDict lets you cleanly map values by date range without if statements.
Banksalad ran an interactive game event at PyCon KR 2019 using Pyxel, a Python-based open source game engine.
At PyCon 2018, a diamond-printing problem was reduced through code golf from 551 characters down to 237 characters.
Repl.it announced a universal package manager that unifies package management across a variety of programming languages.
Cython multithreading achieves a 25% performance improvement over single-threaded execution for 200-million-element array operations, highlighting the need to address vector loading bottlenecks.
Worked directly with MySQL in Python, learning CSV import/export and DB CRUD operations.
Learned the basics of relational databases and SQL using sqlite3 in Python.
We learned Excel processing with glob and pandas, plus Google Sheets integration with gspread.
Summarized how to read and write Excel workbooks using Python and pandas.
Learned the basics and advanced techniques of selecting, merging, and exploring CSV files with pandas through a study session.
Started an introduction to data analysis with Git, GitHub, IPython Notebook, and pandas.
We looked at how to use Django third-party packages and useful tools like django-test-plus.
Candidates pass by solving at least 4 out of 7 problems, with JavaScript users having the lowest pass rate.
This session covered Django template tags and Jinja2, along with a story about ancient relics shared during the study group.
This introduces the cases of users who landed jobs as software engineers or taught students by leveraging Replit.
We learned about Django forms and CSRF protection, and shared a mid-study retrospective.
We reviewed Django app design principles and how to separate settings and requirements, then kicked off a project.
The first study session covered self-introductions and Django's request-handling flow together.
The 8percent Product Group is starting a study group on **Two Scoops of Django 1.11**.
In Django, mixing naive datetime and aware datetime causes timezone issues in date storage and comparison.
8Percent laid out standards for class names, function names, factories, timezone, and freezegun in Python Django testing.