[issue20165] unittest TestResult wasSuccessful returns True when there are unexpected successes
Gregory P. Smith added the comment: I'm not comfortable changing this for 2.7 or 3.3 in case some code is unfortunately is depending on this behavior. But as it is it does seem like the kind of thing that can hide problems (tests that are passing that are not expected to). Here's a patch for 3.4 (minus the documentation update that'll need to explicitly mention this with a versionchanged::). -- keywords: +patch stage: needs patch - patch review versions: -Python 2.7, Python 3.3 Added file: http://bugs.python.org/file33363/issue20165-gps01.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20165 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19804] test_uuid.TestUUID.test_find_mac() fails
Bohuslav Slavek Kabrda added the comment: When building for Fedora, we usually use minimal buildroot, that doesn't have net-tools (e.g. ifconfig and others) installed, so this test fails for us. It'd probably be best to skip this based on whether ifconfig binary can be found or not. -- nosy: +bkabrda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19804 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19804] test_uuid.TestUUID.test_find_mac() fails
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- resolution: fixed - stage: committed/rejected - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19804 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20188] ALPN support for TLS
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +christian.heimes, giampaolo.rodola, janssen, pitrou versions: -Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20188 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20173] Derby #4: Convert 53 sites to Argument Clinic across 5 files
Vajrasky Kok added the comment: Okay, here is my first attempt. I only worked on one file (Modules/sha1module.c). I need to see whether I hit the mark or not. If yes, I can do the other files as well. Anyway, handling the keyword argument was kinda tough. There was no example so I had to shoot in the dark. -- keywords: +patch nosy: +vajrasky Added file: http://bugs.python.org/file33364/clinic_sha1module.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20173 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files
Changes by Nadeem Vawda nadeem.va...@gmail.com: -- nosy: +nadeem.vawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20182 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20184] Derby #16: Convert 50 sites to Argument Clinic across 9 files
Changes by Nadeem Vawda nadeem.va...@gmail.com: -- nosy: +nadeem.vawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20184 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20185] Derby #17: Convert 50 sites to Argument Clinic across 14 files
Changes by Nadeem Vawda nadeem.va...@gmail.com: -- nosy: +nadeem.vawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20185 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20173] Derby #4: Convert 53 sites to Argument Clinic across 5 files
Larry Hastings added the comment: Just one comment on your patch. The documentation already tells you how to handle keyword arguments (section 8 tells you how to handle default values, section 9 tells you how to handle | in the format string). If you have any suggestions on how I could improve the documentation I'd be happy to try it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20173 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20189] inspect.Signature doesn't recognize all builtin types
New submission from Larry Hastings: Stefan added some docstring text signatures by hand, only to discover that inspect.Signature still didn't recognize them. Specifically, decimal.Decimal.compare was unrecognized. This is a method_descriptor object, which is a type that isn't even exposed in types. Rather than go on a search-and-destroy mission for all these different builtin types, I'm going to change inspect.Signature so as a fallback at the end it says if it has a __call__ and a valid __text_signature__, just use that. -- assignee: larry components: Library (Lib) messages: 207681 nosy: larry, skrah priority: normal severity: normal stage: needs patch status: open title: inspect.Signature doesn't recognize all builtin types type: behavior versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20189 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20189] inspect.Signature doesn't recognize all builtin types
Larry Hastings added the comment: Okay, learned some things. 1) inspect already has an ismethoddescriptor(). So I'll try to do this properly by 2) The real problem is that method_descriptor doesn't have __text_signature__. I only added that to PyCFunctionObject. I'll make the code generic and add it to method_descriptor, classmethod_descriptor, and wrapper_descriptor. -- nosy: +brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20189 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20190] dict() in dict(foo='bar') raises
New submission from Martin Häcker: I was quite surprised by this behavior: dict() in [dict()] True dict() in [] False dict() in dict(foo='bar').keys() Traceback (most recent call last): File stdin, line 1, in module TypeError: unhashable type: 'dict' dict() in list(dict(foo='bar').keys()) False I think it should change. Calling dict.keys() one expects to get list like behavior and not having to ensure that everything that is checked for inclusion there has to be hasheable. If it helps, this is also a regression from python 2.6/7 where this works as expected. -- messages: 207683 nosy: dwt priority: normal severity: normal status: open title: dict() in dict(foo='bar') raises versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20190 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20190] dict() in dict(foo='bar').keys() raises
Changes by Martin Häcker spamfaen...@gmx.de: -- title: dict() in dict(foo='bar') raises - dict() in dict(foo='bar').keys() raises ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20190 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20190] dict() in dict(foo='bar').keys() raises
STINNER Victor added the comment: key in dict checks if dict has the specified key. Dictionary keys must be hashable. Dictionaries are not hashable. If it helps, this is also a regression from python 2.6/7 where this works as expected. dict.keys() return a list in Python 2, whereas it returns a special object dict_keys. The behaviour of Python 2 is more a side effect than an expected behaviour. Python 2: dict() in dict(key=value) TypeError: unhashable type: 'dict' Python 3 behaviour is correct. -- nosy: +haypo resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20190 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20130] asyncio: implement a synchronous executor if concurrent.futures is missing
STINNER Victor added the comment: The synchronous executor has been implemented in Trollius 0.1.1. I now agree with Antoine Pitrou that it's overkill to implement in CPython since only one old platform don't support concurrent.futures. On FreeBSD 6: increase the limit of POSIX semaphore, or upgrade to a more recent FreeBSD version, or use Trollius. -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20130 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20113] os.readv() and os.writev() don't raise an OSError on readv()/writev() failure
Roundup Robot added the comment: New changeset 1437f499024d by Victor Stinner in branch '3.3': Issue #20113: os.readv() and os.writev() now raise an OSError exception on http://hg.python.org/cpython/rev/1437f499024d New changeset cd50efdce294 by Victor Stinner in branch 'default': (Merge 3.3) Issue #20113: os.readv() and os.writev() now raise an OSError http://hg.python.org/cpython/rev/cd50efdce294 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20113 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20191] resource.prlimit(int, int, str) crashs
New submission from STINNER Victor: $ ./python -c 'import resource; resource.prlimit(-3, 11, \udbff\udfff)' Erreur de segmentation (core dumped) The problem is a generic problem with PyArg_Parse functions and (O) format. With this format, the caller does not hold a reference to the object nor the tuple. If arbitrary Python code is executed before the object is used, the object pointer becomes a dangling pointer. resource.prlimit() uses: if (!PyArg_ParseTuple(args, _Py_PARSE_PID i|(OO):prlimit, pid, resource, curobj, maxobj)) return NULL; In this issue, it's worse: the string is casted to a sequence, and each string character becomes a temporary substring of 1 character. The problem is that PyArg_ParseTuple() nor resource_prlimit() hold the reference, and so the curobj and maxobj are dangling pointer. Options: - raise an error if the second parameter is not a tuple: implement the check in prlimit() or i PyArg_ParseTuple()? - hold a reference to the sequence, to curobj and to maxobj instead of using borrowed references -- messages: 207686 nosy: haypo, serhiy.storchaka priority: normal severity: normal status: open title: resource.prlimit(int, int, str) crashs type: crash versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20191 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20113] os.readv() and os.writev() don't raise an OSError on readv()/writev() failure
Changes by STINNER Victor victor.stin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20113 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20113] os.readv() and os.writev() don't raise an OSError on readv()/writev() failure
Roundup Robot added the comment: New changeset 1993a8ec3f19 by Victor Stinner in branch '3.3': Issue #20113: Fix test_posix on OpenIndiana http://hg.python.org/cpython/rev/1993a8ec3f19 New changeset f1f707dd7cae by Victor Stinner in branch 'default': (Merge 3.3) Issue #20113: Fix test_posix on OpenIndiana http://hg.python.org/cpython/rev/f1f707dd7cae -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20113 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19081] zipimport behaves badly when the zip file changes while the process is running
Brett Cannon added the comment: While replacing zipimport with a pure Python version using importlib would be a great feather to have in importlib's cap, the dependencies in zipfile would make that somewhat difficult: http://hg.python.org/cpython/file/f1f707dd7cae/Lib/zipfile.py -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19081 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20189] inspect.Signature doesn't recognize all builtin types
Changes by Meador Inge mead...@gmail.com: -- nosy: +meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20189 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20160] broken ctypes calling convention on MSVC / 64-bit Windows (large structs)
Changes by Meador Inge mead...@gmail.com: -- nosy: +meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20160 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20173] Derby #4: Convert 53 sites to Argument Clinic across 5 files
Vajrasky Kok added the comment: An example how to convert keyword argument would be very helpful. I searched the example from existing code but nothing shows up. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20173 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20173] Derby #4: Convert 53 sites to Argument Clinic across 5 files
Larry Hastings added the comment: To be precise: a keyword argument is something that happens on the caller side. What you're talking about is a positional-or-keyword parameter. And parameters are positional-or-keyword by default. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20173 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20191] resource.prlimit(int, int, str) crashs
Serhiy Storchaka added the comment: Thank you for good example, Victor. See issue6083 for early discussion. As for options: - I afraid we can't raise an error if the second parameter is not a tuple right now. Rather we should first emit deprecation warning, and raise an error only several releases later. - We can't turn borrowed references into non-borrowed references, because it will cause reference leaks in existing code. So what we should to do: * Convert all codes in the stdlib to not use (...) in PyArg_ParseTuple(). This was mainly done in issue6083. Perhaps resource.prlimit() was added after this. * Deprecate this dangerous feature. Early is better. And emit a warning to all core developers. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20191 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20192] pprint chokes on set containing frozenset
New submission from Joseph Bylund: Expected: pprint the object Observed: crash with: set([Traceback (most recent call last): File ./test.py, line 7, in module pp.pprint(myset) File /usr/lib/python2.7/pprint.py, line 117, in pprint self._format(object, self._stream, 0, 0, {}, 0) File /usr/lib/python2.7/pprint.py, line 194, in _format object = _sorted(object) File /usr/lib/python2.7/pprint.py, line 82, in _sorted return sorted(iterable) TypeError: can only compare to a set Steps to repro: #!/usr/bin/python import pprint pp = pprint.PrettyPrinter(indent=4) myset = set(xrange(3)) myset.add(frozenset(xrange(10))) pp.pprint(myset) -- messages: 207693 nosy: jbylund priority: normal severity: normal status: open title: pprint chokes on set containing frozenset type: crash versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20192 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20189] inspect.Signature doesn't recognize all builtin types
Larry Hastings added the comment: Here's a patch that adds __text_signature__ support for three more builtin types: method_descriptor classmethod_descriptor wrapper_descriptor method-wrapper The patch also modifies inspect.Signature so it recognizes these types. -- Added file: http://bugs.python.org/file33365/larry.support.text_signature.on.more.types.diff.1.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20189 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20192] pprint chokes on set containing frozenset
R. David Murray added the comment: FYI, 'crash' is for when the CPython interpreter segfaults, not when python produces a traceback. Sets and frozensets are not comparable to anything except themselves, unlike most other Python2 datatypes. In Python3, most disparate types are not comparable, including sets and frozensets. To fix this issue in 2.7's pprint I think we would have to backport the fix from issue 3976. -- components: +Library (Lib) nosy: +r.david.murray type: crash - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20192 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20193] Derby: Convert the zlib, _bz2 and _lzma modules to use Argument Clinic
New submission from Serhiy Storchaka: In progress. These modules have similar interfaces and common maintainer. -- assignee: serhiy.storchaka components: Extension Modules messages: 207696 nosy: nadeem.vawda, serhiy.storchaka priority: normal severity: normal status: open title: Derby: Convert the zlib, _bz2 and _lzma modules to use Argument Clinic type: enhancement versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20193 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20193] Derby: Convert the zlib, _bz2 and _lzma modules to use Argument Clinic
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +larry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20193 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20194] Add :deprecated: marker to formatter docs
Changes by Brett Cannon br...@python.org: -- assignee: brett.cannon components: Documentation nosy: brett.cannon priority: normal severity: normal status: open title: Add :deprecated: marker to formatter docs versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20194 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20195] Add :deprecated: marker to imp docs
Changes by Brett Cannon br...@python.org: -- assignee: brett.cannon components: Documentation nosy: brett.cannon priority: normal severity: normal status: open title: Add :deprecated: marker to imp docs versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20195 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20194] Add :deprecated: marker to formatter module docs
Changes by Brett Cannon br...@python.org: -- title: Add :deprecated: marker to formatter docs - Add :deprecated: marker to formatter module docs ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20194 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20188] ALPN support for TLS
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20188 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20187] The Great Argument Clinic Conversion Derby Meta-Issue
Larry Hastings added the comment: Here's how the files were parceled out into the various bundles: #20170 Derby #1: Convert 137 sites to Argument Clinic in Modules/posixmodule.c Modules/posixmodule.c: 137 sites #20171 Derby #2: Convert 115 sites to Argument Clinic in Modules/_cursesmodule.c Modules/_cursesmodule.c: 115 sites #20172 Derby #3: Convert 67 sites to Argument Clinic across 4 files PC/msvcrtmodule.c: 18 sites PC/winreg.c: 24 sites PC/winsound.c: 3 sites Modules/_winapi.c: 22 sites #20173 Derby #4: Convert 53 sites to Argument Clinic across 5 files Modules/_codecsmodule.c: 43 sites Modules/sha1module.c: 2 sites Modules/sha256module.c: 3 sites Modules/sha512module.c: 3 sites Modules/md5module.c: 2 sites #20174 Derby #5: Convert 50 sites to Argument Clinic across 3 files Modules/socketmodule.c: 47 sites Modules/socketmodule.h: 1 sites Modules/_functoolsmodule.c: 2 sites #20175 Derby #6: Convert 50 sites to Argument Clinic across 8 files Modules/_io/bufferedio.c: 13 sites Modules/_io/bytesio.c: 6 sites Modules/_io/fileio.c: 6 sites Modules/_io/iobase.c: 4 sites Modules/_io/stringio.c: 5 sites Modules/_io/textio.c: 8 sites Modules/_multiprocessing/multiprocessing.c: 3 sites Modules/_multiprocessing/semaphore.c: 5 sites #20159 Derby #7: Convert 51 sites to Argument Clinic across 3 files Modules/_elementtree.c: 31 sites PC/_msi.c: 15 sites PC/bdist_wininst/install.c: 5 sites #20177 Derby #8: Convert 52 sites to Argument Clinic across 3 files Modules/_datetimemodule.c: 20 sites Modules/timemodule.c: 8 sites Modules/_decimal/_decimal.c: 24 sites #20178 Derby #9: Convert 52 sites to Argument Clinic across 11 files Modules/_ctypes/_ctypes.c: 8 sites Modules/_ctypes/_ctypes_test.c: 1 sites Modules/_ctypes/callproc.c: 14 sites Modules/_ctypes/stgdict.c: 0 sites Modules/_curses_panel.c: 3 sites Modules/_sqlite/cache.c: 1 sites Modules/_sqlite/connection.c: 12 sites Modules/_sqlite/cursor.c: 5 sites Modules/_sqlite/microprotocols.c: 1 sites Modules/_sqlite/module.c: 6 sites Modules/_sqlite/row.c: 1 sites #20179 Derby #10: Convert 50 sites to Argument Clinic across 4 files Modules/overlapped.c: 21 sites Modules/_ssl.c: 20 sites Objects/bytes_methods.c: 1 sites Objects/bytesobject.c: 8 sites #20180 Derby #11: Convert 50 sites to Argument Clinic across 9 files Modules/_collectionsmodule.c: 4 sites Modules/itertoolsmodule.c: 11 sites Modules/_randommodule.c: 1 sites Objects/unicodeobject.c: 14 sites Modules/xxlimited.c: 4 sites Modules/xxmodule.c: 5 sites Modules/xxsubtype.c: 5 sites Objects/stringlib/find.h: 1 sites Objects/stringlib/transmogrify.h: 5 sites #20181 Derby #12: Convert 50 sites to Argument Clinic across 4 files Objects/bytearrayobject.c: 13 sites Modules/parsermodule.c: 13 sites Modules/unicodedata.c: 12 sites Modules/readline.c: 12 sites #20182 Derby #13: Convert 50 sites to Argument Clinic across 5 files Modules/signalmodule.c: 12 sites Modules/selectmodule.c: 12 sites Modules/zlibmodule.c: 11 sites Python/sysmodule.c: 10 sites Modules/_hashopenssl.c: 5 sites #20183 Derby #14: Convert 50 sites to Argument Clinic across 6 files Modules/mmapmodule.c: 10 sites Modules/_localemodule.c: 10 sites Modules/zipimport.c: 9 sites Modules/ossaudiodev.c: 9 sites Modules/_testbuffer.c: 9 sites Modules/_struct.c: 3 sites #20152 Derby #15: Convert 50 sites to Argument Clinic across 9 files Python/import.c: 8 sites Modules/cmathmodule.c: 8 sites Modules/cjkcodecs/multibytecodec.c: 8 sites Modules/arraymodule.c: 8 sites Modules/pyexpat.c: 7 sites Modules/fcntlmodule.c: 7 sites Modules/pwdmodule.c: 2 sites Modules/spwdmodule.c: 1 sites Modules/grpmodule.c: 1 sites #20184 Derby #16: Convert 50 sites to Argument Clinic across 9 files Modules/faulthandler.c: 7 sites Modules/_pickle.c: 7 sites Modules/_lzmamodule.c: 7 sites Python/bltinmodule.c: 6 sites Modules/termios.c: 6 sites Modules/syslogmodule.c: 6 sites Modules/_dbmmodule.c: 4 sites Modules/_gdbmmodule.c: 2 sites Modules/_json.c: 5 sites #20185 Derby #17: Convert 50 sites to Argument Clinic across 14 files Objects/typeobject.c: 5 sites Objects/longobject.c: 5 sites Objects/listobject.c: 5 sites Objects/floatobject.c: 4 sites Modules/resource.c: 4 sites Modules/_threadmodule.c: 4 sites Modules/_bz2module.c: 4 sites Modules/_bisectmodule.c: 4 sites Python/marshal.c: 3 sites Objects/exceptions.c: 3 sites Modules/nismodule.c: 3 sites Modules/gcmodule.c: 3 sites Python/_warnings.c: 2 sites Modules/_cryptmodule.c: 1 sites #20186 Derby #18: Convert 31 sites to Argument Clinic across 23 files Objects/tupleobject.c: 2 sites
[issue20193] Derby: Convert the zlib, _bz2 and _lzma modules to use Argument Clinic
Larry Hastings added the comment: I'd prefer it if you use the existing Derby issues. It's hard enough for me to keep track of what's going on as it is, and it's unhelpful of you to create a redundant issue. If you'd like some help figuring out how to work with the existing issues please talk to me. Please close this issue. zlib is in Derby #13, issue #20182. _lzma is in Derby #16, issue #20184. _bz2 is in Derby #17, issue #20185. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20193 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20168] Derby: Convert the _tkinter module to use Argument Clinic
Larry Hastings added the comment: So do you think there are any entry points worth converting in _tkinter, or should we close this issue? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20168 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20196] Argument Clinic generates invalid code for optional parameter
New submission from Serhiy Storchaka: Argument Clinic generates invalid code for optional parameter if there are no mandatory parameters except self. Example: /*[clinic input] zlib.Decompress.flush self: self(type=compobject *) [ length: uint the initial size of the output buffer. ] / Return a bytes object containing any remaining decompressed data. [clinic start generated code]*/ Generates: ... switch (PyTuple_Size(args)) { case 0: if (!PyArg_ParseTuple(args, :flush, )) return NULL; break; ... Note a comma in PyArg_ParseTuple. -- components: Build messages: 207700 nosy: larry, serhiy.storchaka priority: normal severity: normal status: open title: Argument Clinic generates invalid code for optional parameter versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20196 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20196] Argument Clinic generates invalid code for optional parameter
Larry Hastings added the comment: Good catch! It should be an easy fix, but I won't be able to get to it until tomorrow. -- assignee: - larry stage: - needs patch type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20196 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20166] window x64 c-extensions not works on python3.4.0b2
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20166 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20197] Support WebP image format detection in imghdr module
New submission from Fabrice Aneche: Detect the webp file format (RIFF container + WEBP), return webp as format detected. -- components: Library (Lib) files: imghdr_webp.patch keywords: patch messages: 207702 nosy: akhenakh, gregory.p.smith priority: normal severity: normal status: open title: Support WebP image format detection in imghdr module type: enhancement versions: Python 2.7, Python 3.4 Added file: http://bugs.python.org/file33366/imghdr_webp.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20197 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20172] Derby #3: Convert 67 sites to Argument Clinic across 4 files (Windows)
Zachary Ware added the comment: I'll take a stab at this one, but I may make you rue the day you said you'd review until your eyes bleed ;) Here's a partial patch to PC/winreg.c, converting only the CloseKey function just to make sure I have some basic idea of what I'm doing. (Also, if anyone else wants this one, please don't hesitate on account of me; just let me know and it's yours.) -- keywords: +patch nosy: +zach.ware Added file: http://bugs.python.org/file33367/issue20172.partial.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20172 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20193] Derby: Convert the zlib, _bz2 and _lzma modules to use Argument Clinic
Serhiy Storchaka added the comment: Here are completed patches for the _bz2 and _lzma modules (only constructors are not converted) and preliminary patch for the zlib module. There are issues in the zlib module: * Argument Clinic generates invalid code for zlib_Decompress_flush (issue20196). * Argument Clinic can simulate optional positional parameters without default Python values only using groups, and resulting code differs from original and is too cumbersome (see code for zlib_compress, zlib_decompress, zlib_Decompress_flush). * I have experimented in zlib_decompressobj, and I got good compact code, but wrong docstring (decompressobj(wbits=None, zdict=None)). Needed a way to specify optional parameters without default Python values. Correct signature should be something like decompressobj([wbits], [zdict]). * Previous approach is not applicable to compressobj because Py_buffer can't have default value. Seems as compressobj is not compatible with Argument Clinic. * This is not specific to this patch, but pydoc produces wrong outputs for compressobj. Perhaps there are other issues, this is only preliminary patch. Larry, I don't want to scatter patches for these related modules and merge them with patches for totally unrelated modules. And I think it would be cumbersome to Nadeem Vawda to make reviews in such circumstances. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20193 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20193] Derby: Convert the zlib, _bz2 and _lzma modules to use Argument Clinic
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file33369/lzma_clinic.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20193 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20193] Derby: Convert the zlib, _bz2 and _lzma modules to use Argument Clinic
Changes by Serhiy Storchaka storch...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file33368/bz2_clinic.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20193 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20193] Derby: Convert the zlib, _bz2 and _lzma modules to use Argument Clinic
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file33370/zlib_clinic.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20193 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20172] Derby #3: Convert 67 sites to Argument Clinic across 4 files (Windows)
Zachary Ware added the comment: To possibly ease review (and for keeping track of what I'm doing), I'm linking hg.python.org/sandbox/zware#issue20172 where I'll try to do a commit per converted function. -- hgrepos: +216 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20172 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20168] Derby: Convert the _tkinter module to use Argument Clinic
Serhiy Storchaka added the comment: You misunderstood me. I already have 1018-lines patch which converts about 24 functions and methods to Argument Clinic church. And I'm working on left functions. Do you want to get unfinished patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20168 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20197] Support WebP image format detection in imghdr module
Changes by Claudiu.Popa pcmantic...@gmail.com: -- nosy: +Claudiu.Popa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20197 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20193] Derby: Convert the zlib, _bz2 and _lzma modules to use Argument Clinic
Meador Inge added the comment: Larry, I don't want to scatter patches for these related modules and merge them with patches for totally unrelated modules. And I think it would be cumbersome to Nadeem Vawda to make reviews in such circumstances. Maybe so, but it will more productive if we can all agree on a method to organize the work so that we don't duplicate effort and it is clear which issues to contribute to. Larry seems to have organized that by sending out multiple mails and opening issues. Opening other issues because you don't agree with the way the organizer has chosen to cut up the work is counterproductive. -- nosy: +meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20193 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18011] Inconsistency between b32decode() documentation, docstring and code
R. David Murray added the comment: For future reference, because this patch changed the type of an error, it should not have been applied to a maintenance release (3.3). Since the change has already been released in 3.3.3, it is now better not to revert it. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18011 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20193] Derby: Convert the zlib, _bz2 and _lzma modules to use Argument Clinic
Serhiy Storchaka added the comment: I didn't even know for which of the dozens of random issues Larry randomly assigned these modules. And this organization does not look productive. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20193 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18011] Inconsistency between b32decode() documentation, docstring and code
Serhiy Storchaka added the comment: This is not incompatible change because b32decode() already raised this type of an error. Third-party code which use b32decode() was either incorrect (if it catches only TypeError or binascii.Error when any of them could raised) or is not broken by this change. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18011 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18011] Inconsistency between b32decode() documentation, docstring and code
R. David Murray added the comment: But code could be catching TypeError specifically looking for the alphabet error, since that is how it was documented. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18011 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20193] Derby: Convert the zlib, _bz2 and _lzma modules to use Argument Clinic
Larry Hastings added the comment: I did correct that where is file X problem; issue #20187 is a meta-issue for the whole Derby, and it has a list of all the issues and what files they map to. I'm sorry that this is not an optimal solution for organization, but it should be workable, and it only has to last us a week or two, and I felt like I was spending enough time trying to organize the Derby as it was. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20193 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20168] Derby: Convert the _tkinter module to use Argument Clinic
Larry Hastings added the comment: Oh, okay. That sounds fine, and I'm not in a hurry. Please post the patch whenever you're ready, thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20168 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20153] New-in-3.4 weakref finalizer doc section is already out of date.
Richard Oudkerk added the comment: The following from the docs is wrong: ... module globals are no longer forced to None during interpreter shutdown. Actually, in 3.4 module globals *sometimes* get forced to None during interpreter shutdown, so the version the __del__ method can still raise an exception. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20153 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20193] Derby: Convert the zlib, _bz2 and _lzma modules to use Argument Clinic
Larry Hastings added the comment: * I have experimented in zlib_decompressobj, and I got good compact code, but wrong docstring (decompressobj(wbits=None, zdict=None)). Needed a way to specify optional parameters without default Python values. Correct signature should be something like decompressobj([wbits], [zdict]). decompressobj([wbits], [zdict]) isn't valid Python. decompressobj(wbits=None, zdict=None) is; both wbits and zdict are positional-or-keyword parameters with defaults. If you were writing decompressobj() in Python, and you wanted to simulate its argument parsing as closely as possible, you'd write what Argument Clinic generated. You shouldn't use a default of None for wbits, though (and Argument Clinic shouldn't have let you). How about_zlib.MAX_WBITS ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20193 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20172] Derby #3: Convert 67 sites to Argument Clinic across 4 files (Windows)
Larry Hastings added the comment: The piecemeal approach sounds fine, but I'm only going to review patches once you post them here. (I'm not sure I can get to reviewing your patch today, but definitely tomorrow.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20172 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20193] Derby: Convert the zlib, _bz2 and _lzma modules to use Argument Clinic
Larry Hastings added the comment: Previous approach is not applicable to compressobj because Py_buffer can't have default value. Seems as compressobj is not compatible with Argument Clinic. Then perhaps we can fix Argument Clinic to be compatible. Py_buffer doesn't like default values because they mostly don't make sense. However, I suspect a default value of None is fine. I'll sleep on it and hopefully I can come up with something that will work tomorrow. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20193 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20172] Derby #3: Convert 67 sites to Argument Clinic across 4 files (Windows)
Larry Hastings added the comment: I lied, I just looked at it. You said it was only one function, so it went quickly. It looks totally fine. In fact, Argument Clinic is generating better code than the original! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20172 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20172] Derby #3: Convert 67 sites to Argument Clinic across 4 files (Windows)
Larry Hastings added the comment: Oh, and, p.s. I was a Win32 developer for about fifteen years. I don't touch it anymore, but I consider myself still competent to read patches for simple stuff like the registry library. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20172 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20189] inspect.Signature doesn't recognize all builtin types
Changes by Larry Hastings la...@hastings.org: -- nosy: +tim.peters ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20189 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20193] Derby: Convert the zlib, _bz2 and _lzma modules to use Argument Clinic
Larry Hastings added the comment: I just realized, you're misunderstanding what the first line of the docstring is. When you run help(function_written_in_Python), the first line of the help is the function's signature rendered in text. That's generated by pydoc, which gets signature information from inspect. Now, it used to be that this didn't work for builtins. pydoc would look at the function, say I can't get metadata for this function, I'll skip it. And it'd just print the builtin's docstring. Builtins worked around this problem by having their first line *look* like a Python signature. So the user kind of couldn't tell the difference. As part of adding Argument Clinic, I changed this. Now the first line of a docstring is a machine-readable representation of the signature of the function. Internally it gets split off from the docstring--you won't see it if you look at builtin.__doc__. Instead this first line is provided via a new property called __text_signature__. inspect.Signature supports builtins by parsing this string. As it happens, the format of the string happens to look exactly like a Python function definition. Because... it is! inspect.Signature parses the string by passing it in to ast.parse. decompressobj([wbits], [zdict]) is not legal Python; if you gave that to ast.parse it would reject it. (I tried, with PEP 457, but so far nobody has been interested.) On the other hand, ast.parse is totally happy with decompressobj(wbits=None, zdict=None). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20193 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20198] xml.etree.ElementTree.ElementTree.write attribute sorting
New submission from bagrat lazaryan: xml.etree.ElementTree.ElementTree.write method (and, as a derivative, xml.etree.ElementTree.tostring function) sorts attributes in lexical order. while an admissible behavior instead of the randomness inherited from ordinary dict, this prevents a picky user to have her own custom ordering by passing an OrderedDict to Element, SubElement and the like (i guess there are none). that is to say: if --- e = Element(tag, OrderedDict([(a, a), (c, c), (b, b)])) --- then both --- tostring(e) ElementTree(e).write(xml.xml) --- will result in --- tag a=a b=b c=c / --- while the intention of the user was --- tag a=a c=c b=b / -- components: Library (Lib) messages: 207721 nosy: bagratte priority: normal severity: normal status: open title: xml.etree.ElementTree.ElementTree.write attribute sorting type: enhancement versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20198 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17390] display python version on idle title bar
Changes by bagrat lazaryan bagra...@live.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17390 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20174] Derby #5: Convert 50 sites to Argument Clinic across 3 files
Ryan Smith-Roberts added the comment: Taking a crack at this. socketmodule.h: just a comment, skipping. _functools.c: kind-of skipping, because the relevant functions are not normally directly called (pickle protocol __reduce__ and __setstate__ on partial, __call__ on cmp wrapper). Will add simple docstrings for the pickle protocol handlers though. -- nosy: +rmsr ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20174 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20199] status of module_for_loader and utils._module_to_load
New submission from R. David Murray: The whatsnew currently says that module_for_loader is pending deprecation in favor of utils.module_to_load, but there is no such function. Instead there is a private function utils._module_to_load...even though there is a news entry that claimed that the non-private name was added (but there are no docs for it, nor any associated issue number). So, importlib experts, can you clean up the docs and/or code please? :) -- assignee: docs@python components: Documentation, Library (Lib) messages: 207723 nosy: brett.cannon, docs@python, eric.snow, r.david.murray priority: normal severity: normal stage: needs patch status: open title: status of module_for_loader and utils._module_to_load type: behavior versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20199 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20200] Argument Clinic howto: custom self_converter example broken
New submission from Ryan Smith-Roberts: The custom converter declaration is wrapped with [clinic input] when it should be [python input]. Patch attached. -- files: argument_clinic_docfix.patch keywords: patch messages: 207724 nosy: rmsr priority: normal severity: normal status: open title: Argument Clinic howto: custom self_converter example broken Added file: http://bugs.python.org/file33371/argument_clinic_docfix.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20200 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20200] Argument Clinic howto: custom self_converter example broken
Changes by Zachary Ware zachary.w...@gmail.com: -- assignee: - docs@python components: +Documentation nosy: +docs@python, larry stage: - patch review versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20200 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20199] status of module_for_loader and utils._module_to_load
Eric Snow added the comment: utils.module_to_load() has been removed (it was introduced in 3.4) and module_for_loader() remains deprecated. The import machinery now does the work that both functions did, rendering them unnecessary. I guess I failed to take a look at whatsnew relative all the PEP 451 changes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20199 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20174] Derby #5: Convert 50 sites to Argument Clinic across 3 files
Changes by Ryan Smith-Roberts r...@lab.net: -- keywords: +patch Added file: http://bugs.python.org/file33372/argument_clinic_functools.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20174 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20201] Argument Clinic: rwbuffer support broken
Ryan Smith-Roberts added the comment: I'm such a goofball, how about some bug metadata -- components: +Build type: - compile error versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20201 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20201] Argument Clinic: rwbuffer support broken
New submission from Ryan Smith-Roberts: Following the howto's instructions on the new syntax for the 'w*' argument, one gets an exception: ... File Tools/clinic/clinic.py, line 1780, in converter_init elif types == (bytearray_type | rwuffer_type): NameError: global name 'rwuffer_type' is not defined Easy fix, patch attached. -- files: argument_clinic_rwbuffer.patch keywords: patch messages: 207726 nosy: rmsr priority: normal severity: normal status: open title: Argument Clinic: rwbuffer support broken Added file: http://bugs.python.org/file33373/argument_clinic_rwbuffer.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20201 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20201] Argument Clinic: rwbuffer support broken
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +larry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20201 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20202] ArgumentClinic howto: document change in Py_buffer lifecycle management
New submission from Ryan Smith-Roberts: Almost didn't catch that PyBuffer_Release isn't needed. Also we need a verb/adjective for applying AC. Cure? zlibmodule has already been cured. -- assignee: docs@python components: Documentation messages: 207728 nosy: docs@python, larry, rmsr priority: normal severity: normal status: open title: ArgumentClinic howto: document change in Py_buffer lifecycle management versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20202 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20168] Derby: Convert the _tkinter module to use Argument Clinic
Changes by Serhiy Storchaka storch...@gmail.com: -- dependencies: +Argument Clinic generates invalid code for optional parameter ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20168 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20198] xml.etree.ElementTree.ElementTree.write attribute sorting
Stefan Behnel added the comment: IMHO, it makes sense to support this. My intuition tells me that lxml also handles this as expected, by accident through iteration. Not sure how to do this correctly in ET, though. Special case dict? Or special case OrderedDict? Both would leave some reasonable use cases uncovered, e.g. dict subclasses that do not impact iteration, and self-implemented OrderedDict-like types. And being too broad in the special casing will certainly kill someone's doctests somewhere... Given that OrderedDict is the one way to do this in recent Python versions, I guess it would be reasonable to special case on that type. -- nosy: +eli.bendersky, scoder ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20198 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20198] xml.etree.ElementTree.ElementTree.write attribute sorting
Stefan Behnel added the comment: My intuition tells me that lxml also handles this as expected, by accident through iteration. And, obviously, it doesn't. It sorts, too. :) I'm ok with switching for both libraries. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20198 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com