I have heard that Python is a great programming language which is so much superior to everything around etc. 나는 파이썬는 위대한 프로그래밍 언어를 들었는 주위의 모든 등보다 월등하게 우위를 많이

The following code in python is touted as the world’s smallest p2p client & server. 다음과 같은 코드를 파이썬으로 세계 최소형 강매한 p2p는 클라이언트 및 서버합니다.

# tinyp2p.py 1.0 (documentation at http://freedom-to-tinker.com/tinyp2p.html) # tinyp2p.py 1.0 (문서를 http://freedom-to-tinker.com/tinyp2p.html)
import sys, os, SimpleXMLRPCServer, xmlrpclib, re, hmac # (C) 2004, EW Felten 수입 시스템, 운영 체제, simplexmlrpcserver, xmlrpclib, 레, hmac # (c) 2004, 뉴 felten
ar,pw,res = (sys.argv,lambda u:hmac.new(sys.argv[1],u).hexdigest(),re.search) 착, 주, 사업 = (sys.argv, 람다 유 : hmac.new (sys.argv [1], u). hexdigest (), re.search)
pxy,xs = (xmlrpclib.ServerProxy,SimpleXMLRPCServer.SimpleXMLRPCServer) pxy, xs = (xmlrpclib.serverproxy, simplexmlrpcserver.simplexmlrpcserver)
def ls(p=”"):return filter(lambda n:(p==”")or res(p,n),os.listdir(os.getcwd())) def 저 (p =""): 반환 필터 (람다 n : (p =="") 또는 사업 (p, 아), os.listdir (os.getcwd ()))
if ar[2]!=”client”: # license: http://creativecommons.org/licenses/by-nc-sa/2.0 만약 착 [2]! = "클라이언트": # 라이센스 : http://creativecommons.org/licenses/by-nc-sa/2.0
myU,prs,srv = (”http://”+ar[3]+”:”+ar[4], ar[5:],lambda x:x.serve_forever()) 최근에는, 푸에르 토리코, srv = ( "http://"+ 착 [3 ]+":"+ 착 [4], 착 [5 :], 람다 x : x.serve_forever ())
def pr(x=[]): return ([(y in prs) or prs.append(y) for y in x] or 1) and prs def 홍보 (x =[]): 반환 ([(그리고이 푸에르 토리코) 또는 prs.append (그리고)을 그리고이 x] 또는 1)와 푸에르 토리코
def c(n): return ((lambda f: (f.read(), f.close()))(file(n)))[0] def c (n) : 반환 ((람다 f : (f.read (), f.close ()))( 파일 (n))) [0]
f=lambda p,n,a:(p==pw(myU))and(((n==0)and pr(a))or((n==1)and [ls(a)])or c(a)) f = 람다 p, 아의 : (p == 주 (최근에는)) 및 (((n == 0), 홍보 (가)) 또는 ((n == 1)와 [그 (가)]) 또는 c (가))
def aug(u): return ((u==myU) and pr()) or pr(pxy(u).f(pw(u),0,pr([myU]))) def 8월 (u) : 반환 ((u == 최근에는) 및 홍보 ()) 또는 홍보 (pxy (u). 층 (주 (u), 0, 홍보 ([최근에는])))
pr() and [aug(s) for s in aug(pr()[0])] 홍보 ()와 [8월 (영어)에 대한의 8월 (홍보 () [0])]
(lambda sv:sv.register_function(f,”f”) or srv(sv))(xs((ar[3],int(ar[4])))) (람다 스웨덴어 : sv.register_function (f, "이름") 또는 srv (스웨덴어)) (xs ((착 [3], int (착 [4 ]))))
for url in pxy(ar[3]).f(pw(ar[3]),0,[]): url을위한 pxy (착 [3]). 층 (주 (착 [3]), 0 ,[]):
for fn in filter(lambda n:not n in ls(), (pxy(url).f(pw(url),1,ar[4]))[0]): fn을위한 필터 (람다 n : 특정 n에서 그 (), (pxy (). 층 (주 (), 1, 착 [4])) [0]) :
(lambda fi:fi.write(pxy(url).f(pw(url),2,fn)) or fi.close())(file(fn,”wc”)) (람다 나는 : fi.write (pxy (). 층 (주 (), 2, fn)) 또는 fi.close ()) (파일 (fn, "화장실"))

Source: 출처 : TinyP2P tinyp2p

I started my programming career with assembly language (writing tiny .com programs and playing with cuties like masm and tasm), then moved to C, even mess with java byte codes for fun. 나는 내 프로그래밍 경력을 시작 어셈블리 언어 (서면 작은합니다. masm com 프로그램과 노는 거라 생각하고 tasm), 다음으로 이동 c, 심지어 자바 바이트 코드를 즐거움을 혼란하게합니다.
But this wonderful gem of a program (displayed above) beat the crap out of me. 그러나이 훌륭한 보석의 프로그램 (표시 위) 한방에 떨어질 뻔했네.

Python, going by this example, looks to me a sure-fire recipe for creating obfuscated code. 파이썬, 그이 들어, 내 눈에 - 화재 조리법에 대한 확실한 판단이 흐려지게 코드를 생성합니다. I would rather read 80×86 instructions, thank you very much! 80 × 86 지침을 읽고 난 차라리, 대단히 감사합니다!

PS. ps. Java programmers, you can relax. 자바 프로그래머, 휴식하실 수있습니다. Python programmers (oops hackers as per naive bayesian dude) writing such code will never be able to maintain it. 파이썬 프로그래머 (죄송합니다 나이브베이스에 따라 해커 야) 기록 이러한 코드는 절대로 그것을 유지할 수있습니다. So you will definitely be called in to replace such “hackers” and rewrite the whole thing in Java (use the word refactoring to get better traction with management). 그럼에도 전화를 교체는 반드시 이러한 "해커"그리고 전부를 재작 성 자바 (리팩터링에 단어를 사용하여 더 나은 트랙션과 관리)를합니다.