question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding support for `len`/`__len__`

See original GitHub issue

Several 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:closed
  • Created a year ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
rgommerscommented, Oct 7, 2022

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).

0reactions
rgommerscommented, Nov 16, 2022

No more comments, I’ll close this. Thanks all!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found