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
Change by Trevor Marvin :
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue42774>
___
___
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
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
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
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.
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()))'
['
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
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
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
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
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
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
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
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)
>>&
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,
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
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
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 "/
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
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
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
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
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
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
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
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
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
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
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
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
trevor added the comment:
i see the same behavior - the error occurs leaving an empty RESOURCES file
--
___
Python tracker
<http://bugs.python.org/issue12
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
Changes by trevor :
--
nosy: +trevor
___
Python tracker
<http://bugs.python.org/issue12386>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
Changes by trevor :
--
nosy: +trevor
___
Python tracker
<http://bugs.python.org/issue12388>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
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.
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
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
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
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
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
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
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
43 matches
Mail list logo