[issue8704] cgitb sends a bogus HTTP header if the app crashes before finishing headers
Colin 't Hart added the comment: 1. This module is scheduled to be removed by Python 3.13 (although I preseonally am of the opinion that it is a useful module and would like to see it brought up-to-date). 2. Is reset() even necessary anymore? Can't the same results be achieved with CSS since we are in the third decade of the 2000s after all? -- nosy: +cthart ___ Python tracker <https://bugs.python.org/issue8704> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'
Change by Owen T. Heisler : -- nosy: -owenh ___ Python tracker <https://bugs.python.org/issue14156> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44956] curses getch returns wrong value
New submission from Robert T McQuaid : This applies to Python 3.8 under Debian-11 Bullseye. Under curses getch should return the value of curses.KEY_B2 (350 decimal) when pressing the keypad 5. Instead it returns 574. The simple program following the signature block illustrates the problem. Robert T McQuaid 558 McMartin Road Mattawa Ontario P0H 1V0 phone: 705-744-6274 email: r...@fixcas.com # Put the following lines in a file bug.py # Run from a terminal with: python3 bug.py import curses as cs def report(stdscr): print('press the keypad 5') global result result=stdscr.getch() cs.initscr() cs.wrapper(report) print('KEY_B2 (decimal): '+str(cs.KEY_B2)) print('input decimal value: '+str(result)) -- components: Library (Lib) messages: 399917 nosy: arbor priority: normal severity: normal status: open title: curses getch returns wrong value versions: Python 3.8 ___ Python tracker <https://bugs.python.org/issue44956> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'
Change by Owen T. Heisler : -- nosy: +owenh ___ Python tracker <https://bugs.python.org/issue14156> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44162] importlib.resources.path no longer supports directories
T M added the comment: That's fine. I couldn't find anything official on it, but that change is working for me. Thank you! -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue44162> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44162] importlib.resources.path no longer supports directories
T M added the comment: importlib_resources 1.1.X also behaves this way: https://github.com/python/importlib_resources/issues/85 -- ___ Python tracker <https://bugs.python.org/issue44162> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44162] importlib.resources.path no longer supports directories
New submission from T M : In Python 3.7 and 3.8, importlib.resources.path worked perfectly with a directory. For example: with importlib.resources.path(__package__, "dir") as dir: os.listdir(dir) In Python 3.9, this is raised: IsADirectoryError: [Errno 21] Is a directory: 'dir' I haven't seen this change documented. I don't know if the behavior in 3.7 and 3.8 was a bug, it sure was useful. In this case, we have web files which we want to serve statically from that folder. Naming them file by file could work, but would be tedious and isn't preferable for us. Thank you! -- messages: 393831 nosy: gitpushdashf priority: normal severity: normal status: open title: importlib.resources.path no longer supports directories type: behavior versions: Python 3.9 ___ Python tracker <https://bugs.python.org/issue44162> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue28356] [easy doc] Document os.rename() behavior on Windows when src and dst are on different filesystems
T-VEy added the comment: Eryk, can you please go on details on how are they using different strategies to fix bugs but still it's not enough for the time being?Because I know nothing about python and I recognized it in a minute of opening the files.I don't even have it installed on my pc.I don't even have python, not even version 2.7. On Mon, Mar 8, 2021 at 23:48, Eryk Sun wrote: Eryk Sun added the comment: T-VEy, this is a documentation-only issue for versions of Python that are under active development for bug fixes and enhancements -- 3.8, 3.9, and 3.10. -- versions: +Python 3.10, Python 3.8 ___ Python tracker <https://bugs.python.org/issue28356> ___ -- ___ Python tracker <https://bugs.python.org/issue28356> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue28356] [easy doc] Document os.rename() behavior on Windows when src and dst are on different filesystems
T-VEy added the comment: i have problem with python version 3.9.1 -- nosy: +scienidlex versions: -Python 3.10, Python 3.8 ___ Python tracker <https://bugs.python.org/issue28356> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42681] mistake in curses documentation
New submission from Robert T McQuaid : The description of color_pair starts with curses.color_pair(color_number) It should be curses.color_pair(pair_number) -- assignee: docs@python components: Documentation messages: 383344 nosy: arbor, docs@python priority: normal severity: normal status: open title: mistake in curses documentation versions: Python 3.10 ___ Python tracker <https://bugs.python.org/issue42681> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41983] Missing Documentation AF_PACKET
New submission from Darnel T. : Python documentation said AF_PACKET exists, but when I looked at the python script it was missing on Mac and Windows. I'm currently on Windows. -- assignee: docs@python components: Documentation messages: 378331 nosy: TheNuGuy, docs@python priority: normal severity: normal status: open title: Missing Documentation AF_PACKET versions: Python 3.8 ___ Python tracker <https://bugs.python.org/issue41983> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41666] fix
Change by M-o-T : -- title: Problem in tutorial/introduction.html#strings -> fix ___ Python tracker <https://bugs.python.org/issue41666> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41666] Problem in tutorial/introduction.html#strings
Change by M-o-T : -- nosy: -mohammadtavakoli1378 ___ Python tracker <https://bugs.python.org/issue41666> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41666] Problem in tutorial/introduction.html#strings
New submission from M-o-T : Hi, I found a problem with this address https://docs.python.org/3/tutorial/introduction.html#strings In here >>> word[0:2] # characters from position 0 (included) to 2 (excluded) 'Py' >>> word[2:5] # characters from position 2 (included) to 5 (excluded) 'tho' In the second example word[2:5] becomes 'hto' -- messages: 376104 nosy: mohammadtavakoli1378 priority: normal severity: normal status: open title: Problem in tutorial/introduction.html#strings versions: Python 3.8 ___ Python tracker <https://bugs.python.org/issue41666> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40534] ShUtil doc deficiencies
Change by T UA : -- type: -> enhancement ___ Python tracker <https://bugs.python.org/issue40534> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40534] ShUtil doc deficiencies
New submission from T UA : https://docs.python.org/3/library/shutil.html The operational outcome for the various copy functions is not described for the cases in which the target file already exists. Do they overwrite, do they raise exceptions and if so, which ones? -- messages: 368270 nosy: T UA priority: normal severity: normal status: open title: ShUtil doc deficiencies ___ Python tracker <https://bugs.python.org/issue40534> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40339] Instead of skipping, IPV6 test(s) fail on a non-IPV6 machine
New submission from M T : I have no use for IPv6 and, when recompiling my OS, disable the feature completely. Python compiles nicely despite of this, but the IPv6-related tests fail instead of being skipped: ERROR: test_create_server_ipv6 (test.test_asyncio.test_base_events.BaseEventLoopWithSelectorTests) -- Traceback (most recent call last): File "/spare/usr/ports/lang/python36/work/Python-3.6.10/Lib/test/test_asyncio/test_base_events.py", line 1149, in test_create_server_ipv6 self.loop.run_until_complete(main()) File "/spare/usr/ports/lang/python36/work/Python-3.6.10/Lib/asyncio/base_events.py", line 488, in run_until_complete return future.result() File "/spare/usr/ports/lang/python36/work/Python-3.6.10/Lib/asyncio/coroutines.py", line 129, in throw return self.gen.throw(type, value, traceback) File "/spare/usr/ports/lang/python36/work/Python-3.6.10/Lib/test/test_asyncio/test_base_events.py", line 1141, in main lambda: None, '::1', 0, loop=self.loop) File "/spare/usr/ports/lang/python36/work/Python-3.6.10/Lib/asyncio/streams.py", line 119, in start_server return (yield from loop.create_server(factory, host, port, **kwds)) File "/spare/usr/ports/lang/python36/work/Python-3.6.10/Lib/asyncio/base_events.py", line 1041, in create_server infos = yield from tasks.gather(*fs, loop=self) File "/spare/usr/ports/lang/python36/work/Python-3.6.10/Lib/asyncio/base_events.py", line 990, in _create_server_getaddrinfo flags=flags, loop=self) File "/spare/usr/ports/lang/python36/work/Python-3.6.10/Lib/concurrent/futures/thread.py", line 56, in run result = self.fn(*self.args, **self.kwargs) File "/spare/usr/ports/lang/python36/work/Python-3.6.10/Lib/socket.py", line 745, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno 8] hostname nor servname provided, or not known == FAIL: test_ipaddr_info (test.test_asyncio.test_base_events.BaseEventTests) -- Traceback (most recent call last): File "/spare/usr/ports/lang/python36/work/Python-3.6.10/Lib/test/test_asyncio/test_base_events.py", line 104, in test_ipaddr_info base_events._ipaddr_info('::3', 1, INET6, STREAM, TCP)) AssertionError: (, https://bugs.python.org/file49077/config.log ___ Python tracker <https://bugs.python.org/issue40339> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35540] dataclasses.asdict breaks with defaultdict fields
New submission from Will T : _asdict_inner attempts to manually recursively deepcopy dicts by calling type(obj) with a generator of transformed keyvalue tuples @ https://github.com/python/cpython/blob/b2f642ccd2f65d2f3bf77bbaa103dd2bc2733734/Lib/dataclasses.py#L1080 . defaultdicts are dicts so this runs but unlike other dicts their first arg has to be a callable or None: import collections import dataclasses as dc @dc.dataclass() class C: d: dict c = C(collections.defaultdict(lambda: 3, {})) d = dc.asdict(c) assert isinstance(d['d'], collections.defaultdict) assert d['d']['a'] == 3 => Traceback (most recent call last): File "boom.py", line 9, in d = dc.asdict(c) File "/Users/spinlock/.pyenv/versions/3.7.1/lib/python3.7/dataclasses.py", line 1019, in asdict return _asdict_inner(obj, dict_factory) File "/Users/spinlock/.pyenv/versions/3.7.1/lib/python3.7/dataclasses.py", line 1026, in _asdict_inner value = _asdict_inner(getattr(obj, f.name), dict_factory) File "/Users/spinlock/.pyenv/versions/3.7.1/lib/python3.7/dataclasses.py", line 1058, in _asdict_inner for k, v in obj.items()) TypeError: first argument must be callable or None I understand that it isn't this bit of code's job to support every dict (and list etc.) subclass under the sun but given defaultdict is stdlib it's imo worth supporting explicitly. -- components: Library (Lib) messages: 332166 nosy: wrmsr priority: normal severity: normal status: open title: dataclasses.asdict breaks with defaultdict fields versions: Python 3.7 ___ Python tracker <https://bugs.python.org/issue35540> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33947] Dataclasses can raise RecursionError in __repr__
Change by Srinivas Reddy T : -- keywords: +patch pull_requests: +9273 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue33947> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24653] Mock.assert_has_calls([]) is surprising for users
Change by Srinivas Reddy T : -- keywords: +patch pull_requests: +9245 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue24653> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue34848] range.index only takes one argument when it's documented as taking the usual 3
Change by Srinivas Reddy T : -- keywords: +patch pull_requests: +9240 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issue34848> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20216] Misleading docs for sha1, sha256, sha512, md5 modules
Change by Srinivas Reddy T : -- pull_requests: +9238 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issue20216> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue34038] urllib2.urlopen fails if http_proxy(s) is set to a sock5 proxy
New submission from T L : Changing the urlopen call to a curl commnand invoke works. $ export http_proxy=socks5://127.0.0.1: https_proxy=socks5://127.0.0.1: # this will raise an exception with string representation is a blank string # at least for url: https://s3.amazonaws.com/mozilla-games/emscripten/packages/llvm/tag/linux_64bit/emscripten-llvm-e1.37.35.tar.gz from urllib2 import urlopen, HTTPError u = urlopen(url) mkdir_p(os.path.dirname(file_name)) with open(file_name, 'wb') as f: file_size = get_content_length(u) if file_size > 0: print("Downloading: %s from %s, %s Bytes" % (file_name, url, file_size)) else: print("Downloading: %s from %s" % (file_name, url)) file_size_dl = 0 block_sz = 8192 while True: buffer = u.read(block_sz) if not buffer: break file_size_dl += len(buffer) f.write(buffer) # this alternative way works import commands status, output = commands.getstatusoutput("curl -L --output " + file_name + " " + url) -- components: Library (Lib) messages: 321010 nosy: T L2 priority: normal severity: normal status: open title: urllib2.urlopen fails if http_proxy(s) is set to a sock5 proxy type: behavior versions: Python 2.7 ___ Python tracker <https://bugs.python.org/issue34038> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33958] Unused variable in pur embedding example
Change by Srinivas Reddy T : -- keywords: +patch pull_requests: +7535 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issue33958> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33957] use standard term than generic wording
Change by Srinivas Reddy T : -- title: use correct term than generic wording -> use standard term than generic wording ___ Python tracker <https://bugs.python.org/issue33957> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33957] use correct term than generic wording
New submission from Srinivas Reddy T : I think it is better to use "Big-O notation" than a generic wording "computer science notation". I understand the use of latter, but i guess it helps the programmer since it makes him/her to google it or ask some one if he/she didn't know it yet. -- assignee: docs@python components: Documentation messages: 320433 nosy: docs@python, thatiparthy priority: normal pull_requests: 7515 severity: normal status: open title: use correct term than generic wording versions: Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue33957> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33774] Document that @lru_cache caches based on exactly how the function arguments are specified
Srinivas Reddy T added the comment: Hi Raymond, I find your statement hard to understand.I agree with Solstag, it is always helpful to have an example. +1 for solstag wording. -- nosy: +thatiparthy ___ Python tracker <https://bugs.python.org/issue33774> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33894] tempfile.tempdir cannot be unset
Change by Srinivas Reddy T : -- keywords: +patch pull_requests: +7437 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue33894> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33906] IDLE: rename windows.py as window.py
Change by Srinivas Reddy T : -- keywords: +patch pull_requests: +7421 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issue33906> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33904] IDLE: In rstrip, rename class RstripExtension as Rstrip
Change by Srinivas Reddy T : -- keywords: +patch pull_requests: +7418 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issue33904> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33908] remove unecessary variable assignments
New submission from Srinivas Reddy T : https://github.com/python/cpython/pull/7116 -- messages: 320018 nosy: thatiparthy priority: normal severity: normal status: open title: remove unecessary variable assignments type: resource usage versions: Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue33908> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33908] remove unecessary variable assignments
Change by Srinivas Reddy T : -- keywords: +patch pull_requests: +7417 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue33908> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32873] Pickling of typing types
Will T <timwillo...@gmail.com> added the comment: I believe I hit a bug with this fix (just pulled the code a few min ago): In [10]: pickle.loads(pickle.dumps(typing.List)) Out[10]: typing.List In [11]: pickle.loads(pickle.dumps(typing.FrozenSet)) --- PicklingError Traceback (most recent call last) in () > 1 pickle.loads(pickle.dumps(typing.FrozenSet)) PicklingError: Can't pickle typing.Frozenset: attribute lookup Frozenset on typing failed The cause is in _GenericAlias.__init__ name = orig_name[0].title() + orig_name[1:] Maybe just pass the name explicitly? For context I originally hit this trying to explicitly getattr(typing, alias_name) not by pickling but I'm pleased to see that's at least apparently intended to be valid use (I need to get the underlying special's parameter variance which is lost when you give it args). -- nosy: +wrmsr ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32873> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32162] typing.Generic breaks __init_subclass__
Will T <timwillo...@gmail.com> added the comment: Done: https://bugs.python.org/issue33207 - thanks for the quick response! -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32162> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33207] typing.Generic does not correctly call super().__init_subclass__
New submission from Will T <timwillo...@gmail.com>: Per the docs ( https://docs.python.org/3/reference/datamodel.html#object.__init_subclass__ ) this should be chain-calling super but currently doesn't, and thus breaks base classes listed after it which depend on this functionality. Attached a test for a real-world usecase of mine. Originally noted in https://bugs.python.org/issue32162? but on a new ticket as requested. Thanks :) -- components: Library (Lib) files: generic_init_subclass.py messages: 314828 nosy: wrmsr priority: normal severity: normal status: open title: typing.Generic does not correctly call super().__init_subclass__ type: behavior versions: Python 3.7 Added file: https://bugs.python.org/file47513/generic_init_subclass.py ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33207> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32162] typing.Generic breaks __init_subclass__
Will T <timwillo...@gmail.com> added the comment: I believe I'm experiencing a related bug in the new (3.7) version unfortunately. The current version of typing.Generic.__init_subclass__ isn't chaining to super(Generic, cls).__init_subclass__, meaning Generic's position in class bases can prevent subsequent bases from working properly. I can currently work around it with this unsightly hack but it's obviously suboptimal: _old_generic_init_subclass = object.__getattribute__(ta.Generic, '__init_subclass__').__func__ @classmethod # noqa def _new_generic_init_subclass(cls, *args, **kwargs): # noqa _old_generic_init_subclass(cls, *args, **kwargs) super(ta.Generic, cls).__init_subclass__(*args, **kwargs) ta.Generic.__init_subclass__ = _new_generic_init_subclass # noqa -- nosy: +wrmsr ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32162> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32464] raise NotImplemented vs return NotImplemented
New submission from Srinivas Reddy T <thatiparthysreeni...@gmail.com>: I ran these queries on cpython repo. ➜ cpython git:(master) ✗ grep -r . -e return --include=\*.py | grep NotImplemented | wc -l 196 ➜ cpython git:(master) ✗ grep -r . -e raise --include=\*.py | grep NotImplemented | wc -l 295 I have always used raise NotImplemented or raise NotImplementedError. But when does it make sense to return NotImplemented? -- messages: 309277 nosy: thatiparthy priority: normal severity: normal status: open title: raise NotImplemented vs return NotImplemented type: resource usage versions: Python 3.7, Python 3.8 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32464> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32424] Rename copy() to __copy__() in xml.etree.ElementTree.Element Python implementation
Srinivas Reddy T <thatiparthysreeni...@gmail.com> added the comment: Renaming the method `copy()` to `__copy__` breaks the API. I would rather have an alias for `__copy__`. I agree that it is not documented, but some users tend to assume public methods are documented and use them. So i think it is better to not to break their code. -- nosy: +thatiparthy ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32424> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32338] Save OrderedDict import in re
Change by Srinivas Reddy T <thatiparthysreeni...@gmail.com>: -- pull_requests: +4903 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32338> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32360] Save OrderedDict imports in various stdlibs.
Change by Srinivas Reddy T <thatiparthysreeni...@gmail.com>: -- pull_requests: +4902 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32360> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32384] Generator tests is broken in non-CPython implementation
Change by Srinivas Reddy T <thatiparthysreeni...@gmail.com>: -- pull_requests: +4894 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32384> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32413] Document that locals() may return globals()
Srinivas Reddy T <thatiparthysreeni...@gmail.com> added the comment: Done. exec(...)'s documentation covers raymond's comment. -- nosy: +thatiparthy ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32413> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32413] Document that locals() may return globals()
Change by Srinivas Reddy T <thatiparthysreeni...@gmail.com>: -- keywords: +patch pull_requests: +4893 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32413> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32360] Save OrderedDict imports in various stdlibs.
Change by Srinivas Reddy T <thatiparthysreeni...@gmail.com>: -- pull_requests: +4889 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32360> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32418] Implement Server.get_loop() method
Change by Srinivas Reddy T <thatiparthysreeni...@gmail.com>: -- keywords: +patch pull_requests: +4886 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32418> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32360] Save OrderedDict imports in various stdlibs.
Change by Srinivas Reddy T <thatiparthysreeni...@gmail.com>: -- keywords: +patch pull_requests: +4883 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32360> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32394] socket lib beahavior change in 3.6.4
Srinivas Reddy T <thatiparthysreeni...@gmail.com> added the comment: dtdev@dtdev-centos $ python3 Python 3.6.3 (default, Oct 11 2017, 18:17:01) [GCC 4.4.7 20120313 (Red Hat 4.4.7-18)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import socket >>> hasattr(socket, 'TCP_KEEPCNT') True >>> I have linux system. Above is the output i got. -- nosy: +thatiparthy ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32394> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15852] typos in curses argument error messages
Change by Srinivas Reddy T <thatiparthysreeni...@gmail.com>: -- pull_requests: +4843 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue15852> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32321] functools.reduce has a redundant guard or needs a pure Python fallback
Change by Srinivas Reddy T <thatiparthysreeni...@gmail.com>: -- keywords: +patch pull_requests: +4841 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32321> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30973] Regular expression "hangs" interpreter
New submission from T Trindad: The following code "hangs" the interpreter: import re re.search(r"/\*\*((?:[^*]+|\*[^/])*)\*/", """ /** Copy Constructor **/ private EvaluationContext (EvaluationContext base) {""") Changing the regex to r"/\*\*((?:[^*]|\*[^/])*)\*/" makes it work normally. ------ components: Regular Expressions messages: 298705 nosy: T Trindad, ezio.melotti, mrabarnett priority: normal severity: normal status: open title: Regular expression "hangs" interpreter type: crash versions: Python 2.7 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30973> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22595] F5 shortcut key not working in IDLE for OSX
Dave T added the comment: Its on a windows 10 It doesn't come with the run application but the debug -- nosy: +Dave T versions: +Python 2.7 -Python 3.5 Added file: http://bugs.python.org/file45298/Py 2.7.JPG ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22595> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15227] Fatal Python error: PyEval_RestoreThread: NULL tstate on example script..
T. Maslach added the comment: I just tried this in Python 2.7.6 and it works... So, it looks to be fixed! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15227 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20507] TypeError from str.join has no message
Srinivas Reddy T added the comment: The exact behavior is present in 2.7 version too. So tagging 2.7 to 3.4 -- nosy: +thatiparthy versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20507 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19562] Added description for assert statement
New submission from Srinivas Reddy T: Added descriptive message to assert statement in datetime module. Since _check_date_fields does the job of data integrity, i did not check for ValueError, TypeError checks in the function. However, i am not sure of the adding descriptive messages to the other assert statements like, assert seconds == int(seconds). And isn't this too much defensive programming? -- components: Library (Lib) files: datetime.patch keywords: patch messages: 202708 nosy: thatiparthy priority: normal severity: normal status: open title: Added description for assert statement versions: Python 2.7, Python 3.3 Added file: http://bugs.python.org/file32588/datetime.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19562 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19563] Changing barry's email to ba...@python.org
New submission from Srinivas Reddy T: Updated to barry's new email address. -- components: Tests files: barry_email.patch keywords: patch messages: 202714 nosy: thatiparthy priority: normal severity: normal status: open title: Changing barry's email to ba...@python.org versions: Python 2.7, Python 3.3 Added file: http://bugs.python.org/file32589/barry_email.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19563 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17056] Support Visual Studio 2012
New submission from Gili T.: msvc9compiler needs to check for the VS110COMNTOOLS environment variable in order to support Visual Studio 2012. Currently it complains cannot find vcvarsall.bat. The following workaround works for now: SET VS90COMNTOOLS=%VS110COMNTOOLS% -- components: Build messages: 180808 nosy: cowwoc priority: normal severity: normal status: open title: Support Visual Studio 2012 type: enhancement versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17056 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17058] Python crashes with error 0xc0000417
New submission from Gili T.: Python keeps on crashing with error: The following repro steps are a slight variation of http://packages.python.org/RhodeCode/setup.html. My installation environment is Windows 7, 64-bit, Visual Studio 2012. I doubt the bug is specific to this environment but I'm providing it as a point of reference. This issue is 100% reproducible for me: 1. Install Python 2.7.3, 64-bit 2. Download https://raw.github.com/pypa/virtualenv/master/virtualenv.py 3. From a VS2012 64-bit command-prompt, run python virtualenv c:\users\name\documents\rhodecode 4. cd \users\name\documents\rhodecode 5. scripts\activate 6. pip install rhodecode 7. paster make-config RhodeCode production.ini 8. paster setup-rhodecode production.ini 9. You need to point at a directory that contains at least one Mercurial repository. Code will output: [...] 2013-01-27 19:51:05,855 INFO sqlalchemy.engine.base.Engine () 2013-01-27 19:51:05.861 INFO [rhodecode.model.scm] scanning for repositories in C:\Users\Gili\Documents\MercurialRepositories The thread 0x3b4 has exited with code -1073740777 (0xc417). The thread 0x1bfc has exited with code -1073740777 (0xc417). The thread 0x39c has exited with code -1073740777 (0xc417). The thread 0x1fcc has exited with code -1073740777 (0xc417). The program '[1260] python.exe' has exited with code -1073740777 (0xc417). and crash. The stack-trace is: msvcr90.dll!71059f64() Unknown msvcr90.dll!710551ec() Unknown msvcr90.dll!710552d4() Unknown msvcr90.dll!7104f335() Unknown python27.dll!1e0a89f9() Unknown python27.dll!1e0a8c0e() Unknown python27.dll!1e0a9379() Unknown osutil.pyd!07fefc62176f() Unknown python27.dll!1e0c0966() Unknown python27.dll!1e110484() Unknown python27.dll!1e113c34() Unknown python27.dll!1e115439() Unknown python27.dll!1e10eba9() Unknown python27.dll!1e110514() Unknown python27.dll!1e113c34() Unknown python27.dll!1e115439() Unknown python27.dll!1e0b2553() Unknown python27.dll!1e08adf5() Unknown python27.dll!1e099211() Unknown python27.dll!1e08adf5() Unknown python27.dll!1e0e02be() Unknown python27.dll!1e08adf5() Unknown python27.dll!1e10fc7b() Unknown python27.dll!1e11052a() Unknown python27.dll!1e113c34() Unknown python27.dll!1e10eb38() Unknown python27.dll!1e110514() Unknown python27.dll!1e113c34() Unknown python27.dll!1e10eb38() Unknown python27.dll!1e110514() Unknown python27.dll!1e113c34() Unknown python27.dll!1e115439() Unknown python27.dll!1e0b2553() Unknown python27.dll!1e08adf5() Unknown python27.dll!1e099211() Unknown python27.dll!1e08adf5() Unknown python27.dll!1e0e086e() Unknown python27.dll!1e0dd5e6() Unknown python27.dll!1e08adf5() Unknown python27.dll!1e10fc7b() Unknown python27.dll!1e11052a() Unknown python27.dll!1e113c34() Unknown python27.dll!1e115439() Unknown python27.dll!1e10eba9() Unknown python27.dll!1e110514() Unknown python27.dll!1e113c34() Unknown python27.dll!1e115439() Unknown python27.dll!1e0b2553() Unknown python27.dll!1e08adf5() Unknown python27.dll!1e099211() Unknown python27.dll!1e08adf5() Unknown python27.dll!1e0e086e() Unknown python27.dll!1e0dd5e6() Unknown python27.dll!1e08adf5() Unknown python27.dll!1e10fc7b() Unknown python27.dll!1e11052a() Unknown python27.dll!1e113c34() Unknown python27.dll!1e115439() Unknown python27.dll!1e10eba9() Unknown python27.dll!1e110514() Unknown python27.dll!1e113c34() Unknown python27.dll!1e115439() Unknown python27.dll!1e10eba9() Unknown python27.dll!1e110514() Unknown python27.dll!1e113c34() Unknown python27.dll!1e10eb38() Unknown python27.dll!1e110514() Unknown python27.dll!1e113c34() Unknown python27.dll!1e10eb38() Unknown python27.dll!1e110514() Unknown python27.dll!1e113c34() Unknown python27.dll!1e10eb38() Unknown python27.dll!1e110514() Unknown python27.dll!1e113c34() Unknown
[issue17056] Support Visual Studio 2012
Gili T. added the comment: Why? :) I ask because all the application I depend upon only run against Python 2.x (Rhodecode, Mercurial, etc). I'd love for them to upgrade but it's not really in my control. Has there been some sort of policy change within Python to stop supporting 2.x? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17056 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17058] Python crashes with error 0xc0000417
Gili T. added the comment: Yes, Visual Studio 2012 is used when installing Rhodecode. I'd love to isolate this further but I don't know anything about Python. I'm just an end-user of Rhodecode. I filed a bug report with the Rhodecode author (asking for help) but I think we can both agree this is actually a Python bug (python.exe is the one crashing). I try to reproduce this with Visual Studio 2010 if you are more comfortable with that environment. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17058 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17058] Python crashes with error 0xc0000417
Gili T. added the comment: Hey Brian, I'm curious why mixing different versions of Visual Studio runtimes would result in a problem. I thought you can mix different runtimes so long as: 1. You link against a DLL (as opposed to static linking). 2. You use the same kind of library (debug vs release, 32-bit vs 64-bit). Meaning, if one project links against a 64-bit Release DLL from 2008 I expect it to interoperate fine with a 64-bit Release DLL from 2010. The DLL is supposed to be backwards compatible, is it not? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17058 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17058] Python crashes with error 0xc0000417
Gili T. added the comment: I read http://mail.python.org/pipermail/python-dev/2012-August/121460.html and I believe they are wrong. I have personally run into these problems (each library maintaining its own CRT with separate heaps, file handles, etc) when static linking was used, but when dynamic linking is used there is only one CRT instance and therefore you only end up with one heap, set of file handles, etc. I've never seen the kind of problems you're referring to if dynamic linking is used. My guess is that someone (Python or an extension) is using static linking which is causing these problems. Is that a reasonable assumption? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17058 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10722] IDLE's subprocess didnit make connection ..... Python 2.7
T Rink t...@jm.rinkleff.com added the comment: Thanks for your comments. I also expect the problem is the interation of Python with Windows, but whether they fault lies by Python or Windows I cannot say. I can say that the problem seems to come and go away. Last night it did not work. This morning it did. A few minutes ago it did. Now it does not. I have to my knowledge a standard installation. Checking Google, which is where I started in looking for a solution, shows that the error message has occured for other people as well. Again any suggestions are appreciated. Thanks. On Fri, Dec 17, 2010 at 2:25 AM, R. David Murray rep...@bugs.python.orgwrote: R. David Murray rdmur...@bitdance.com added the comment: Perhaps Terry will have some advice (I've added him as nosy), but you may have better luck asking on the python mailing list (see mail.python.orgfor list of lists) or its linked newsgroup comp.lang.python, or on the #python irc channel (though they may tell you to dump Idle, depending on who is in channel at the time :) It is not likely that what you are experiencing is an actual bug in Ptyhon, since Idle on windows works for lots of people. However understanding your problem and its solution might help us make the Idle experience more friendly, so I'll leave it to Terry to decide how he wants to handle this. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10722 ___ -- Added file: http://bugs.python.org/file20098/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10722 ___Thanks for your comments.brbrI also expect the problem is the interation of Python with Windows, but whether they fault lies by Python or Windows I cannot say. brbrI can say that the problem seems to come and go away. Last night it did not work. This morning it did. A few minutes ago it did. Now it does not.  br br I have to my knowledge a standard installation. Checking Google, which is where I started in looking for a solution, shows that the error message has occured for other people as well.brbrAgain any suggestions are appreciated. br brThanks. brbrdiv class=gmail_quoteOn Fri, Dec 17, 2010 at 2:25 AM, R. David Murray span dir=ltrlt;a href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;/span wrote:brblockquote class=gmail_quote style=border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex; br R. David Murray lt;a href=mailto:rdmur...@bitdance.com;rdmur...@bitdance.com/agt; added the comment:br br Perhaps Terry will have some advice (I#39;ve added him as nosy), but you may have better luck asking on the python mailing list (see a href=http://mail.python.org; target=_blankmail.python.org/a for list of lists) or its linked newsgroup comp.lang.python, or on the #python irc channel (though they may tell you to dump Idle, depending on who is in channel at the time :)br br It is not likely that what you are experiencing is an actual bug in Ptyhon, since Idle on windows works for lots of people.  However understanding your problem and its solution might help us make the Idle experience more friendly, so I#39;ll leave it to Terry to decide how he wants to handle this.br br --br nosy: +r.david.murraybr divdiv/divdiv class=h5br ___br Python tracker lt;a href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;br lt;a href=http://bugs.python.org/issue10722; target=_blankhttp://bugs.python.org/issue10722/agt;br ___br /div/div/blockquote/divbr ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10722] IDLE's subprocess didnit make connection ..... Python 2.7
New submission from T Rink t...@jm.rinkleff.com: Hi. My problem is that this evening, the message IDLE's subprocess didn't make connection. Either IDLE can't start a subprocess or personal firewall software is blocking the connection. appears after I hit F5 to run a file I am editing. The program briefly worked on and off ... but after ca. 10 minutes it stopped for good. I have tried searhcing for solutions, but found nothing that seems to work. CONFIGURATION: Windows Vista 32 Python 2.7 (downloaded a week ago) New User to Python. Amatuer/Hobby Programmer SOLUTIONS I HAVE TRIED -Tried solution kill process in task manager. No effect. Process was usually already closed by me anyway, but killing it did not help either. -Tried solution repair via .MSI file. No change. -Tried to tell Windows Firewall to ignore python and pythonw, that they were acceptable. No change. -Would prefer not to Scrap IDLE as I just started! (Also I do not want to write Python only in Notepad and use command lines. As much as I love the command line, I do not want that anymore) -Started to try to use workaround -n flag when starting IDLE. a) I would prefer a Solution and not a Workaround that hinders the program before I am started. b) I am new to Python and Idle. Windows Vista hides the links, it is not clear to me how Python is setup and I am still working on understanding how Python operates ... that is pain enough at the moment REQUEST: -Either a useful suggestion to get IDLE to work properly and as it should. -Or a good recommendation for a universal and Idiot-Friendly alternative Python programming environment. It should be simple, user-friendly, reliable and suitable for novices to experiment (i.e. no complicated setup!) (FYI:I spent two years learning Java, and finally canned it, because I got sick of spending my free-time trying to debug and decipher workarounds to what should have been a simple solution! grrr!) Thanks to any who can help. -- components: Windows messages: 124163 nosy: plovet priority: normal severity: normal status: open title: IDLE's subprocess didnit make connection . Python 2.7 type: crash versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10722 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10096] Question regarding python migration
New submission from Pramod T Sridhar pramod.srid...@nxp.com: Hi All, We have a Python based test framework which is being used in various projects. Our current environment is Python (ver 2.5.1) wxPython (wxPython2.8-win32-ansi-2.8.6.0-py25) pywin32-210.win32-py2.5 vcredist_x86.exe pyserial-2.2 Our Framework is being currently used in Windows XP. The issue is: Soon our environment will be migrated from Windows XP to Windows 7. In this regard, I would be in need of suggestions/ideas/information regarding migration of our existing framework into windows 7 environment. Do i need to migrate our framework from Python 2.5 to either Python 2.6 or directly to Python 3.0 ? What happens to all supporting packages..etc Which is the best way ? We tried out of some option of using our framework under virtual xp context of windows 7.Thou it works for timebeing,i am not interested to having the same as kind of way of working for future. Please help Many thanks in advance - Pramod -- messages: 118612 nosy: pramod.ts priority: normal severity: normal status: open title: Question regarding python migration type: performance versions: Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10096 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9938] Documentation for argparse interactive use
New submission from Jay T jayt...@gmail.com: I want to create a custom interactive shell where I continually do parse_args. Like the following: parser = argparse.ArgumentParser() command = raw_input() while(True): args = parser.parse_args(shlex.split(command)) # Do some magic stuff command = raw_input() The problem is that if I give it invalid input, it errors and exits with a help message. I learned from argparse-users group that you can override the exit method like the following: class MyParser(ArgumentParser): def exit(self, status=0, message=None): # do whatever you want here I would be nice to have this usage documented perhaps along with best practices for doing help messages in this scenario. -- assignee: d...@python components: Documentation messages: 117287 nosy: d...@python, jayt priority: normal severity: normal status: open title: Documentation for argparse interactive use type: feature request versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9938 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6212] piped input
New submission from Robert T McQuaid r...@fixcas.com: # # Python 3.0.1 can read piped input when invoked with a # program name as the argument of the interpreter, but not # when invoked implicitly by the file extension. On # Windows xp the first command below runs successfully, the # second ends with a diagnostic: 'NoneType' object has no # attribute 'isatty' # # # dir | e:\python30\python test17.py # dir | test17.py # # import sys if sys.stdin.isatty(): pass -- components: IO messages: 88970 nosy: rtmq severity: normal status: open title: piped input type: behavior versions: Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6212 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1210] imaplib does not run under Python 3
New submission from Robert T McQuaid: imaplib does not run under Python 3. The following two-line python program, named testimap.py, works when run from a Windows XP system shell prompt using Python 2.5.1, but fails with Python 3.0. It appears that the logic does not follow the distinction between characters and bytes in Python 3. import imaplib mail=imaplib.IMAP4(mail.rtmq.infosathse.com) e:\python25\python testimap.py e:\python30\python testimap.py 2f:syserr The last line produced the trace: Traceback (most recent call last): File testimap.py, line 10, in module mail=imaplib.IMAP4(mail.rtmq.infosathse.com) File e:\python30\lib\imaplib.py, line 184, in __init__ self.welcome = self._get_response() File e:\python30\lib\imaplib.py, line 962, in _get_response self._append_untagged(typ, dat) File e:\python30\lib\imaplib.py, line 800, in _append_untagged if typ in ur: TypeError: unhashable type: 'bytes' -- components: Library (Lib) messages: 56154 nosy: rtmq severity: normal status: open title: imaplib does not run under Python 3 type: crash versions: Python 3.0 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1210 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1192] Python 3 documents crash Firefox
New submission from Robert T McQuaid: I downloaded python-3.0a1.msi for Windows XP and after install converted the documentation from chm format to html with the hh.exe utility in XP. The resulting files crashed Firefox version 2.0 (it slowly chokes to death in a dozen operations), but worked fine on Opera 9.21. -- components: Documentation messages: 56099 nosy: rtmq severity: minor status: open title: Python 3 documents crash Firefox type: behavior versions: Python 3.0 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1192 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com