文件名称:couroutine
-
所属分类:
- 标签属性:
- 上传时间:2013-03-16
-
文件大小:894byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
Simple example of using python coroutines and generators to create a market simulator with:
1) A one-good market, collecting bids from the agents, which, after each trading period, updates each price, and
2) a set of agents, observing the market price at each trading period, and submitting bids back.
Such a setup would usually be achieved by the observer pattern, where each trader will subscribe to the price changes, but usage of generators and coroutines leads to more elegant code in this case.
1) A one-good market, collecting bids from the agents, which, after each trading period, updates each price, and
2) a set of agents, observing the market price at each trading period, and submitting bids back.
Such a setup would usually be achieved by the observer pattern, where each trader will subscribe to the price changes, but usage of generators and coroutines leads to more elegant code in this case.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
couroutine/MarketGenerators.py
couroutine/__init__.py
couroutine
couroutine/__init__.py
couroutine
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
