This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ======================================== | |
| In defense of zope libraries 翻訳 | |
| ======================================== | |
| Pyramid が Zope ライブラリを使っていることについての非常に長い defence | |
| ---------------------------------------------------------------------- | |
| freenode の #pyramid IRC チャンネルで、以下のような質問に私は | |
| うんざりするほど多くの時間を割いてきた。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- encoding: utf-8 -*- | |
| try: | |
| import pyreadline.rlmain | |
| #pyreadline.rlmain.config_path=r"c:\xxx\pyreadlineconfig.ini" | |
| import readline,atexit | |
| import pyreadline.unicode_helper | |
| # | |
| # | |
| #Normally the codepage for pyreadline is set to be sys.stdout.encoding | |
| #if you need to change this uncomment the following line |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import threading/Thread | |
| import net/ServerSocket | |
| main: func { | |
| socket := ServerSocket new("0.0.0.0", 5000) | |
| socket listen(100) | |
| while(true){ | |
| conn := socket accept() | |
| Thread new (|| |
NewerOlder