파이썬

홍군의 이미지
1176
points

[완료]CentOS-5.0 python-2.5.1 설치하기

0
points

#rpm -q python 명령으로 확인을 하니 python2.4버전이 설치가 되어 있었습니다.

#rpm -e python 명령으로 삭제를 하는데 되지 않는 것이였습니다.
그래서 --nnodeps 옵션으로 삭제를 하니 yum 명령어가 먹질 않았습니다.
좌절 할 뻔했지만 vmware였고 백업본이 있어서 다시 작업을 했습니다.

버클리 DB + 파이썬

3
points

C/C++ 로 버클리 DB를 핸들링 하다가 Python을 사용하면서 매우 행복해 하고 있습니다.
특히 파이썬은 Dict,List 등의 열거형 데이타 지원이 빠방해서 Java보다 버클리 DB 핸들링이 더 쉬었는데요...

Mod Python을 이용하여 간단한 BBS를 만들어 보았습니다.

파이썬의 다형성

-2
points

제가 읽고 있는 책에서 파이썬의 다형성에 대해 다루며 다음과 같은 예제를 제시했습니다.

class Animal: def cry(self): print '...'

class Dog(Animal):
def cry(self):
print '멍멍'

class Duck(Animal):
def cry(self):
print '꽥꽥'

class Fish(Animal):
pass

for each in (Dog(),Duck(),Fish()):

aero의 이미지
4999
points

Perl 객체? Python과 비교하며 감을 잡아보자.

14
points

KDLP에서 글들을 읽다가 보면 Perl에서는 객체지향하는데 맞지않다,왠지 어려울것이다등
FUD(Fear, uncertainty and doubt)가 퍼져 있음을 느낍니다.
http://kldp.org/node/77727#comment-366422

그래서 가장 간단한 객체하나를 예를들어 Perl,Python을 비교해보고자 합니다.

대한민국 헌법 파이썬 버전

1
point

#!/usr/bin/env python # Constitution v5.0 # released at October 29th, 1987. # (C) Republic of Korea

from shanghai import government_temp
import April19th.spirit

class RepOfKorea(government.temp):
def __init__(self):
self.government = "republic"
self.form(democracy)

if type(self.unification) != peaceful:
raise UnconstitutionalError
else: start_new_thread(self.unify)

내용묶음