[issue13508] ctypes' find_library breaks with ARM ABIs

2021-02-08 Thread Trevor Newton
Trevor Newton added the comment: I am still encountering this issue when using pyudev on Python 3.8.5. -- nosy: +trevor.newton ___ Python tracker <https://bugs.python.org/issue13

[issue42774] 'ipaddress' module, bad result for 'is_private' on "192.0.0.0"

2020-12-28 Thread Trevor Marvin
Change by Trevor Marvin : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue42774> ___ ___

[issue42774] 'ipaddress' module, bad result for 'is_private' on "192.0.0.0"

2020-12-28 Thread Trevor Marvin
New submission from Trevor Marvin : Tested on Python 3.6.9 with "ipaddress" module, module version 1.0. ipaddress.ip_address('192.0.0.0').is_private Incorrectly returns as 'True'. Per RFC 1918 / BCP 5, section 3, the private IPv4 space sarting with

[issue42270] libregrtest BrokenPipeError on OpenEmbedded builds

2020-11-05 Thread Trevor
New submission from Trevor : In OpenEmbedded we have a test wrapper for tests such as those in Python, and currently we are experiencing the following error when running them: sed: couldn't flush stdout: Resource temporarily unavai

[issue17703] Trashcan mechanism segfault during interpreter finalization in Python 2.7.4

2018-12-24 Thread Trevor Joynson
Trevor Joynson added the comment: I can also confirm that the included patch does "workaround" the issue. A big pain point here for me is in determining what exit handler is causing this. GDB has been it's usual great help in determining information about the exact se

[issue17703] Trashcan mechanism segfault during interpreter finalization in Python 2.7.4

2018-12-24 Thread Trevor Joynson
Trevor Joynson added the comment: I can verify this bug does still in fact exist in all 3.x versions I've tested (3.4-3.7). It's been the cause of many long-standing segfaults we've been having at exit in applications that use OpenRAVE and/or boost::python::numeric.

[issue33008] urllib.request.parse_http_list incorrectly strips backslashes

2018-03-05 Thread W. Trevor King
New submission from W. Trevor King : Python currently strips backslashes from inside quoted strings: $ echo 'a="b\"c",d=e' | python3 -c 'from sys import stdin; from urllib.request import parse_http_list; print(parse_http_list(stdin.read()))' ['

[issue33003] urllib: Document parse_http_list

2018-03-05 Thread W. Trevor King
New submission from W. Trevor King : Python has had a parse_http_list helper since urllib2 landed in 6d7e47b8ea (EXPERIMENTAL, 2000-01-20). With Python3 it was moved into urllib.request, and the implementation hasn't changed since (at least as of 4c19b9573, 2018-03-05). External pro

[issue26080] "abandonned" -> "abandoned" in PEP 510's https://hg.python.org/peps/rev/b463c740990c

2016-01-11 Thread W. Trevor King
New submission from W. Trevor King: In the recently-landed [1], There was also the Unladen Swallow project, but it was abandonned in 2011. Should have used “abandoned” instead of “abandonned”. [1]: https://hg.python.org/peps/rev/b463c740990c changeset: 6155:b463c740990c user

[issue25852] smtplib's SMTP.connect() should store the server name in ._host for .starttls()

2015-12-12 Thread W. Trevor King
New submission from W. Trevor King: With the current tip, starttls uses ._host when calling wrap_socket [1], but ._host is only setup in SMTP.__init__ [2]. Before #22921 [3] starttls would ignore ._host when SNI wasn't available locally. But as far as I can tell, starttls has never

[issue24086] Configparser interpolation is unexpected

2015-05-04 Thread Trevor Bekolay
Trevor Bekolay added the comment: Thanks for the quick response! I can see the use case for using interpolation in .pypirc. Unfortunately for me, I push releases for both Python 2 and Python 3, so having the double percent sign will cause problems for me on Python 2. The exception that&#

[issue24086] Configparser interpolation is unexpected

2015-04-30 Thread Trevor Bekolay
New submission from Trevor Bekolay: I was having an issue installing a package in Python 3, which installed properly in Python 2. This is the error message I got: Complete output from command python setup.py egg_info: Traceback (most recent call last): ... snip unhelpful traceback

[issue22684] message.as_bytes() produces recursion depth exceeded

2014-11-07 Thread W. Trevor King
W. Trevor King added the comment: In email._header_value_parser._Folded.append_if_fits, if I shift: if token.has_fws: ws = token.pop_leading_fws() if ws is not None: self.stickyspace += str(ws) stickyspace_len

[issue22684] message.as_bytes() produces recursion depth exceeded

2014-11-07 Thread W. Trevor King
W. Trevor King added the comment: The troublesome header formatting is: >>> import email.policy >>> email.policy.SMTP.fold_binary('Cc', 'notmuch\n\t,\n\tpublic-notmuch-gxuj+tv9eo5zyzon3hd...@plane.gmane.org,\n\tRainer M Krug ,\n\tJeremy Nickurak\n\t

[issue22684] message.as_bytes() produces recursion depth exceeded

2014-11-07 Thread W. Trevor King
W. Trevor King added the comment: Here's an example from the notmuch list. You can trigger the exception in Python 3.4 with: >>> import email.policy >>> import mailbox >>> mbox = mailbox.mbox('msg.mbox', factory=None, create=False) >>&

[issue21226] PyImport_ExecCodeModuleObject not setting module attributes

2014-04-14 Thread Trevor Caira
New submission from Trevor Caira: In Python/import.c, PyImport_ExecCodeModuleObject creates a new module object but doesn't set all of the attributes required for modules, such as __spec__ or __loader__. This breaks mod_wsgi from 3.3 and up, which depends on PyImport_ExecCodeModuleEx,

[issue12853] global name 'r' is not defined in upload.py

2013-10-11 Thread W. Trevor King
W. Trevor King added the comment: I just posted a patch fixing this in the current master branch [1]. Ned Deily pointed out that my Issue19226 duplicated an earlier Issue17354, which also has a patch fixing this problem. Merging either one of these patches should close this issue. I like

[issue19226] distutils/command/upload.py show response gives: TypeError: sequence item 1: expected str instance, bytes found

2013-10-11 Thread W. Trevor King
W. Trevor King added the comment: On Fri, Oct 11, 2013 at 05:21:15PM +, Ned Deily wrote: > This problem has been reported previously as Issue17354, a duplicate > of Issue12853 which is still open at the moment. Ah, I searched for a fwe possible subject lines, but didn't hit t

[issue19226] distutils/command/upload.py show response gives: TypeError: sequence item 1: expected str instance, bytes found

2013-10-11 Thread W. Trevor King
New submission from W. Trevor King: Avoid: Traceback (most recent call last): File "setup.py", line 61, in 'html2text (>=3.0.1)', File "/.../python3.2/distutils/core.py", line 148, in setup dist.run_commands() File "/

[issue19142] Cross-compile fails trying to execute foreign pgen on build host

2013-10-08 Thread Trevor Bowen
Trevor Bowen added the comment: I executed "make touch" between "configure" and "make", but the build process still created Parser/pgen and then tried to use it, which of course crashed the build, since pgen was compiled for the embedded host not the build sy

[issue19142] Cross-compile fails trying to execute foreign pgen on build host

2013-10-08 Thread Trevor Bowen
Trevor Bowen added the comment: Thanks, David! I have no interest in running pgen on the target/host. My only interest is building python and its various modules to run on my embedded host. I do not want to develop Python on the embedded host. Unfortunately, the build process requires

[issue19142] Cross-compile fails trying to execute foreign pgen on build host

2013-10-08 Thread Trevor Bowen
Trevor Bowen added the comment: I thought "make touch" was only for those trying to build from the Mecurial source, as opposed to building from the released tar-ball source. I thought my efforts laid on the other side of the need for that command. If I understood wrong, when woul

[issue19142] Cross-compile fails trying to execute foreign pgen on build host

2013-10-07 Thread Trevor Bowen
Trevor Bowen added the comment: FWIW, I also explored my original proposal, which essentially moved the above script and modifications into the Python configure.ac and Makefile.pre.in files, so that Python's internal build process would create the native build system versions of Pytho

[issue19142] Cross-compile fails trying to execute foreign pgen on build host

2013-10-07 Thread Trevor Bowen
Trevor Bowen added the comment: Short version of cross-compile script without error checking: #!/bin/bash export RFS=/local/my_root_file_system make distclean rm -rf python_for_build Parser/pgen_for_build git checkout -- Makefile.pre.in Modules/Setup.dist configure setup.py ./configure make

[issue19142] Cross-compile fails trying to execute foreign pgen on build host

2013-10-07 Thread Trevor Bowen
Trevor Bowen added the comment: In the vein of: http://randomsplat.com/id5-cross-compiling-python-for-embedded-linux.html I have created a patch and top-level build script, which builds the requisite python interpreter and Parser/pgen binary to run on the build system, which are both used

[issue19142] Cross-compile fails trying to execute foreign pgen on build host

2013-10-02 Thread Trevor Bowen
Trevor Bowen added the comment: Ok, thanks for the tips. I'm new to developing on Python itself. I'll start simple by trying to develop a set of patches for the 2.7.5 source tar-ball, which I usually use to build Python. If that succeeds, I'll look into pushing it into the

[issue19142] Cross-compile fails trying to execute foreign pgen on build host

2013-10-01 Thread Trevor Bowen
Trevor Bowen added the comment: Sorry, I do not mean to compound an already open and complex problem. I thought that the fixes in 2.7.4 were meant in part to help alleviate this problem. I had not found any feedback or tutorials, so I wanted to provide a status update of sorts. I'm

[issue19142] Cross-compile fails trying to execute foreign pgen on build host

2013-10-01 Thread Trevor Bowen
New submission from Trevor Bowen: FWIW, I'm using a Freescale cross-compile tool-chain on a Linux x86-64 build host, although I have duplicated the cross-compile error on an x86 Ubunutu 10.04 build host. Steps to reproduce: $ wget http://www.python.org/ftp/python/2.7.5/Python-2.7.5.ta

[issue9253] argparse: optional subparsers

2013-01-18 Thread W. Trevor King
W. Trevor King added the comment: Since [1] it seems like subparsers *are* optional by default. At least I get “error: too few arguments” for version 70740 of Lib/argparse.py, but no error for version 70741. It looks like this may be an unintentional side effect, since I see no mention of

[issue13558] multiprocessing package incompatible with PyObjC

2011-12-08 Thread Trevor Bentley
New submission from Trevor Bentley : The multiprocessing package appears to spawn a new process by calling only fork(). Apple's CoreFoundation libraries (and possibly more, I do not know the full extent) *require* new processes to be spawned with the full fork()+exec*() combo. When

[issue12386] packaging fails in install_distinfo when writing RESOURCES

2011-08-31 Thread trevor
trevor added the comment: [eric.araujo] > Do you see that when running a test, a command or some other code? when attempting to install a self-created package. tools from 3.3a ~72060:1696e2789d91 -- ___ Python tracker <http://bugs.pyth

[issue12386] packaging fails in install_distinfo when writing RESOURCES

2011-08-25 Thread trevor
trevor added the comment: i see the same behavior - the error occurs leaving an empty RESOURCES file -- ___ Python tracker <http://bugs.python.org/issue12

[issue12830] --install-data doesn't effect resources destination

2011-08-24 Thread trevor
New submission from trevor : attempting to point the relative destination with "--install-data" does not seem to have an effect. the specified directory is created, but resources are still installed relative to the present working directory. setup.cfg: [files] resources = ext

[issue12386] packaging fails in install_distinfo when writing RESOURCES

2011-08-24 Thread trevor
Changes by trevor : -- nosy: +trevor ___ Python tracker <http://bugs.python.org/issue12386> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue12388] cannot specify recursive extra_files in packaging setup.cfg

2011-08-24 Thread trevor
Changes by trevor : -- nosy: +trevor ___ Python tracker <http://bugs.python.org/issue12388> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue9640] Improved doctest REPORT_*DIFFs with ELLIPSIS and/or NORMALIZE_WHITESPACE

2010-08-19 Thread W. Trevor King
W. Trevor King added the comment: Here's my patch, or pull from my Mercurial repository http://www.physics.drexel.edu/~wking/code/hg/hgwebdir.cgi/python/rev/6638df20c1a4 -- keywords: +patch Added file: http://bugs.python.org/file18575/doctest_diff.

[issue9640] Improved doctest REPORT_*DIFFs with ELLIPSIS and/or NORMALIZE_WHITESPACE

2010-08-19 Thread W. Trevor King
New submission from W. Trevor King : I had been struggling to find the failure-causing mismatch in a doctest with lots of output. REPORT_UDIFF gave lots of false mismatches because I was also using NORMALIZE_WHITESPACE. Looking through the doctest.py source, I saw a comment suggesting a

[issue5752] xml.dom.minidom does not escape CR, LF and TAB characters within attribute values

2010-08-03 Thread W. Trevor King
W. Trevor King added the comment: And while we're at it, we should also .replace('&', '&').replace('"', """).replace('<', '<') which would have to go at the beginning to avoid double-escaping th

[issue5752] xml.dom.minidom does not escape CR, LF and TAB characters within attribute values

2010-08-02 Thread W. Trevor King
W. Trevor King added the comment: As a workaround until the patch gets included, you can import this monkey patch module. -- nosy: +labrat Added file: http://bugs.python.org/file18325/minidom.py ___ Python tracker <http://bugs.python.org/issue5

[issue6612] 'import site' fails when called from an unlinked directory

2010-07-29 Thread W. Trevor King
W. Trevor King added the comment: I just fixed it myself ;). As I said before, not really a big deal, but it was an easy fix. I've attached a patch, or you can merge my hg branch f python-trunk at http://www.physics.drexel.edu/~wking/code/hg/hgwebdir.cgi/python/ -- key

[issue6612] 'import site' fails when called from an unlinked directory

2009-07-31 Thread W. Trevor King
New submission from W. Trevor King : I don't imagine this comes up very often, but: $ mkdir /tmp/a; cd /tmp/a; rmdir /tmp/a; python -c 'import site'; rmdir: removing directory, /tmp/a 'import site' failed; use -v for traceback Traceback (most recent call last): Fi

[issue936813] fast modular exponentiation

2009-02-19 Thread Trevor Perrin
Trevor Perrin added the comment: Hi Mark, Let me know if I can give you any help with this. The original patch was split into 3 parts. The only part remaining unapplied is the Montgomery Reduction. It appeared to be a significant speedup when I was last testing, and is frequently used in

[issue3040] optparse documentation: variable arguments example doesn't work as listed

2008-06-04 Thread Trevor Meyerowitz
New submission from Trevor Meyerowitz <[EMAIL PROTECTED]>: There are two minor bugs in the example in: http://docs.python.org/lib/optparse-callback-example-6.html For the optparse example documentation, the call to parser.add_option is listed as: parser.add_option("-c&qu