Навколо розробки
160 subscribers
47 photos
1 file
362 links
Привіт, мене звати Дмитро, колись я зробив цей канал щоб ділитися в ньому цікавинками та корисностями, частково це, сподіваюся, вдається
Download Telegram
O'Reilly gives away one of these three books on machine learning for completing the survey! http://www.oreilly.com/ai/fighting-financial-crime-survey.html?cmp=fb-data-na-na-na_sponsored+kibird+survey
Want to understand CPython deeper? Start with Byterun - this will lead you to good understanding of how Python interpreters work. Enjoy this read!
http://www.aosabook.org/en/500L/a-python-interpreter-written-in-python.html
>>> def foo(x=[]):
... x.append(42)
... print x
...
>>> foo()
[42]
>>> foo()
[42, 42]
>>> foo()
[42, 42, 42]

...just remember this behavior of the mutable default arguments!
Happy new year! Run this script:
"""
Bitwise Happy New Year 2018!
Coded by Kuba Siekierzyński (c) 2017

"""

k = [19297169, 19483217, 32469898, 19481092, 19481092, 0, 1145376, 1655328, 1405472, 1262240, 1145152, 0, 4580976, 4524360, 2740080, 1116496, 1173832, 0, 3245154, 4869266, 1201250, 2245776, 7970402]

for j in k:
for i in range(25):
print(chr(176 + bool(j & 2**(24-i)) * 43), end='\n'*(i//24))
A little guide to namespaces in Python - check it out, if you want to remind what’s the meaning of the LEGB abbreviation: http://sebastianraschka.com/Articles/2014_python_scope_and_namespaces.html
Wonderful Armin Ronacher explains more about unicode in Python 2 and Python 3 in this must-read article, please enjoy your evening reading!
http://lucumr.pocoo.org/2014/1/5/unicode-in-2-and-3/
A little guide on how to create packages by yourself in Python:
http://flask.pocoo.org/docs/0.12/patterns/distribute/
A must-read article on key differences between 2.7.x and 3.x versions of Python:
http://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html