[issue45154] Enumerate() function or class?
New submission from Sanmitha : I was learning about enumerate(). While learning, when I used, >>>help(enumerate) Help on class enumerate in module builtins: class enumerate(object) | enumerate(iterable, start=0) | | Return an enumerate object. | | iterable | an object supporting iteration | | The enumerate object yields pairs containing a count (from start, which | defaults to zero) and a value yielded by the iterable argument. | | enumerate is useful for obtaining an indexed list: | (0, seq[0]), (1, seq[1]), (2, seq[2]), … | | Methods defined here: | | getattribute(self, name, /) | Return getattr(self, name). | | iter(self, /) | Implement iter(self). | | next(self, /) | Implement next(self). | | reduce(…) | Return state information for pickling. Static methods defined here: new(*args, **kwargs) from builtins.type Create and return a new object. See help(type) for accurate signature. Even when I gave as, >>>enumerate But, when I checked the documentation in the official website of python, www.python.org for enumerate() Here : https://docs.python.org/3/library/functions.html#enumerate It showed that enumerate() is a function which violated the information shown by help(). I couldn’t get whether enumerate() is a class or a function. Anyone please help me out of this please… By the way, I had python 3.8.3. I even checked in python 3.6 and 3.7.10. -- assignee: docs@python components: Documentation messages: 401487 nosy: Sanmitha Sadhishkumar, docs@python priority: normal severity: normal status: open title: Enumerate() function or class? type: enhancement versions: Python 3.10, Python 3.11, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue45154> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40708] Malfunctioning of '\r'
New submission from Sanmitha : '\r' in python 3.7.2, 3.7.4, 3.8.2, 2.x versions doesn't give the desired output Eg: print("computer\rscience") The expected output of the above code is : sciencer But it displays : computerscience without functioning of \r -- assignee: terry.reedy components: IDLE messages: 369504 nosy: Sanmitha, terry.reedy priority: normal severity: normal status: open title: Malfunctioning of '\r' type: performance versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue40708> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40708] Clearing the screen of IDLE interactive mode in Windows
Sanmitha added the comment: Clearing the screen of IDLE interactive mode using the following code: import os os.system("cls") It doesn't clear the screen in Windows -- title: Malfunctioning of '\r' -> Clearing the screen of IDLE interactive mode in Windows ___ Python tracker <https://bugs.python.org/issue40708> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40709] Malfunctioning of '\r'
New submission from Sanmitha : The escape sequence '\r' (carriage return) doesn't function in 3.x and 2.x versions. Eg: print("computer\rscience") Expected output : sciencer But, it displays computerscience without the functioning of'\r' -- assignee: terry.reedy components: IDLE files: error messages: 369508 nosy: Sanmitha, terry.reedy priority: normal severity: normal status: open title: Malfunctioning of '\r' type: performance versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8 Added file: https://bugs.python.org/file49174/error ___ Python tracker <https://bugs.python.org/issue40709> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40709] Malfunctioning of '\r'
Sanmitha added the comment: The escape sequence '\r' (carriage return) doesn't function in 3.x and 2.x versions. Eg: print("computer\rscience") Expected output : sciencer But, it displays computerscience without the functioning of'\r' -- Added file: https://bugs.python.org/file49175/error ___ Python tracker <https://bugs.python.org/issue40709> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40710] Malfunctioning of '\r'
Change by Sanmitha : -- assignee: terry.reedy components: IDLE nosy: Sanmitha Sadhishkumar, terry.reedy priority: normal severity: normal status: open title: Malfunctioning of '\r' type: performance versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue40710> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40710] Malfunctioning of '\r'
New submission from Sanmitha : The escape sequence '\r' (carriage return) doesn't function in 3.x and 2.x versions. Eg: print("computer\rscience") Expected output : sciencer But, it displays computerscience without the functioning of'\r' -- Added file: https://bugs.python.org/file49177/r ___ Python tracker <https://bugs.python.org/issue40710> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40711] Clearing the screen of IDLE interactive mode in Windows
Change by Sanmitha : -- assignee: terry.reedy components: IDLE nosy: Sanmitha Sadhishkumar, terry.reedy priority: normal severity: normal status: open title: Clearing the screen of IDLE interactive mode in Windows type: performance versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue40711> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40711] Clearing the screen of IDLE interactive mode in Windows
New submission from Sanmitha : Clearing the screen of IDLE interactive mode using the following code: import os os.system("cls") It doesn't clear the screen in Windows. Actually these two statements have no effect at all. -- Added file: https://bugs.python.org/file49178/Error_clearing screen ___ Python tracker <https://bugs.python.org/issue40711> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40710] Malfunctioning of '\r' (ii)
Sanmitha added the comment: The escape sequence'\r' doesn't work in Windows operating system. All the versions including windows 10 doesn't support. -- resolution: not a bug -> status: closed -> open title: Malfunctioning of '\r' -> Malfunctioning of '\r' (ii) Added file: https://bugs.python.org/file49179/r ___ Python tracker <https://bugs.python.org/issue40710> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40710] IDLE: Malfunctioning of '\r'
Sanmitha added the comment: This issue is not based on Windows or my terminal. This is purely an IDLE error. In Windows, both in command prompt and powershell \r functions properly. -- versions: +Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9 Added file: https://bugs.python.org/file49218/Screenshot_20200607-185043.png ___ Python tracker <https://bugs.python.org/issue40710> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40710] IDLE: Malfunctioning of '\r'
Sanmitha added the comment: This issue is not based on Windows or my terminal. This is purely an IDLE error. In Windows, both in command prompt and powershell \r functions properly. -- status: closed -> open Added file: https://bugs.python.org/file49219/Screenshot_20200607-185043.png ___ Python tracker <https://bugs.python.org/issue40710> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com