Comments (2)
I had to reformat your post to link to the image, but:
- The code shown in the image is different from the code shown in the text, with the addition of '.strip().
- That addition does not matter, as both value error lines show the input as being
''
, regardless of what image shows above the image of the traceback. - for that input, the error is correct.
On Windows with 3.13.0a6:
>>> value = int(input())
4
>>> value
4
>>> value = int(input())
Traceback (most recent call last):
File "<pyshell#4>", line 1, in <module>
value = int(input())
ValueError: invalid literal for int() with base 10: ''
I got the above interactively with both IDLE and interactive Python. I also made file with
value = int(input('1>'))
print(value)
value = int(input('2>'))
with result
1>4
4
2>
Traceback (most recent call last):
File "F:\dev\tem\tem3.py", line 3, in <module>
value = int(input('2>'))
ValueError: invalid literal for int() with base 10: ''
Note that different prompts make it clear what was entered in response to each input() request.
There is no demonstrated reproducible bug on current Python. Whatever happens with the foreign IDE is beyond our control. You need to show an error running standard Python in Command Prompt with distinct prompts as above.
from cpython.
Hello! This repository is intended as CPython bug tracker.
Ask for help here, please: https://discuss.python.org/c/users/7
from cpython.
Related Issues (20)
- How to handle DECREF_INPUTS_AND_REUSE_FLOAT with deferred floats?
- ChainMap.__contains__ and .get performance improvement. HOT 10
- `PyEval_GetLocals()` leaks locals HOT 1
- Default argument for `__getitem__()` HOT 2
- Python-3.13.0b1 changes behavior on exec() versus Python-3.12 and before ... is it normal ? HOT 6
- uClibc-ng support? HOT 1
- `jit.c` may be built with an incomplete `jit_stencils.h` HOT 4
- Contextvars + async generator + break + finally HOT 3
- Add ISO Basic format support to datetime.isoformat() and date.isoformat() HOT 2
- `asyncio.sslproto._SSLProtocolTransport` can experience invalid state, leading to silent failures. HOT 3
- improvement suggestion for the Coordinate exemple in 3/howto/enum.html HOT 1
- wont let me install because i "cancelled installation"
- Group definition of `os.remove()` & `os.unlink()`
- random.choices undefined behavior when some weights are not finite or negative HOT 2
- Support sharing `NotImplemented` singletons in subinterpreters
- SBOM invalid in https://github.com/python/cpython/blob/main/Misc/sbom.spdx.json HOT 8
- translation error in fr/3/library/argparse.html HOT 4
- Translation for "fr/3/library/argparse.html" forgot the translation of some paragraphs HOT 2
- "Windows fatal Exception: access violation" while testing 3.13.0b1 free-threading build (related to tkinter ?) HOT 1
- Add `dataclass_factory` argument to `dataclasses.make_dataclass` for custom dataclass transformation support HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cpython.