블로그 이미지
언제나 늘 푸른 소나무처럼. 자신의 의지로 오롯이 서기
예섬수진

공지사항

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

글 보관함

calendar

1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31

OpenSource-Python]How to build source

2010. 5. 4. 08:04 | Posted by 예섬수진
(1) Create Makefile
./configure --prefix=/dev/null --with-pydebug

(2) Compile Python
make -s


'컴퓨터 > Python' 카테고리의 다른 글

OpenSource]How to Get Python Source  (0) 2010.05.04
Python]ConfigParser를 이용한 ini 파일 읽기  (0) 2010.01.20
Python]한글 입력  (0) 2010.01.20
Python] 다른 프로그램 실행  (0) 2010.01.19
Python] Linux에서 Python 설치  (0) 2009.10.21

OpenSource]How to Get Python Source

2010. 5. 4. 00:21 | Posted by 예섬수진
1. 사전 준비
  (1) OS : Ubuntu 4.4
  (2) Subversion
      apt-get install subversion
  (3) OpenSSL
      apt-get install openssl
  * apt-get update : /etc/apt/sources.list 갱신

2. SVN으로 소스 다운받기 
   svn checkout <URL> [PATH]
 For Read only Checkout URL  For Read Write Checkout URL
 http://svn.python.org/projects/  svn+ssh://pythondev@svn.python.org/

Repository read-only read-write
PEPs http://svn.python.org/projects/peps/trunk svn+ssh://pythondev@svn.python.org/peps/trunk
2.6 http://svn.python.org/projects/python/branches/release26-maint svn+ssh://pythondev@svn.python.org/python/branches/release26-maint
2.7 (trunk) http://svn.python.org/projects/python/trunk svn+ssh://pythondev@svn.python.org/python/trunk
3.1 http://svn.python.org/projects/python/branches/release31-maint svn+ssh://pythondev@svn.python.org/python/branches/release31-maint
3.2 http://svn.python.org/projects/python/branches/py3k svn+ssh://pythondev@svn.python.org/python/branches/py3k
  * source update : svn update



'컴퓨터 > Python' 카테고리의 다른 글

OpenSource-Python]How to build source  (0) 2010.05.04
Python]ConfigParser를 이용한 ini 파일 읽기  (0) 2010.01.20
Python]한글 입력  (0) 2010.01.20
Python] 다른 프로그램 실행  (0) 2010.01.19
Python] Linux에서 Python 설치  (0) 2009.10.21

Python]ConfigParser를 이용한 ini 파일 읽기

2010. 1. 20. 16:32 | Posted by 예섬수진
1. ini 파일 예제

※ ini 파일에서 []부분이 없다면, 파일 read() 시 Exception Error가 발생함

2. 위와 같은 ini 파일에서 이름에 대한 값을 콕! 가져오려면 어떻게 해야 할까 ?
- ConfigParser를 이용하면 된다.
※ Python 3.0부터는 configparser로 명칭이 변경되었음

※ ConfigParser : http://docs.python.org/library/configparser.html

'컴퓨터 > Python' 카테고리의 다른 글

OpenSource-Python]How to build source  (0) 2010.05.04
OpenSource]How to Get Python Source  (0) 2010.05.04
Python]한글 입력  (0) 2010.01.20
Python] 다른 프로그램 실행  (0) 2010.01.19
Python] Linux에서 Python 설치  (0) 2009.10.21

Python]한글 입력

2010. 1. 20. 16:24 | Posted by 예섬수진
Python을 설치하면, 기본적으로 한글 입력이 가능하지 않다.

한글을 입력하기 위해서는, 파일 처음 부분에 #-*-coding:cp949-*-을 추가하자

'컴퓨터 > Python' 카테고리의 다른 글

OpenSource]How to Get Python Source  (0) 2010.05.04
Python]ConfigParser를 이용한 ini 파일 읽기  (0) 2010.01.20
Python] 다른 프로그램 실행  (0) 2010.01.19
Python] Linux에서 Python 설치  (0) 2009.10.21
Python]Get child directory  (0) 2009.10.09

Python] 다른 프로그램 실행

2010. 1. 19. 00:16 | Posted by 예섬수진
Python Script 내에서 다른 프로그램을 실행하기 위해, 나는 2가지 방법을 이용한다.

1. stdout 및 stderr로  출력값을 안 받아도 될 때, os.system ( ) 이용

2. stdout 및 stderr를 캡쳐해야 될 때, os.popen4( ) 이용
 

'컴퓨터 > Python' 카테고리의 다른 글

Python]ConfigParser를 이용한 ini 파일 읽기  (0) 2010.01.20
Python]한글 입력  (0) 2010.01.20
Python] Linux에서 Python 설치  (0) 2009.10.21
Python]Get child directory  (0) 2009.10.09
Python] 오늘의 날짜 시간 구하기  (0) 2009.10.07
이전 1 다음