[issue11562] += on list inside a tuple raises TypeError but succeds anyway

2011-03-15 Thread Mike Smith
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

[issue1006238] cross compile patch

2011-03-25 Thread Mike Frysinger
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

[issue11860] reference 2.3 has text that runs past the page

2011-04-16 Thread Mike Kamermans
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

[issue7291] urllib2 cannot handle https with proxy requiring auth

2011-02-19 Thread Mike Beachy
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

[issue7291] urllib2 cannot handle https with proxy requiring auth

2011-02-19 Thread Mike Beachy
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

[issue2475] Popen.poll always returns None

2008-06-14 Thread Mike Lisanke
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

[issue3192] exec(open(filename)) doesn't work

2008-06-24 Thread Mike Speciner
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

[issue3192] exec(open(filename)) doesn't work

2008-06-24 Thread Mike Speciner
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

[issue3192] exec(open(filename)) doesn't work

2008-06-24 Thread Mike Speciner
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.

[issue3222] inf*inf gives inf, but inf**2 gives overflow error

2008-06-27 Thread Mike Speciner
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

[issue3262] re.split doesn't split with zero-width regex

2008-07-07 Thread Mike Coleman
Changes by Mike Coleman <[EMAIL PROTECTED]>: -- nosy: +mkc ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3262> ___ ___ Python-bugs

[issue3262] re.split doesn't split with zero-width regex

2008-07-07 Thread Mike Coleman
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

[issue3262] re.split doesn't split with zero-width regex

2008-07-16 Thread Mike Coleman
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.

[issue3501] expm1 missing

2008-08-04 Thread Mike Speciner
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

[issue3262] re.split doesn't split with zero-width regex

2008-08-05 Thread Mike Coleman
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

[issue3707] help('finally') behaves bizarrely

2008-08-27 Thread Mike Speciner
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

[issue1606092] csv module broken for unicode

2008-09-10 Thread Mike Statkus
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

[issue3861] distutils CCompiler._compile doesn't require lang keyword argument

2008-09-13 Thread Mike Auty
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

[issue3861] distutils CCompiler._compile doesn't require lang keyword argument

2008-09-14 Thread Mike Auty
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

[issue3861] distutils CCompiler._compile doesn't require lang keyword argument

2008-09-14 Thread Mike Auty
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

[issue7754] decimal.Decimal 0.0**0.0 error

2010-01-21 Thread Mike Clark
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

[issue6457] subprocess.Popen.communicate can lose data from output/error streams when broken input pipe occures

2010-01-21 Thread Mike Crute
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

[issue7922] Python 3's 2to3 does not handle non-ascii source files

2010-02-12 Thread mike bayer
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

[issue7922] Python 3's 2to3 does not handle non-ascii source files

2010-02-12 Thread mike bayer
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

[issue8193] test_zlib fails with zlib 1.2.4

2010-04-06 Thread Mike Kelly
Changes by Mike Kelly : -- nosy: +pioto ___ Python tracker <http://bugs.python.org/issue8193> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue8329] select.select() can return lists with identical id()'s

2010-04-06 Thread Mike Kent
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

[issue8329] select.select() can return lists with identical id()'s

2010-04-06 Thread Mike Kent
Changes by Mike Kent : -- type: -> behavior ___ Python tracker <http://bugs.python.org/issue8329> ___ ___ Python-bugs-list mailing list Unsubscri

[issue7291] urllib2 cannot handle https with proxy requiring auth

2010-04-13 Thread Mike Beachy
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

[issue8503] smtpd module does not allow

2010-04-23 Thread mike s
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)

[issue8503] smtpd module does not allow domain filtering

2010-04-23 Thread mike s
Changes by mike s : -- title: smtpd module does not allow -> smtpd module does not allow domain filtering ___ Python tracker <http://bugs.python.org/iss

[issue8503] smtpd SMTPServer does not allow domain filtering

2010-04-23 Thread mike s
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

[issue8503] smtpd SMTPServer does not allow domain filtering

2010-04-23 Thread mike s
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

[issue1471] ioctl doesn't work properly on 64-bit OpenBSD

2007-12-05 Thread Mike Savory
Changes by Mike Savory: __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1471> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/op

[issue1471] ioctl doesn't work properly on 64-bit OpenBSD

2007-12-05 Thread Mike Savory
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

[issue1663329] subprocess/popen close_fds perform poor if SC_OPEN_MAX is hi

2008-01-04 Thread Mike Klaas
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

[issue1204] readline configuration for shared libs w/o curses dependencies

2008-01-19 Thread Mike Beachy
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

[issue1966] infinite loop in httplib

2008-01-29 Thread Mike Klaas
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

[issue1966] infinite loop in httplib

2008-01-30 Thread Mike Klaas
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

[issue2073] asynchat push always sends 512 bytes (ignoring ac_out_buffer_size)

2008-02-11 Thread Mike Coleman
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)

[issue2073] asynchat push always sends 512 bytes (ignoring ac_out_buffer_size)

2008-02-13 Thread Mike Coleman
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

[issue2073] asynchat push always sends 512 bytes (ignoring ac_out_buffer_size)

2008-02-13 Thread Mike Coleman
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):

[issue1739842] xmlrpclib can no longer marshal Fault objects

2008-02-18 Thread Mike Bonnet
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

[issue1156430] doctest should support -m

2008-02-23 Thread Mike Beachy
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

[issue1729305] test_doctest fails when run in verbose mode

2008-02-24 Thread Mike Beachy
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

[issue1729305] test_doctest fails when run in verbose mode

2008-02-24 Thread Mike Beachy
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

[issue1274] doctest fails to run file based tests with 8bit paths

2008-03-17 Thread Mike Taylor
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

[issue1274] doctest fails to run file based tests with 8bit paths

2008-03-17 Thread Mike Taylor
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

[issue2073] asynchat push always sends 512 bytes (ignoring ac_out_buffer_size)

2008-03-18 Thread Mike Coleman
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

[issue852532] ^$ won't split on empty line

2008-04-14 Thread Mike Coleman
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

[issue2741] documentation -- do serversockets work with ipv6

2008-05-02 Thread Mike MacFaden
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

[issue2742] example code does not work

2008-05-02 Thread Mike MacFaden
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

[issue2742] example code does not work

2008-05-02 Thread Mike MacFaden
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..

[issue2741] documentation -- do serversockets work with ipv6

2008-05-02 Thread Mike MacFaden
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

[issue2741] documentation -- do serversockets work with ipv6

2008-05-05 Thread Mike MacFaden
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

[issue2741] documentation -- do serversockets work with ipv6

2008-05-05 Thread Mike MacFaden
Mike MacFaden <[EMAIL PROTECTED]> added the comment: then change 'possible values' to 'for example' __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2741> __ _

[issue4340] xmlrpc.client - default 'SlowParser' not defined

2008-11-17 Thread Mike Watkins
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

[issue4340] xmlrpc.client - default 'SlowParser' not defined

2008-11-19 Thread Mike Watkins
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. ___

[issue4556] cmp() function erroneously noted as gone in "What's New"

2008-12-05 Thread Mike Watkins
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:

[issue998998] pickle bug - recursively memoizing class?

2008-12-06 Thread mike bayer
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

[issue4731] suggest change to "Failed to find the necessary bits to build these modules" message

2008-12-23 Thread Mike Coleman
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,

[issue5053] http.client.HTTPMessage.getallmatchingheaders()

2009-01-25 Thread Mike Watkins
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

[issue5054] CGIHTTPRequestHandler.run_cgi() HTTP_ACCEPT improperly parsed

2009-01-25 Thread Mike Watkins
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

[issue5053] http.client.HTTPMessage.getallmatchingheaders()

2009-01-25 Thread Mike Watkins
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

[issue5053] http.client.HTTPMessage.getallmatchingheaders() always returns []

2009-01-26 Thread Mike Watkins
Changes by Mike Watkins : -- title: http.client.HTTPMessage.getallmatchingheaders() -> http.client.HTTPMessage.getallmatchingheaders() always returns [] ___ Python tracker <http://bugs.python.org/iss

[issue5053] http.client.HTTPMessage.getallmatchingheaders() always returns []

2009-01-26 Thread Mike Watkins
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

[issue5053] http.client.HTTPMessage.getallmatchingheaders() always returns []

2009-01-26 Thread Mike Watkins
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

[issue727732] getpath.c-generated prefix wrong for Tru64 scripts

2009-02-11 Thread Mike Coleman
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.

[issue32658] Metacharacter (\) documentation suggestion

2022-03-29 Thread mike mcleod
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

[issue32658] Metacharacter (\) documentation suggestion

2022-03-31 Thread mike mcleod
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

[issue47183] Cant compile html docs

2022-03-31 Thread mike mcleod
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

[issue47183] Cant compile html docs

2022-04-01 Thread mike mcleod
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

[issue32658] Metacharacter (\) documentation suggestion

2022-04-01 Thread mike mcleod
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

[issue47174] Define behavior of descriptor-typed fields on dataclasses

2022-04-01 Thread mike bayer
Change by mike bayer : -- nosy: +zzzeek ___ Python tracker <https://bugs.python.org/issue47174> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38550] hashlib missing algorithms

2019-10-21 Thread Mike Gilbert
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

[issue38550] hashlib missing algorithms

2019-10-21 Thread Mike Gilbert
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

[issue38550] hashlib missing algorithms

2019-10-21 Thread Mike Gilbert
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

[issue38550] hashlib missing algorithms

2019-10-21 Thread Mike Gilbert
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

[issue38550] hashlib missing algorithms

2019-10-21 Thread Mike Gilbert
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

[issue38587] __set_name__ missing from descriptor howto documentation

2019-10-24 Thread Mike Driscoll
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

[issue43484] we can create valid datetime objects that become invalid if the timezone is changed

2021-03-12 Thread mike bayer
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&

[issue43493] EmailMessage mis-folding headers of a certain length

2021-03-14 Thread Mike Glover
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

[issue43493] EmailMessage mis-folding headers of a certain length

2021-03-17 Thread Mike Glover
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 -

[issue43484] valid datetimes can become invalid if the timezone is changed

2021-03-19 Thread mike bayer
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

[issue43883] Making urlparse WHATWG conformant

2021-04-19 Thread Mike Lissner
Change by Mike Lissner : -- nosy: +Mike.Lissner ___ Python tracker <https://bugs.python.org/issue43883> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43882] urllib.parse should sanitize urls containing ASCII newline and tabs.

2021-04-19 Thread Mike Lissner
Change by Mike Lissner : -- nosy: +Mike.Lissner ___ Python tracker <https://bugs.python.org/issue43882> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43882] [security] urllib.parse should sanitize urls containing ASCII newline and tabs.

2021-05-04 Thread Mike Lissner
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/

[issue43882] [security] urllib.parse should sanitize urls containing ASCII newline and tabs.

2021-05-05 Thread Mike Lissner
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

[issue43882] [security] urllib.parse should sanitize urls containing ASCII newline and tabs.

2021-05-05 Thread Mike Lissner
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

[issue43882] [security] urllib.parse should sanitize urls containing ASCII newline and tabs.

2021-05-06 Thread Mike Lissner
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

[issue44304] segmentation fault appeared in python 3.10.0b2

2021-06-03 Thread mike bayer
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

[issue44304] segmentation fault appeared in python 3.10.0b2

2021-06-03 Thread mike bayer
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

[issue44304] segmentation fault appeared in python 3.10.0b2

2021-06-04 Thread mike bayer
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

[issue44304] segmentation fault appeared in python 3.10.0b2

2021-06-05 Thread mike bayer
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

[issue44352] Native Windows Python builds running on Europe/Moscow TZ report wrong time from datetime.datetime.now when there is TZ environment variable also set to Europe/Moscow

2021-06-08 Thread Mike Kaganski
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

[issue44352] Native Windows Python builds running on Europe/Moscow TZ report wrong time from datetime.datetime.now when there is TZ environment variable also set to Europe/Moscow

2021-06-10 Thread Mike Kaganski
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! --

[issue44352] Native Windows Python builds running on Europe/Moscow TZ report wrong time from datetime.datetime.now when there is TZ environment variable also set to Europe/Moscow

2021-06-11 Thread Mike Kaganski
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 &

[issue41710] Timeout is affected by jumps in system time

2021-08-11 Thread Mike Crowe
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

[issue27035] Cannot set exit code in atexit callback

2021-08-19 Thread Mike Hommey
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,

[issue27035] Cannot set exit code in atexit callback

2021-08-19 Thread Mike Hommey
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

[issue41710] acquire(timeout) of threading.Lock and threading.Condition is affected by jumps in system time: Python should use sem_clockwait(CLOCK_MONOTONIC)

2021-10-01 Thread Mike Crowe
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

<    1   2   3   4   5   6   7   >