Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
CPython's bug in feature that nobody uses
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
dv
June 06, 2015
Technology
120
0
Share
CPython's bug in feature that nobody uses
dv
June 06, 2015
More Decks by dv
See All by dv
Python module in Rust
wdv4758h
0
190
First try for CAS, SymPy with codegen
wdv4758h
0
700
Android Memory Leak Profiling - VMFive
wdv4758h
0
310
Vim 手指健康操
wdv4758h
3
930
FreeBSD ports system
wdv4758h
0
150
Other Decks in Technology
See All in Technology
不確実性と戦いながら見積もりを作成するプロセス/mitsumori-process
hirodragon112
1
190
GitHub Copilotを極める会 - 開発者のための活用術
findy_eventslides
5
3.2k
Claude Teamプランの選定と、できること/できないこと
rfdnxbro
1
1.2k
OPENLOGI Company Profile for engineer
hr01
1
62k
AIを活用したアクセシビリティ改善フロー
degudegu2510
1
150
今年60歳のおっさんCBになる
kentapapa
1
210
自分をひらくと次のチャレンジの敷居が下がる
sudoakiy
5
1.9k
Network Firewall Proxyで 自前プロキシを消し去ることができるのか
gusandayo
0
200
【PHPカンファレンス小田原2026】Webアプリケーションエンジニアにも知ってほしい オブザーバビリティ の本質
fendo181
0
280
レガシーシステムをどう次世代に受け継ぐか
tachiiri
0
290
GitHub Actions侵害 — 相次ぐ事例を振り返り、次なる脅威に備える
flatt_security
13
7.7k
プロダクトを触って語って理解する、チーム横断バグバッシュのすすめ / 20260411 Naoki Takahashi
shift_evolve
PRO
1
170
Featured
See All Featured
Visualization
eitanlees
150
17k
How to train your dragon (web standard)
notwaldorf
97
6.6k
Become a Pro
speakerdeck
PRO
31
5.9k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
Site-Speed That Sticks
csswizardry
13
1.1k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
510
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
1
170
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
170
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
670
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
880
Done Done
chrislema
186
16k
Transcript
CPython's bug in feature that nobody uses Chiu-Hsiang Hsu
[email protected]
nickname : dv (currently) undergraduate student
CPython the de-facto reference Python implementation
tarfile module to r/w tar archives include those using gzip,
bz2, lzma compression
tarfile module add CLI since Python 3.4
It’s similar to “tar” command in Unix-like system
Comparison tarfile module python -m tarfile -c files.tar files/ python
-m tarfile -c files.tar.gz files/ python -m tarfile -c files.tar.bz2 files/ python -m tarfile -c files.tar.xz files/ tar command tar cf files.tar files/ tar zcf files.tar.gz files/ tar jcf files.tar.bz2 files/ tar Jcf files.tar.xz files/
tarfile module can choose compression algorithm automatically, but tar command
can’t
seems a little bit smarter ?
But
It’s broken :(
It won’t use any compression algorithm !!! ? ? ?
None
tarfile.py with bug without bug
tarfile.py with bug without bug
I hate (love) those dot
fix in CPython 3.4.4 and 3.5
fix in CPython 3.4.4 and 3.5 but who cares this
feature XD ?