任务单 #21809

add :flatten attribute that flatten the nested result list

开放日期: 2010-05-20 12:38 最后更新: 2010-05-22 20:49

报告人:
属主:
状态:
关闭
组件:
(无)
里程碑:
优先:
5 - Medium
严重性:
5 - Medium
处理结果:
Accepted
文件:

Details

add :flatten attribute that flatten the result list if it's nested. below is the example.

>>> math.sqrt([1, [2, 3]])
[1, [1.41421, 1.73205]]
>>> math.sqrt([1, [2, 3]])]:flatten
[1, 1.41421, 1.73205]

任务单历史 (3/4 Histories)

2010-05-20 12:38 Updated by: pxn11432
  • New Ticket "add :flatten attribute that flatten the nested result list" created
2010-05-20 16:20 Updated by: pxn11432
  • 处理结果 Update from to Accepted
2010-05-21 14:48 Updated by: pxn11432
2010-05-22 20:49 Updated by: pxn11432
  • 状态 Update from 开启 to 关闭
  • Ticket Close date is changed to 2010-05-22 20:49
  • 里程碑 Update from (无) to build008 (关闭)
评论

:flat attribute was implemented

math.sqrt([1, [2, 3]]):flat
[1, 1.41421, 1.73205]

Attachment File List

No attachments

编辑

Please login to add comment to this ticket » 登录名