跳转至

621-630

Issue #621 Seaborn, Pointers, Memory, and More March 19, 2024

Cite

Python 3.13.0 Alpha 5 Released
CPYTHON DEV BLOG

1

Cite

The 2038 Problem
Learn how “The 2038 problem” could impact software, hardware, and more - and what can be done to prepare. CODE RELIANT

我不知道你怎么想,但那天我绝对不会坐飞机或开车去任何地方

有点花里胡哨的

没看懂是干嘛的

Issue #622 Space Invaders, Using help(), Every Dunder Method, and More March 26, 2024

1

构建工具,看起来是对标Makefile的

使用Pydantic模型来构建应用,有点像diffusers搞得那个AI模型应用展示的网站

Issue #623 WAV Files, Reflex, Autopilot, and More April 2, 2024

Cite

Python Post-Mortem Debugger
GITHUB.COM/COCOLATO • Shared by cocolato

可以在Python代码的任意位置dump供后续调试

Issue #624 Inline Dependencies, pipx, Multiplying Sequences, and More April 9, 2024

Cite

Inline Run Dependencies in pipx 1.4.2
PEP 723 adds the ability to specify dependencies within a Python script itself. The folks who write pipx have added an experimental feature that takes advantage of this future language change. This article shows you how the new feature looks and what pipx does with it. HENRY SCHREINER

实现了pep735,感觉还可以,毕竟有就比没有强

Cite

PEP 738 Accepted: Adding Android as a Supported Platform
PYTHON ENHANCEMENT PROPOSALS (PEPS)

很强,要是再出两个优秀的UI库,就可以用Python写Android应用了

Cite

PEP 742 Accepted: Narrowing Types With TypeIs
PYTHON ENHANCEMENT PROPOSALS (PEPS)

1

Issue #625 Pydantic, Web Security, State of Python, and More April 16, 2024

1

Cite

nava: Play Sounds in Python
GITHUB.COM/OPENSCILAB

播放音频的库,功能较少,只支持循环播放,看起来目前的主要卖点是支持多平台

Issue #626 CTRL-C, Exceptions, Ruff Speed-up, and More April 23, 2024

Cite

How to Format Floats Within F-Strings in Python
In this tutorial, you’ll learn how to use Python format specifiers within an f-string to allow you to neatly format a float to your required precision. You’ll also learn how to extract digits from existing strings and format them as well. REAL PYTHON

小数使用f-string格式化,可以科学计数法,也可以指定小数点后的位数,百分比显示之类的

Cite

Shape Typing in Python
This quick blog post shows you how to use Python type checking to ensure the dimensions of matrices being multiplied together. Typing is no longer just “is it an integer”. JAMES FISHER

type Mat[N, M] = np.ndarray[
    tuple[N, M],
    np.dtype[np.float64],
]

def mat_mul[
    N, K, M
](
  m1: Mat[N, M],
  m2: Mat[M, K],
) -> Mat[N, K]:
    return m1 @ m2
可以定义矩阵的shape

Issue #627 PEP 686, Lazy Evaluation, Serverless Python, and More April 30, 2024

Cite

PEP 686: Make UTF-8 Mode Default
This Python Enhancement Proposal outlines making UTF-8 the default throughout Python. This takes the addition of Unicode introduced in Python 3 to its full extent, applying it to file encoding, pipes, and more. Mechanisms for other encoding are still supported. This PEP is targeted for Python 3.15. PEPS

pep已经被接受,3.15会默认使用utf-8

Cite

What’s Lazy Evaluation in Python?
This tutorial explores lazy evaluation in Python and looks at the advantages and disadvantages of using lazy and eager evaluation methods. By the end of this tutorial, you’ll clearly understand which approach is best for you, depending on your needs. REAL PYTHON

惰性求值,生成器相关的一些例子

17个月的开发周期,最终版本预计在2025年10月发布

Issue #628 Random Web App Ports, unittest, TypeIs vs TypeGuard, and More May 7, 2024

Cite

Quiz: What Is the pycache Folder in Python?
In this quiz, you’ll have the opportunity to test your knowledge of the pycache folder, including when, where, and why Python creates these folders. REAL PYTHON

一个小测试

控制循环的时间,代码非常简单,就算一下然后sleep

Issue #629 Flattening Lists of Lists, Python 3.13, Sets, and More May 14, 2024

Cite

What’s New in Python 3.13
Python 3.13 has gone into beta, which means the feature freeze is now in place. This is the official listing of the new features in 3.13. This release includes changes to the REPL, new typing features, experimental support for disabling the GIL, dead battery removal, and more. PYTHON

官方开始支持IOS和Android了,有点东西

Issue #630 Accessibility, Reinventing Notebooks, Crawlee, and More May 21, 2024

没看明白是干嘛用的

评论