python编码实用程序的集合
pytilities的Python项目详细描述
pytilities是python3实用程序库。
功能
- 面向方面编程:
- 创建方面以捆绑建议
- 将通知应用于实例的任何属性或类的所有实例。 甚至可以应用于实例上不存在的属性(即 创建它)。也可以应用于对象的任何属性。
- 事件调度:带有包装器的类似观察者/主题的事件调度 用于隐藏调度器上的事件和组合调度器
- 函数重载
- 基本几何:矢量,矩形类
- 各种:跨平台无穷大数,…
更改日志
1.2.0
pytilities.aop
建议现在是更多的吻。你把你的建议编入一本简单的字典里,而不是 使用建议。“*”建议现在不存在了,您可以使用特殊的 类似字典的对象:pytilities.dictionary.functionmap。它允许“*” 建议等等。
Changed: |
|
---|---|
Fixed: |
|
pytilities.aop.方面
Fixed: |
|
---|
pytilities.委派
代表团现在更亲了。复杂的profile类被删除 普通字典(以及pytilities.dictionary的字典)。配置文件中的 替换为更灵活的“接吻”>映射>。
Added: |
|
---|---|
Changed: |
|
Removed: |
|
pytilities.dictionary(新)
Added: |
|
---|
pytilities.event
Changed: |
|
---|
pytilities.测试
Changed: |
|
---|---|
Fixed: |
|
1.1.0
pytilities.aop
使AOP更容易理解、使用(和维护):
- 类和实例建议之间的区别现在可能会被遗忘,有 只有忠告。类现在充当通配符,例如aspect.apply(类)意味着 应用于类和类本身的所有实例。
- 现在可以将方面应用于类中的所有实例,然后排除 从那条建议中举例说,事后不采纳它。
提高了测试覆盖率(现在减少了bug)。
Added: |
|
---|---|
Changed: |
|
Removed: |
|
Fixes: |
|
pytilities.aop.方面
Added: |
|
---|---|
Changed: |
|
Fixes: |
|
pytilities.描述符
添加和重构测试
Added: |
|
---|---|
Changed: |
|
1.0.1
在版本中包含project.py,以便可以运行单元测试
1.0.0
库移到python3,旧的python版本不再受支持。 有很多变化,打破了相当多以前的界面。全部 更改如下所示。
效用
Added: |
|
---|---|
Removed: |
|
Changed: |
|
pytilities.aop
这个包为python带来了面向方面的语言特性(非常方便 格式)。您可以对类和实例应用建议,使用可以 应用和未应用、启用、禁用,…
Added: |
|
---|
pytilities.委派
Added: |
|
---|---|
Changed: |
|
Removed: |
|
pytilities.descriptors(新)
Added: |
|
---|
pytilities.event
Removed: |
|
---|
pytilities.几何图形
Added: |
|
---|---|
Changed: |
|
Removed: |
|
pytilities.重载
Changed: |
|
---|
pytilities.infinity(新)
提供了float('inf')的跨平台替代方案。
Added: |
|
---|
pytilities.测试
Added: |
|
---|
0.1.4
- mangle、mangle和event.dispatcher:修复了一个轻微的名称冲突
- 经过全面检查的测试,现在更易于使用
- 删除了delegatorfactory的继承特性,太模糊了
- 删除了初始授权配置文件,还有其他方法可以达到同样的效果 事情
- 更改了delegatorfactory接口,希望它更直观 使用
- 已将所有集合运算符添加到委托人简介
- 添加了更多测试并修复了一些docstring
- restricteddispatcher:允许和不允许互斥。它使不 指定两者的意义
0.1.3
- 添加了HTML参考文档
0.1.2
- 添加了runtests.py,它允许运行单元测试
- 添加了Types软件包(在上一个版本中忘记了这一点)
0.1.1
- 修正:最后一个版本无法解析
0.1.0
- 初始版本:委派工具、事件、重载,…