Cheat.sh/python returns javascript result
Open
- Dominant language
- Python
- Stars
- 41.7k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
```
lucy:~:% curl cht.sh/python/range
# JavaScript function similar to Python range()
#
# For a very simple range in ES6:
let range = n => Array.from(Array(n).keys())
# [user1969453] [so/q/8273047] [cc by-sa 3.0]
```
I would expect to get python result when I specified `python` in the query.
Contributor guide
Research direction
Start by reproducing the issue with `curl cht.sh/python/range`, then trace the request handling and language-selection entry point that serves this query. Done means the same request returns a Python `range` cheat sheet rather than the JavaScript result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100