[issue8704] cgitb sends a bogus HTTP header if the app crashes before finishing headers

2022-03-15 Thread Colin 't Hart
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

[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2022-03-06 Thread Owen T. Heisler
Change by Owen T. Heisler : -- nosy: -owenh ___ Python tracker <https://bugs.python.org/issue14156> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44956] curses getch returns wrong value

2021-08-19 Thread Robert T McQuaid
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

[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2021-08-16 Thread Owen T. Heisler
Change by Owen T. Heisler : -- nosy: +owenh ___ Python tracker <https://bugs.python.org/issue14156> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44162] importlib.resources.path no longer supports directories

2021-05-17 Thread T M
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/i

[issue44162] importlib.resources.path no longer supports directories

2021-05-17 Thread T M
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/issue44

[issue44162] importlib.resources.path no longer supports directories

2021-05-17 Thread T M
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:

[issue28356] [easy doc] Document os.rename() behavior on Windows when src and dst are on different filesystems

2021-03-08 Thread T-VEy
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

[issue28356] [easy doc] Document os.rename() behavior on Windows when src and dst are on different filesystems

2021-03-08 Thread T-VEy
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/issue28

[issue42681] mistake in curses documentation

2020-12-18 Thread Robert T McQuaid
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

[issue41983] Missing Documentation AF_PACKET

2020-10-09 Thread Darnel T.
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

[issue41666] fix

2020-08-30 Thread M-o-T
Change by M-o-T : -- title: Problem in tutorial/introduction.html#strings -> fix ___ Python tracker <https://bugs.python.org/issue41666> ___ ___ Python-

[issue41666] Problem in tutorial/introduction.html#strings

2020-08-30 Thread M-o-T
Change by M-o-T : -- nosy: -mohammadtavakoli1378 ___ Python tracker <https://bugs.python.org/issue41666> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41666] Problem in tutorial/introduction.html#strings

2020-08-30 Thread M-o-T
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

[issue40534] ShUtil doc deficiencies

2020-05-06 Thread T UA
Change by T UA : -- type: -> enhancement ___ Python tracker <https://bugs.python.org/issue40534> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue40534] ShUtil doc deficiencies

2020-05-06 Thread T UA
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

[issue40339] Instead of skipping, IPV6 test(s) fail on a non-IPV6 machine

2020-04-20 Thread M T
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

[issue35540] dataclasses.asdict breaks with defaultdict fields

2018-12-19 Thread Will T
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

[issue33947] Dataclasses can raise RecursionError in __repr__

2018-10-16 Thread Srinivas Reddy T
Change by Srinivas Reddy T : -- keywords: +patch pull_requests: +9273 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue33947> ___ _

[issue24653] Mock.assert_has_calls([]) is surprising for users

2018-10-14 Thread Srinivas Reddy T
Change by Srinivas Reddy T : -- keywords: +patch pull_requests: +9245 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue24653> ___ _

[issue34848] range.index only takes one argument when it's documented as taking the usual 3

2018-10-14 Thread Srinivas Reddy T
Change by Srinivas Reddy T : -- keywords: +patch pull_requests: +9240 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue20216] Misleading docs for sha1, sha256, sha512, md5 modules

2018-10-14 Thread Srinivas Reddy T
Change by Srinivas Reddy T : -- pull_requests: +9238 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issue20216> ___ ___ Py

[issue34038] urllib2.urlopen fails if http_proxy(s) is set to a sock5 proxy

2018-07-03 Thread T L
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

[issue33958] Unused variable in pur embedding example

2018-06-25 Thread Srinivas Reddy T
Change by Srinivas Reddy T : -- keywords: +patch pull_requests: +7535 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue33957] use standard term than generic wording

2018-06-25 Thread Srinivas Reddy T
Change by Srinivas Reddy T : -- title: use correct term than generic wording -> use standard term than generic wording ___ Python tracker <https://bugs.python.org/issu

[issue33957] use correct term than generic wording

2018-06-25 Thread Srinivas Reddy T
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

[issue33774] Document that @lru_cache caches based on exactly how the function arguments are specified

2018-06-25 Thread Srinivas Reddy T
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 <ht

[issue33894] tempfile.tempdir cannot be unset

2018-06-20 Thread Srinivas Reddy T
Change by Srinivas Reddy T : -- keywords: +patch pull_requests: +7437 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue33894> ___ _

[issue33906] IDLE: rename windows.py as window.py

2018-06-20 Thread Srinivas Reddy T
Change by Srinivas Reddy T : -- keywords: +patch pull_requests: +7421 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue33904] IDLE: In rstrip, rename class RstripExtension as Rstrip

2018-06-19 Thread Srinivas Reddy T
Change by Srinivas Reddy T : -- keywords: +patch pull_requests: +7418 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue33908] remove unecessary variable assignments

2018-06-19 Thread Srinivas Reddy T
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

[issue33908] remove unecessary variable assignments

2018-06-19 Thread Srinivas Reddy T
Change by Srinivas Reddy T : -- keywords: +patch pull_requests: +7417 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue33908> ___ _

[issue32873] Pickling of typing types

2018-04-04 Thread Will T
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.Fro

[issue32162] typing.Generic breaks __init_subclass__

2018-04-02 Thread Will T
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

[issue33207] typing.Generic does not correctly call super().__init_subclass__

2018-04-02 Thread Will T
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. At

[issue32162] typing.Generic breaks __init_subclass__

2018-04-02 Thread Will T
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 bas

[issue32464] raise NotImplemented vs return NotImplemented

2017-12-31 Thread Srinivas Reddy T
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 NotImple

[issue32424] Rename copy() to __copy__() in xml.etree.ElementTree.Element Python implementation

2017-12-27 Thread Srinivas Reddy T
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.

[issue32338] Save OrderedDict import in re

2017-12-25 Thread Srinivas Reddy T
Change by Srinivas Reddy T <thatiparthysreeni...@gmail.com>: -- pull_requests: +4903 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue32360] Save OrderedDict imports in various stdlibs.

2017-12-25 Thread Srinivas Reddy T
Change by Srinivas Reddy T <thatiparthysreeni...@gmail.com>: -- pull_requests: +4902 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue32384] Generator tests is broken in non-CPython implementation

2017-12-24 Thread Srinivas Reddy T
Change by Srinivas Reddy T <thatiparthysreeni...@gmail.com>: -- pull_requests: +4894 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue32413] Document that locals() may return globals()

2017-12-24 Thread Srinivas Reddy T
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

[issue32413] Document that locals() may return globals()

2017-12-24 Thread Srinivas Reddy T
Change by Srinivas Reddy T <thatiparthysreeni...@gmail.com>: -- keywords: +patch pull_requests: +4893 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue32360] Save OrderedDict imports in various stdlibs.

2017-12-23 Thread Srinivas Reddy T
Change by Srinivas Reddy T <thatiparthysreeni...@gmail.com>: -- pull_requests: +4889 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue32418] Implement Server.get_loop() method

2017-12-23 Thread Srinivas Reddy T
Change by Srinivas Reddy T <thatiparthysreeni...@gmail.com>: -- keywords: +patch pull_requests: +4886 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue32360] Save OrderedDict imports in various stdlibs.

2017-12-23 Thread Srinivas Reddy T
Change by Srinivas Reddy T <thatiparthysreeni...@gmail.com>: -- keywords: +patch pull_requests: +4883 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue32394] socket lib beahavior change in 3.6.4

2017-12-21 Thread Srinivas Reddy T
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 m

[issue15852] typos in curses argument error messages

2017-12-20 Thread Srinivas Reddy T
Change by Srinivas Reddy T <thatiparthysreeni...@gmail.com>: -- pull_requests: +4843 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue32321] functools.reduce has a redundant guard or needs a pure Python fallback

2017-12-20 Thread Srinivas Reddy T
Change by Srinivas Reddy T <thatiparthysreeni...@gmail.com>: -- keywords: +patch pull_requests: +4841 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue30973] Regular expression "hangs" interpreter

2017-07-19 Thread T Trindad
New submission from T Trindad: The following code "hangs" the interpreter: import re re.search(r"/\*\*((?:[^*]+|\*[^/])*)\*/", """ /** Copy Constructor **/ private EvaluationContext (EvaluationContext base) {""") Changin

[issue22595] F5 shortcut key not working in IDLE for OSX

2016-10-31 Thread Dave T
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 <

[issue15227] Fatal Python error: PyEval_RestoreThread: NULL tstate on example script..

2014-02-12 Thread T. Maslach
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

[issue20507] TypeError from str.join has no message

2014-02-04 Thread Srinivas Reddy T
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

[issue19562] Added description for assert statement

2013-11-12 Thread Srinivas Reddy T
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

[issue19563] Changing barry's email to ba...@python.org

2013-11-12 Thread Srinivas Reddy T
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

[issue17056] Support Visual Studio 2012

2013-01-27 Thread Gili T.
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

[issue17058] Python crashes with error 0xc0000417

2013-01-27 Thread Gili T.
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

[issue17056] Support Visual Studio 2012

2013-01-27 Thread Gili T.
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

[issue17058] Python crashes with error 0xc0000417

2013-01-27 Thread Gili T.
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

[issue17058] Python crashes with error 0xc0000417

2013-01-27 Thread Gili T.
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

[issue17058] Python crashes with error 0xc0000417

2013-01-27 Thread Gili T.
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

[issue10722] IDLE's subprocess didnit make connection ..... Python 2.7

2010-12-17 Thread T Rink
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

[issue10722] IDLE's subprocess didnit make connection ..... Python 2.7

2010-12-16 Thread T Rink
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

[issue10096] Question regarding python migration

2010-10-13 Thread Pramod T Sridhar
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

[issue9938] Documentation for argparse interactive use

2010-09-24 Thread Jay T
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

[issue6212] piped input

2009-06-05 Thread Robert T McQuaid
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

[issue1210] imaplib does not run under Python 3

2007-09-26 Thread Robert T McQuaid
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

[issue1192] Python 3 documents crash Firefox

2007-09-23 Thread Robert T McQuaid
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