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
dv
June 06, 2015
Technology
0
110
CPython's bug in feature that nobody uses
dv
June 06, 2015
Tweet
Share
More Decks by dv
See All by dv
Python module in Rust
wdv4758h
0
170
First try for CAS, SymPy with codegen
wdv4758h
0
680
Android Memory Leak Profiling - VMFive
wdv4758h
0
280
Vim 手指健康操
wdv4758h
3
880
FreeBSD ports system
wdv4758h
0
150
Other Decks in Technology
See All in Technology
.NET 10のASP. NET Core注目の新機能
tomokusaba
0
140
レガシーシステム刷新における TypeSpec スキーマ駆動開発のすゝめ
tsukuha
4
770
新しい風。SolidFlutterで実現するシンプルな状態管理
zozotech
PRO
0
140
GitHub を組織的に使いこなすために ソニーが実践した全社展開のプラクティス
sony
0
160
機械学習を「社会実装」するということ 2025年冬版 / Social Implementation of Machine Learning November 2025 Version
moepy_stats
4
480
"なるべくスケジューリングしない" を実現する "PreferNoSchedule" taint
superbrothers
0
110
セキュリティ対策としての PostgreSQL マイナーバージョンアップ
jri_narita
0
110
Sansan Engineering Unit 紹介資料
sansan33
PRO
1
3.2k
ABEJA FIRST GUIDE for Software Engineers
abeja
0
3.2k
持続可能なアクセシビリティ開発
azukiazusa1
6
340
re:Inventにおける製造業のこれまでとこれから
hamadakoji
0
390
プロダクト負債と歩む持続可能なサービスを育てるための挑戦
sansantech
PRO
1
1k
Featured
See All Featured
Building a Scalable Design System with Sketch
lauravandoore
463
34k
Designing Experiences People Love
moore
142
24k
Stop Working from a Prison Cell
hatefulcrawdad
273
21k
A designer walks into a library…
pauljervisheath
210
24k
Designing for Performance
lara
610
69k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Become a Pro
speakerdeck
PRO
30
5.6k
GraphQLとの向き合い方2022年版
quramy
49
14k
It's Worth the Effort
3n
187
29k
The Cult of Friendly URLs
andyhume
79
6.7k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Being A Developer After 40
akosma
91
590k
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 ?