Message 320664 - Python tracker

Message320664

Author serhiy.storchaka
Recipients benjamin.peterson, jreese, lukasz.langa, serhiy.storchaka
Date 2018-06-28.12:21:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1530188471.22.0.56676864532.issue33983@psf.upfronthosting.co.za>
In-reply-to
Content
Empty list takes more memory and more time for creating than an empty tuple (the latter is just a singleton). Since all Node and Leaf instances share the same children by default, making it a list is errorprone.

What is the problem of having an empty tuple instead of an empty list?
History
Date User Action Args
2018-06-28 12:21:11serhiy.storchakasetrecipients: + serhiy.storchaka, benjamin.peterson, lukasz.langa, jreese
2018-06-28 12:21:11serhiy.storchakasetmessageid: <1530188471.22.0.56676864532.issue33983@psf.upfronthosting.co.za>
2018-06-28 12:21:11serhiy.storchakalinkissue33983 messages
2018-06-28 12:21:11serhiy.storchakacreate