[issue25736] smtplib can't send 8bit encoded utf-8 message

2015-11-25 Thread Ervin Hegedüs
New submission from Ervin Hegedüs: Looks like smtplib can send only messages, which contains only 7bit (ascii) characters. Here is the example: # -*- coding: utf8 -*- import time import smtplib mailfrom = "m...@mydomain.com" rcptto = "m...@otherdomain.com" msg = """%s From: Me <%s> To: %s Su

[issue25736] smtplib can't send 8bit encoded utf-8 message

2015-11-25 Thread Ervin Hegedüs
Changes by Ervin Hegedüs : -- nosy: airween priority: normal severity: normal status: open title: smtplib can't send 8bit encoded utf-8 message type: behavior versions: Python 3.4 ___ Python tracker ___

[issue25723] ConfigParser should never write broken configurations

2015-11-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: We all know that blindly inserting external data into a database can be a bad idea. But raising ValueError if the data contains \n barely scratches the surface of a real defense. The external data should be checked before passing it to .add_section or as par

[issue25622] Enable ctypes.test.test_values.Win_ValuesTestCase for non-Windows

2015-11-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6a8fbb97c8d8 by Martin Panter in branch 'default': Issue #25622: Rename to PythonValuesTestCase and enable for non-Windows https://hg.python.org/cpython/rev/6a8fbb97c8d8 -- nosy: +python-dev ___ Python tr

[issue21224] BaseHTTPRequestHandler, update the protocol version to http 1.1 by default?

2015-11-25 Thread Martin Panter
Martin Panter added the comment: Changing it could break existing code written for the HTTP 1.0 behaviour. The main effect mentioned at is that in HTTP 1.0 mode, a server may send a respo

[issue25677] Syntax error caret confused by indentation

2015-11-25 Thread Martin Panter
Martin Panter added the comment: Another way to get universal newlines I have used in other cases is to use TextIOWrapper. It might be easier if you really need that multi-line RE search: text = TextIOWrapper(BytesIO(stderr), "ascii").read() -- nosy: +martin.panter ___

[issue14044] IncompleteRead error with urllib2 or urllib.request -- fine with urllib, wget, or curl

2015-11-25 Thread Martin Panter
Martin Panter added the comment: Closing this as being a bug in the web server, rather than Python. If someone wants to add a way to force a HTTP 1.0 response, or a way to get all valid data before raising the exception, I suggest opening a new report. -- resolution: -> third party st

[issue22100] Use $HOSTPYTHON when determining candidate interpreter for $PYTHON_FOR_BUILD.

2015-11-25 Thread Martin Panter
Martin Panter added the comment: What is $HOSTPYTHON? It does not appear to be used or mentioned anywhere. You mention it as if it is commonly known, but if you are proposing a new configuration variable, perhaps you should document it. The Gnu version of “which” seems to work fine with relati

[issue25638] Verify the etree_parse and etree_iterparse benchmarks are working appropriately

2015-11-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated to tip. -- Added file: http://bugs.python.org/file41167/etree_iterparse_2.patch ___ Python tracker ___ ___

[issue25696] "make -j9 install" fails because bininstall target requires the libainstall target

2015-11-25 Thread Martin Panter
Martin Panter added the comment: $(LIBPC) is a single directory name, so I suggest dropping the “for” loop. Patch 2 should avoid the practical race condition. But there is technically still a race with “libainstall” and “bininstall” both testing and creating the same directory. Maybe we should

[issue21224] BaseHTTPRequestHandler, update the protocol version to http 1.1 by default?

2015-11-25 Thread STINNER Victor
STINNER Victor added the comment: Sorry, I read the issue very quickly. I don't understand why the default is not changed. -- ___ Python tracker ___ _

[issue25715] Python 3.5.1 installer shows wrong upgrade path

2015-11-25 Thread Steve Dower
Steve Dower added the comment: Man, dealing with the launcher is hard. But I've got it about as good as I can: * when installing 3.5.1 over 3.5.0, user has the option to update/not update the launcher (no option to uninstall at that time) * after installing 3.5.1, launcher can be added via Modi

[issue25300] Enable Intel MPX (Memory protection Extensions) feature

2015-11-25 Thread Stefan Krah
Stefan Krah added the comment: > Py_ssize_t ob_array[1] Py_VARIABLE_SIZE; /* Looks weird and confusing */ Yes, I dislike that, too. The question is why gcc has supported the "struct hack" for more than 20 years but needs an annotation just for MPX. Is the annotation also needed for the C99 v

[issue21224] BaseHTTPRequestHandler, update the protocol version to http 1.1 by default?

2015-11-25 Thread Martin Panter
Martin Panter added the comment: Victor, that chunked support for server requests is optional, and not actually required (my quote was wrong; see my message after the one you quoted). The client already does HTTP 1.1 by default: >>> http.client.HTTPConnection._http_vsn_str 'HTTP/1.1' It is alr

[issue25723] ConfigParser should never write broken configurations

2015-11-25 Thread R. David Murray
R. David Murray added the comment: The issue would be if the section name came from user input. Then an attacker could craft a section name that would result in inserting arbitrary names and values into the config file. -- nosy: +r.david.murray ___

[issue25723] ConfigParser should never write broken configurations

2015-11-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Can you explain how passing \n createda vulnerability (to who, doing what) that flagging \n would prevent? Your opening example (nicely presented, by the way) shows that passing \n allows one to do with one call what would otherwise take (in the case of the e

[issue25251] Unknown MS Compiler version 1900

2015-11-25 Thread Ateik Al-Zehla
Ateik Al-Zehla added the comment: forget to tell you that even i deleted the cache, but nothing happened. it use the old code. -- ___ Python tracker ___

[issue25730] invisible sidebar content with code snippets

2015-11-25 Thread R. David Murray
R. David Murray added the comment: Since it is a visual issue and we have no infrastructure for that kind of web view testing, I don't think a test is possible. -- nosy: +r.david.murray ___ Python tracker

[issue25251] Unknown MS Compiler version 1900

2015-11-25 Thread Ateik Al-Zehla
Ateik Al-Zehla added the comment: thanks Matt for your replay. But I copied the lines to cygwinccompiler.py and it didn't work. and it pretend as there is no change happened to the file. To see if the execution goes through the code I changed message if raise ValueError to "God Help Me %s " i

[issue25730] invisible sidebar content with code snippets

2015-11-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Can you create either a specific patch or perhaps more important a test that fails now but should pass with a proper patch? -- stage: needs patch -> test needed ___ Python tracker

[issue25735] math.factorial doc should mention integer return type

2015-11-25 Thread John Yeung
New submission from John Yeung: The math module docs state Except when explicitly noted otherwise, all return values are floats. But math.factorial isn't what I would call explicit about returning int: math.factorial(x) Return x factorial. Raises ValueError if x is not integral or is negat

[issue25730] invisible sidebar content with code snippets

2015-11-25 Thread hiroaki itoh
hiroaki itoh added the comment: Ah, sorry I'd mistaked. I don't know if this is Sphinx issue, but CPython repo has Doc/tools/static, Doc/tools/templates, so I still think, this can be fixed by customizing these, for example overriding style at layout.html. --

[issue25698] test regressions introduced with the fix for #22995

2015-11-25 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue25729] update pure python datetime.timedelta creation

2015-11-25 Thread Brian Kearns
Brian Kearns added the comment: Updated again -- Added file: http://bugs.python.org/file41165/timedelta3.patch ___ Python tracker ___

[issue25729] update pure python datetime.timedelta creation

2015-11-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Looks you are missed Victor's and my comments. -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue25730] invisible sidebar content with code snippets

2015-11-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Hiroaki, please include a bit of text explanation. What 'default.css' are you referring to? If it is a Sphinx file and not in the CPython repository /Doc, then this should be closed here and reopened on the separate Sphinx tracker. In any case, this is not a

[issue25677] Syntax error caret confused by indentation

2015-11-25 Thread R. David Murray
R. David Murray added the comment: Two options on portability, I think: either use splitlines() on the decoded result, or add a 'universal_newlines' keyword argument to assert_python_failure and friends that would get passed to Popen. I'd favor the latter, as other users of script_helpers may

[issue19687] Fixes for elementtree integer overflow

2015-11-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset e5eac1d692ad by Serhiy Storchaka in branch '3.4': Issue #19687: Fixed possible integer overflows in ElementTree. https://hg.python.org/cpython/rev/e5eac1d692ad New changeset 745fd5550bc0 by Serhiy Storchaka in branch '2.7': Issue #19687: Fixed possi

[issue19687] Fixes for elementtree integer overflow

2015-11-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Possible integer overflows in 3.5 was already fixed by issue23450. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 2.7 ___ Python tracker

[issue25723] ConfigParser should never write broken configurations

2015-11-25 Thread SpaceOne
SpaceOne added the comment: Isn't is an actual problem in the field? We had a vulnerability in our code due to this as we only sanitized the config values and didn't recognized that add_section() does no validation of input. -- ___ Python tracker <

[issue25723] ConfigParser should never write broken configurations

2015-11-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Newline (\n) and possibly \x00, if it necessarily causes an actual problem, are the only characters that we might reject by default. Rejecting anything else is unwarrented editorializing about what people 'should' use. As you said, people who want something

[issue25729] update pure python datetime.timedelta creation

2015-11-25 Thread Brian Kearns
Brian Kearns added the comment: Updated patch per review -- Added file: http://bugs.python.org/file41164/timedelta2.patch ___ Python tracker ___ _

[issue25731] Assigning and deleting __new__ attr on the class does not allow to create instances of this class

2015-11-25 Thread Eryk Sun
Eryk Sun added the comment: For "del X.__new__", type_setattro in Objects/typeobject.c indirectly calls update_one_slot. This finds object.__new__ fom the base object class when it looks up __new__ on the type. Since __new__ for built-in types is special-cased to be a built-in method instead o

[issue25677] Syntax error caret confused by indentation

2015-11-25 Thread Michael Layzell
Michael Layzell added the comment: Sorry for the delay, I finally got around to adding a test. I'm mildly concerned about the portability of the check, but it seems to work locally. If people have suggestions about how to make the check more portable, let me know! -- Added file: http:

[issue20923] Explain ConfigParser 'valid section name' and .SECTCRE

2015-11-25 Thread R. David Murray
R. David Murray added the comment: Yes, the doc issue is separate from the other bug, since that one will apply only to 3.6, and the doc changes apply to all maintenance releases. -- ___ Python tracker ___

[issue6953] readline documentation needs work

2015-11-25 Thread Mark Lawrence
Changes by Mark Lawrence : -- title: readline documenation needs work -> readline documentation needs work ___ Python tracker ___ ___ P

[issue20923] Explain ConfigParser 'valid section name' and .SECTCRE

2015-11-25 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- title: ConfigParser should nested [] in section names. -> Explain ConfigParser 'valid section name' and .SECTCRE ___ Python tracker ___ __

[issue20923] ConfigParser should nested [] in section names.

2015-11-25 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: docs@python -> terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue20923] ConfigParser should nested [] in section names.

2015-11-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Victor, I reopened this a a doc issue to add the sentence that would have cut short the discussion. Please leave it. -- resolution: fixed -> status: closed -> open ___ Python tracker

[issue25729] update pure python datetime.timedelta creation

2015-11-25 Thread Brian Kearns
Brian Kearns added the comment: Bug fixes are to the test suite itself, and the name cleanup, minor. Best classified as enhancement, apply where applicable. -- ___ Python tracker __

[issue6953] readline documenation needs work

2015-11-25 Thread Hideaki Takahashi
Changes by Hideaki Takahashi : -- nosy: +hideaki_t ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue24097] Use after free in PyObject_GetState

2015-11-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue24097] Use after free in PyObject_GetState

2015-11-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset eed36e19f8b8 by Serhiy Storchaka in branch '3.4': Issue #24097: Fixed crash in object.__reduce__() if slot name is freed inside https://hg.python.org/cpython/rev/eed36e19f8b8 New changeset 99839a1c9c6d by Serhiy Storchaka in branch '3.5': Issue #240

[issue25719] Deprecate spitfire benchmark

2015-11-25 Thread Brett Cannon
Brett Cannon added the comment: I don't object and I'm on vacation without my laptop so I won't beat you to committing it. -- ___ Python tracker ___

[issue25572] _ssl doesn't build on OSX 10.11

2015-11-25 Thread Ronald Oussoren
Ronald Oussoren added the comment: Apple no longer ships headers for OpenSSL in OSX SDK as shipped with Xcode 7.1, and I'd be surprised if that changes (without having any inside knowledge about this). W.r.t. adding configure option for OpenSSL: That would be fine although that makes the dete

[issue25616] Extract OrderedDict tests into separate file

2015-11-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue25616] Extract OrderedDict tests into separate file

2015-11-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8d9a0540adf9 by Serhiy Storchaka in branch '3.4': Issue #25616: Tests for OrderedDict are extracted from test_collections https://hg.python.org/cpython/rev/8d9a0540adf9 New changeset 46e95e0eaae5 by Serhiy Storchaka in branch '3.5': Issue #25616: Te

[issue22100] Use $HOSTPYTHON when determining candidate interpreter for $PYTHON_FOR_BUILD.

2015-11-25 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- nosy: +Chi Hsuan Yen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue16353] add function to os module for getting path to default shell

2015-11-25 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- nosy: +Chi Hsuan Yen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue25734] fnmatch regular expression can be improved

2015-11-25 Thread R. David Murray
R. David Murray added the comment: That would be a backward incompatible behavior change. The patterns are designed to be used on single filenames, not on newline separated filenames. -- nosy: +r.david.murray resolution: -> rejected stage: -> resolved status: open -> closed

[issue16255] subrocess.Popen needs /bin/sh but Android only has /system/bin/sh

2015-11-25 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- nosy: +Chi Hsuan Yen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-11-25 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- nosy: +Chi Hsuan Yen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue25732] functools.total_ordering does not correctly implement not equal behaviour

2015-11-25 Thread Emanuel Barry
Changes by Emanuel Barry : -- assignee: docs@python -> components: -Documentation nosy: -docs@python ___ Python tracker ___ ___ Pyt

[issue25732] functools.total_ordering does not correctly implement not equal behaviour

2015-11-25 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> docs@python components: +Documentation nosy: +docs@python stage: -> needs patch ___ Python tracker ___

[issue25734] fnmatch regular expression can be improved

2015-11-25 Thread Alberto Galera
New submission from Alberto Galera: # https://hg.python.org/cpython/file/tip/Lib/fnmatch.py fnmatch reviewing the code I've noticed that the outcome of the regular expression all returns generated in the first result l97: res = res + '.*' to: res = res + '.*?' l100:

[issue25723] ConfigParser should never write broken configurations

2015-11-25 Thread SpaceOne
SpaceOne added the comment: I added also a rejection of '\r' and '\x00': https://github.com/spaceone/cpython/commit/41d6e278e4ffa95577d843e0d50d4c43b5ac46ef It's only my opinion but I would prefer to reject all of these non printable characters: '\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\x0c

[issue25696] "make -j9 install" fails because bininstall target requires the libainstall target

2015-11-25 Thread STINNER Victor
Changes by STINNER Victor : -- title: "MAKEFLAGS=-j9 make install" fails because bininstall target requires the libainstall target -> "make -j9 install" fails because bininstall target requires the libainstall target ___ Python tracker

[issue25696] "MAKEFLAGS=-j9 make install" fails because bininstall target requires the libainstall target

2015-11-25 Thread STINNER Victor
STINNER Victor added the comment: To be clear: the bug doesn't occur when Python is not installed "in parallel" (without MAKEFLAGS=-j9). "For consistency with other things, I would suggest to add the following at the beginning of bininstall target (instead of making bininstall target depend on

[issue25733] Idle does not handle non-standard compile errors

2015-11-25 Thread ppperry
Changes by ppperry : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue25733] Idle does not handle non-standard compile errors

2015-11-25 Thread ppperry
New submission from ppperry: The following code: for a in range(26): for b in range(26): for c in range(26): for d in range(26): for e in range(26): for f in range(26): for g in range(26): for h in range(26): for i in range(26): for j in range

[issue25728] email parser ignores inner multipart boundary when outer message duplicates it

2015-11-25 Thread R. David Murray
R. David Murray added the comment: I am open to (and will review) a patch that applies simple heuristics to trying to guess correctly about such messages, but only if it doesn't add too much complexity to the parser. I'm not certain I would consider it for a bug fix release, but I'll postpone

[issue25721] Fix pybench always_display error

2015-11-25 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue25703] test_sys is failed if standard stream is redirected in 2.7

2015-11-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue25703] test_sys is failed if standard stream is redirected in 2.7

2015-11-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset eb9d2e5bc8dc by Serhiy Storchaka in branch '2.7': Issue #25703: Skip test_43581 if one of stdout or stderr is redirected. https://hg.python.org/cpython/rev/eb9d2e5bc8dc -- nosy: +python-dev ___ Python tra

[issue25643] Python tokenizer rewriting

2015-11-25 Thread STINNER Victor
STINNER Victor added the comment: "especially for issues with null byte" I don't think that we should put to much energy in handling correctly NUL bytes. I see NUL bytes in code as bugs in the code, not in the Python parser. We *might* try to give warnings or better error messages to the user,

[issue25697] Fix rough alphabetical order in Misc/ACKS

2015-11-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your review Martin. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 2.7, Python 3.4, Python 3.5, Python 3.6 ___ Python tracker

[issue25697] Fix rough alphabetical order in Misc/ACKS

2015-11-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 68c7c6ac82d9 by Serhiy Storchaka in branch '3.4': Issue #25697: Fixed rough alphabetical order in Misc/ACKS. https://hg.python.org/cpython/rev/68c7c6ac82d9 New changeset 9925fb41c1d9 by Serhiy Storchaka in branch '3.5': Issue #25697: Fixed rough alp

[issue25732] functools.total_ordering does not correctly implement not equal behaviour

2015-11-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +Library (Lib) nosy: +ncoghlan, rhettinger ___ Python tracker ___ ___ Python-bugs-list ma

[issue24731] Incorrect assert in str_subtype_new

2015-11-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue25717] tempfile.TemporaryFile fails when dir option set to directory residing on host OS mount

2015-11-25 Thread Hans Lawrenz
Hans Lawrenz added the comment: Martin, I applied your patch and it proved your hypothesis. See below for how I tested. I also updated the github repo for others to reproduce if they wish. cd wget https://www.python.org/ftp/python/3.5.0/Python-3.5.0.tar.xz mkdir ~/dist cd ~/dist tar xJf ~/Pyt

[issue24731] Incorrect assert in str_subtype_new

2015-11-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset d8e0b54ece62 by Serhiy Storchaka in branch '3.4': Issue #24731: Fixed crash on converting objects with special methods https://hg.python.org/cpython/rev/d8e0b54ece62 New changeset 80efe5cc8934 by Serhiy Storchaka in branch '3.5': Issue #24731: Fixed

[issue25732] functools.total_ordering does not correctly implement not equal behaviour

2015-11-25 Thread Emanuel Barry
Emanuel Barry added the comment: This is due to the fact that Python 3 added the ability to define only __eq__ and get a free __ne__ defined. If my memory serves me right, functools.total_ordering was added in 3.2 and then backported to 2.x - where the relationship with __eq__ and __ne__ is no

[issue25683] __context__ for yields inside except clause

2015-11-25 Thread Emanuel Barry
Emanuel Barry added the comment: Oops, that was *completely* the wrong issue. I apologize for the noise. -- ___ Python tracker ___ ___

[issue25683] __context__ for yields inside except clause

2015-11-25 Thread Emanuel Barry
Emanuel Barry added the comment: This is due to the fact that Python 3 added the ability to define only __eq__ and get a free __ne__ defined. If my memory serves me right, functools.total_ordering was added in 3.2 and then backported to 2.x - where the relationship with __eq__ and __ne__ is no

[issue21475] Support the Sitemap extension in robotparser

2015-11-25 Thread STINNER Victor
Changes by STINNER Victor : -- dependencies: +Rewrite test_robotparser ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue25571] Improve the lltrace feature with the Py_Debug mode

2015-11-25 Thread STINNER Victor
STINNER Victor added the comment: What is lltrace? I never used it :-( Is it documented? Can you give examples of output before/after? We may make your change optional to give the choice of the output. -- nosy: +haypo ___ Python tracker

[issue7990] xml.etree.cElementTree lacks full dir() on Element

2015-11-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Martin. Committed with both your suggestions. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue21224] BaseHTTPRequestHandler, update the protocol version to http 1.1 by default?

2015-11-25 Thread STINNER Victor
STINNER Victor added the comment: > Similarly, I understand HTTP 1.1 requires chunked encoding support for > requests, but there is no support for that in the Python implementation. Hum, I don't understand exactly this issue. I understood that Python only has a "partial" implementation of the

[issue7990] xml.etree.cElementTree lacks full dir() on Element

2015-11-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset fef7f041c1a7 by Serhiy Storchaka in branch 'default': Issue #7990: dir() on ElementTree.Element now lists properties: "tag", https://hg.python.org/cpython/rev/fef7f041c1a7 -- nosy: +python-dev ___ Python

[issue21224] BaseHTTPRequestHandler, update the protocol version to http 1.1 by default?

2015-11-25 Thread STINNER Victor
STINNER Victor added the comment: For HTTP 2, I consider that the protocol is too young. I prefer to move fast on a library hosted on PyPI, rather than puting something is the stable and "frozen" stdlib. -- nosy: +haypo ___ Python tracker

[issue25572] _ssl doesn't build on OSX 10.11

2015-11-25 Thread STINNER Victor
STINNER Victor added the comment: > Homebrew supports OpenSSL and LibreSSL, but OpenSSL is in > /usr/local/opt/openssl and not in /usr/local/ssl (see setup.py) Does it make sense to add a configure option to specify the path to OpenSSL? > So, the next point, I am not sure, but the headers of O

[issue25705] Fix regex_compile benchmark crash

2015-11-25 Thread Florin Papa
Florin Papa added the comment: No problem. Thank you for fixing this. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue25721] Fix pybench always_display error

2015-11-25 Thread Florin Papa
Florin Papa added the comment: Yes, thank you for fixing this. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue25732] functools.total_ordering does not correctly implement not equal behaviour

2015-11-25 Thread David Seddon
New submission from David Seddon: The documentation for functools.total_ordering states that rich comparison can be enabled on a class by specifying an __eq__ method, and one of __lt__(), __le__(), __gt__(), or __ge__(). If these instructions are followed, this results in an incorrect evaluat

[issue25725] Memory leak on unpickling bogus data

2015-11-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue25725] Memory leak on unpickling bogus data

2015-11-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset c85eca74f3a5 by Serhiy Storchaka in branch '3.4': Issue #25725: Fixed a reference leak in pickle.loads() when unpickling https://hg.python.org/cpython/rev/c85eca74f3a5 New changeset 88ad2b8480b1 by Serhiy Storchaka in branch '3.5': Issue #25725: Fix

[issue25731] Assigning and deleting __new__ attr on the class does not allow to create instances of this class

2015-11-25 Thread Uosiu
New submission from Stanisław Skonieczny (Uosiu): When moving from python 2.7 to 3.5 I have found a problem with patching __new__ method on the class. It was done this way: ''' patch('foo.bar.MyClass.__new__', return_value=mocked_instance) ''' In works with python 2.7, but in 3.5 it fails with:

[issue25718] itertools.accumulate __reduce__/__setstate__ bug

2015-11-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In this case yes, you are unlucky. But this is an artificial example, and I don't think this happens in any real code. However specific meaning of None should be documented (there are other wrong words about __getstate__). -- __

[issue25701] Document that tp_setattro and tp_setattr are used for deleting attributes

2015-11-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Python-Dev discussion: http://comments.gmane.org/gmane.comp.python.devel/155474 -- ___ Python tracker ___ ___

[issue25730] invisible sidebar content with code snippets

2015-11-25 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: -> docs@python components: +Documentation nosy: +docs@python, ezio.melotti, georg.brandl, terry.reedy stage: -> needs patch type: -> behavior ___ Python tracker ___

[issue25730] invisible sidebar content with code snippets

2015-11-25 Thread hiroaki itoh
New submission from hiroaki itoh: I think this is maybe known problem, but checking duplication of this issue is very hard because searching it with keyword 'sidebar' hit too many. Please see details in https://bitbucket.org/hhsprings/nothing.but.only.for.some.kind.of.collabo/wiki/%5Bdocs.pyth

[issue25300] Enable Intel MPX (Memory protection Extensions) feature

2015-11-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le 25/11/2015 03:23, Raymond Hettinger a écrit : > > I'm wary of making such extensive changes throughout the codebase > for > an optional processor-specific feature of limited benefit and unproven > worth. This is indeed non-trivial. What I'm willing to known

[issue25721] Fix pybench always_display error

2015-11-25 Thread STINNER Victor
STINNER Victor added the comment: Is it ok for you Florin? (Can I close the issue?) -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue25721] Fix pybench always_display error

2015-11-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset e77ed7d18a68 by Victor Stinner in branch 'default': Issue #25721: Fixes for pybench https://hg.python.org/benchmarks/rev/e77ed7d18a68 -- nosy: +python-dev ___ Python tracker

[issue25721] Fix pybench always_display error

2015-11-25 Thread STINNER Victor
STINNER Victor added the comment: Thanks for your bug report. I fixed the issue differently, by adding a base class to benchmark result classes. I also implemented the format output format for pybench. By the way, perf.py badly handles errors :-/ CSV output and table output fail to handle err

[issue25718] itertools.accumulate __reduce__/__setstate__ bug

2015-11-25 Thread Armin Rigo
Armin Rigo added the comment: Ok, then with pickle you can have the same problem but only with None-vs-no-total. Here is an artificial example: import itertools, pickle def foo(a, b): print(a, b) a = itertools.accumulate([3, 4, 5], foo) next(a) next(a) # prints: 3, 4 b = pickle.loads(

[issue25712] Dead link in the PEP-3147

2015-11-25 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue25712] Dead link in the PEP-3147

2015-11-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset a34df6445747 by Victor Stinner in branch 'default': Issue #25712: Fix link to the marshal doc in PEP 3147 https://hg.python.org/peps/rev/a34df6445747 -- nosy: +python-dev ___ Python tracker

[issue25729] update pure python datetime.timedelta creation

2015-11-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Does the patch fixes any bugs? If no, it can be applied only to developed version. If yes, needed tests. -- components: +Library (Lib) nosy: +belopolsky, serhiy.storchaka stage: -> patch review type: -> enhancement versions: -Python 3.4, Python 3.5

[issue25729] update pure python datetime.timedelta creation

2015-11-25 Thread Brian Kearns
Brian Kearns added the comment: Correct patch uploaded -- Added file: http://bugs.python.org/file41160/timedelta.patch ___ Python tracker ___

  1   2   >