New submission from Mike Smith :
Using += to append to a list inside a tuple raises a TypeError but succeeds in
appending the value anyway:
>>> t = (1, [2, 3, 4])
>>> t[1].append(5)
>>> t[1] += [6]
Traceback (most recent call last):
File "", line 1, i
Mike Frysinger added the comment:
i really dont understand your point. python uses autoconf and therefore any
questions about python's usage of autoconf to accomplish cross-compiles is
completely valid here.
no one was asking for general autoconf
New submission from Mike Kamermans :
page 8 for the python 3.2 refernce document ("identifiers and keywords") has
text that runs way past the page. This document (and probably every other
document) should be run through LaTeX again with draft, to find all instances
where text does
Mike Beachy added the comment:
I've been in contact w/ Barry Scott offline re: the monkey patch previously
mentioned. I'm attaching a 2.7 maintenance branch patch that he has needed to
extend, and plans to follow up on.
--
Added file: http://bugs.python.org/file20798/2
Mike Beachy added the comment:
Attached to this comment (can you attach multiple files at once?) is the
somewhat moldy 2.6.4 monkey patch, mercilessly ripped from my own code and
probably not good for much.
--
Added file: http://bugs.python.org/file20799/monkey_2_6_4.py
Mike Lisanke <[EMAIL PROTECTED]> added the comment:
Isn't this a critical problem. The .poll() function serves as a means to
check the status of the process started. When it continues to report
'None' to a process which has already terminated, it creates a false
posit
New submission from Mike Speciner <[EMAIL PROTECTED]>:
In 2.5, exec(open(filename)), where filename refers to a file with
python code, executes the code.
In 2.5, open returns an open file, but in 3.0, open returns a stream,
and so exec (which wants "a string, file, or code
Mike Speciner <[EMAIL PROTECTED]> added the comment:
I'm actually quite new to Python. My current interpreter of choice is
PostScript, followed by Matlab, but I've been discouraged from using
either one here at EMC. (PostScript because it's obscure, Matlab because
it
Mike Speciner <[EMAIL PROTECTED]> added the comment:
Well, I think I found exec in bltinmodule.c,
but execfile isn't in that file. [In the 3.0 tree.]
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.
New submission from Mike Speciner <[EMAIL PROTECTED]>:
Tried this on wintel 32-bit
(3.0b1 (r30b1:64403M, Jun 19 2008, 14:56:09) [MSC v.1500 32 bit (Intel)]
--
messages: 68853
nosy: ms
severity: normal
status: open
title: inf*inf gives inf, but inf**2 gives overflow error
type: be
Changes by Mike Coleman <[EMAIL PROTECTED]>:
--
nosy: +mkc
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3262>
___
___
Python-bugs
Mike Coleman <[EMAIL PROTECTED]> added the comment:
I don't want to discourage you, but #852532, which is essentially the
same bug report, was closed--without explanation--as 'wont fix' in
April, after four-plus years. I wish you good luck--this is an
important and irritati
Mike Coleman <[EMAIL PROTECTED]> added the comment:
I think it's probably both. The original design was incorrect, though
this probably wasn't apparent to the designer. But as a significant
user of 're', it really stands out as a problem.
New submission from Mike Speciner <[EMAIL PROTECTED]>:
The math module contains log1p but is missing expm1 (the inverse of
log1p). These functions are necessary to avoid loss of precision in
floating point calculations, and are part of the C99 standard math library.
--
components
Mike Coleman <[EMAIL PROTECTED]> added the comment:
Okay. For what it's worth, note that my original 2004 patch for this
(#988761) is completely backward compatible (a flag must be set in the
call to get the new behavior).
___
Python trac
New submission from Mike Speciner <[EMAIL PROTECTED]>:
I'm running Python 3.0b2 (r30b2:65106, Jul 18 2008, 18:44:17) [MSC
v.1500 32 bit (Intel)] on win32.
Typing help('finally') loops, repeatedly typing the following two lines
File "C:\Python30\lib\pydoc.py", l
Mike Statkus <[EMAIL PROTECTED]> added the comment:
Example of UnicodeWriter.writerow(self,row) presented in Python 2.5
Manual at section 9.1.5 (Examples on CSV module of standard library)
does not correctly process rows containing not only strings, but also
int type values, raising an att
New submission from Mike Auty <[EMAIL PROTECTED]>:
I'm testing out Python-2.6b3 and attempted to build wxpython-2.8.8.1.
It creates a subclassed CCompiler (MyUnixCCompiler), which overrides the
_compile function, with the following signature:
_compile(self, obj, src, e
Mike Auty <[EMAIL PROTECTED]> added the comment:
Sorry, scratch that, it turned out to be a patch added by a local
packager. I don't seem to be able to close my own bug, but for anyone
who's triaging this, please mark this as CLOSED/INVALID or similar.
Sorry for t
Mike Auty <[EMAIL PROTECTED]> added the comment:
You're absolutely right, it was a Gentoo patching issue. Thanks very
much for the link to the bug, I would never have found it myself! 5:)
I'm off to go try and convince them it's a bad ide
New submission from Mike Clark :
Good behavior:
>>> 0.0**0.0
1.0
>>>
Bad behavior:
>>> Decimal('0.0')**Decimal('0.0')
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python2.6/decimal.py", line 2101, i
Mike Crute added the comment:
Bump. Updated the patch against trunk.
--
nosy: +mcrute
Added file: http://bugs.python.org/file15969/broken_pipe.patch
___
Python tracker
<http://bugs.python.org/issue6
New submission from mike bayer :
given the following Python 2 source file:
# -*- encoding: utf-8
print 'bien mangé'
It can be converted to Python 3 using 2's 2to3 tool:
classic$ 2to3 test.py
... omitted ...
--- test.py (original)
+++ test.py (refactor
mike bayer added the comment:
yes, its handled:
WARNING: couldn't encode test.py's diff for your terminal
is that fix specific to 2to3 or is that just how "print" works in 3.2 ?
--
___
Python tracker
<http://bu
Changes by Mike Kelly :
--
nosy: +pioto
___
Python tracker
<http://bugs.python.org/issue8193>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
New submission from Mike Kent :
If select.select() returns two or more empty lists, these empty lists will all
refer to the same list; that is, they will have identical id()'s. If you then
have reason to alter one of the returned empty lists, you are altering all of
the returned empty
Changes by Mike Kent :
--
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue8329>
___
___
Python-bugs-list mailing list
Unsubscri
Mike Beachy added the comment:
I have worked up a monkey patch for urllib2/httplib for the issue of setting
the authentication using a Proxy(Basic|Digest)AuthHandler.
The basic approach was to create a new httplib exception (ProxyTunnelError) and
raise that with the http response attached so
New submission from mike s :
The SMTPServer supplied by the smtpd library allows clients to send mail to any
domain. This makes the server attractive to spammers, thinking they have found
an open relay.
The patch below adds an "accept_domain" method to SMTPServer (documented below)
Changes by mike s :
--
title: smtpd module does not allow -> smtpd module does not allow domain
filtering
___
Python tracker
<http://bugs.python.org/iss
Changes by mike s :
--
title: smtpd module does not allow domain filtering -> smtpd SMTPServer does
not allow domain filtering
___
Python tracker
<http://bugs.python.org/iss
mike s added the comment:
I don't think that is a suitable solution for this problem, because the
expected SMTP behavior is to reject an unsuitable RCPT TO directly after it is
proposed by the client.
However, I think it would be a great idea to have such a method being called
after th
Changes by Mike Savory:
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1471>
__
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/op
Mike Savory added the comment:
Similar issue seen in 64 bit OSX 10.5
File "./ajaxterm.py", line 418, in create
fcntl.ioctl(fd,
struct.unpack('i',struct.pack('I',termios.TIOCSWINSZ))[0],
struct.pack("",h,w,0,0))
IOError: [Errno 25] Inappro
Mike Klaas added the comment:
Updated patch, now with documentation and test. Patch is against
2.6trunk, but probably will apply against 3.0 as well
--
components: +Library (Lib) -Interpreter Core
versions: +Python 2.6 -Python 2.5
Added file: http://bugs.python.org/file9070
Mike Beachy added the comment:
Urgh. Re-reading this, I could barely understand what the hell I was saying.
The problem: 64 bit compiles will dump core when readline is used if
they don't properly identify the presence of readline and use the system
headers.
The solution: fix autoco
New submission from Mike Klaas:
There are a small number of sites that do not send the trailing \r\n when
using chunked transfer encoding (say 1 in 500,000). This unfortunately,
causes httplib to go into an infinite loop.
Fixed by checking for EOF (3 line patch)
--
components
Mike Klaas added the comment:
I wouldn't advocate that it go in to 2.3/2.4. The only security issue is
a possible DoS, but I think that is unlikely. There is already an "attack
vector" for python code using (timeout-less) httplib by simply returning
the response very sl
New submission from Mike Coleman:
In asynchat, 'push' doesn't specify 'buffer_size', so the default of 512
is used. This is bogus and causes poor performance--it should use the
value of 'ac_out_buffer_size' instead.
--
components: Library (Lib)
Mike Coleman added the comment:
The value is used there, but this is not effective in causing larger
packets to be sent, which I noticed by watching with strace. I think
the reason for this is that 'refill_buffer' will only make at most one
call to simple_producer.more, and that
Mike Coleman added the comment:
The other place I see the constant is in asyncore.py:
class dispatcher_with_send(dispatcher):
def __init__(self, sock=None, map=None):
dispatcher.__init__(self, sock, map)
self.out_buffer = ''
def initiate_send(self):
Mike Bonnet added the comment:
How can this be considered a new feature? Code that worked under
python2.4 fails under python2.5 as a result of this bug. That is
clearly a regression. I think that qualifies it for a backport to
python2.5.
_
Tracker <[EM
Mike Beachy added the comment:
This request was implemented in 1663234, so this case can be closed.
--
nosy: +mbeachy
_
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/iss
Mike Beachy added the comment:
The basic issue here is that running in verbose mode echoes back the
expected values from the file, so the results from non-ascii doctest
files must be encoded before printing.
It looks to me like the DocTestRunner class must grow an '_encoding'
attribu
Mike Beachy added the comment:
Here's a patch for test_doctest.py that checks the problem has been fixed.
Added file: http://bugs.python.org/file9534/test_doctest.patch
_
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.or
Mike Taylor <[EMAIL PROTECTED]> added the comment:
Hi,
it was running on FC4 with UTF-32 support and was using the Japanese locale.
The bug is reproducible using any doctest that is stored in a mixed
character path. where it is in the Chandler tree is not easily pulled
apart but if you
Mike Taylor <[EMAIL PROTECTED]> added the comment:
Not in the system PATH but in the path where the file is stored:
Here is the original traceback from the bug report for Chandler:
Traceback (most recent call last):
File
"/Development/osaf/chandler_石田リチャード/chandler/release/Library
Mike Coleman <[EMAIL PROTECTED]> added the comment:
[Tracker bounced this the first time...]
> I haven't run it, but just browsing the trunk source, it appears to
> still be present. In fact, asynchat.py and asyncore.py have
> apparently not been changed in two years. A
Mike Coleman <[EMAIL PROTECTED]> added the comment:
I'd feel better about this bug being 'wont fix'ed if I had a sense that
several people considered the patch and thought that it sucked. At the
moment, it seems more like it just fell off of the end without ever
being s
New submission from Mike MacFaden <[EMAIL PROTECTED]>:
the url
http://docs.python.org/lib/node633.html
states
1) address_family
The family of protocols to which the server's socket belongs.
socket.AF_INET and socket.AF_UNIX are two possible values.
would sugges
New submission from Mike MacFaden <[EMAIL PROTECTED]>:
the url
http://docs.python.org/lib/socket-example.html
gives an example that uses socket.getaddrinfo that has this code
HOST=''
...
for res in socket.getaddrinfo(HOST, PORT, socket.AF_UNSPEC,
socke
Mike MacFaden <[EMAIL PROTECTED]> added the comment:
Martin v. Löwis wrote:
> Martin v. Löwis <[EMAIL PROTECTED]> added the comment:
>
> What operating system are you using? It could be a bug in the
> operating system as well.
hi martin,
what i've tested so far..
Mike MacFaden <[EMAIL PROTECTED]> added the comment:
Martin v. Löwis wrote:
> Martin v. Löwis <[EMAIL PROTECTED]> added the comment:
>
> I fail to see the issue. There are many other address
> families supported as well, such as AF_BLUETOOTH, AF_PACKET,
> AF_TIPC, a
Mike MacFaden <[EMAIL PROTECTED]> added the comment:
so i suggest just removing this sentence --
AF_INET and socket.AF_UNIX are two possible values.
this would imply that all socket address families are supported.
but if that is not true just list the exce
Mike MacFaden <[EMAIL PROTECTED]> added the comment:
then change 'possible values' to 'for example'
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2741>
__
_
New submission from Mike Watkins <[EMAIL PROTECTED]>:
Running example code from docs:
http://docs.python.org/dev/3.0/library/xmlrpc.client.html#example-of-
client-usage
z% python
Python 3.0rc2+ (py3k:67152, Nov 7 2008, 16:48:55)
[GCC 4.2.1 20070719 [FreeBSD]] on freebsd7
Type
Mike Watkins <[EMAIL PROTECTED]> added the comment:
Running the same code today passes, despite the fact I'm still running
the same svn version. Bizarre.
However the core reported issue - SlowParser being undefined in the
module, remains.
___
New submission from Mike Watkins <[EMAIL PROTECTED]>:
What's new in 3.0 documentation says cmp() function is gone, yet it
isn't:
>>> sys.version_info; cmp(1,1); cmp(1,2); cmp(2,1)
(3, 0, 0, 'final', 0)
0
-1
1
--
assignee: georg.brandl
components:
mike bayer <[EMAIL PROTECTED]> added the comment:
This bug can be reproduced very easily:
import pickle
class MyClass(object):
pass
m = MyClass()
m2 = MyClass()
s = set([m])
m.foo = set([m2])
m2.foo = s
print pickle.dumps(s)
This bug is cr
New submission from Mike Coleman :
I was thrown by the "Failed to find the necessary bits to build these
modules" message at the end of newer Python builds, and thought that
this indicated that the Python executable itself was not built.
That's arguably stupidity on my part,
New submission from Mike Watkins :
HTTPMessage.getallmatchingheaders() stopped working sometime after
Python 3.0 release. In a recent (1 day ago) svn update the
implementation says the method was copied from rfc822.message; the
Python 3.x implementation is broken (iterates through self.keys
New submission from Mike Watkins :
There appears to have been a bug in how HTTP_ACCEPT is parsed living in
run_cgi() for eons, perhaps from the time it was written. Perhaps not
many are using this code (I'm not either) but recent (post 3.0 Release)
Python 3.x appear to have broken some
Mike Watkins added the comment:
Trivial patch for http.client attached.
--
keywords: +patch
Added file: http://bugs.python.org/file12858/http.client.py.patch
___
Python tracker
<http://bugs.python.org/issue5
Changes by Mike Watkins :
--
title: http.client.HTTPMessage.getallmatchingheaders() ->
http.client.HTTPMessage.getallmatchingheaders() always returns []
___
Python tracker
<http://bugs.python.org/iss
Mike Watkins added the comment:
Re diffs, noted for the future.
Re tests:
# py3k-devel/Lib/test % grep -r getallmatchingheaders *
... Returns nothing, so not only does the email package need a test for
this but so does http.client.
Incidentally test_mailbox.py has a test for the proposed
Mike Watkins added the comment:
Further investigation ( grep -r getallmatchingheaders Lib/* ) reveals
that in addition to having no tests, and being implemented incorrectly
in http.client, getallmatchingheaders() is called only once, in
http.server; that code is also broken (I reported this
Mike Coleman added the comment:
I'll go down to the cemetery and see if I can dig one up. :-)
All of our Tru64 machines have been powered-down for over three years
now, so as far as I'm concerned you can mark this one as no longer relevant.
mike mcleod added the comment:
Sorry, forgot this one. Would you like me to move this forward? Or do you want
to take it? I don't mind either way.
--
___
Python tracker
<https://bugs.python.org/is
mike mcleod added the comment:
After sync'ing to upstream/main and then running make html I get: ...
checking consistency... done
preparing documents... failed
Warning, treated as error:
unsupported theme option 'license_url' given
make: *** [Makefile:53: build] Error 2
I ca
New submission from mike mcleod :
After sync'ing to upstream/main and then
python/Doc on main via 🐍 v3.11.0a6+
❯ make html
mkdir -p build
Building NEWS from Misc/NEWS.d with blurb
PATH=./venv/bin:$PATH sphinx-build -b html -d build/doctrees -W . build/html
Running Sphinx v3.5.4
bui
mike mcleod added the comment:
Works for me. The command installed the correct version of Sphinx.
Thanks.
--
stage: -> resolved
status: pending -> closed
___
Python tracker
<https://bugs.python.org/i
Change by mike mcleod :
--
keywords: +patch
pull_requests: +30302
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/32230
___
Python tracker
<https://bugs.python.org/issu
Change by mike bayer :
--
nosy: +zzzeek
___
Python tracker
<https://bugs.python.org/issue47174>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Mike Gilbert :
--
keywords: +patch
pull_requests: +16418
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/16873
___
Python tracker
<https://bugs.python.org/issu
New submission from Mike Gilbert :
After upgrading to Python 3.7.5, several algorithms are unavailable in the
hashlib module.
This seems to have been caused by the "fix" for
https://bugs.python.org/issue33936. I will submit a PR with a more appropriate
change shortly.
Py
Mike Gilbert added the comment:
Then the OpenSSL documentation is wrong, or Python is subsequently doing
something to disable some algorithms.
--
___
Python tracker
<https://bugs.python.org/issue38
Mike Gilbert added the comment:
I see that generate_hash_name_list() calls EVP_MD_do_all() which calls
OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_DIGESTS, NULL);
I'm not sure why that doesn't do the job here.
--
___
Python track
Mike Gilbert added the comment:
Ok, so this appears to be working correctly on master. Just the 3.7 branch is
broken.
I think this is because we use OBJ_NAME_do_all instead of EVP_MD_do_all in 3.7.
I think backporting https://github.com/python/cpython/pull/16083 to 3.7 would
resolve this
New submission from Mike Driscoll :
I noticed that __set_name__ is not mentioned in
https://docs.python.org/3/howto/descriptor.html even though it was added in
https://www.python.org/dev/peps/pep-0487/ and mentioned here
https://docs.python.org/3/whatsnew/3.6.html#pep-487-descriptor-protocol
New submission from mike bayer :
So I'm pretty sure this is "not a bug" but it's a bit of a problem and I have a
user suggesting the "security vulnerability" bell on this one, and to be honest
I don't even know what any library would do to "prevent&
New submission from Mike Glover :
The attached file demonstrates the incorrect folding behavior I'm seeing.
Header lines of a certain total length get folded after the colon following the
header name, which is not valid RFC. Slightly longer or shorter lines are
folded corr
Mike Glover added the comment:
Further research shows that email.parser.Parser is not handling the affected
lines correctly -- the leading '\n ' is not being stripped from the header
value.
Attached is the (ugly, worksforme) function I'm using to workaround this problem
-
mike bayer added the comment:
>
I don't really know why it would be a "security vulnerability", but presumably
a library could either convert their datetimes to UTC as soon as they get them
from the user if they want to use them as UTC in the future, or they could
simpl
Change by Mike Lissner :
--
nosy: +Mike.Lissner
___
Python tracker
<https://bugs.python.org/issue43883>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Mike Lissner :
--
nosy: +Mike.Lissner
___
Python tracker
<https://bugs.python.org/issue43882>
___
___
Python-bugs-list mailing list
Unsubscribe:
Mike Lissner added the comment:
I haven't watched that Blackhat presentation yet, but from the slides, it seems
like the fix is to get all languages parsing URLs the same as the browsers.
That's what @orsenthil has been doing here and plans to do in
https://bugs.python.org/
Mike Lissner added the comment:
> Instead of the patches as you see them, we could've raised an exception.
In my mind the definition of a valid URL is what browsers recognize. They're
moving towards the WHATWG definition, and so too must we.
If we make python raise an excepti
Mike Lissner added the comment:
> I'd wonder how to pass through valid exceptions without urlparse raising
> something.
Oops, meant to say "valid URLs", not valid exceptions, sorry.
--
___
Python tracker
<https://bu
Mike Lissner added the comment:
> With the fix for this bug, urlsplit silently removes (some of) those
> characters before we can replace them, modifying the output of our
> sanitisation code
I don't have any good solutions for 3.9.5, but going forward, this feels like
anot
New submission from mike bayer :
segmentation fault related to object deallocation and traceback objects, is
extremely difficult to reproduce and definitely appeared as of 3.10.0b2, does
not occur in 3.10.0b1. linux and osx platforms are affected.
The issue requires "greenlet==1.1.0&q
mike bayer added the comment:
if the issue is in greenlet this can be bounced back to
https://github.com/python-greenlet/greenlet/issues/242
--
___
Python tracker
<https://bugs.python.org/issue44
mike bayer added the comment:
yes, if I have time I will begin to undertake that, wanted to put it up here in
case anyone has git bisect on speed dial for cpython.
--
___
Python tracker
<https://bugs.python.org/issue44
mike bayer added the comment:
great news!
Based on how many random factors were needed to reproduce as well as that it
seemed to be gc related and appeared very suddenly, I had an intuition this was
on the cpython side, thanks so much for doing this Pablo
New submission from Mike Kaganski :
On a Windows 10 system, which TZ is set to Moscow (UTC+3), I use a native
Windows Python build (as opposed to e.g. one from Cygwin). Specifically, I
tested both custom Python build created by LibreOffice project, as well as the
Python by Python Software
Mike Kaganski added the comment:
Thank you Eryk! This is a good workaround for me. I have implemented it:
https://git.libreoffice.org/core/+/3bcaa4ba79477a21251ddaa06e0ea159196a7ffb
It looks like it's not a Python's problem; I suppose this may be closed. Thanks
again!
--
Mike Kaganski added the comment:
@Eryk Sun: yes, of course you are right - but please see the date of the
commit; I didn't know what you kindly explained me in your reply yesterday :-)
Thank you again.
--
___
Python tracker
&
Mike Crowe added the comment:
glibc v2.30 onwards provides sem_clockwait which can wait on either
CLOCK_MONOTONIC or CLOCK_REALTIME. I failed to notice that
https://sourceware.org/bugzilla/show_bug.cgi?id=14717 existed until today. :(
--
nosy: +mikecrowe
Mike Hommey added the comment:
> I think we should change the documentation to expand the parenthetical "
> (unless SystemExit is raised)" to a complete explanation of that special case.
That would not be enough, since the case for other exceptions would still be
ambiguous,
Mike Hommey added the comment:
> In 2.7 the only exception that _did_ change the exit code was SystemExit.
(and only if it was the last thrown exception)
--
___
Python tracker
<https://bugs.python.org/issu
Mike Crowe added the comment:
vstinner wrote:
> The glibc 2.30 adds pthread_cond_clockwait() which could be used to use
> CLOCK_MONOTONIC. But if pthread_cond_clockwait() is available (glibc
> 2.30 or newer), it expects that pthread_condattr_setclock() is also
> available. So
101 - 200 of 613 matches
Mail list logo