Tagged

python 3

A collection of 5 posts

Peephole: CPython์€ ์–ด๋–ป๊ฒŒ ์ฝ”๋“œ๋ฅผ ์ตœ์ ํ™”ํ•˜๋Š”๊ฐ€
python

Peephole: CPython์€ ์–ด๋–ป๊ฒŒ ์ฝ”๋“œ๋ฅผ ์ตœ์ ํ™”ํ•˜๋Š”๊ฐ€

๋งŽ์€ ์Šคํฌ๋ฆฝํŠธ ์–ธ์–ด๋Š” "์‹คํ–‰ ์„ฑ๋Šฅ(์†๋„)"์ด ์ข‹์ง€ ์•Š๋‹ค๋Š” ํฐ ๋‹จ์ ์„ ์ง€๋‹ˆ๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ์ด๋ฅผ ํ•ด๊ฒฐํ•˜๊ธฐ ์œ„ํ•ด JIT ๋Ÿฐํƒ€์ž„์„ ๋ถ™์ด๊ฑฐ๋‚˜ ๊ฐœ๋ฐœ์ž ์Šค์Šค๋กœ ์ฝ”๋“œ๋ฅผ ์ตœ์ ํ™”ํ•˜๊ธฐ๋„ ํ•˜์ง€๋งŒ ๊ฐœ๋ฐœ์ž ์Šค์Šค๋กœ ์ฝ”๋“œ๋ฅผ ์ตœ์ ํ™”ํ•œ๋‹ค๊ณ  ํ•˜์—ฌ(์ข‹์€ ์ฝ”๋“œ๋ฅผ ์ž‘์„ฑํ–ˆ๋‹ค๊ณ  ํ–ˆ์„ ๋•Œ) ํˆฌ์žํ•˜๋Š” ์‹œ๊ฐ„์— ๋น„ํ•ด ํฐ ์„ฑ๋Šฅํ–ฅ์ƒ์„ ์–ป๊ธฐ๋Š” ์–ด๋ ต์Šต๋‹ˆ๋‹ค. Python์€ ์ด๋Ÿฌํ•œ ๋ฌธ์ œ๋ฅผ ์กฐ๊ธˆ์ด๋‚˜๋งˆ ํ•ด์†Œ์‹œํ‚ค๊ณ ์ž Peephole์ด๋ผ๋Š” Python

python

Python 3์˜ ์ƒˆ๋กœ์šด ์ž๋ฃŒ๊ตฌ์กฐ ์•Œ์•„๋ณด๊ธฐ

์›๋ฌธ [https://github.com/topper-123/Articles/blob/master/New-interesting-data-types-in-Python3.rst] Python 3์€ ๋”์ด์ƒ ์ƒˆ๋กœ์šด ์–ธ์–ด๊ฐ€ ์•„๋‹™๋‹ˆ๋‹ค. ์‹ค์ œ๋กœ ์–ผ๋งˆ์ „ Python 3์€ 3000์ผ์„ ๋งž์ด [https://www.reddit.com/r/Python/comments/5v0tt6/python_3_created_via_pep_3000_is_exactly_3000/] ํ•˜๊ธฐ๋„ ํ–ˆ์Šต๋‹ˆ๋‹ค. ๋งŽ์€ ์‚ฌ๋žŒ๋“ค์ด Python 3์„ ์™ธ๋ฉดํ•˜๊ธฐ๋„ ํ–ˆ์—ˆ์ง€๋งŒ ๊ฝค ์˜ค๋žœ ์‹œ๊ฐ„์ด

Python์˜ ๋ฏธ๋ž˜, Python 3๋กœ ๋„˜์–ด๊ฐ€๊ธฐ
python

Python์˜ ๋ฏธ๋ž˜, Python 3๋กœ ๋„˜์–ด๊ฐ€๊ธฐ

์ €๋Š” Python์„ ์‹œ์ž‘ํ•œ์ง€ ์•ฝ 3๋…„์ด ๋˜์–ด๊ฐ€๋Š” (ํ˜„์žฌ๋Š” Python์ด ์ฃผ ์–ธ์–ด์ธ)๊ฐœ๋ฐœ์ž์ž…๋‹ˆ๋‹ค. ์ €๋„ ๊ทธ๋žฌ๊ณ  ๋งŽ์€ ์‚ฌ๋žŒ๋“ค๋„ ๊ทธ๋Ÿด ๊ฒƒ์ด๋ผ๊ณ  ์ƒ๊ฐํ•˜๊ธฐ ๋•Œ๋ฌธ์— ์ด ๊ธ€์„ ์ž‘์„ฑํ•˜๊ธฐ๋กœ ๊ฒฐ์ •ํ–ˆ์Šต๋‹ˆ๋‹ค. ์ด ๊ธ€์˜ ๋˜ ๋‹ค๋ฅธ ์ œ๋ชฉ์€ "Python์„ ์ฒ˜์Œ ๋ฐฐ์šธ ๋•Œ, 2๋กœ ์‹œ์ž‘ํ• ๊นŒ์š”? 3์œผ๋กœ ์‹œ์ž‘ํ• ๊นŒ์š”?" ์ž…๋‹ˆ๋‹ค. ์™œ? ๋งŽ์€ ์‚ฌ๋žŒ๋“ค์ด Python 2์—์„œ Python 3๋กœ ๋„˜์–ด๊ฐ€๋Š” ๊ฒƒ์„ ๊บผ๋ คํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.

python 3

Python 3.5 ๋ฏธ๋ฆฌ๋ณด๊ธฐ: ๋ฌด์—‡์ด ๋ฐ”๋€Œ์—ˆ๊ณ  ๋ฌด์—‡์ด ์ถ”๊ฐ€๋˜์—ˆ๋‚˜?

์ด ํฌ์ŠคํŒ…์€ ํŒŒ์ด์ฌ 3.5.0b3(3.5.0 beta3) ๋ฒ„์ „์„ ๊ธฐ์ค€์œผ๋กœ ์ž‘์„ฑ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ์ •์‹ ๋ฆด๋ฆฌ์ฆˆ ๋ฒ„์ „๊ณผ ํฐ ์ฐจ์ด๋Š” ์—†๋Š” ๊ฒƒ์œผ๋กœ ๋ณด์ด๋‚˜ ์‹œ๊ฐ„์ด ๋œ๋‹ค๋ฉด ํ›„์— stable ๋ฆด๋ฆฌ์ฆˆ ๋ฒ„์ „์— ๋งž์ถฐ ๊ธ€์„ ์ˆ˜์ •ํ•˜๋„๋ก ํ•˜๊ณ˜์Šต๋‹ˆ๋‹ค. ์›๋ฌธ์€ ์ด ๊ณณ [https://docs.python.org/3.5/whatsnew/3.5.html]์ž…๋‹ˆ๋‹ค. ๊ธ€์—๋„ ๋‚˜์™€์žˆ๋“ฏ 3.4์—์„œ 3.

Python 3, asyncio์™€ ๋†€์•„๋ณด๊ธฐ
python 3

Python 3, asyncio์™€ ๋†€์•„๋ณด๊ธฐ

Explicit and implicit concurrency in Python. cooperative multitasking in Python. Asyncio [https://docs.python.org/3/library/asyncio-task.html] (PEP-3156 [https://www.python.org/dev/peps/pep-3156/]) Asyncio๋Š” Python 3.4์— ์ƒˆ๋กœ ์ถ”๊ฐ€๋œ [https://mail.python.org/pipermail/python-dev/2013-November/130420.html] ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋กœ ์ด๋ฆ„ ๊ทธ๋Œ€๋กœ ํŒŒ์ด์ฌ์—์„œ ๋น„๋™๊ธฐ IO๋ฅผ ํ†ตํ•ด ์กฐ๊ธˆ