There will be multiple Dispatch Grand Routes.
也可以有多个分配主要进路。
Listing 1. Multiple dispatch on type with multimethods.py.
清单1. multimethods .py中对类型进行多分派。
Another prior Charming Python column developed and presented a library to enable multiple dispatch.
可爱的Python先前的另一期文章开发并描述了一个支持多分派的库。
But predicative dispatch is a very elegant extension of multiple dispatch on (narrow) types alone.
但是断言分派是对(狭窄)类型本身进行多分派的一个很好的扩展。
Multiple dispatch does not merely generalize polymorphism, it also provides a more flexible alternative to inheritance in many contexts.
多分派不仅仅泛化了多态性,它还在许多上下文中提供了更加灵活的继承方式。
This concept will be familiar to readers who have used Lisp's CLOS or who have read my discussion of multiple dispatch using Python (Resources).
对于使用过Lisp的CLOS或者读过我对使用Python进行多种分派的讨论(参考资料)的读者,这个概念应该是熟悉的。
The idea of multiple dispatch takes a little while to get your head around, even — or especially — if you are well-versed in object-oriented programming.
您花一点时间就可以理解多分派的思想了,如果您精通面向对象编程,那就更不在话下了。
Standard Python does not let you configure this type of multiple dispatch; but fortunately, you can do so using the module multimethods that I have written.
标准Python不允许配置这种类型的多分派;但幸运的是,您可以使用我所编写的模块multimethods来做到这一点。
Readers who read my earlier installment on the Gnosis Utilities module, gnosis.magic.multimethods, have had an introduction to the idea of multiple dispatch.
阅读过我之前编写的有关 Gnosis Utilities模块 gnosis.magic.multimethods 的文章的读者对于多分派都有一个基本的印象了。
Perl has a module called Class::Multimethods to implement multiple dispatch (and apparently Perl 6 is slated to build the concept more deeply into the language).
Perl拥有实现多分派的模块Class::Multimethods (显然,Perl6为在语言中更深入构建该概念铺平了道路)。
Still, given the natural association of this idea with my own multiple dispatch module (multimethods), I am excited to look at PEAK's extensions to dispatch styles.
而且,这种思想可以与我的多分派模块(multimethods)很自然地结合起来,我很高兴看到PEAK可以对分派风格进行扩展。
But after you play with it for a little while, you are likely to find that multiple dispatch generalizes and enhances the benefits that OOP has over procedural programming in the first place.
但是应用它一段时间后,您可能会发现多分派从一开始就泛化并增强了OOP胜过过程编程的优势。
Also, however, I find that PyProtocols programming has a similarity to programming with multiple dispatch, specifically with the gnosis.magic.multimethods module that I covered in another installment.
不过,我也发现PyProtocols编程有些类似于使用多分派进行编程,具体说就是使用我在另一期文章提到的gnosis . magic . multimethods模块。
I think this symmetry in polymorphic dispatch on multiple arguments is much more elegant than is the prior style.
我认为对多个参数进行多态分派所具有的这种对称性比先前的样式要雅致得多。
The key here is that the ordering and dispatch systems are implemented to be batch systems, where multiple records arrive within the same request message.
设计聚合的关键是将订单和分派系统实现为批处理系统,其中多个记录在同一请求消息中到达。
The run-time system may dispatch multiple client invocations to the service endpoint interface to this single instance.
这个运行时系统可以把多个对该服务端点接口的客户机调用分派到对于这个单一实例。
Ranvier provides a flexible way of organizing dispatch of functional aspects of URI processing into multiple reusable blocks of code.
Ranvier提供了一种灵活的URI处理方法,可以将URI处理的功能性部分分派给多个可重用的代码块。
If multiple SOAPInput nodes are associated with the same endpoint, then the broker can't tell which node to dispatch to.
如果多个SOAPInput节点与同一端点关联,则代理无法知道要分派给哪一个节点。
To execute timed tasks and random tasks in the same multithread, multiple tasks are encapsulated as one object for dispatch in the multithread according to instructions.
为了在同一多线程中执行定时任务和随机任务,将多种任务封装成一个对象,在多线程中根据指令进行调度。
To execute timed tasks and random tasks in the same multithread, multiple tasks are encapsulated as one object for dispatch in the multithread according to instructions.
为了在同一多线程中执行定时任务和随机任务,将多种任务封装成一个对象,在多线程中根据指令进行调度。
应用推荐