Get Mystery Box with random crypto!

🇺🇦 Python Programming Сhallenges

Логотип телеграм -каналу python_programming_challenges — 🇺🇦 Python Programming Сhallenges
Логотип телеграм -каналу python_programming_challenges — 🇺🇦 Python Programming Сhallenges
Адреса каналу: @python_programming_challenges
Категорії: Технології
Мова: Українська
Передплатники: 355
Опис з каналу

Размышления на тему решения различных задач по спортивному программированию на Python и не только.

Ratings & Reviews

3.00

2 reviews

Reviews can be left only by registered users. All reviews are moderated by admins.

5 stars

0

4 stars

1

3 stars

0

2 stars

1

1 stars

0


Останні повідомлення 4

2020-10-14 01:24:00 Hypermodern Python

Chapter 1: Setup
Chapter 2: Testing
Chapter 3: Linting
Chapter 4: Typing
Chapter 5: Documentation
Chapter 6: CI/CD

https://cjolowicz.github.io/posts/hypermodern-python-01-setup/
1.0K views22:24
Відкрити / Коментувати
2020-09-29 17:09:35 Python 3.9 is around the corner

https://lwn.net/SubscriberLink/831783/8afbf1812decf4d9/
936 views14:09
Відкрити / Коментувати
2020-08-19 23:00:59 Note #71 The seven rules of a great Git commit message

1. Separate subject from body with a blank line
2. Limit the subject line to 50 characters
3. Capitalize the subject line
4. Do not end the subject line with a period
5. Use the imperative mood in the subject line
6. Wrap the body at 72 characters
7. Use the body to explain what and why vs. how

https://chris.beams.io/posts/git-commit/
953 views20:00
Відкрити / Коментувати
2020-08-14 15:16:19 Asynchronous IO Support for Core and ORM

SQLAlchemy 1.4
now supports Python asyncio-compatible database drivers using an all-new asyncio front-end interface to Connection for Core usage as well as Session for ORM use, using the AsyncConnection and AsyncSession objects.

https://docs.sqlalchemy.org/en/14/changelog/migration_14.html#asynchronous-io-support-for-core-and-orm
896 views12:16
Відкрити / Коментувати
2020-06-24 00:46:02 PEP 622 -- Structural Pattern Matching

Interesting proposal for python 3.10.

The proposed indentation structure is as following:
match some_expression:
case pattern_1:
...
case pattern_2:
...

and example from pep:
match number:
case 0:
print("Nothing")
case 1:
print("Just one")
case 2:
print("A couple")
case -1:
print("One less than nothing")
case 1-1j:
print("Good luck with that...")

https://www.python.org/dev/peps/pep-0622/
981 views21:46
Відкрити / Коментувати
2020-06-22 16:04:27 Note #68: The Rules of Optimization Club

1. You do not optimize.
2. You do not optimize, without measuring first.
3. When the performance is not bound by the code, but by external factors, the optimization is over.
4. Only optimize code that already has full unit test coverage.
5. One factor at a time.
6. No unresolved bugs, no schedule pressure.
7. Testing will go on as long as it has to.
8. If this is your first night at Optimization Club, you have to write a test case.

from https://wiki.c2.com/?RulesOfOptimizationClub
391 views13:04
Відкрити / Коментувати
2020-06-19 00:27:08

311 views21:27
Відкрити / Коментувати
2020-06-12 16:34:23 Restructuring data, the Python way.

>>> import glom
>>> glom.assign({}, "a.b.c.d", 42, missing=dict)
{'a': {'b': {'c': {'d': 42}}}}

# Path-based access for nested structures
>>> target = {'a': {'b': {'c': 'd'}}}
>>> glom(target, 'a.b.c')
'd'
happy glomming!

https://glom.readthedocs.io/en/latest/
785 views13:34
Відкрити / Коментувати
2020-06-09 12:53:56 beta preview of Python 3.9 is out:

- PEP 584, Union Operators in dict
- PEP 585, Type Hinting Generics In Standard Collections
- PEP 593, Flexible function and variable annotations
- PEP 602, Python adopts a stable annual release cadence
- PEP 615, Support for the IANA Time Zone Database in the Standard Library
- PEP 616, String methods to remove prefixes and suffixes
- PEP 617, New PEG parser for CPython

https://www.python.org/downloads/release/python-390b2/
693 views09:53
Відкрити / Коментувати
2020-06-02 22:45:26 Import Linter allows you to define and enforce rules for the imports within and between Python packages.

[importlinter]
root_package = myproject

[importlinter:contract:1]
name=Foo doesn't import bar or baz
type=forbidden
source_modules=
myproject.foo
forbidden_modules=
myproject.bar
myproject.baz

Example output:
=============
Import Linter
=============

---------
Contracts
---------

Analyzed 23 files, 44 dependencies.
-----------------------------------

Foo doesn't import bar or baz BROKEN

Contracts: 1 broken.

https://import-linter.readthedocs.io/en/stable/readme.html
694 views19:45
Відкрити / Коментувати