[issue31710] setup.py: _ctypes won't get built when system ffi is only in $PREFIX

2018-08-11 Thread Matt Pruitt
Matt Pruitt added the comment: Also ran into this issue while building Python in an isolated environment. Realized that libffi is installing into the $EPREFIX/lib64 directory of our build environment. Despite pkg-config returning the correct directory for linking libffi, it took

[issue34473] pip is unusable on Windows 10 1803 - SHA-1 certificates are untrusted

2018-08-23 Thread Matt Tuttle
New submission from Matt Tuttle : Running pip install ANYTHING results in an SSL failure on Windows 10 1803 because SHA-1 certificates are untrusted. -- components: Installation, Windows messages: 323945 nosy: mtuttle, paul.moore, steve.dower, tim.golden, zach.ware priority: normal

[issue34473] pip is unusable on Windows 10 1803 - SHA-1 certificates are untrusted

2018-08-23 Thread Matt Tuttle
Matt Tuttle added the comment: It was a firewall issue that affected pip and conda in the same way. -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/i

[issue34473] pip is unusable on Windows 10 1803 - SHA-1 certificates are untrusted

2018-08-23 Thread Matt Tuttle
Matt Tuttle added the comment: Thanks Steve, you were right it is a firewall issue that impacted both pip and conda simultaneously. ☹ -- ___ Python tracker <https://bugs.python.org/issue34

[issue34473] pip is unusable on Windows 10 1803 - SHA-1 certificates are untrusted

2018-08-23 Thread Matt Tuttle
Matt Tuttle added the comment: Yep. You are right it is a firewall issue. -- ___ Python tracker <https://bugs.python.org/issue34473> ___ ___ Python-bugs-list m

[issue34995] functools.cached_property does not maintain the wrapped method's __isabstractmethod__

2018-10-15 Thread Matt Wilber
Change by Matt Wilber : -- components: Library (Lib) nosy: mwilbz priority: normal severity: normal status: open title: functools.cached_property does not maintain the wrapped method's __isabstractmethod__ versions: Python 3.8 ___ Python tr

[issue34995] functools.cached_property does not maintain the wrapped method's __isabstractmethod__

2018-10-15 Thread Matt Wilber
Change by Matt Wilber : -- keywords: +patch pull_requests: +9266 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34995> ___ ___ Py

[issue34995] functools.cached_property does not maintain the wrapped method's __isabstractmethod__

2018-10-15 Thread Matt Wilber
Matt Wilber added the comment: This allows a developer to add a @cached_property to a method with the @abstractmethod decorator, without breaking the check for abstract methods on ABC instantiation. That is, if you tried to instantiate an ABC with a method that had a method decorated with

[issue34995] functools.cached_property does not maintain the wrapped method's __isabstractmethod__

2018-10-17 Thread Matt Wilber
Matt Wilber added the comment: I agree, a comment can serve the same purpose. But for the same reasons it's useful to express typing hints in Python with real syntax, and the reasons it's useful to have the abc module in the first place, I think it is useful to be able to a

[issue34995] functools.cached_property does not maintain the wrapped method's __isabstractmethod__

2018-10-17 Thread Matt Wilber
Matt Wilber added the comment: To add some more context, the existing Python documentation is a little misleading in this situation: https://docs.python.org/3/library/abc.html#abc.abstractmethod It shows that labeling a method with @property @abstractmethod ought to be done in the order

[issue13123] bdist_wininst uninstaller does not remove pycache directories

2013-05-31 Thread Matt Wilkie
Changes by Matt Wilkie : -- nosy: +Matt.Wilkie ___ Python tracker <http://bugs.python.org/issue13123> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4636] bdist_wininst installer with install script raises exception

2013-05-31 Thread Matt Wilkie
Matt Wilkie added the comment: I confirm this is happening with 3.2.4 from an installer generated in 2.7.4 (64bit Win7, 32bit python): https://pypi.python.org/pypi/leo/4.11.devel-build-5802 -- nosy: +Matt.Wilkie ___ Python tracker <h

[issue4331] Add functools.partialmethod

2013-06-05 Thread Matt Joiner
Matt Joiner added the comment: This sounds excellent Nick. -- ___ Python tracker <http://bugs.python.org/issue4331> ___ ___ Python-bugs-list mailing list Unsub

[issue18204] distutils error showing upload error message

2013-06-13 Thread Matt Perry
New submission from Matt Perry: Distutils attempts "r.read()" instead of "request.read()" when showing an upload error message. -- assignee: eric.araujo components: Distutils files: disutils_error_message.diff keywords: patch messages: 191088 nosy: eric.araujo, tar

[issue2943] Distutils should generate a better error message when the SDK is not installed

2013-07-24 Thread Matt Hickford
Matt Hickford added the comment: ( Upstreamed from Pip https://github.com/pypa/pip/issues/942 ) There are lot of Python users on Windows. If they succeed in installing a package manager (a struggle), this is typically their first experience with it $ pip install numpy blah blah blah

[issue9148] os.execve puts process to background on windows

2013-08-04 Thread Matt Joiner
Changes by Matt Joiner : -- nosy: +anacrolix ___ Python tracker <http://bugs.python.org/issue9148> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11798] Test cases not garbage collected after run

2013-08-04 Thread Matt McClure
Matt McClure added the comment: Michael Foord voidspace.org.uk> writes: > On 2 Aug 2013, at 19:19, Antoine Pitrou pitrou.net> wrote: > > The patch is basically ready for commit, except for a possible doc > > addition, no? > > Looks to be the case, reading t

[issue11798] Test cases not garbage collected after run

2013-08-04 Thread Matt McClure
Changes by Matt McClure : Added file: http://bugs.python.org/file31154/11798-20130803-matthewlmcclure.patch ___ Python tracker <http://bugs.python.org/issue11

[issue11798] Test cases not garbage collected after run

2013-08-27 Thread Matt McClure
Matt McClure added the comment: Andrew, I didn't understand your message. Are you asking me to change the patch somehow? Or asking Michael to review and apply it? Best, Matt -- ___ Python tracker <http://bugs.python.org/is

[issue11798] Test cases not garbage collected after run

2013-08-27 Thread Matt McClure
Matt McClure added the comment: Andrew, I signed the agreement as matthewlmcclure and as matthewlmcclure-gmail. Is there any way I can merge those two user accounts? I believe the original patch was Tom Wardill's. I just updated his patch. -- nosy: +matthewlmc

[issue11798] Test cases not garbage collected after run

2013-08-28 Thread Matt McClure
Matt McClure added the comment: This might fix it (untested): diff -r d748d7020192 Lib/test/test_doctest.py --- a/Lib/test/test_doctest.py Sat Aug 03 10:09:25 2013 -0400 +++ b/Lib/test/test_doctest.py Wed Aug 28 15:35:58 2013 -0400 @@ -2329,6 +2329,8 @@ Now, when we run the test

[issue1602] windows console doesn't print or input Unicode

2012-05-19 Thread Matt Mackall
Changes by Matt Mackall : -- nosy: -Matt.Mackall ___ Python tracker <http://bugs.python.org/issue1602> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4033] python search path - .pth recursion

2012-05-21 Thread Matt B
Changes by Matt B : -- nosy: +Matt.B ___ Python tracker <http://bugs.python.org/issue4033> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue1652] subprocess should have an option to restore SIGPIPE to default action

2012-05-30 Thread Matt Joiner
Changes by Matt Joiner : -- nosy: +anacrolix ___ Python tracker <http://bugs.python.org/issue1652> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10592] pprint module doesn't work well with OrderedDicts

2012-06-22 Thread Matt Barr
Changes by Matt Barr : -- nosy: +Matt.Barr ___ Python tracker <http://bugs.python.org/issue10592> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15139] Speed up threading.Condition wakeup

2012-07-04 Thread Matt Joiner
Matt Joiner added the comment: Did this make it into 3.3? -- nosy: +anacrolix ___ Python tracker <http://bugs.python.org/issue15139> ___ ___ Python-bugs-list m

[issue15388] SAX parse (ExpatParser) leaks file handle when given filename input

2012-07-18 Thread Matt Hillsdon
New submission from Matt Hillsdon : The following example uses make_parser / parse to read a trivial XML document by filename and then attempts to delete the file. On Win32 I can't unlink the file because the parse does not seem to close the file handle. import os import tempfile

[issue21199] Python on 64-bit Windows uses signed 32-bit type for read length

2014-04-10 Thread Matt Mackall
New submission from Matt Mackall: Python's file_read uses an 'l' type to parse its args which results in a 31-bit size limit on reads on 64-bit Windows. It should instead use an ssize_t. Related Mercurial bug: http://bz.selenic.com/show_bug.cgi?id=4215 -- componen

[issue6623] Lib/ftplib.py Netrc class should be removed.

2014-04-13 Thread Matt Chaput
Matt Chaput added the comment: Created patch to remove the Netrc class and its unit tests (for Python 3.5). -- nosy: +maatt Added file: http://bugs.python.org/file34806/remove_Netrc_class.patch ___ Python tracker <http://bugs.python.org/issue6

[issue6623] Lib/ftplib.py Netrc class should be removed.

2014-04-14 Thread Matt Chaput
Matt Chaput added the comment: This patch is the same as my previous one, except instead of removing Netrc usage from the ftplib.test() function, it replaces it with the netrc.netrc object. Note that there are no existing tests for the ftplib.test() function. Also did some very minor cleanups

[issue21198] Minor tarfile documentation bug

2014-04-14 Thread Matt Chaput
Matt Chaput added the comment: Simple patch to remove the underscore in tarfile.rst. -- keywords: +patch nosy: +maatt Added file: http://bugs.python.org/file34824/issue21198.patch ___ Python tracker <http://bugs.python.org/issue21

[issue21146] update gzip usage examples in docs

2014-04-14 Thread Matt Chaput
Matt Chaput added the comment: The patch looks good to me. -- nosy: +maatt ___ Python tracker <http://bugs.python.org/issue21146> ___ ___ Python-bugs-list mailin

[issue20491] textwrap: Non-breaking space not honored

2014-04-14 Thread Matt Chaput
Matt Chaput added the comment: Patch on top of dbudinova's that attempts to replace the concatenation of strings with a verbose regex. -- nosy: +maatt Added file: http://bugs.python.org/file34827/issue20491_verbose.patch ___ Python tracker

[issue21198] Minor tarfile documentation bug

2014-04-14 Thread Matt Chaput
Changes by Matt Chaput : Removed file: http://bugs.python.org/file34824/issue21198.patch ___ Python tracker <http://bugs.python.org/issue21198> ___ ___ Python-bugs-list m

[issue21198] Minor tarfile documentation bug

2014-04-14 Thread Matt Chaput
Matt Chaput added the comment: Oops! Yes, I accidentally included a bunch of other crap. -- ___ Python tracker <http://bugs.python.org/issue21198> ___ ___ Pytho

[issue21199] Python on 64-bit Windows uses signed 32-bit type for read length

2014-04-15 Thread Matt Mackall
Matt Mackall added the comment: Actually, no, all the size_t types are 64-bit on Windows 64: https://en.wikipedia.org/wiki/64-bit_computing#64-bit_data_models To confirm this, I found someone nearby with a 64-bit Windows and he had no trouble allocating a 3G string with a = b'a' *

[issue21343] os.path.relpath returns inconsistent types

2014-04-23 Thread Matt Bachmann
New submission from Matt Bachmann: I noticed an issue passing in unicode to os.path.relpath. Specifically that in some cases when passing in unicode I would get back unicode and others I would get back a string. Below I demonstrate the issue. I also attached a patch. Is this an issue or am I

[issue21343] os.path.relpath returns inconsistent types

2014-05-14 Thread Matt Bachmann
Matt Bachmann added the comment: Can you help me understand why not? If I give it two unicode strings it sometimes gives me back a unicode and sometimes gives me back a string. In python3 this does what I expect. In python27 I now have to check the type I get back because I cannot be sure

[issue21343] os.path.relpath returns inconsistent types

2014-05-25 Thread Matt Bachmann
Matt Bachmann added the comment: There is a difference! '.' is a bytes string and u'.' is a unicode one! I found this problem because I work on a project that supports both python2 and python3. In python3 I pass in unicode I get back unicode. In python2.7 I pass in unico

[issue21343] os.path.relpath returns inconsistent types

2014-05-25 Thread Matt Bachmann
Matt Bachmann added the comment: Perhaps this is the bug I should be filing but here is why this comes up for me. I get different output from this function if I pass in two types. On my machine: os.path.relpath(u'test_srcl.txt', u'.') returns u'test_src.txt' o

[issue21343] os.path.relpath returns inconsistent types

2014-05-25 Thread Matt Bachmann
Matt Bachmann added the comment: Looking into the project im working on I discovered why relpath was acting strangely. It is because the project mocks get_cwd but not get_cwdu. Your request helped me track that down :-) So that is not an issue. However, the issue described in the original

[issue16370] Regarding embedding Python in Another Application

2012-10-31 Thread Matt Jones
Matt Jones added the comment: Andrew, below is a revision of your comment with a few corrections made by a native english speaker. Function :c:func:`Py_SetProgramName` should be called before :c:func:`Py_Initialize` to inform the interpreter about paths to Python run

[issue9742] Python 2.7: math module fails to build on Solaris 9

2012-11-01 Thread Matt Selsky
Matt Selsky added the comment: I tested this patch again python 2.7.3 on Solaris 9 and the math module now builds correctly. Thanks! Let me know if you need any output. -- ___ Python tracker <http://bugs.python.org/issue9

[issue14373] C implementation of functools.lru_cache

2012-11-13 Thread Matt Joiner
Matt Joiner added the comment: I look forward to your feedback Ezio. -- ___ Python tracker <http://bugs.python.org/issue14373> ___ ___ Python-bugs-list mailin

[issue16675] Ship Python with a package manager

2012-12-13 Thread Matt Hickford
New submission from Matt Hickford: Python should ship with a full-featured package manager. Why? 1. Most programmers would rather use a reliable maintained library for a common task than roll their own code. Then the programmer can get on with solving their unique problems. This assumes the

[issue16675] Ship Python with a package manager

2013-01-07 Thread Matt Hickford
Matt Hickford added the comment: Please could you share a link to a previous discussion about packaging? I'm interested in user experience 'Python should ship with first class package management like other languages' rather than technical details 'Python should ship with d

[issue4331] Can't use _functools.partial() created function as method

2013-02-07 Thread Matt Joiner
Matt Joiner added the comment: What's preventing this from being committed and closed? -- ___ Python tracker <http://bugs.python.org/issue4331> ___ ___ Pytho

[issue19368] Seg Fault after upgrading to OS X Mavericks

2013-10-23 Thread Matt Dodge
New submission from Matt Dodge: Upgraded to OS X Mavericks (not sure if this is what caused it or not). Running Python 2.7.5 (v2.7.5:ab05e7dd2788, May 13 2013, 13:18:45) Python will seg fault when trying to evaluate the expression bool('False') To reproduce, from terminal, lau

[issue4331] Add functools.partialmethod

2013-10-31 Thread Matt Joiner
Changes by Matt Joiner : -- nosy: -anacrolix ___ Python tracker <http://bugs.python.org/issue4331> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2943] Distutils should generate a better error message when the SDK is not installed

2013-11-19 Thread Matt Hickford
Matt Hickford added the comment: For comparison, Ruby ships with a package manager, Gem. If a user tries to install a package with C extensions, they are given this user-friendly message: > Please update your PATH to include build tools or download the DevKit from > 'http://rubyin

[issue21883] relpath: Provide better errors when mixing bytes and strings

2014-06-29 Thread Matt Bachmann
New submission from Matt Bachmann: Howdy! I encountered this error when accidently passing in mixed types to reldir >>> import os >>> os.path.relpath('/Users/bachmann', b'.') Traceback (most recent call last): File "", line 1, in F

[issue21883] relpath: Provide better errors when mixing bytes and strings

2014-06-29 Thread Matt Bachmann
Changes by Matt Bachmann : -- keywords: +patch Added file: http://bugs.python.org/file35805/error_message.patch ___ Python tracker <http://bugs.python.org/issue21

[issue21883] relpath: Provide better errors when mixing bytes and strings

2014-06-29 Thread Matt Bachmann
Changes by Matt Bachmann : Removed file: http://bugs.python.org/file35805/error_message.patch ___ Python tracker <http://bugs.python.org/issue21883> ___ ___ Python-bug

[issue21883] relpath: Provide better errors when mixing bytes and strings

2014-06-29 Thread Matt Bachmann
Matt Bachmann added the comment: Includes change and tests. The test is similar so I just broke out the logic -- Added file: http://bugs.python.org/file35806/error_message.patch ___ Python tracker <http://bugs.python.org/issue21

[issue21987] TarFile.getmember on directory requires trailing slash iff over 100 chars

2014-07-25 Thread Matt Behrens
Matt Behrens added the comment: Here is a 3.5 fix based on Lars Gustäbel's, with test. -- nosy: +zigg versions: +Python 3.5 Added file: http://bugs.python.org/file36096/issue21987_py3.5_with_test.patch ___ Python tracker <http://bugs.py

[issue20788] distutils.msvccompiler - flags are hidden inside initialize()

2014-02-26 Thread Matt Goodman
New submission from Matt Goodman: The flags that you need to compile against libpythonXX.lib are hidden inside of the distutils.msvccompiler class. This is ok if you want to use distutils to compile extensions against the binary, but other build systems need to run initialize() to get access

[issue19570] distutils' Command.ensure_dirname fails on Unicode

2014-02-28 Thread Matt Riedemann
Matt Riedemann added the comment: For what it's worth, I'm building openstack docs on master (icehouse-3) for ceilometer, nova, cinder, heat, glance, keystone, and neutron (plus the clients) using sphinx 1.2.1 without this problem (unless I'm just not aware of it?). Anyway

[issue11240] Running unit tests in a command line tool leads to infinite loop with multiprocessing on Windows

2014-03-04 Thread Matt Chaput
Matt Chaput added the comment: IIRC the root issue turned out to be that when you execute any multiprocessing statements at the module/script level on Windows, you need to put it under if __name__ == "__main__", otherwise it will cause infinite spawning. I think this is mentio

[issue7209] Prevents uint_t from being used on QNX

2009-10-26 Thread Matt Kraai
New submission from Matt Kraai : pyconfig.h defines _POSIX_C_SOURCE to 200112L, which prevents QNX's sys/types.h from defining uint_t. Samba 4 uses this type, so it fails to compile if Python.h is included first (cf. https://bugzilla.samba.org/show_bug.cgi?id=6842). The attached patch

[issue7209] Prevents uint_t from being used on QNX

2009-10-26 Thread Matt Kraai
Matt Kraai added the comment: Here's an updated patch. The first time I forgot to regenerate pyconfig.h.in. -- Added file: http://bugs.python.org/file15203/define-_QNX_SOURCE.patch ___ Python tracker <http://bugs.python.org/i

[issue5827] os.path.normpath doesn't preserve unicode

2009-11-18 Thread Matt Giuca
Matt Giuca added the comment: Thanks Ezio. I've updated the patch to incorporate your suggestions. Note that I too have only tested it on Linux, but I tested both posixpath and ntpath (and there is no OS-specific code, except for the filenames themselves). I'm not sure if using

[issue3565] array documentation, method names not 3.0 compliant

2009-03-17 Thread Matt Giuca
Matt Giuca added the comment: Note that, irrespective of the changes to the library itself, the documentation is out of date since it still uses the old "string/unicode" nomenclature, rather than the new "bytes/string". I have provided a separate documentation patch which

[issue5521] sqlite3.h missing

2009-03-19 Thread Matt Mendell
New submission from Matt Mendell : File sqlite3.h missing from Python-3.0.1. setup.py looks for this file. Is this intentional? -- components: None messages: 83831 nosy: mendell severity: normal status: open title: sqlite3.h missing type: compile error versions: Python 3.0

[issue3613] base64.encodestring does not actually accept strings

2009-04-23 Thread Matt Giuca
Matt Giuca added the comment: I've attached a patch which renames encodestring to encodebytes (keeping encodestring around as an alias). Updated test and documentation. I also renamed decodestring to decodebytes, because it also refuses to accept a string (only a bytes). I have an altern

[issue3613] base64.encodestring does not actually accept strings

2009-04-23 Thread Matt Giuca
Matt Giuca added the comment: Now, base64.encodestring and decodestring seem a bit weird because the Base64 encoded string is also required to be a bytes. It seems to me that once something is Base64-encoded, it's considered to be ASCII text, not just some byte string, and therefore it s

[issue3565] array documentation, method names not 3.0 compliant

2009-04-23 Thread Matt Giuca
Matt Giuca added the comment: OK since the patches I submitted are now eight months old, I just did an update and re-applied them. I am submitting new patch files which don't change anything, but are patches against revision 71822 (should be much easier to apply). I'd still like

[issue3565] array documentation, method names not 3.0 compliant

2009-04-23 Thread Matt Giuca
Matt Giuca added the comment: Full method renaming patch. -- Added file: http://bugs.python.org/file13756/doc+bytesmethods.patch ___ Python tracker <http://bugs.python.org/issue3

[issue5827] os.path.normpath doesn't preserve unicode

2009-04-23 Thread Matt Giuca
New submission from Matt Giuca : In the Python 2.x branch, os.path.normpath will sometimes return a str even if given a unicode. This is not an issue in the Python 3.0 branch. This happens specifically when it throws away all string data and constructs its own: >>> os.path.n

[issue5827] os.path.normpath doesn't preserve unicode

2009-04-23 Thread Matt Giuca
Changes by Matt Giuca : -- type: -> behavior ___ Python tracker <http://bugs.python.org/issue5827> ___ ___ Python-bugs-list mailing list Unsubscri

[issue3565] array documentation, method names not 3.0 compliant

2009-04-23 Thread Matt Giuca
Matt Giuca added the comment: I agree with that -- too big a change to make now. But can we please get the documentation patch accepted? It's been waiting here for eight months with corrections to clearly-incorrect documentation. -- ___ P

[issue1712522] urllib.quote throws exception on Unicode URL

2009-05-26 Thread Matt Giuca
Matt Giuca added the comment: The issue of urllib.quote was discussed at extreme length in issue 3300, which was specific to Python 3. http://bugs.python.org/issue3300 In the end, I rewrote the entire family of urllib.quote and unquote functions; they're now Unicode compliant and a

[issue6118] urllib.parse.quote_plus ignores optional arguments

2009-05-26 Thread Matt Giuca
New submission from Matt Giuca : urllib.parse.quote_plus will ignore its encoding and errors arguments if its input string has a space in it. Intended behaviour: >>> urllib.parse.quote_plus("\xa2\xd8 \xff", encoding='latin-1') '%A2%D8+%FF' Observed behav

[issue1615158] POSIX capabilities support

2009-06-13 Thread Matt Kern
Matt Kern added the comment: Ping. Anything I can do? -- ___ Python tracker <http://bugs.python.org/issue1615158> ___ ___ Python-bugs-list mailing list Unsub

[issue6346] Rstrip Incorrectly Strips Some Strings

2009-06-26 Thread Matt Kubilus
New submission from Matt Kubilus : Rstrip has unexpected behavior with some strings. Example: - >>> "proxa.py".rstrip(".py") 'proxa' >>> "proxy.py".rstrip(".py") 'prox' - Tested with Python 2.6.1 --

[issue8821] Range check on unicode repr

2010-05-25 Thread Matt Giuca
New submission from Matt Giuca : In unicodeobject.c's unicodeescape_string, in UCS2 builds, if the last character of the string is the start of a UTF-16 surrogate pair (between '\ud800' and '\udfff'), there is a slight overrun problem. For example: >>> re

[issue8987] Distutils doesn't quote Windows command lines properly

2010-06-12 Thread Matt Giuca
New submission from Matt Giuca : I discovered this investigating a bug report that python-cjson doesn't compile properly on Windows (http://pypi.python.org/pypi/python-cjson). Cjson's setup.py asks distutils to compile with the flag '-DMODULE_VERSION="1.0.5&quo

[issue8987] Distutils doesn't quote Windows command lines properly

2010-06-12 Thread Matt Giuca
Changes by Matt Giuca : -- type: -> behavior ___ Python tracker <http://bugs.python.org/issue8987> ___ ___ Python-bugs-list mailing list Unsubscri

[issue3823] ssl.wrap_socket() is incompatible with servers that drop privileges, due to keyfile requirement

2010-06-29 Thread Matt Joiner
Matt Joiner added the comment: I take it this is out for 2.7, will it be in 3.2? -- nosy: +anacrolix ___ Python tracker <http://bugs.python.org/issue3

[issue9229] memoryview of mmap object not working in 2.7

2010-07-11 Thread Matt Gattis
New submission from Matt Gattis : This code works in 3.1.2 but not in 2.7: >>> import mmap >>> m = mmap.mmap(-1,20) >>> v = memoryview(m) Traceback (most recent call last): File "", line 1, in TypeError: cannot make memory view because objec

[issue6627] threading.local() does not work with C-created threads

2010-07-18 Thread Matt Joiner
Changes by Matt Joiner : -- nosy: +anacrolix ___ Python tracker <http://bugs.python.org/issue6627> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1712522] urllib.quote throws exception on Unicode URL

2010-07-18 Thread Matt Giuca
Matt Giuca added the comment: Thanks for doing that, Senthil. -- ___ Python tracker <http://bugs.python.org/issue1712522> ___ ___ Python-bugs-list mailin

[issue1712522] urllib.quote throws exception on Unicode URL

2010-07-19 Thread Matt Giuca
Matt Giuca added the comment: >From http://mail.python.org/pipermail/python-checkins/2010-July/095350.html: > Looking at the issue (which in itself was quite old), you could as well > have fixed the robotparser module instead. It isn't an issue with robotparser. The original rep

[issue1712522] urllib.quote throws exception on Unicode URL

2010-07-19 Thread Matt Giuca
Matt Giuca added the comment: > Well, isn't it a new feature you're adding? You had a function which raised a confusing and unintentional KeyError when given non-ASCII Unicode input. Now it doesn't. That's the bug fix part. What I assume you're referring to a

[issue1712522] urllib.quote throws exception on Unicode URL

2010-07-19 Thread Matt Giuca
Matt Giuca added the comment: > I think everyone assumed that the parameter should be a "str" object > and nothing else. Apparently some people used it accidentally with > some unicode strings and it "worked" until these strings contained > non-ASCII characters.

[issue1712522] urllib.quote throws exception on Unicode URL

2010-07-19 Thread Matt Giuca
Matt Giuca added the comment: OK sure, there are some other things broken, but they are mostly not dealing with string data, but binary data (for example, zlib expects a sequence of bytes, not characters). Just one quick point: > urllib.urlretrieve("file:///tmp/hé") > U

[issue2864] etree: Add XPath documentation

2010-07-19 Thread Matt Bone
Matt Bone added the comment: Here's a patch for 3.2 with some simple examples. They're under the ElementTree findall method. Maybe there should be similar examples for Element's find/findall methods? -- keywords: +patch nosy: +mbone Added file: http://bugs.pytho

[issue1712522] urllib.quote throws exception on Unicode URL

2010-07-21 Thread Matt Giuca
Matt Giuca added the comment: If you're going the way of option 2, I would strongly advise against relying on the KeyError. The fact that a KeyError is raised by urllib.quote is not part of it's specification, it's a bug/quirk in the implementation (which is now unlikely to

[issue1533105] NetBSD build with --with-pydebug causes SIGSEGV

2010-07-22 Thread Matt Fleming
Matt Fleming added the comment: I'm not really tracking this anymore but i can certainly try to recreate the issue sometime this week if required? On 17 July 2010 14:37, Stefan Krah wrote: > > Stefan Krah added the comment: > > Matt, if you still follow this: Does this pro

[issue8688] distutils sdist is too laze w.r.t. recalculating MANIFEST

2010-08-01 Thread Matt Mackall
Matt Mackall added the comment: This change just wrecked Mercurial's release build process. We've been building Mercurial release tarballs with a Makefile target wrapped around sdist for most of five years, and we've never had or wanted a MANIFEST.in file. We generate an exact

[issue8688] distutils sdist is too laze w.r.t. recalculating MANIFEST

2010-08-01 Thread Matt Mackall
Matt Mackall added the comment: Ok, we need a change that will work with Python 2.4 through 2.7. -- ___ Python tracker <http://bugs.python.org/issue8688> ___ ___

[issue8821] Range check on unicode repr

2010-08-02 Thread Matt Giuca
Matt Giuca added the comment: OK, I finally had time to review this issue again. Firstly, granted the original fix broke a test case, shouldn't we figure out why it broke and fix it, rather than just revert the change and continue relying on this tenuous assumption? Surely it's be

[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2016-12-11 Thread Matt Joiner
Matt Joiner added the comment: This is why I stopped contributing to Python. -- ___ Python tracker <http://bugs.python.org/issue14156> ___ ___ Python-bugs-list m

[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2016-12-15 Thread Matt Joiner
Changes by Matt Joiner : -- nosy: -anacrolix ___ Python tracker <http://bugs.python.org/issue14156> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23063] `python setup.py check --restructuredtext --strict --metadata` fails with: `warning: check: Could not finish the parsing.` if the RST document uses code or code-block directives.

2016-12-15 Thread Matt Bogosian
Changes by Matt Bogosian : -- nosy: +posita ___ Python tracker <http://bugs.python.org/issue23063> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28981] distutils/check.py overzealous catch block hides errors

2016-12-15 Thread Matt Bogosian
New submission from Matt Bogosian: >From (e.g) >https://github.com/python/cpython/blob/2.7/Lib/distutils/command/check.py#L145: {{{ try: parser.parse(data, document) except AttributeError as e: # <- this could happen anywhere inside par

[issue29187] Pickle failure is raising AttributeError and not PicklingError

2017-01-06 Thread Matt Dodge
New submission from Matt Dodge: When failing to pickle something (like a locally scoped class) the documentation indicates that a PicklingError should be raised. Doc links: - https://docs.python.org/3/library/pickle.html?highlight=pickle#pickle-picklable - https://docs.python.org/3.5

[issue27378] remove ref to Phil Schwartz's 'Kodos' in regex HOWTO

2016-06-23 Thread Matt Morrison
New submission from Matt Morrison: In the Regular Expressions HOWTO (https://docs.python.org/3/howto/regex.html#performing-matches, Doc/howto/regex.rst), there is the following paragraph: = You can learn about this by interactively experimenting with the :mod:`re` module. If you have

[issue27612] socket.gethostbyname resolving octal IP addresses incorrectly

2016-07-24 Thread Matt Robenolt
New submission from Matt Robenolt: This also affects socket.getaddrinfo on macOS only, but is fine on Linux. I've not tested on Windows to see behavior there. Given the IP address `0177...0001`, which is a valid octal format representing `127.0.0.1`, we can see varying re

[issue27612] socket.gethostbyname resolving octal IP addresses incorrectly

2016-07-25 Thread Matt Robenolt
Matt Robenolt added the comment: Sorry, to add a data point, in C, `gethostbyname` also does the correct thing on macOS. See: ``` #include #include #include #include #include #include #include int main(int argc, char *argv[]) { int i; struct hostent *lh = gethostbyname

[issue27612] socket.gethostbyname resolving octal IP addresses incorrectly

2016-07-25 Thread Matt Robenolt
Matt Robenolt added the comment: And lastly, it seems that `socket.gethostbyname_ex` _does_ work correctly on both platforms. ``` >>> socket.gethostbyname_ex('0177...0001') ('0177...0001', [], ['127.0.0.1']) ``` -- ___

<    1   2   3   4   5   6   >