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.

list slice bug in 3.8.7

See original GitHub issue

Instead of many words one simple example:

Brython 3.8.7 on Netscape 5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36
>>> list(range(5))[-100:]
Traceback (most recent call last):
  File "http://vysoky.pythonanywhere.com/chessboard/__main__", line 164, in myKeyPress
    traceback.print_exc()
Exception: <Javascript TypeError>: Cannot read property '$nat' of undefined
>>> 

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
PierreQuentelcommented, Feb 11, 2020

Wow, this one is horrible indeed… I will publish a new release soon.

0reactions
JerryFoxcommented, Feb 11, 2020

Thank you Pierre! I prize your work!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Incorrectly adds space in slice · Issue #1859 · psf/black - GitHub
Describe the bug. Black adds a space before the colon in a string slice with no upper bound · Expected behavior A clear...
Read more >
Python 3.8 - list indices must be integers or slices, not dict
Closed 2 years ago. I'm trying to return the names within a dict after combining two dicts into one (z): z = {}...
Read more >
Vulnerability report for Docker python:3.8.7-buster - Snyk
Learn more about Docker python:3.8.7-buster vulnerabilities. Docker image python has 690 known vulnerabilities found in 2671 vulnerable paths.
Read more >
Changelog — Python 3.8.14 documentation
bpo-41840: Fix a bug in the symtable module that was causing module-scope global ... bpo-34151: Performance of list concatenation, repetition and slicing ......
Read more >
Python list error step on slice with -1 | Edureka Community
I believed I was familiar with the fundamentals of list slicing in Python, but I've been getting the following unexpected error while using ......
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