Adding support for `len`/`__len__`
See original GitHub issueSeveral array implementation currently implement len
/__len__
basically as shorthand for .shape[0]
. It would be handy to have this to simplify adoption in existing codes as well as fit more with how current array implementations work
Issue Analytics
- State:
- Created a year ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
LEN $LEN Stock Charts, Analysis, Trend, Lennar Corporation
LEN, $LEN, Lennar Corporation stock technical analysis with charts, breakout and price targets, support and resistance levels, and more trend analysis ...
Read more >Netizens call out Imee for 'Pagod Len-Len' video
Senator Imee Marcos was criticized over the weekend for posting a video where she allegedly mocked those who work for 18 hours a...
Read more >Let's have a party with Senator Imee Marcos and ... - YouTube
... with Senator Imee Marcos and Stars of Kape Chronicles / Lenlen Series ... ** SUPPORT US AND OUR CHANNEL** PAYPAL: https://bit.ly/35bGBUt ...
Read more >Using len() and def __len__(self): to build a class
In the first example, self.len = len(obs) assigns a data member self.len to the initial length of obs. self.len is not a function....
Read more >Open statement (VBA) - Microsoft Learn
Open "TESTFILE" For Random As #1 Len = Len(MyRecord) ' Close before reopening in another mode. Close #1. This code example opens the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Can we close this issue with outcome that the proposal is rejected? No requirement to add
__len__
(but of course implementers are free to add it anyway, outside of their standard support).No more comments, I’ll close this. Thanks all!