[issue17202] Add .bat line to .hgeol

2015-04-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 019c17a4198a by Zachary Ware in branch '2.7': Issue #17202: Add .bat to .hgeol to force them to CRLF. https://hg.python.org/cpython/rev/019c17a4198a New changeset 640ccb924b5f by Zachary Ware in branch '3.4': Issue #17202: Add .bat to .hgeol to

[issue19292] Make SSLContext.set_default_verify_paths() work on Windows

2015-04-13 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: pitrou - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19292 ___ ___ Python-bugs-list

[issue23864] issubclass without registration only works for one-trick pony collections ABCs.

2015-04-13 Thread Saul Shanabrook
Saul Shanabrook added the comment: I have added a failing test to based on the first example, of a class that provides the necessary methods, but fails to be an instance of Sequence. -- keywords: +patch nosy: +saulshanabrook Added file: http://bugs.python.org/file38935/patch.diff

[issue17751] ctypes/test/test_macholib.py fails when run from the installed location

2015-04-13 Thread Marin Dantchev
Marin Dantchev added the comment: @Zachary: Wrong paste. Correct change is Lib\ctypes\test\test_macholib.py@91160:6f63fff5c120, which makes the test only run on OSX. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17751

[issue23936] Wrong references to deprecated find_module instead of find_spec

2015-04-13 Thread Raúl Cumplido
New submission from Raúl Cumplido: While taking a look on the import mechanisms I've seen in the documentation that find_module has been deprecated for find_spec, but on different parts of the documentation there are still references to find_module, as in the definition of sys.meta_path

[issue21448] Email Parser use 100% CPU

2015-04-13 Thread R. David Murray
R. David Murray added the comment: Raymond, are you gong to apply the deque patch (maybe after doing performance measurement) or should we close this? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21448

[issue8106] SSL session management

2015-04-13 Thread lilydjwg
Changes by lilydjwg lilyd...@gmail.com: -- nosy: +lilydjwg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8106 ___ ___ Python-bugs-list mailing

[issue12053] Add prefetch() for Buffered IO (experiment)

2015-04-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: The proposed API seems strange to me. Is there an illustration of how it might be used? I suspect it wouldn’t be all that useful, and could more or less be implemented with the existing methods: True, but having it a Buffered method would allow it to

[issue23864] issubclass without registration only works for one-trick pony collections ABCs.

2015-04-13 Thread Saul Shanabrook
Changes by Saul Shanabrook s.shanabr...@gmail.com: Removed file: http://bugs.python.org/file38935/patch.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23864 ___

[issue23864] issubclass without registration only works for one-trick pony collections ABCs.

2015-04-13 Thread Saul Shanabrook
Changes by Saul Shanabrook s.shanabr...@gmail.com: Added file: http://bugs.python.org/file38937/patch.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23864 ___

[issue23934] inspect.signature reporting () for all builtin extension types

2015-04-13 Thread James Powell
James Powell added the comment: Discussed with Nick Coghlan. See attached patch to return `signature(object)` only if both `__new__` and `__init__` are shared with `object`. Otherwise, raise TypeError indicating built-in types not supported.

[issue504219] locale.resetlocale is broken

2015-04-13 Thread A.M. Kuchling
A.M. Kuchling added the comment: It doesn't seem to me that we've really deprecated getdefaultlocale() -- it's not documented as such, and MAL makes the good point that getdefaultlocale() is trying to avoid calling setlocale(). Perhaps this is just a documentation problem?

[issue17751] ctypes/test/test_macholib.py fails when run from the installed location

2015-04-13 Thread Zachary Ware
Zachary Ware added the comment: Ahh. Not quite, though; that change just changed the way unittest reports the results on non-Mac platforms. The problem is actually here: https://hg.python.org/cpython/file/default/Lib/ctypes/test/test_macholib.py#l34 We need a patch to try that import

[issue19292] Make SSLContext.set_default_verify_paths() work on Windows

2015-04-13 Thread Christian Heimes
Christian Heimes added the comment: I think we can close this bug for good. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19292 ___ ___

[issue23864] issubclass without registration only works for one-trick pony collections ABCs.

2015-04-13 Thread Saul Shanabrook
Changes by Saul Shanabrook s.shanabr...@gmail.com: Removed file: http://bugs.python.org/file38937/patch.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23864 ___

[issue19292] Make SSLContext.set_default_verify_paths() work on Windows

2015-04-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Great! Thank you! -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19292 ___

[issue23864] issubclass without registration only works for one-trick pony collections ABCs.

2015-04-13 Thread Saul Shanabrook
Changes by Saul Shanabrook s.shanabr...@gmail.com: Added file: http://bugs.python.org/file38938/patch.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23864 ___

[issue17898] gettext bug while parsing plural-forms metadata

2015-04-13 Thread Ned Deily
Ned Deily added the comment: LGTM. I think it should be backported to 2.7. -- nosy: +ned.deily versions: +Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17898 ___

[issue917120] imaplib: incorrect quoting in commands

2015-04-13 Thread Maciej Szulik
Changes by Maciej Szulik solt...@gmail.com: -- nosy: +maciej.szulik ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue917120 ___ ___ Python-bugs-list

[issue23727] rfc2231 line continuations result in an additional newline

2015-04-13 Thread R. David Murray
R. David Murray added the comment: I can't reproduce this and no example is forthcoming, so I'm closing this as works for me. -- resolution: - works for me stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org

[issue23908] Check path arguments of os functions for null character

2015-04-13 Thread STINNER Victor
STINNER Victor added the comment: The patch doesn't contain tests because I can't test them. But they should be simple, just pass a path with null character to os function. IMO this issue is a bug, so you must write an unit test to test for non regression. One test for FileIO, another for

[issue23929] Minor typo (way vs. away) in os.renames docstring

2015-04-13 Thread Philippe
New submission from Philippe: There is a minor typo in the docstring of os.renames: See https://hg.python.org/cpython/file/37905786b34b/Lib/os.py#l275 After the rename, directories corresponding to rightmost path segments of the old name will be pruned way until [..] This should be using

[issue23929] Minor typo (way vs. away) in os.renames docstring

2015-04-13 Thread Eric V. Smith
Eric V. Smith added the comment: I think removing the word way would be a better improvement. -- nosy: +eric.smith versions: -Python 3.2, Python 3.3, Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23929

[issue19050] [Python 2, Windows] fflush called on pointer to potentially closed file

2015-04-13 Thread STINNER Victor
STINNER Victor added the comment: Python 3 raises an exception as expected, so I remove it from the Versions field. This issue is specific to Python 2, and it looks to be only reproductible on Windows. It's probably a bug in the C library (stdio.h). -- versions: -Python 3.4, Python

[issue12327] in HTTPConnection the are len(body) and TypeError catch exception to detect if body is file like object, this hack do work with StringIO object

2015-04-13 Thread Martin Panter
Martin Panter added the comment: For the record, it looks like there were a few distinct but related problems here: * Passing any StringIO object as the body is not supported (see https://docs.python.org/2/library/httplib.html#httplib.HTTPConnection.request), because no StringIO class

[issue23919] [Windows] test_os fails several C-level assertions

2015-04-13 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- title: test_os fails several C-level assertions - [Windows] test_os fails several C-level assertions ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23919

[issue23919] test_os fails several C-level assertions

2015-04-13 Thread STINNER Victor
STINNER Victor added the comment: The fix for these is to hide the output, which is in the test modules handling of the -n option. Since Python raises an exception for EBADF, I don't see the purpose of these assertion messages. -- ___ Python

[issue19050] [Python 2, Windows] fflush called on pointer to potentially closed file

2015-04-13 Thread STINNER Victor
STINNER Victor added the comment: This snippet let my interpreter crash immediately Well, I don't understand the issue. If you write a bug, Python crashes. Ok, so? Please fix your bug. Don't expect Python from recovering from any bug. The io stack of Python 3 is safer because it has a direct

[issue23817] Consider FreeBSD like any other OS in SOVERSION

2015-04-13 Thread STINNER Victor
STINNER Victor added the comment: Issue #23817: run autoreconf to update configure. Oh thanks, I forgot to regenerate configure! -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue23863] Fix EINTR Socket Module issues in 2.7

2015-04-13 Thread STINNER Victor
STINNER Victor added the comment: With socket_eintr.4.patch, socket methods become non-thread safe. I'm not sure that it's a serious issue, but you have to consider this side effect of your change. (Modify socketmodule.c instead would allow to handle EINTR, recompute timeout and keep the

[issue23928] SSL wiki page, host name matching, CN and SAN

2015-04-13 Thread Jeffrey Walton
New submission from Jeffrey Walton: The Python wiki page on SSL states (https://wiki.python.org/moin/SSL): To validate that a certificate matches requested site, you need to check commonName field in the subject of the certificate. I don't think its quite correct. Both the IETF

[issue23929] Minor typo (way vs. away) in os.renames docstring

2015-04-13 Thread Eric V. Smith
Changes by Eric V. Smith e...@trueblade.com: -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23929 ___ ___ Python-bugs-list

[issue23928] SSL wiki page, host name matching, CN and SAN

2015-04-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for the report; your remarks are obviously true. Unfortunately, the wiki is community-maintained, there's not much point in reporting bugs here about it. That page's contents look very outdated, by the way. The official documentation for the ssl module

[issue10933] Tracing disabled when a recursion error is triggered (even if properly handled)

2015-04-13 Thread Fabio Zadrozny
Fabio Zadrozny added the comment: Well, I'd say that if tracing is enabled and is disabled automatically by Python (thus breaking a working debugger which would usually be used to diagnose the error), I'd at least consider issuing some warning to stderr... (probably warnings.warn cannot be

[issue23928] SSL wiki page, host name matching, CN and SAN

2015-04-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm closing this issue since it isn't part of our responsibilites here, sorry. If you want to see that wiki page fixed, the best is probably to... fix it yourself :-) (it's a wiki after all) (frankly, I think it should be removed or replaced with a pair of

[issue19050] [Python 2, Windows] fflush called on pointer to potentially closed file

2015-04-13 Thread eryksun
eryksun added the comment: The default (and standards-violating) behavior of the Windows CRT is to kill the process for a bad file descriptor, instead of just setting errno to EBADF. To work around this PyOS_StdioReadline needs to to check _Py_Verify_fd before calling fflush or writing to

[issue12606] Mutable Sequence Type works different for lists and bytearrays in slice[i:j:k]

2015-04-13 Thread Siegfried Gevatter
Changes by Siegfried Gevatter siegfr...@gevatter.com: Added file: http://bugs.python.org/file38913/slice_del.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12606 ___

[issue23933] Struct module should acept arrays

2015-04-13 Thread Anderson
New submission from Anderson: Correct me if I'm wrong, the struct module does not work with array of ints, floats etc (just work with char in the form of strings). I think it should since this are valid elements in C structs. More specifically, consider I have this C struct struct{ int

[issue23794] http package should support HTTP/2

2015-04-13 Thread Ludovic Gasc
Ludovic Gasc added the comment: @demian.brecht: I don't know when, but certainly that we will add in aiohttp HTTP/2 support. If your implementation is enough modular, we could use some stuff like we did with urllib and HTTP/1 support. -- nosy: +Ludovic.Gasc

[issue23915] traceback set with BaseException.with_traceback() overwritten on raise

2015-04-13 Thread A. Jesse Jiryu Davis
A. Jesse Jiryu Davis added the comment: I've had a very hard time adding to the doc in a way that elucidates rather than further obfuscating; see if you like this patch. -- keywords: +patch nosy: +emptysquare Added file: http://bugs.python.org/file38916/issue23915.patch

[issue21108] Add examples for importlib in doc

2015-04-13 Thread Raúl Cumplido
Changes by Raúl Cumplido raulcumpl...@gmail.com: -- nosy: +raulcd ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21108 ___ ___ Python-bugs-list

[issue17898] gettext bug while parsing plural-forms metadata

2015-04-13 Thread A.M. Kuchling
A.M. Kuchling added the comment: Proposed patch against 3.5. -- keywords: +patch nosy: +akuchling stage: test needed - patch review Added file: http://bugs.python.org/file38915/issue17898.patch ___ Python tracker rep...@bugs.python.org

[issue12606] Mutable Sequence Type works different for lists and bytearrays in slice[i:j:k]

2015-04-13 Thread Siegfried Gevatter
Changes by Siegfried Gevatter siegfr...@gevatter.com: -- keywords: +patch Added file: http://bugs.python.org/file38912/slice_del.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12606 ___

[issue19450] Bug in sqlite in Windows binaries

2015-04-13 Thread Zachary Ware
Zachary Ware added the comment: I'm ambivalent on whether to do it, but Marc is right that it's just a version update in Tools/buildbot/external-common.bat and PCbuild/pyproject.vsprops. -- assignee: - steve.dower ___ Python tracker

[issue23193] Please support numeric_owner in tarfile

2015-04-13 Thread Eric V. Smith
Eric V. Smith added the comment: Updated patch with a few minor doc tweaks. The one substantive change I did make was to add numeric_owner to the call to self.chown() when setting directory owners. I believe this is correct, but I need to convince myself and to write a test. -- Added

[issue23350] Content-length is incorrect when request body is a list or tuple

2015-04-13 Thread Vincent Alquier
Vincent Alquier added the comment: Another issue should be addressed by patch... When trying to guess the content-length, here is the code you find... try: thelen = str(len(body)) except TypeError as te: [...] The call to `len` will raise a `TypeError`

[issue23794] http package should support HTTP/2

2015-04-13 Thread Cory Benfield
Cory Benfield added the comment: I spoke to some people after my PyCon talk about this, and agreed that it would be a good idea to split out the framing and HPACK stuff from hyper to make it easier for people like aiohttp to prototype. The framing layer is already available from PyPI[0] and

[issue23930] SimpleCookie doesn't parse comma-only separated cookies correctly

2015-04-13 Thread Piotr
New submission from Piotr: Skype WISPr and iPassConnect (and maybe other bots) return cookies as a comma separated list. It's not a comma + space (which works). C = cookies.SimpleCookie() C.load('a=b,z=zz') C['a'] Morsel: a='b,z=zz' I wonder what would those bots do if there was a comma in a

[issue16125] open accepts arbitrary mode strings as long as they contain U

2015-04-13 Thread Nick Coghlan
Nick Coghlan added the comment: +1 for a Py3k warning. Filing a pylint --py3k RFE may also be appropriate. -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16125 ___

[issue23932] Tutorial section on function annotations is out of date re: PEP 484

2015-04-13 Thread Zachary Ware
New submission from Zachary Ware: (Brought up by 'Tronster' on docs@) https://docs.python.org/3/tutorial/controlflow.html#function-annotations In light of the PEP 484 and its clear intentions for function annotations, the tutorial section on function annotations is out of date. It should be

[issue23931] Update DevGuide link in Quickstart Step 1

2015-04-13 Thread Carol Willing
New submission from Carol Willing: Change Quickstart step 1 link to redirect to Section 1.1 Getting Started. Currently, it redirects to 1.1.2 Getting the Source Code. For developers coming from git, step 1.1.1 Version Control Setup would be helpful. Feedback from PyCon 2015 Sprints suggest

[issue9951] introduce bytes.hex method (also for bytearray and memoryview)

2015-04-13 Thread Nick Coghlan
Nick Coghlan added the comment: Arnon is here at the PyCon 2015 sprints, so bringing the current status up to date: = Why *.hex()? = * That's the name in PEP 358 * That's the name of the comparable float method = Why add it to the builtin types? = * To provide One Obvious Way To Do It,

[issue17769] python-config --ldflags gives broken output when statically linking Python with --as-needed

2015-04-13 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- nosy: +zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17769 ___ ___ Python-bugs-list

[issue23934] inspect.signature reporting () for all builtin extension types

2015-04-13 Thread Nick Coghlan
New submission from Nick Coghlan: inspect.signature isn't currently handling builtin extension types correctly - these show up as having neither __new__ *nor* __init__ as pure Python callables, so the inspect.signature logic falls through into a currently unhandled case. _testcapi isn't

[issue23934] inspect.signature reporting () for all builtin extension types

2015-04-13 Thread Larry Hastings
Larry Hastings added the comment: Would this qualify as an easy bug we could throw to a sprinter? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23934 ___

[issue20181] Derby #12: Convert 50 sites to Argument Clinic across 4 files

2015-04-13 Thread Larry Hastings
Larry Hastings added the comment: I finally talked to someone (Thomas Wouters) about this. For something going into trunk that will be part of 3.5, this is fine. Please include a mention that the exception's text messages changed in Misc/NEWS. I can help you write this if you want. I'll

[issue23310] Mock constructor configuration fails for magic methods

2015-04-13 Thread Łukasz Langa
Changes by Łukasz Langa luk...@langa.pl: -- keywords: +needs review versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23310 ___

[issue19715] test_touch_common failure under Windows

2015-04-13 Thread A.M. Kuchling
A.M. Kuchling added the comment: It looks like Antoine filed the precision-loss error as #19738 and that ticket is now closed. I conclude there's nothing left to do on this ticket, so I'll close it. -- nosy: +akuchling status: open - closed ___

[issue23931] Update DevGuide link in Quickstart Step 1

2015-04-13 Thread Tina Zhang
Tina Zhang added the comment: Link goes to 1.1.1 instead of 1.1 -- Added file: http://bugs.python.org/file38927/patch23931v0_1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23931 ___

[issue19956] inspect.getsource(obj.foo) fails when foo is an injected method constructed from another method

2015-04-13 Thread Usman Ehtesham Gul
Usman Ehtesham Gul added the comment: After discussing with Eric Snow, this case scenario is an edge case. The assumption in the inspect module is that __func__ for a MethodType object is a function. The MethodType should be used for functions and not methods. Patch attached for this. This

[issue22652] Add suggestion about keyword arguments to this error message: builtins.TypeError: my_func() takes 1 positional argument but 2 were given

2015-04-13 Thread A. Jesse Jiryu Davis
A. Jesse Jiryu Davis added the comment: Attached patch adds and N keyword-only argument(s) to the TypeError message if a function takes keyword-only arguments and the wrong number of positional arguments is provided. -- keywords: +patch nosy: +emptysquare Added file:

[issue21815] imaplib truncates some untagged responses

2015-04-13 Thread Maciej Szulik
Maciej Szulik added the comment: Lita thanks for your patch!. Are you able to address berkerpeksag comments from review? Otherwise if you don't mind I'll take it over and I'll do that. -- nosy: +maciej.szulik ___ Python tracker

[issue23934] inspect.signature reporting () for all builtin extension types

2015-04-13 Thread Nick Coghlan
Nick Coghlan added the comment: James Powell is currently looking into this at the PyCon sprints. The key problem appears to be the check that assumes obj.__init__ is object.__init__ indicates that there's no user defined init or new method, when in fact a builtin or extension type that only

[issue12606] Mutable Sequence Type works different for lists and bytearrays in slice[i:j:k]

2015-04-13 Thread Siegfried Gevatter
Changes by Siegfried Gevatter siegfr...@gevatter.com: Added file: http://bugs.python.org/file38930/slice_del.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12606 ___

[issue23933] Struct module should acept arrays

2015-04-13 Thread Anderson
Anderson added the comment: @wolma, That would work in this simple example. But in a more complicated case this became inconvenient. Actually I'm working with reading and writing in python an extremely C-oriented file-type (MDV). For that I represent C-structs as python dics (e.q

[issue9951] introduce bytes.hex method (also for bytearray and memoryview)

2015-04-13 Thread Arnon Yaari
Changes by Arnon Yaari wiggi...@gmail.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9951 ___ ___ Python-bugs-list

[issue10612] StopTestRun exception to halt test run

2015-04-13 Thread Pam McA'Nulty
Pam McA'Nulty added the comment: This version fixes a few things after using review. I still have some open questions: o Where in unittest.rst should the StopTestRun documentation actually live? I've put it right after the SkipTest exception. That doesn't feel perfect, but I didn't see a

[issue23935] Clean up Clinic's type expressions of buffers

2015-04-13 Thread Larry Hastings
New submission from Larry Hastings: Clinic was previously pretty confused about what things accepted bytes, bytearray, buffer, robuffer, and rwbuffer. This is because the documentation itself was somewhat confusing. The documentation was recently cleaned up on these in trunk (including one

[issue23935] Clean up Clinic's type expressions of buffers

2015-04-13 Thread Larry Hastings
Larry Hastings added the comment: Huh. Why didn't it attach my patch? Here it is. -- Added file: http://bugs.python.org/file38933/larry.clinic.buffer.conceptual.cleanup.1.txt ___ Python tracker rep...@bugs.python.org

[issue10612] StopTestRun exception to halt test run

2015-04-13 Thread Pam McA'Nulty
Changes by Pam McA'Nulty pam...@webreply.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10612 ___ ___

[issue12606] Mutable Sequence Type works different for lists and bytearrays in slice[i:j:k]

2015-04-13 Thread Siegfried Gevatter
Changes by Siegfried Gevatter siegfr...@gevatter.com: Added file: http://bugs.python.org/file38932/slice_del.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12606 ___

[issue10612] StopTestRun exception to halt test run

2015-04-13 Thread Pam McA'Nulty
Changes by Pam McA'Nulty pam...@webreply.com: -- nosy: +kushal.das ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10612 ___ ___ Python-bugs-list

[issue22631] Feature Request CAN_RAW_FD_FRAMES

2015-04-13 Thread Joe Jevnik
Joe Jevnik added the comment: I have added a patch to update this with conditional compilation. -- keywords: +patch nosy: +ll Added file: http://bugs.python.org/file38934/CAN_RAW_FD_FRAMES.patch ___ Python tracker rep...@bugs.python.org

[issue22631] Feature Request CAN_RAW_FD_FRAMES

2015-04-13 Thread Joe Jevnik
Joe Jevnik added the comment: To show where I got my sources: https://github.com/torvalds/linux/commit/e2d265d3b587f5f6f8febc0222aace93302ff0be There does not appear to be any new structures needed other than supporting the constant. -- nosy: +larry

[issue17751] ctypes/test/test_macholib.py fails when run from the installed location

2015-04-13 Thread Zachary Ware
Zachary Ware added the comment: @Marin: That changeset is touching test_multiprocessing, not ctypes.test.test_macholib. -- nosy: +zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17751

[issue23310] Mock constructor configuration fails for magic methods

2015-04-13 Thread Kasia Jachim
Kasia Jachim added the comment: Tests for this bug + proposed fix. -- keywords: +patch nosy: +kjachim Added file: http://bugs.python.org/file38919/fix_magic_in_init.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23310

[issue23932] Tutorial section on function annotations is out of date re: PEP 484

2015-04-13 Thread Juti Noppornpitak
Juti Noppornpitak added the comment: I reworded to mention the coming changes regarding to PEP 484. The old writing which mention about arbitariness is moved to the end of the function annotations section as a warning. -- keywords: +patch nosy: +shiroyuki Added file:

[issue23931] Update DevGuide link in Quickstart Step 1

2015-04-13 Thread Tina Zhang
Tina Zhang added the comment: adding patch! -- keywords: +patch Added file: http://bugs.python.org/file38921/patch23931.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23931 ___

[issue23310] Mock constructor configuration fails for magic methods

2015-04-13 Thread Kasia Jachim
Kasia Jachim added the comment: For Mock both the following tests fail, I would say it is an expected behavior. def test_setting_magic_method_for_mock(self): m = Mock() m.configure_mock(**{'__str__.return_value': 14}) self.assertEqual(str(m), 14) def

[issue23193] Please support numeric_owner in tarfile

2015-04-13 Thread Eric V. Smith
Eric V. Smith added the comment: Note that this change will break code that subclasses TarFile and overrides chown(), as suggested in msg233915. I'm not too concerned about that, since chown() is not documented. Ideally it would be renamed to _chown(), but that's probably a separate issue.

[issue20160] broken ctypes calling convention on MSVC / 64-bit Windows (large structs)

2015-04-13 Thread John Ehresman
John Ehresman added the comment: I've confirmed that the test included in the 3/25/15 patch fails without the change to ffi.c. I think the 11/5/14 change fixed the bug for calling into a C function and converting the return value, but did not address the callback case. The new patch seems

[issue18217] Deprecate and remove gettext.install

2015-04-13 Thread A.M. Kuchling
A.M. Kuchling added the comment: I suggest we just close this ticket. I tried producing a documentation patch (attached), but they seem like a marginal improvement. (I don't think the text in the docs such as 'gettext' (bound to self.gettext()) is confusing; given the context, I think the

[issue23057] [Windows] asyncio: support signal handlers on Windows (feature request)

2015-04-13 Thread A.M. Kuchling
A.M. Kuchling added the comment: Victor's patch has moved to https://github.com/python/tulip/issues/191 . -- nosy: +akuchling ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23057 ___

[issue23932] Tutorial section on function annotations is out of date re: PEP 484

2015-04-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0acb8dcb8e0c by Zachary Ware in branch '3.4': Issue #23932: Update the tutorial section on function annotations. https://hg.python.org/cpython/rev/0acb8dcb8e0c New changeset 75a6774ba070 by Zachary Ware in branch 'default': Closes #23932: Merge

[issue23932] Tutorial section on function annotations is out of date re: PEP 484

2015-04-13 Thread Zachary Ware
Zachary Ware added the comment: Cleaned it up just a little bit and committed. Thanks for the patch, Juti! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23932 ___

[issue23933] Struct module should acept arrays

2015-04-13 Thread Wolfgang Maier
Wolfgang Maier added the comment: are you looking for: struct.pack('i'*4, *[0]*4) ? -- nosy: +wolma ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23933 ___

[issue17898] gettext bug while parsing plural-forms metadata

2015-04-13 Thread A.M. Kuchling
A.M. Kuchling added the comment: Adding a link to a bitbucket repo. -- hgrepos: +304 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17898 ___ ___

[issue18402] Finding perl64

2015-04-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 069dd1e347b4 by Zachary Ware in branch '2.7': Issue #18402: Also look for 64 bit Perl in build_ssl.py. https://hg.python.org/cpython/rev/069dd1e347b4 New changeset cf19bd089768 by Zachary Ware in branch '3.4': Issue #18402: Also look for 64 bit

[issue17898] gettext bug while parsing plural-forms metadata

2015-04-13 Thread A.M. Kuchling
A.M. Kuchling added the comment: I would apply this change to 3.4 and 3.5. Should I also backport it to 2.7? I think the same bug applies there, though I haven't verified this or tried my patch. -- ___ Python tracker rep...@bugs.python.org

[issue23310] Mock constructor configuration fails for magic methods

2015-04-13 Thread Kasia Jachim
Kasia Jachim added the comment: Added more logging to the patch. -- Added file: http://bugs.python.org/file38922/fix_magic_in_init_v2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23310

[issue1475523] gettext breaks on plural-forms header

2015-04-13 Thread A.M. Kuchling
A.M. Kuchling added the comment: I think that #17898 is in fact a duplicate of this bug, due to old values of k and v confusing things. Mark's patch looks correct to me, but the patch in #17898 also adds a test. If that patch gets reviewed, I'll apply it to 3.4/3.5, and possibly to 2.7.

[issue16125] open accepts arbitrary mode strings as long as they contain U

2015-04-13 Thread Wolfgang Maier
Wolfgang Maier added the comment: I'm able to reproduce this with Python 2.7.6 on Linux, but not 2.7.9 on Windows. Is this a POSIX-only bug or has it been fixed in the meantime ? -- nosy: +wolma ___ Python tracker rep...@bugs.python.org

[issue12606] Mutable Sequence Type works different for lists and bytearrays in slice[i:j:k]

2015-04-13 Thread Thomas Wouters
Thomas Wouters added the comment: I left some style comments in the rietveld review. However, a bigger questions is whether we should change list at all. I think we should; the change is fairly straightforward, there is some value in it and it's a good idea to keep bytearray and other mutable

[issue23932] Tutorial section on function annotations is out of date re: PEP 484

2015-04-13 Thread Juti Noppornpitak
Juti Noppornpitak added the comment: Based on the review -- Added file: http://bugs.python.org/file38923/issue23932.r2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23932 ___

[issue23928] SSL wiki page, host name matching, CN and SAN

2015-04-13 Thread Jeffrey Walton
Jeffrey Walton added the comment: there's not much point in reporting bugs here about it. Oh, sorry about that. That page's contents look very outdated, by the way. Yeah, there's a few opportunities for improvement. -- ___ Python tracker

[issue18402] Finding perl64

2015-04-13 Thread Zachary Ware
Zachary Ware added the comment: Michael, I failed to attribute you in the commit messages, sorry about that. Thanks for the patch! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18402

[issue23310] Mock constructor configuration fails for magic methods

2015-04-13 Thread Łukasz Langa
Changes by Łukasz Langa luk...@langa.pl: -- assignee: - lukasz.langa nosy: +lukasz.langa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23310 ___

[issue16914] timestamping in smtplib.py to help troubleshoot server timeouts/delays

2015-04-13 Thread Maciej Szulik
Maciej Szulik added the comment: Moving this enhancement to python 3.5. I'm adding updated patch plus tests for debug messages, updated what's new docs -- nosy: +maciej.szulik versions: +Python 3.5 -Python 3.4 Added file: http://bugs.python.org/file38924/issue16914.patch

[issue10612] StopTestRun exception to halt test run

2015-04-13 Thread Pam McA'Nulty
Pam McA'Nulty added the comment: Added unittest.StopTestRun exception. It's caught and handled in testPartExecutor() - which is the same place SkipTest is caught. If report=False, then it sets the result.haltTestRun attribute, which is a signal to TestTextRunner to not generate any output.

[issue18402] Finding perl64

2015-04-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset dc65187be892 by Zachary Ware in branch '2.7': Attribute Michael Dorman for his initial patch on issue #18402. https://hg.python.org/cpython/rev/dc65187be892 New changeset 19f6f339af7e by Zachary Ware in branch '3.4': Attribute Michael Dorman for

<    1   2   3   4   >