[issue25409] fnmatch.fnmatch normalizes slashes/backslashes on Windows

2015-10-15 Thread R. David Murray
R. David Murray added the comment: I think the existing behavior is the desirable behavior, but in any case as you say it is too late to change it. The docs should indeed be clarified by changing the wording to indicate that fnmatch calls normcase but fnmatchcase does not, with a link to

[issue25386] msvcrt_putch/msvcrt_putwch don't check the return value of _putch/_putwch

2015-10-15 Thread Eric V. Smith
Eric V. Smith added the comment: That's a great test, thanks. If we were designing this from scratch, I agree that raising an exception is the right thing to do. But the questions is: can we change the behavior now? I think it's unlikely that anyone is relying on these functions returning

[issue25402] More accurate estimation of the number of digits in int to decimal string conversion

2015-10-15 Thread R. David Murray
Changes by R. David Murray : -- title: Accurater estimation of the number of digits in int to decimal string conversion -> More accurate estimation of the number of digits in int to decimal string conversion ___ Python

[issue25194] Opt-in motivations & affiliations page for core contributors

2015-10-15 Thread Nick Coghlan
Nick Coghlan added the comment: Additional notes for a revised preamble: * it may be worth linking to the OpenHub contributor page to highlight the automatically generated list of active core contributors, and the fact that this page is designed to add the Motivations & Affiliations

[issue25411] SMTPHandler in the logging module fails with unicode strings

2015-10-15 Thread simon04
New submission from simon04: This relates to the unresolved issue9208 (Python 2). SMTPHandler fails when receiving unicode strings. Example (from msg109621): import logging,logging.handlers smtpHandler = logging.handlers.SMTPHandler( mailhost=("smtp.free.fr",25),

[issue25194] Opt-in motivations & affiliations page for core contributors

2015-10-15 Thread Berker Peksag
Berker Peksag added the comment: > * it may be worth linking to the OpenHub contributor page to highlight the > automatically generated list of active core contributors +1 but that data is a bit outdated. Perhaps the GitHub mirror can be used as a more up-to-date data source:

[issue22005] datetime.__setstate__ fails decoding python2 pickle

2015-10-15 Thread Christian Tanzer
Christian Tanzer added the comment: IMNSHO, the problem lies in the Python 3 pickle.py and it is **not** restricted to datetime instances (for a detailed rambling see http://c-tanzer.at/en/breaking_py2_pickles_in_py3.html) . In Python 2, 8-bit strings are used for text and for binary data.

[issue25210] Special-case NoneType() in do_richcompare()

2015-10-15 Thread Ezio Melotti
Ezio Melotti added the comment: Thanks! -- stage: patch review -> resolved ___ Python tracker ___ ___

[issue25410] Clean up and fix OrderedDict

2015-10-15 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch cleans up and fixes minor bugs in C implementation of OrderedDict. 1. Used the "p" format unit instead of manual calling PyObject_True() for parsing boolean parameters. 2. Used _Py_Identifier private API instead of char* API if

[issue25403] urllib.parse.urljoin is broken in python 3.5

2015-10-15 Thread Wei Wu
Wei Wu added the comment: It's a change made in 3.5 that resolution of relative URLs confirms to the RFC 3986. See https://bugs.python.org/issue22118 for details. -- nosy: +kilowu ___ Python tracker

[issue25403] urllib.parse.urljoin is broken in python 3.5

2015-10-15 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +berker.peksag, martin.panter, orsenthil ___ Python tracker ___

[issue25403] urllib.parse.urljoin is broken in python 3.5

2015-10-15 Thread STINNER Victor
STINNER Victor added the comment: See also this change: changeset: 95683:fc0e79387a3a user:Berker Peksag date:Thu Apr 16 02:31:14 2015 +0300 files: Lib/test/test_urlparse.py Lib/urllib/parse.py Misc/NEWS description: Issue #23703: Fix a

[issue16113] Add SHA-3 (Keccak) support

2015-10-15 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- priority: release blocker -> normal resolution: fixed -> stage: commit review -> status: closed -> open title: SHA-3 (Keccak) support may need to be removed before 3.4 -> Add SHA-3 (Keccak) support versions:

[issue25402] Accurater estimation of the number of digits in int to decimal string conversion

2015-10-15 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___

[issue21475] Support the Sitemap extension in robotparser

2015-10-15 Thread Berker Peksag
Berker Peksag added the comment: issue 25400 is not a blocker of this, so feel free to write a patch. -- ___ Python tracker ___

[issue25006] List pybind11 binding generator

2015-10-15 Thread Wenzel Jakob
Wenzel Jakob added the comment: Hi, just another ping regarding this ticket. Since the last message, pybind11 now has: - Documentation on readthedocs: http://pybind11.readthedocs.org/en/latest/ - Continuous integration tests: https://travis-ci.org/wjakob/pybind11 - A first stable release:

[issue25402] Accurater estimation of the number of digits in int to decimal string conversion

2015-10-15 Thread STINNER Victor
STINNER Victor added the comment: Currently, the code uses Py_ABS(Py_SIZE(x))*PyLong_SHIFT to estimate the upper-bound of the number of bits of the number x. It's a raw estimation, the difference can be up to 29 bits. We may try to compute the exact number of bits, x.bit_length(). Python 3.5

[issue25403] urllib.parse.urljoin is broken in python 3.5

2015-10-15 Thread Berker Peksag
Changes by Berker Peksag : -- keywords: +3.5regression ___ Python tracker ___ ___

[issue25402] Accurater estimation of the number of digits in int to decimal string conversion

2015-10-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > But why only using 2 digits for log2(10) estimation? Because the difference between 3 and 3.3 is 10%, and the difference between 3.3 and exact log2(10) is only 1%. Yes, we can use more digits, but the effect of any additional digit is decreased in

[issue25412] __floordiv__ in module fraction fails with TypeError instead of returning NotImplemented

2015-10-15 Thread Sergey Shashkov
New submission from Sergey Shashkov: __floordiv__ in module fraction fails with TypeError instead of returning NotImplemented when modulo is a class without __rtruediv__ or __mul__. Code sample: class Foo(object): def __rdivmod__(self, other): return 'rdivmod works' from

[issue25414] Drop unnecessary size limit test from deques on builds with 64-bit numbers

2015-10-15 Thread Raymond Hettinger
New submission from Raymond Hettinger: The following test can never succeed when PY_SSIZE_T_MAX is 63-bits (as that number of allocations would exceed possible time and memory). #define MAX_DEQUE_LEN (PY_SSIZE_T_MAX - 3*BLOCKLEN) if (len >= MAX_DEQUE_LEN) {

[issue25414] Bypass unnecessary size limit test from deques on builds with 64-bit numbers

2015-10-15 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- components: +Extension Modules keywords: +patch stage: -> patch review title: Drop unnecessary size limit test from deques on builds with 64-bit numbers -> Bypass unnecessary size limit test from deques on builds with

[issue25412] __floordiv__ in module fraction fails with TypeError instead of returning NotImplemented

2015-10-15 Thread STINNER Victor
STINNER Victor added the comment: Can you please write a patch? See https://docs.python.org/devguide/ -- nosy: +haypo ___ Python tracker ___

[issue25414] Bypass unnecessary size limit test from deques on builds with 64-bit numbers

2015-10-15 Thread Raymond Hettinger
Changes by Raymond Hettinger : Added file: http://bugs.python.org/file40790/deque_limit_test.diff ___ Python tracker ___

[issue25412] __floordiv__ in module fraction fails with TypeError instead of returning NotImplemented

2015-10-15 Thread R. David Murray
Changes by R. David Murray : -- nosy: +mark.dickinson ___ Python tracker ___ ___

[issue25006] List pybind11 binding generator

2015-10-15 Thread Wenzel Jakob
Wenzel Jakob added the comment: Dear Antoine, I wonder if this makes sense, as pybind11 is a collection of C++ header files using the Python C API. The library is meant to be used by other projects but does not generate any installable code by itself. (i.e. it isn't clear what pip install

[issue25006] List pybind11 binding generator

2015-10-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: You could perhaps start by creating a PyPI entry for your package: https://pypi.python.org/pypi?%3Aaction=search=pybind11=search -- nosy: +pitrou ___ Python tracker

[issue25411] SMTPHandler in the logging module fails with unicode strings

2015-10-15 Thread R. David Murray
R. David Murray added the comment: This mostly looks good to me, Vinay. Simon: did you intentionally omit the date header, and if so why? (The smtp server normally adds one, but you can't really depend on that). Adding it would look like: msg['Date'] = email.utils.localtime() (Hmm. I

[issue25412] __floordiv__ in module fraction fails with TypeError instead of returning NotImplemented

2015-10-15 Thread Sergey Shashkov
Sergey Shashkov added the comment: def __floordiv__(a, b): """a // b""" if isinstance(b, numbers.Complex): return math.floor(a / b) else: return NotImplemented And the same for __mod__. -- ___ Python

[issue25411] SMTPHandler in the logging module fails with unicode strings

2015-10-15 Thread simon04
Changes by simon04 : -- nosy: +r.david.murray ___ Python tracker ___ ___

[issue25413] ctypes (libffi) fails to compile on Solaris X86

2015-10-15 Thread Cristi Fati
New submission from Cristi Fati: 2.7.10 regression (at least compared to 2.7.3), not sure which exact version between the 2 first introduced it. Due to addition of `win32.S` in the list build on Solaris X86 (32bit which also identifies the platform as X86) fails. Attaching a patch. After

[issue25410] Clean up and fix OrderedDict

2015-10-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: These all look good except for perhaps #5 which I need to look at a bit more for its effect on OD subclasses. -- ___ Python tracker

[issue25415] I can create instances of io.IOBase

2015-10-15 Thread Gerrit Holl
Gerrit Holl added the comment: When the documentation says there is no public constructor, I expected it would be impossible to create instances, as in: TypeError: cannot create 'builtin_function_or_method' instances Perhaps I misunderstand the documentation. --

[issue25417] Minor typo in Path.samefile docstring

2015-10-15 Thread Antony Lee
New submission from Antony Lee: The output of pydoc for Path.samefile currently reads pathlib.Path.samefile = samefile(self, other_path) Return whether `other_file` is the same or not as this file. (as returned by os.path.samefile(file, other_file)). It should arguably be something

[issue25417] Minor typo in Path.samefile docstring

2015-10-15 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: -ethan.furman ___ Python tracker ___ ___

[issue25403] urllib.parse.urljoin is broken in python 3.5

2015-10-15 Thread Martin Panter
Martin Panter added the comment: It is true that 3.5 is meant to follow RFC 3986, which obsoletes RFC 1808 and specifies slightly different behaviour for abnormal cases. This change is documented under urljoin(), and also in “What’s New in 3.5”. Pavel’s first case is one of these differences

[issue25417] Minor typo in Path.samefile docstring

2015-10-15 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___

[issue21475] Support the Sitemap extension in robotparser

2015-10-15 Thread Peter Wirtz
Peter Wirtz added the comment: Here is a patch that provides support for the Sitemap extension. -- keywords: +patch Added file: http://bugs.python.org/file40791/robotparser_site_maps_v1.patch ___ Python tracker

[issue25415] I can create instances of io.IOBase

2015-10-15 Thread Martin Panter
Martin Panter added the comment: “No public constructor” to me means that it is not defined how or if you can construct instances other than by the public subclasses. What do you expect to happen? How do you expect the public subclasses such as FileIO and BufferedReader to work if the base

[issue25409] fnmatch.fnmatch normalizes slashes/backslashes on Windows

2015-10-15 Thread Florian Bruhin
New submission from Florian Bruhin: On Windows 8: >>> fnmatch.fnmatch(r'foo\bar', 'foo/bar') True >>> fnmatch.fnmatchcase(r'foo\bar', 'foo/bar') False This is due to fnmatch calling os.path.normpath on the arguments (to get the case-sensitivity of the filesystem), which on Windows *also*

[issue25416] Add encoding aliases from the (HTML5) Encoding Standard

2015-10-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +Unicode nosy: +ezio.melotti, haypo, lemburg, loewis stage: -> needs patch versions: +Python 3.6 ___ Python tracker