[issue19537] Fix misalignment in fastsearch_memchr_1char

2014-03-23 Thread Stefan Krah
Stefan Krah added the comment: Yes, §6.7.2.1: A bit-field declaration with no declarator, but only a colon and a width, indicates an unnamed bit-field. With a footnote: 105) An unnamed bit-field structure member is useful for padding to conform to externally imposed layouts. Unnamed struct

[issue6331] Add unicode script info to the unicode database

2014-03-23 Thread Martin v . Löwis
Martin v. Löwis added the comment: Adding support for blocks should indeed go into a separate issue. Your code for that is not suitable, as it should integrate with the existing make_unicodedata.py script, which your code does not. And yes, indeed, of course, we automatically update (nearly) a

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-03-23 Thread Larry Hastings
Larry Hastings added the comment: Since 3.4 and 3.5 are different code bases, I assume you'd be willing to check this in for both. Assuming that's the case, please tick the 3.5 version too. -- ___ Python tracker

[issue19940] ssl.cert_time_to_seconds() returns wrong results if local timezone is not UTC

2014-03-23 Thread akira
akira added the comment: Antoine, I haven't received the e-mail notification. I've replied to the comments on Rietveld. Here's the updated patch with the corresponding changes. -- Added file: http://bugs.python.org/file34594/ssl_cert_time_to_seconds-ps3.patch

[issue19537] Fix misalignment in fastsearch_memchr_1char

2014-03-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 004ae1472a43 by Antoine Pitrou in branch '3.4': Issue #19537: Fix PyUnicode_DATA() alignment under m68k. Patch by Andreas Schwab. http://hg.python.org/cpython/rev/004ae1472a43 New changeset 0128b25068de by Antoine Pitrou in branch 'default': Issue

[issue19537] Fix misalignment in fastsearch_memchr_1char

2014-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, I've committed the patch, then. Thank you, Andreas. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-03-23 Thread Stefan Krah
Changes by Stefan Krah : -- stage: -> patch review versions: +Python 3.5 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mail

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-03-23 Thread Georg Brandl
Georg Brandl added the comment: Mark, I already gave a reason, which was apparently not good enough for you. Nobody told you to go away from the tracker, but it's not constructive to ask for reasons why a particular patch is accepted or rejected, by the release manager no less, if you're not

[issue21041] pathlib.PurePath.parents rejects negative indexes

2014-03-23 Thread akira
New submission from akira: `pathlib.PurePath.parents` is a sequence [1] but it rejects negative indexes: >>> from pathlib import PurePath >>> PurePath('a/b/c').parents[-2] Traceback (most recent call last): ... IndexError: -2 Sequences in Python interpret negative indexes as `len(seq)

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-03-23 Thread Mark Lawrence
Mark Lawrence added the comment: I've asked a simple question and I've *NOT* had an answer. Antoine's response to Larry's question "Does Python still officially support m68k?" is certainly pertinent "Certainly not. We haven't had any 68k buildbot in ages (not sure we ever had any, actually)."

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I've asked a simple question and I've *NOT* had an answer. Can we move along, please? -- ___ Python tracker ___ _

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-03-23 Thread Georg Brandl
Georg Brandl added the comment: > Can we move along, please? Indeed. Further discussion, if felt to be really necessary, should take place on python-dev. -- ___ Python tracker ___

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-03-23 Thread Martin v . Löwis
Martin v. Löwis added the comment: BreamoreBoy: Support for this patch comes from several properties of the patch and the way it is stated that make it easy to like it. It is well-researched, well-presented, and clearly can't have negative impact on the systems that *are* supported. This is di

[issue21042] ctypes.util.find_library() should return full pathname instead of filename in linux

2014-03-23 Thread Hernan Grecco
New submission from Hernan Grecco: In Windows and OSX, `find_library` returns the full pathname of the library file. But on Linux, it returns just the filename. Is there a reason for this difference? For consistency, it would be better to return the full pathname in all cases. It is easy to

[issue1599254] mailbox: other programs' messages can vanish without trace

2014-03-23 Thread David Watson
David Watson added the comment: On Tue 18 Mar 2014, A.M. Kuchling wrote: > I suggest we apply the fix for #1, and for #2 just discard and > update the ToC when we lock the mailbox, ignoring other > possible routes to corruption (so no detecting the problem and > raising an ExternalClash exception

[issue21013] server-specific SSL context configuration

2014-03-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 92efd86d1a38 by Donald Stufft in branch '3.4': Issue #21013: Enhance ssl.create_default_context() for server side contexts http://hg.python.org/cpython/rev/92efd86d1a38 -- nosy: +python-dev ___ Python tra

[issue21013] server-specific SSL context configuration

2014-03-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset aa2eb034c4f7 by Donald Stufft in branch 'default': Merge the patch for issue #21013 into default http://hg.python.org/cpython/rev/aa2eb034c4f7 -- ___ Python tracker __

[issue19537] Fix misalignment in fastsearch_memchr_1char

2014-03-23 Thread STINNER Victor
STINNER Victor added the comment: What is the size of the PyASCIIObject on x86/x64 with and without the patch? GCC and Visual Studio provide attributes to align structures. -- ___ Python tracker ___

[issue19537] Fix misalignment in fastsearch_memchr_1char

2014-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > What is the size of the PyASCIIObject on x86/x64 with and without the > patch? Haven't tried on x86, but on x86-64 it's the same. If it changes it will probably get detected by the sys.getsizeof() tests. -- ___ Pyt

[issue18967] Find a less conflict prone approach to Misc/NEWS

2014-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Like David I don't really care, but it seems Zach's script may show promise. I think it would be nice if "news.py --commit": 1) popped up an editor window (like hg commit does) 2) processed the editor results and looked for hints of an issue number 3) automatica

[issue18967] Find a less conflict prone approach to Misc/NEWS

2014-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Note that the editor may be pre-filled with a skeleton: # --- Fill in the NEWS message here # (lines prefixed with '#' will be removed) Issue #xxx: # --- Additional text for the commit message below # (won't be reflected in NEWS) # --- Commit information

[issue18967] Find a less conflict prone approach to Misc/NEWS

2014-03-23 Thread R. David Murray
R. David Murray added the comment: There also needs to be a way to specify a different NEWS entry from the commit message first line. -- ___ Python tracker ___ _

[issue21043] Stop reccomending CACert.org in the SSL documentation

2014-03-23 Thread Alex Gaynor
New submission from Alex Gaynor: CACert is not in the root trust store on *any* platform that I'm aware of, and has not passed any audits. See http://lwn.net/SubscriberLink/590879/ce23ed7bab68e489/ for more background. In it's place I've added StartSSL, which is included in most (all?) root tr

[issue21043] Stop reccomending CACert.org in the SSL documentation

2014-03-23 Thread Donald Stufft
Donald Stufft added the comment: I completely agree, it seems less than good to recommend CACert. -- ___ Python tracker ___ ___ Python

[issue21043] Stop reccomending CACert.org in the SSL documentation

2014-03-23 Thread Alex Gaynor
Changes by Alex Gaynor : -- versions: +Python 2.7, Python 3.4, Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue21043] Stop reccomending CACert.org in the SSL documentation

2014-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: That whole paragraph in the documentation is weird. Usually, you don't download select root certificates from various CAs, you just elect to trust a predetermined set of root certs (the system ones, usually). I would suggest rewording it and dropping the vario

[issue21043] Stop reccomending CACert.org in the SSL documentation

2014-03-23 Thread Donald Stufft
Donald Stufft added the comment: It's quite old (that paragraph) likely it was written that way because back then Python didn't have a way to load certificates. -- ___ Python tracker __

[issue21043] Stop reccomending CACert.org in the SSL documentation

2014-03-23 Thread Alex Gaynor
Alex Gaynor added the comment: I've attempted to modernize the paragraph. -- Added file: http://bugs.python.org/file34599/cacert.diff ___ Python tracker ___ _

[issue21043] Stop reccomending CACert.org in the SSL documentation

2014-03-23 Thread Alex Gaynor
Alex Gaynor added the comment: Removed 2.7 since there's no API for getting the platform certs. -- versions: -Python 2.7 ___ Python tracker ___ _

[issue21043] Stop reccomending CACert.org in the SSL documentation

2014-03-23 Thread Alex Gaynor
Changes by Alex Gaynor : Added file: http://bugs.python.org/file34600/cacert.diff ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue21043] Stop recommending CACert.org in the SSL documentation

2014-03-23 Thread Mark Lawrence
Changes by Mark Lawrence : -- title: Stop reccomending CACert.org in the SSL documentation -> Stop recommending CACert.org in the SSL documentation ___ Python tracker ___ __

[issue21020] PyMethodDef ml_doc is char* instead of const char*

2014-03-23 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue21019] PyMethodDef ml_name is char* instead of const char*

2014-03-23 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue21021] PyMemberDef name is char* instead of const char*

2014-03-23 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue21022] PyMemberDef doc is char* instead of const char*

2014-03-23 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue21024] PyTypeObject tp_doc is char* instead of const char*

2014-03-23 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue21023] PyTypeObject tp_name is char* instead of const char*

2014-03-23 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue21044] tempfile.TemporaryFile() shouldn't have a name attribute

2014-03-23 Thread Antoine Pietri
New submission from Antoine Pietri: The fact that tempfile.TemporaryFile() has a "name" integer attribute causes weird behavior when interacting with libraries that rely on this attribute being a valid string for file objects. For instance, it led to this exception with the "tarfile" module, w

[issue21044] tempfile.TemporaryFile() shouldn't have a name attribute

2014-03-23 Thread Antoine Pietri
Antoine Pietri added the comment: Alternatively, if the "name" attribute can't be removed, I propose the following diff for the tarfile module: -if name is None and hasattr(fileobj, "name"): +if name is None and hasattr(fileobj, "name") and isinstance(fileobj.name, str): :-) -- _

[issue21045] fix layout to generate documentation for Qt Assistant

2014-03-23 Thread Jorge Araya Navarro
New submission from Jorge Araya Navarro: Python use sphinx to generate its documentation, sphinx can generate documentation for Qt Assistant using the qthelp builder (and `qcollectiongenerator build/qthelp/Python.qhcp`). The thing is that using the default layout or static css files, the final

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-03-23 Thread Larry Hastings
Larry Hastings added the comment: Martin: I hadn't realized there was such a rule from Guido. Can you cite where he said that? Obviously I didn't mind accepting this patch, as it looks like it would have roughly zero maintenance cost for anyone who doesn't care about 68k. But if Guido has s

[issue21046] Document formulas used in statistics

2014-03-23 Thread Zachary Ware
New submission from Zachary Ware: >From docs@: On Sun, Mar 23, 2014 at 5:55 PM, Alex wrote: > http://docs.python.org/dev/library/statistics.html > > I know math. I ended the institute. But in Russia. Doc doesn't show me WHAT > FORMULAS are used for mean, median, median_low , etc. I canot unde

[issue21046] Document formulas used in statistics

2014-03-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: At the top of the documentation page is a link to the pure python source code for the statistics functions. The source for the main functions is short, readable, and clear about exactly what is being done. The code for the help functions like _sum() is a

[issue21047] html.parser.HTMLParser: convert_charrefs should become True by default

2014-03-23 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis: Follow-up to issue #13633. Lib/html/parser.py still has: if convert_charrefs is _default_sentinel: convert_charrefs = False # default warnings.warn("The value of convert_charrefs will become True in " "3.5. You

[issue21048] Index 'as' in import and with statements

2014-03-23 Thread Terry J. Reedy
New submission from Terry J. Reedy: Did I forget anything? (Patch vs. 3.4) -- files: index-as.diff keywords: patch messages: 214669 nosy: terry.reedy priority: normal severity: normal stage: patch review status: open title: Index 'as' in import and with statements type: behavior versions

[issue21044] tempfile.TemporaryFile() shouldn't have a name attribute

2014-03-23 Thread eryksun
eryksun added the comment: This name attribute is documented here: http://docs.python.org/3/library/io#io.FileIO.name 3.4 Source: http://hg.python.org/cpython/file/04f714765c13/Modules/_io/fileio.c#l432 In PY2, os.fdopen sets the name to ''. See the related issue 13781. Here's the workaround

[issue21044] tempfile.TemporaryFile() shouldn't have a name attribute

2014-03-23 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue21049] Flood of “ImportWarning: sys.meta_path is empty” after exception with socket subclass

2014-03-23 Thread Martin Panter
New submission from Martin Panter: With the code included below, and warnings enabled, I see a flood of unexpected ImportWarnings as the interpreter exits. The issue is seen with Python 3.4.0, but apparently not with 3.3.5. The issue originally happened with code using the Py Socks library

<    1   2