[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

[issue46759] sys.excepthook documentation doesn't mention that it isn't called for SystemExit

2022-02-15 Thread Colin Watson
Change by Colin Watson : -- keywords: +patch pull_requests: +29507 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31357 ___ Python tracker <https://bugs.python.org/issu

[issue46759] sys.excepthook documentation doesn't mention that it isn't called for SystemExit

2022-02-15 Thread Colin Watson
New submission from Colin Watson : In https://bugs.debian.org/1005803, Matthew Vernon reports that the library documentation for sys.excepthook doesn't mention the detail that that sys.excepthook isn't called for uncaught SystemExit exceptions, although help(sys) does mention this.

[issue43743] BlockingIOError: [Errno 11] Resource temporarily unavailable: on GPFS.

2021-04-22 Thread Alexei Colin
Change by Alexei Colin : -- versions: +Python 3.8 ___ Python tracker <https://bugs.python.org/issue43743> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43743] BlockingIOError: [Errno 11] Resource temporarily unavailable: on GPFS.

2021-04-22 Thread Alexei Colin
Change by Alexei Colin : -- versions: +Python 3.10 -Python 3.8 ___ Python tracker <https://bugs.python.org/issue43743> ___ ___ Python-bugs-list mailing list Unsub

[issue43743] BlockingIOError: [Errno 11] Resource temporarily unavailable: on GPFS.

2021-04-22 Thread Alexei Colin
Alexei Colin added the comment: Can confirm that this BlockingIOError happens on GPFS (alpine) on Summit supercomputer, tested with Python 3.8 and 3.10a7. I found that it happens only for file sizes above 65536. Minimal example: This filesize works: $ rm -f srcfile dstfile &&

[issue38974] using tkinter.filedialog.askopenfilename() freezes python 3.8

2021-04-08 Thread Colin Caprani
Colin Caprani added the comment: In case it helps, I have the same problem. Running python 3.8.8 on Windows 10, and any MWE doesn't work, e.g.: from tkinter import filedialog from tkinter import * root = Tk() root.filename = filedialog.askopenfilename(initialdir = "/",title

[issue42669] "except" documentation still suggests nested tuples are allowed

2020-12-17 Thread Colin Watson
Change by Colin Watson : -- keywords: +patch pull_requests: +22682 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23822 ___ Python tracker <https://bugs.python.org/issu

[issue42669] "except" documentation still suggests nested tuples are allowed

2020-12-17 Thread Colin Watson
New submission from Colin Watson : In Python 2, it was possible to use `except` with a nested tuple, and occasionally natural. For example, `zope.formlib.interfaces.InputErrors` is a tuple of several exception classes, and one might reasonably think to do something like this (this is real

[issue42188] forkserver not reused in child processes

2020-10-29 Thread Colin
Change by Colin : Added file: https://bugs.python.org/file49549/test.py ___ Python tracker <https://bugs.python.org/issue42188> ___ ___ Python-bugs-list mailin

[issue42188] forkserver not reused in child processes

2020-10-29 Thread Colin
Change by Colin : Removed file: https://bugs.python.org/file49547/test.py ___ Python tracker <https://bugs.python.org/issue42188> ___ ___ Python-bugs-list mailin

[issue42188] forkserver not reused in child processes

2020-10-28 Thread Colin
New submission from Colin : The docstring on Forkserver.ensure_running states that a child process will use the forkserver process started by its parent: """ Make sure that a fork server is running. This can be called from any process. Note that usually a child process will

[issue42027] /passive run of Windows installer fail silently on Win7

2020-10-13 Thread Colin
New submission from Colin : As expected, Python 3.9.0 cannot be installed on Windows 7. Running the installer displays a message clearly stating this. However, running the installer in passive mode (/passive) is expected to display errors that might occur. As stated in https

[issue38634] Symbol resolution conflict when embeding python in an application using libedit

2020-10-08 Thread Colin Watson
Colin Watson added the comment: Here's a reasonably minimal reproduction recipe reduced from real code in the Launchpad test suite that doesn't require compiling a separate C extension. It fails on Ubuntu 18.04 with the gir1.2-gtk-3.0, python3-gi, and xvfb packages installed.

[issue38634] Symbol resolution conflict when embeding python in an application using libedit

2020-10-08 Thread Colin Watson
Colin Watson added the comment: FWIW I just ran into what I believe to be this bug with the Launchpad test suite on Python 3.6.9. The output shows some normal test output followed by: No entry for terminal type "unknown"; using dumb terminal settings. bind: Invalid command `enabl

[issue37485] dataclass __foo__ methods inheritance is not working

2019-07-02 Thread Colin
Colin added the comment: I personally find it easier to understand if inheritance is the default behaviour, instead of having to explicitly disable a feature that's seems primarily designed for non-herited dataclasses. But whatever suits best the community :-) Thanks for the quick

[issue37485] dataclass __foo__ methods inheritance is not working

2019-07-02 Thread Colin
New submission from Colin : Hi, When using inheritance with dataclass, "standard" instance methods that are provided with a default behavior thanks to dataclass are not overridable using inheritance. Please see the sample below (or the attached file): import d

[issue36514] -m switch revisited

2019-04-03 Thread Colin Dick
Colin Dick added the comment: No, the first example is expected, BUT the middle two work HENCE the last should NOT have a problem either... No? Because the middle two work, so should the last complete without any errors. There were no code changes, Therefore the problem is with python On Wed

[issue36514] -m switch revisited

2019-04-02 Thread Colin Dick
New submission from Colin Dick : -m switch revisited - see issue 27487 Win 10 64bit python 3.6.3 & 3.7.3 initially running code using py 3.6.3 with this command python -m vixsd.py produced C:\Python36\python.exe: Error while finding module specification for 'vixsd.py' (Attribut

[issue35525] Incorrect keyword name in NNTP.starttls() documentation

2018-12-18 Thread Colin McPhail
New submission from Colin McPhail : The library documentation for nntplib.NNTP.starttls() says that it takes a keyword parameter called ssl_context. The source code referenced via the link at the top of the nntplib documentation shows the keyword is actually called context. The result is a

[issue15631] Python 3.3/3.4 installation issue on OpenSUSE lib/lib64 folders

2017-11-08 Thread Colin McCabe
Colin McCabe added the comment: When installing Python 3.6.3 from source on openSUSE Leap 42.2, this bug still occurs. Python cannot find the readline module, until you symlink $prefix/lib/python3.6/lib-dynload to $prefix/lib64/python3.6/lib-dynload. -- nosy: +cmccabe versions

[issue31811] async and await missing from keyword list in lexical analysis doc

2017-10-20 Thread Colin Dunklau
Colin Dunklau added the comment: Hi Yury, perhaps I've misinterpreted PEP 492, and I can't claim to understand how the parser works and thus how the changes in https://github.com/python/cpython/pull/1669 affect things, but it seems to me that async and await are truly reserved word

[issue31811] async and await missing from keyword list in lexical analysis doc

2017-10-18 Thread Colin Dunklau
New submission from Colin Dunklau : I see that code making async/await real keywords has been merged, but it looks like Doc/reference/lexical_analysis.rst doesn't have those added https://github.com/python/cpython/blob/4a2d00c/Doc/reference/lexical_analysis.rst#keywords Is

[issue28975] os.walk generator giving inconsistent results

2016-12-14 Thread Colin David Chen
Colin David Chen added the comment: Ah, you're correct. The behavior is consistent if you use strings in both invocations. The Path conversion strips the final '\\'. Doc examples do use the names of directories rather than a Path object. I will close the issue. Thanks for the

[issue28975] os.walk generator giving inconsistent results

2016-12-14 Thread Colin David Chen
Changes by Colin David Chen : -- title: os.walk generator vs -> os.walk generator giving inconsistent results ___ Python tracker <http://bugs.python.org/issu

[issue28975] os.walk generator vs

2016-12-14 Thread Colin David Chen
New submission from Colin David Chen: os.walk in 3.6rc1 (Windows) appears to generate different output depending on its invocation. In the first invocation, I use the generator to yield one result at a time: source = "C:\\cdchen_data\\downloads\\python-xlib-0.18\\" texasranger = os

[issue27153] Default value shown by argparse.ArgumentDefaultsHelpFormatter is backwards for action='store_false'

2016-05-29 Thread Colin Morris
New submission from Colin Morris: Small example: import argparse parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter) parser.add_argument('--no-foo', dest='foo', action='store_false', help="Suppress foo")

[issue21614] Case sensitivity problem in multiprocessing.

2014-05-30 Thread Colin Davidson
New submission from Colin Davidson: On windows 7, if a Python app is run (under python 2.7.6) and the invoking filename is capitalized differently from the source file itself, a subsequent attempt to use the multiprocessing module to "fork" a process will fail in the "forkin

[issue19417] Add tests for bdb (previously not tested)

2013-11-03 Thread Colin Williams
Colin Williams added the comment: I've updated the patch to consolidate some duplicated code. Unfortunately, I wasn't able to move anything to setUpClass without messing even more with the internals. I haven't had a chance to refine the code further based on xdegaye'

[issue19417] bdb test coverage

2013-10-27 Thread Colin Williams
New submission from Colin Williams: This one is pretty involved. The tests might reach into the guts of the modules a bit too much, I'd be open to less invasive suggestions. -- files: bdb.patch keywords: patch messages: 201481 nosy: Colin.Williams priority: normal severity: n

[issue19383] nturl2path test coverage

2013-10-24 Thread Colin Williams
New submission from Colin Williams: Full coverage on this module -- files: nturl2path.patch keywords: patch messages: 201197 nosy: Colin.Williams priority: normal severity: normal status: open title: nturl2path test coverage Added file: http://bugs.python.org/file32345/nturl2path.patch

[issue19382] tabnanny unit tests

2013-10-24 Thread Colin Williams
Colin Williams added the comment: Alright, I'll wait until that one gets committed, and then add in my changes. I think between the two of us we'll get close to 100% -- ___ Python tracker <http://bugs.python.o

[issue19382] tabnanny unit tests

2013-10-24 Thread Colin Williams
New submission from Colin Williams: I didn't test the stdout and stderr stuff, but I got the module up to 74% coverage. -- files: tabnanny.patch keywords: patch messages: 201194 nosy: Colin.Williams priority: normal severity: normal status: open title: tabnanny unit tests Added

[issue19350] macurl2path coverage

2013-10-22 Thread Colin Williams
New submission from Colin Williams: Ported the tests built into the library requiring manual verification over to the testing framework. Those tests only provided 77% coverage, so I improved that up to 99%. Can't get the last line because it's only reachable on older

[issue19265] Increased test coverage for datetime pickling

2013-10-15 Thread Colin Williams
New submission from Colin Williams: This just increases test coverage for the datetime module by one line. -- components: Library (Lib) files: datetimepickling.patch keywords: patch messages: 13 nosy: Colin.Williams priority: normal severity: normal status: open title: Increased

[issue18108] shutil.chown should support dir_fd and follow_symlinks keyword arguments

2013-05-31 Thread Colin Watson
New submission from Colin Watson: Python 3.3 added the dir_fd and follow_symlinks keyword arguments to os.chown; it also added the shutil.chown function. Unfortunately the latter, while useful, does not support these new keyword arguments. It would be helpful if it did

[issue1525919] email package quoted printable behaviour changed

2013-03-19 Thread Colin Su
Changes by Colin Su : -- assignee: -> docs@python components: +Documentation -Library (Lib), email nosy: +docs@python ___ Python tracker <http://bugs.python.org/issue1

[issue1525919] email package quoted printable behaviour changed

2013-03-19 Thread Colin Su
Colin Su added the comment: Confirmed with David, we work on this together on sprints. This is not a bug, if you do "set_payload" directly by yourself, you need to encode the payload by yourself because set_payload() doesn't encode payload if 'Content-Transfer

[issue1525919] email package quoted printable behaviour changed

2013-03-19 Thread Colin Su
Changes by Colin Su : -- versions: +Python 2.7, Python 3.2, Python 3.3, Python 3.4 -Python 2.4 ___ Python tracker <http://bugs.python.org/issue1525919> ___ ___

[issue3840] if TESTFN == "/tmp/@test", some tests fail

2013-03-17 Thread Colin Su
Colin Su added the comment: TESTFN will be in format "@test_{pid}_tmp" instead of "@test" right now. So it's not easy to have exactly the same name "@test_{pid}_tmp" in case if you put "@test_{X}_tmp" (for X in range(1,10)) so many files int

[issue15716] Ability to specify the PYTHONPATH via a command line flag

2012-08-27 Thread Colin Su
Colin Su added the comment: started working on it :) -- ___ Python tracker <http://bugs.python.org/issue15716> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15716] Ability to specify the PYTHONPATH via a command line flag

2012-08-27 Thread Colin Su
Colin Su added the comment: s/properly/proper (typo) -- ___ Python tracker <http://bugs.python.org/issue15716> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15716] Ability to specify the PYTHONPATH via a command line flag

2012-08-27 Thread Colin Su
Colin Su added the comment: Could anyone provide some properly command line usage for this issue? ex. python -P "path_1:path_2:path_3" I think this point need to be discussed :D -- ___ Python tracker <http://bugs.python.o

[issue15716] Ability to specify the PYTHONPATH via a command line flag

2012-08-27 Thread Colin Su
Changes by Colin Su : -- nosy: +littleq0903 ___ Python tracker <http://bugs.python.org/issue15716> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15786] IDLE code completion window does not scoll/select with mouse

2012-08-26 Thread Colin Su
Colin Su added the comment: On which platform? -- nosy: +littleq0903 ___ Python tracker <http://bugs.python.org/issue15786> ___ ___ Python-bugs-list mailin

[issue14204] Support for the NPN extension to TLS/SSL

2012-05-02 Thread Colin Marc
Colin Marc added the comment: Ah ok, just curious. Thanks! -- ___ Python tracker <http://bugs.python.org/issue14204> ___ ___ Python-bugs-list mailing list Unsub

[issue14204] Support for the NPN extension to TLS/SSL

2012-05-02 Thread Colin Marc
Colin Marc added the comment: Just noticed this is missing from "What's new in Python 3.3": http://docs.python.org/dev/whatsnew/3.3.html. Should I submit a patch for that? -- ___ Python tracker <http://bugs.pyt

[issue13344] closed sockets don't raise EBADF anymore

2012-04-20 Thread Colin Marc
Changes by Colin Marc : -- nosy: +colinmarc ___ Python tracker <http://bugs.python.org/issue13344> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14204] Support for the NPN extension to TLS/SSL

2012-03-12 Thread Colin Marc
Colin Marc added the comment: More updates to the patch. -- Added file: http://bugs.python.org/file24797/npn_patch_py3.diff ___ Python tracker <http://bugs.python.org/issue14

[issue14204] Support for the NPN extension to TLS/SSL

2012-03-11 Thread Colin Marc
Colin Marc added the comment: Updated patch. -- Added file: http://bugs.python.org/file24786/npn_patch_py3.diff ___ Python tracker <http://bugs.python.org/issue14

[issue14204] Support for the NPN extension to TLS/SSL

2012-03-10 Thread Colin Marc
Colin Marc added the comment: Here's the OpenSSL code I referenced for my implementation. It's an excerpt of ssl/lib_ssl.c, starting at line 1514. -- Added file: http://bugs.python.org/file24778/npn_openssl_ref.c ___ Python trac

[issue14204] Support for the NPN extension to TLS/SSL

2012-03-10 Thread Colin Marc
Colin Marc added the comment: Oops, I had my vim configured wrong and left a few tab characters in there. Here's another updated patch =) -- Added file: http://bugs.python.org/file24777/npn_patch_py3.diff ___ Python tracker <http://bugs.py

[issue14204] Support for the NPN extension to TLS/SSL

2012-03-10 Thread Colin Marc
Colin Marc added the comment: Here's an updated patch against 3.3. -- Added file: http://bugs.python.org/file24775/npn_patch_py3.diff ___ Python tracker <http://bugs.python.org/is

[issue14204] Support for the NPN extension to TLS/SSL

2012-03-05 Thread Colin Marc
Colin Marc added the comment: Re the IETF draft: I'm not sure. However, I didn't actually have to implement the specification at all - that was all handled by OpenSSL. My patch just calls the appropriate SSL_CTX_* methods. Thanks for the tip. I'm still interested in this g

[issue14204] Support for the NPN extension to TLS/SSL

2012-03-05 Thread Colin Marc
Colin Marc added the comment: If I ported it to 3.3 or 3.4, would it then be backported to 2.7? Or is there zero chance of that either? If so, why? I apologize, I'm new to the process. -- ___ Python tracker <http://bugs.python.org/is

[issue14204] Support for the NPN extension to TLS/SSL

2012-03-05 Thread Colin Marc
New submission from Colin Marc : Recent versions of OpenSSL (1.0.1 and greater) support a new extension to SSL/TLS called Next Protocol Negotiation, defined here: http://tools.ietf.org/html/draft-agl-tls-nextprotoneg-02. The extension allows servers and clients to advertise which protocols

[issue13815] tarfile.ExFileObject can't be wrapped using io.TextIOWrapper

2012-01-18 Thread Colin Watson
New submission from Colin Watson : The file-like object returned by TarFile.extractfile can't be wrapped in an io.TextIOWrapper (which would be rather convenient in some cases to get something that reads str rather than bytes). The attached patch demonstrates the problem by way of a test

[issue1703592] have a way to ignore nonexisting locales in locale.setlocale

2010-09-17 Thread Colin Watson
Colin Watson added the comment: Yes, the same symptoms are still present. I'd argue that it generally isn't an error in practice for applications, and thus the net effect of this exception is negative; it's extraordinarily rare for a crash to be preferable to running witho

[issue8819] variable resolution within exec() incorrect

2010-05-26 Thread Colin Hawkett
Colin Hawkett added the comment: Apologies for raising it in the tracker against your advice. My thinking was that you were suggesting discussions about 3.x content shouldn't be in the tracker, and I wanted to argue that it is a bug and should be fixed i

[issue991196] An inconsistency with nested scopes

2010-05-26 Thread Colin Hawkett
Colin Hawkett added the comment: #8819 was closed as duplicate. That issue linked a description of the problem on stack overflow http://stackoverflow.com/questions/2904274/globals-and-locals-in-python-exec. I would like to argue that this is a bug, and should be fixed in 2.6+. The

[issue8819] variable resolution within exec() incorrect

2010-05-26 Thread Colin Hawkett
Colin Hawkett added the comment: Agreed, this is the same issue. I'll make my argument that this is a bug (intentional or otherwise) on that issue. -- ___ Python tracker <http://bugs.python.org/i

[issue8819] variable resolution within exec() incorrect

2010-05-25 Thread Colin Hawkett
New submission from Colin Hawkett : A discussion on stack overflow - http://stackoverflow.com/questions/2904274/globals-and-locals-in-python-exec - has led to the conclusion that the variable lookup behaviour within code run using exec() is not behaving as expected. Variable lookup inside a

[issue1117601] os.path.exists returns false negatives in MAC environments.

2009-08-24 Thread Colin Alston
Colin Alston added the comment: I also hit upon this issue and IMHO returning False in a "permission denied" scenario is less than obvious behaviour. It also means I have no way to catch this edge case in my own code immediately, I have to implement far larger logic to check no

[issue6686] xml.sax.xmlreader.XMLReader.getProperty (xml.sax.handler.property_xml_string) returns bytes

2009-08-12 Thread Colin Stewart
Colin Stewart added the comment: Adding second patch. -- Added file: http://bugs.python.org/file14702/expatreader.py.patch2 ___ Python tracker <http://bugs.python.org/issue6

[issue6686] xml.sax.xmlreader.XMLReader.getProperty (xml.sax.handler.property_xml_string) returns bytes

2009-08-12 Thread Colin Stewart
Colin Stewart added the comment: I'm not familiar with the inner workings of the expat integration with Python, so the attached patches need careful review. The first patch (expatreader.py.patch) is the minimum to resolve this issue. The second patch (expatreader.py.patch2) also expose

[issue6686] xml.sax.xmlreader.XMLReader.getProperty (xml.sax.handler.property_xml_string) returns bytes

2009-08-11 Thread Colin Stewart
New submission from Colin Stewart : The documentation for the xml.sax.handler.property_xml_string SAX property states that it should be "data type: String". However when retrieving this value in Python 3.1 it returns a bytes object instead. This makes handling the returned value very

[issue6571] Help index

2009-07-25 Thread Colin J. Williams
New submission from Colin J. Williams : Shift operators. It would be good if "<<" and ">>" could be included in the index. Incidentally, the usage seems counter-intuitive. One would expect ">>" to be a shift to the right and "<<&quo

[issue1652] subprocess should have an option to restore SIGPIPE to default action

2009-07-02 Thread Colin Watson
Colin Watson added the comment: Is there anything more I can do to move this along? Thanks. -- ___ Python tracker <http://bugs.python.org/issue1652> ___ ___ Pytho

[issue4280] Version Checker

2008-11-07 Thread Colin J. Williams
New submission from Colin J. Williams <[EMAIL PROTECTED]>: Versions 2.5, 2.6 and 3.0 contain a Version Checker in the Tools directory. This appears to no longer serve a useful purpose. Perhaps it can be dropped from the distribution. Colin W -- components: Tests

[issue1652] subprocess should have an option to restore SIGPIPE to default action

2008-04-29 Thread Colin Watson
Colin Watson <[EMAIL PROTECTED]> added the comment: 2.6 is fine if that's what the release process dictates; I don't want it to be lost, that's all. __ Tracker <[EMAIL PROTECTED]> <ht

[issue1652] subprocess should have an option to restore SIGPIPE to default action

2008-02-01 Thread Colin Watson
Colin Watson added the comment: To be quite honest I can't think of any incompatibilities that wouldn't have the basic result of improving matters. I put the migration stuff in my bug report in case somebody else could, because I don't want the bug fix to stall on that. My pref

[issue1170] shlex have problems with parsing unicode

2007-12-22 Thread Colin Walters
Colin Walters added the comment: Patch to add Unicode support. Note: this patch recodes shlex.py from iso-8859-1 to utf-8, so it has mixed encodings. -- nosy: +cgwalters Added file: http://bugs.python.org/file9025/shlex-unicode.patch __ Tracker <[EM

[issue1652] subprocess should have an option to restore SIGPIPE to default action

2007-12-18 Thread Colin Watson
New submission from Colin Watson: On Unix, Python sets SIGPIPE to SIG_IGN on startup, because it prefers to check every write and raise an IOError exception rather than taking SIGPIPE. This is all well and good for Python itself. However, non-Python Unix subprocesses generally expect to have