[issue19976] Argument Clinic: generate second arg for METH_NOARGS

2013-12-13 Thread Stefan Krah
Stefan Krah added the comment: Larry Hastings wrote: > To do it properly with Clang requires a pragma: Hmm. I just tested and clang warns with -Wall -W, but does not warn if __attribute__((unused)) is present. The macro I posted really works on all obscure buildbot platfo

[issue19976] Argument Clinic: generate second arg for METH_NOARGS

2013-12-13 Thread Stefan Krah
Stefan Krah added the comment: STINNER Victor wrote: > I would prefer Py_UNUSED name. This sounds like a nice addition to > Include/pymacros.h. Yes, Py_UNUSED is nicer. -- ___ Python tracker <http://bugs.python.org/i

[issue19298] Use __attribute__(cleanup ...) to detect refleaks

2013-12-13 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue19298> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4130] Intel icc 9.1 does not support __int128_t used by ctypes

2013-12-13 Thread Stefan Krah
Stefan Krah added the comment: Our included libffi is: 2013-03-17 Anthony Green * README: Update for 3.0.13. * configure.ac: Ditto. * configure: Rebuilt. * doc/*: Update version. According to https://sourceware.org/libffi/ that is the latest released

[issue19972] Leak in pickle (?)

2013-12-13 Thread Stefan Krah
Stefan Krah added the comment: I just see that it should be: static void pickle_free(PyObject *m) ... Even then, the cast is necessary, otherwise you get this warning: /home/stefan/hg/cpython/Modules/_pickle.c:7450:1: warning: initialization from incompatible pointer type [enabled by

[issue19972] Leak in pickle (?)

2013-12-14 Thread Stefan Krah
Stefan Krah added the comment: Should be fixed. Thanks for the comments everyone. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue17088] ElementTree incorrectly refuses to write attributes without namespaces when default_namespace is used

2013-12-14 Thread Stefan Behnel
Changes by Stefan Behnel : -- nosy: +eli.bendersky, scoder ___ Python tracker <http://bugs.python.org/issue17088> ___ ___ Python-bugs-list mailing list Unsub

[issue17088] ElementTree incorrectly refuses to write attributes without namespaces when default_namespace is used

2013-12-14 Thread Stefan Behnel
Stefan Behnel added the comment: Note that the option is called "default_namespace", not "default_namespace_prefix". Could you try passing the namespace URI instead? -- ___ Python tracker <http://bug

[issue19986] ‘mpd_del’ discards qualifiers from pointer target type

2013-12-15 Thread Stefan Krah
Stefan Krah added the comment: I agree that warnings are annoying, but I'm not sure what to do with this one: It's wrong and only occurs with fairly old gcc versions. My feeling was that pragmas are overkill for relatively old compilers. -- no

[issue19986] ‘mpd_del’ discards qualifiers from pointer target type

2013-12-15 Thread Stefan Krah
Changes by Stefan Krah : -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed type: compile error -> enhancement ___ Python tracker <http://bugs.python

[issue19988] hex() and oct() use __index__ instead of __int__

2013-12-15 Thread Stefan Krah
Stefan Krah added the comment: -1 from me as well. I would not want to audit a large program for accidentally converted floats. -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue19

[issue17919] AIX POLLNVAL definition causes problems

2013-12-15 Thread Stefan Krah
Stefan Krah added the comment: Hi, this happens on the OpenIndiana bot: http://buildbot.python.org/all/builders/x86%20OpenIndiana%203.3/builds/1259/steps/test/logs/stdio test_devpoll1 (test.test_devpoll.DevPollTests) ... ok test_events_mask_overflow (test.test_devpoll.DevPollTests) ... ERROR

[issue19995] hex() and %x, oct() and %o do not behave the same

2013-12-16 Thread Stefan Krah
Stefan Krah added the comment: Ethan Furman wrote: > The current meaning is unfortunate in that it is possible to want a type that > can be used as an index or slice but that is still not a number, and in fact > won't be used as a number in any scenario _except_ bin(),

[issue19995] hex() and %x, oct() and %o do not behave the same

2013-12-16 Thread Stefan Krah
Stefan Krah added the comment: > Did I mention __index__ is an unfortunate name for the current trend for this > method? Yes, but it's probably too late to change that now. Also, a fully precise name would be something like: __to_int_exact_iff_object_has_integer_nature__ :) >

[issue17781] optimize compilation options

2013-12-17 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue17781> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20008] Clean up/refactor/make discoverable test_decimal

2013-12-18 Thread Stefan Krah
Stefan Krah added the comment: Assigning to myself, since my private 100% coverage test suite would have to be updated as well. I have just glanced at the patch and only have some superficial remarks: In any case, I would prefer a patch without stylistic changes. Elimination of "return&

[issue20015] Allow 1-character ASCII unicode where 1-character str is required

2013-12-18 Thread Stefan Krah
Stefan Krah added the comment: I guess it makes porting to Python 3 easier, but can we do this in a stable release? -- nosy: +benjamin.peterson, skrah ___ Python tracker <http://bugs.python.org/issue20

[issue20015] Allow 1-character ASCII unicode where 1-character str is required

2013-12-21 Thread Stefan Krah
Stefan Krah added the comment: Well, generally I'd be against adding features, but this particular one could be rationalized in the same way as PEP 414. So I'm simply unsure whether the feature should be added, but *if* it's added, it should be backed by a pronouncement either

[issue20037] Calling traceback.format_exception() during Pyhon shutdown does crash Python

2013-12-21 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue20037> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19463] assertGdbRepr depends on hash randomization / endianess

2013-12-21 Thread Stefan Krah
Stefan Krah added the comment: Also on System Z: http://buildbot.python.org/all/builders/System%20Z%20Linux%203.x/builds/1009/steps/test/logs/stdio Setting priority to "normal", since it's the only test failing on System Z and generally green buildbots are more useful.

[issue20043] test_multiprocessing_main_handling fails --without-threads

2013-12-21 Thread Stefan Krah
New submission from Stefan Krah: http://buildbot.python.org/all/builders/AMD64%20Fedora%20without%20threads%203.x/builds/5874/steps/test/logs/stdio test test_multiprocessing_main_handling crashed -- Traceback (most recent call last): File "/home/buildbot/buildarea/3.x.krah-fedora/buil

[issue20049] string.lowercase and string.uppercase can contain garbage

2013-12-22 Thread Stefan Krah
Stefan Krah added the comment: Alexander, the "domain fo the function" probably refers to the range [-1, 256]. C99: The header declares several functions useful for classifying and mapping characters.166) In all cases the argument is an int, the value of which shall be repres

[issue20049] string.lowercase and string.uppercase can contain garbage

2013-12-22 Thread Stefan Krah
Stefan Krah added the comment: IOW, I also support closing this issue. :) -- ___ Python tracker <http://bugs.python.org/issue20049> ___ ___ Python-bugs-list mailin

[issue20051] PA-RISC buildbot: compiler cannot create executables

2013-12-22 Thread Stefan Krah
New submission from Stefan Krah: I think the demo mode for aCC has expired on h2 | HP-UX 11iv2 | PA-RISC: bash-4.0$ cc +DD32 -o xxx xxx.c Error: Demo mode has expired. Contact your Hewlett-Packard sales office to order HP C Compiler -- keywords: buildbot messages: 206831 nosy

[issue20086] test_locale fails on PPC64 PowerLinux

2013-12-28 Thread Stefan Krah
Stefan Krah added the comment: I don't know why this fails exactly. I had a similar failure though that was fixed by using the @run_with_locale decorator. -- nosy: +skrah ___ Python tracker <http://bugs.python.org/is

[issue19732] python fails to build when configured with --with-system-libmpdec

2013-12-30 Thread Stefan Krah
Stefan Krah added the comment: I wanted to force people to link explicitly with -l:libmpdec.so.2 in order to avoid picking up a wrong version. But indeed that won't work since the GNU linker happily picks up the static lib with -lmpdec if libmpdec.so is missing. The docs are part of my we

[issue19108] Benchmark runner tries to execute external Python command and fails on error reporting

2014-01-01 Thread Stefan Behnel
Stefan Behnel added the comment: *bump* - patch pending review. -- ___ Python tracker <http://bugs.python.org/issue19108> ___ ___ Python-bugs-list mailin

[issue20114] Sporadic failure of test_semaphore_tracker() of test_multiprocessing_forkserver on FreeBSD 9 buildbot

2014-01-03 Thread Stefan Krah
Stefan Krah added the comment: The machine has a high load: 6 processes at 100% CPU, one of which is the FreeBSD virtual machine. -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue20

[issue20128] Re-enable test_modules_search_builtin() in test_pydoc

2014-01-05 Thread Stefan Krah
Stefan Krah added the comment: The buildbot runs --without-doc-strings. Usually you just have to add the @requires_docstrings decorator to some tests. -- ___ Python tracker <http://bugs.python.org/issue20

[issue19732] python fails to build when configured with --with-system-libmpdec

2014-01-05 Thread Stefan Krah
Stefan Krah added the comment: I’ve released mpdecimal-2.4.0: http://www.bytereef.org/mpdecimal/download.html sha256sum: == 996c73b63868699c4f86694671bd7ff3d1a8a88d8af2c22a5abe0c9a5845cf75 mpdecimal-2.4.0.tar.gz On obscure architectures I would recommend to run `make check

[issue19732] python fails to build when configured with --with-system-libmpdec

2014-01-05 Thread Stefan Krah
Changes by Stefan Krah : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> behavior ___ Python tracker <http://bugs.python

[issue19723] Argument Clinic should add markers for humans

2014-01-07 Thread Stefan Krah
Stefan Krah added the comment: > I think maybe I only showed it to Stefan Krah, who said it wouldn't help his > use case so I dropped it. I think we were talking about _decimal, where any tool will interfere with the 100% code coverage patches. But that'

[issue20166] window x64 c-extensions not works on python3.4.0b2

2014-01-07 Thread Stefan Krah
Stefan Krah added the comment: Thanks for the report! -- That's due to the commit in #9709. PyMODINIT_FUNC is more than ten years old, so I hoped people would be using by now. On the other hand that's serious breakage. Martin, would you have time to make a call on whether to revert

[issue20183] Derby #14: Convert 50 sites to Argument Clinic across 6 files

2014-01-07 Thread Stefan Krah
Stefan Krah added the comment: Could you take out _testbuffer.c? It has 100% coverage patches which would break and it is not a public module. -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue20

[issue20177] Derby #8: Convert 52 sites to Argument Clinic across 3 files

2014-01-07 Thread Stefan Krah
Stefan Krah added the comment: Please take out _decimal.c. It has a huge test suite that would break entirely. -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue20

[issue20198] xml.etree.ElementTree.ElementTree.write attribute sorting

2014-01-08 Thread Stefan Behnel
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

[issue20198] xml.etree.ElementTree.ElementTree.write attribute sorting

2014-01-08 Thread Stefan Behnel
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. -- ___ Pytho

[issue20205] inspect.getsource(), P302 loader and '<..>' filenames

2014-01-09 Thread Stefan Müller
New submission from Stefan Müller: Following situation * python 2.7.6 * module loaded via a PEP302 loader. * the loader has get_source(fullname) * assigns a dummy string as a file: module.__file__ == "" Then inspect.getsource(module) throws IOError: could not get source code

[issue20189] inspect.Signature doesn't recognize all builtin types

2014-01-09 Thread Stefan Krah
Stefan Krah added the comment: Thanks, this is working here for the parameters. Is there a way to specify the return annotation manually in the docstring? -- ___ Python tracker <http://bugs.python.org/issue20

[issue19036] setlocale fails due to locale.h being wrapped up in LANGINFO check.

2014-01-09 Thread Stefan Krah
Stefan Krah added the comment: The patch looks correct to me. locale.h is at least C99 (I don't have the earlier standards). -- nosy: +skrah ___ Python tracker <http://bugs.python.org/is

[issue20189] inspect.Signature doesn't recognize all builtin types

2014-01-09 Thread Stefan Krah
Stefan Krah added the comment: > Yes, it's just Python syntax, so you'd use "->". I tried that, but it didn't filter through to inspect.signature(). > However, you are not permitted to according to PEP 8: Ah, to

[issue20219] ElementTree: allow passing XMLPullParser instance into iterparse()

2014-01-10 Thread Stefan Behnel
New submission from Stefan Behnel: in the XMLPullParser ticket http://bugs.python.org/issue17741 specifically here: http://bugs.python.org/msg196177 it says: """ * [The pull parser] will *not* accept a "parser" argument in the constructor. Rationale: the parser

[issue20086] test_locale fails with Turkish locale

2014-01-10 Thread Stefan Krah
Stefan Krah added the comment: 3d805bee06e2 uses str.lower(), which fails on the Turkish 'i' if the Turkish locale is set: Python 2.7.6+ (2.7:0e5df5b62488+, Jan 10 2014, 23:25:35) [GCC 4.6.3 20120306 (Red Hat 4.6.3-2)] on linux2 Type "help", "copyright", &

[issue20086] test_locale fails with Turkish locale

2014-01-10 Thread Stefan Krah
Stefan Krah added the comment: I'm not sure if str.lower() is supposed to use tolower() in stringobject.c. If tolower() is replaced by Py_TOLOWER(), the problem disappears. But maybe the locale dependent tolower() is used on purpose. -- ___ P

[issue20086] test_locale fails with Turkish locale

2014-01-10 Thread Stefan Krah
Stefan Krah added the comment: Ignore me, the fine manual says that "For 8-bit strings, this method is locale-dependent." -- ___ Python tracker <http://bugs.python.o

[issue20189] inspect.Signature doesn't recognize all builtin types

2014-01-13 Thread Stefan Krah
Stefan Krah added the comment: Another issue is that with the patch applied help() is broken for certain forms of docstrings: from decimal import * >>> print(setcontext.__doc__) setcontext(c) - Set a new default context. >>> help(setcontext) Traceback (most recent call last

[issue20260] Argument Clinic: add unsigned integers converters

2014-01-15 Thread Stefan Krah
Stefan Krah added the comment: I think we cannot change PyLong_AsUnsignedLong() without a deprecation period, if at all. That leaves the option of changing the converters. My preference is to raise either OverflowError or ValueError for *both* out-of-range conditions. People may me used to

[issue19936] Executable permissions of Python source files

2014-01-16 Thread Stefan Krah
Stefan Krah added the comment: Somehow Modules/_decimal/tests/bench.py and Modules/_decimal/tests/deccheck.py are now executable, which (I think) they should not be. -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue19

[issue19936] Executable permissions of Python source files

2014-01-17 Thread Stefan Krah
Stefan Krah added the comment: IMO the .bat files should have the executable bit as a reminder that they're executable on Windows. -- ___ Python tracker <http://bugs.python.org/is

[issue20246] buffer overflow in socket.recvfrom_into

2014-01-18 Thread Stefan Krah
Stefan Krah added the comment: One test fails on FreeBSD 9.0 and 6.4: == ERROR: testRecvFromIntoSmallBuffer (test.test_socket.BufferIOTest) -- Traceback (most

[issue9521] xml.etree.ElementTree skips processing instructions when parsing

2014-01-19 Thread Stefan Behnel
Changes by Stefan Behnel : -- nosy: +eli.bendersky, scoder ___ Python tracker <http://bugs.python.org/issue9521> ___ ___ Python-bugs-list mailing list Unsub

[issue9521] xml.etree.ElementTree skips processing instructions when parsing

2014-01-19 Thread Stefan Behnel
Stefan Behnel added the comment: When you write "XML PI", do you mean the XML declaration? At least that's what Mark used in his original example. ET avoids writing them out when they are not necessary, i.e. for UTF-8 compatible encodings. IMHO that's perfectly ok a

[issue20246] buffer overflow in socket.recvfrom_into

2014-01-19 Thread Stefan Krah
Stefan Krah added the comment: MSG*1024 passes. I did not look at this issue: Would changing the value to 1024 invalidate the test? -- ___ Python tracker <http://bugs.python.org/issue20

[issue9521] xml.etree.ElementTree skips processing instructions when parsing

2014-01-20 Thread Stefan Behnel
Stefan Behnel added the comment: > As for backwards compatibility: yes, this is a concern. The keyword argument > would be a solution. On the other hand, I'm not sure that the default should > be something that causes dataloss...? It's a matter of use cases. How often

[issue20305] Android's incomplete locale.h implementation prevents cross-compilation

2014-01-20 Thread Stefan Krah
Stefan Krah added the comment: I agree with Marc-Andre. Also, we should have an Android buildbot. -- ___ Python tracker <http://bugs.python.org/issue20

[issue19036] setlocale fails due to locale.h being wrapped up in LANGINFO check.

2014-01-20 Thread Stefan Krah
Changes by Stefan Krah : -- resolution: remind -> fixed stage: -> committed/rejected status: open -> closed type: -> compile error ___ Python tracker <http://bugs.python

[issue20305] Android's incomplete locale.h implementation prevents cross-compilation

2014-01-20 Thread Stefan Krah
Stefan Krah added the comment: Shiz wrote: > As far as maintaining an Android port for CPython goes; I may be interested > in this as I'd need to regularly use it anyway. Can anyone tell me what the > possibilities are here? There seem to be some external ports already. -- On

[issue9521] xml.etree.ElementTree skips processing instructions when parsing

2014-01-21 Thread Stefan Behnel
Stefan Behnel added the comment: > Unless there are objections, I'll try to work on a patch that either > documents that PIs are lost, or optionally adds them to the tree when parsing > (depending on how difficult that turns out to be). Please do. It should not be difficult at a

[issue20324] gcc-4.3 support on python-3.3 (libmpdec)

2014-01-21 Thread Stefan Krah
Stefan Krah added the comment: Do you mean gcc-4.2? The patch uses __GNUC_MINOR__ < 3. On the FreeBSD build slave gcc-4.2 works: gcc (GCC) 4.2.1 20070831 patched [FreeBSD] Are you sure that there aren't any gcc patches for this version? It looks like a gcc/binutils iss

[issue20324] gcc-4.2.4 support on python-3.3 (libmpdec)

2014-01-21 Thread Stefan Krah
Changes by Stefan Krah : -- title: gcc-4.3 support on python-3.3 (libmpdec) -> gcc-4.2.4 support on python-3.3 (libmpdec) ___ Python tracker <http://bugs.python.org/issu

[issue20305] Android's incomplete locale.h implementation prevents cross-compilation

2014-01-21 Thread Stefan Krah
Stefan Krah added the comment: "I've been looking into this, and the only option provided by the Android NDK involves cross-compiling Python on a regular machine. This would require some custom commands before and in between the builds, to build a host Python first, then cross-c

[issue20324] gcc-4.2.4 support on python-3.3 (libmpdec)

2014-01-21 Thread Stefan Krah
Stefan Krah added the comment: This is the gcc bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46861 I rather agree with this comment: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46861#c3 If a distro still maintains 4.2.x, the toolchain should be fixed (like FreeBSD apparently did

[issue20326] Argument Clinic should use a non-error-prone syntax to mark text signatures

2014-01-21 Thread Stefan Krah
Stefan Krah added the comment: Larry Hastings wrote: > I think we should change the syntax to something people would > never write by accident. Here are some suggestions: > > "*(" > "*clinic*(" > "\01 clinic(" I like the original "def (.

[issue20075] help(open) eats first line

2014-01-21 Thread Stefan Krah
Stefan Krah added the comment: See also #20326. -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue20075> ___ ___ Python-bugs-list mailing list Unsub

[issue20246] buffer overflow in socket.recvfrom_into

2014-01-21 Thread Stefan Krah
Stefan Krah added the comment: Thanks Ryan. As you say, the original segfault is also triggered with the shortened message. -- ___ Python tracker <http://bugs.python.org/issue20

[issue20336] test_asyncio: relax timings even more

2014-01-21 Thread Stefan Krah
New submission from Stefan Krah: It seems that the relaxed timings in some tests are still not sufficient: http://buildbot.python.org/all/builders/AMD64%20OpenIndiana%203.x/builds/7417/steps/test/logs/stdio == FAIL

[issue20326] Argument Clinic should use a non-error-prone syntax to mark text signatures

2014-01-22 Thread Stefan Krah
Stefan Krah added the comment: +1 for "sig: ". -- ___ Python tracker <http://bugs.python.org/issue20326> ___ ___ Python-bugs-list mailing list Uns

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2014-01-22 Thread Stefan Krah
Stefan Krah added the comment: I think we should probably not convert xx*.c. They are for newcomers who will likely be confused by the additional information overload. -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue20

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2014-01-22 Thread Stefan Krah
Stefan Krah added the comment: The vast majority of C modules are in third-party packages. I doubt that external modules will all use AC. xxmodule.c is about explaining the basic structure of a C extension. AC adds nothing to this and obfuscates (IMO) what is going on

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2014-01-22 Thread Stefan Krah
Stefan Krah added the comment: > I only wish someone had said something *before* I went ahead and converted > them... Yeah, sorry. It's also just my personal opinion. BTW, xxmodule did not compile and there was a warning for xxsubtype. I just mention it in case these ar

[issue20354] tracemalloc causes segfault in "make profile-opt"

2014-01-22 Thread Stefan Krah
Stefan Krah added the comment: For gcc, #pragma pack(n) apparently sets the new aligment for the entire compilation unit: http://gcc.gnu.org/onlinedocs/gcc/Structure-Packing-Pragmas.html -- nosy: +skrah ___ Python tracker <http://bugs.python.

[issue20336] test_asyncio: relax timings even more

2014-01-23 Thread Stefan Krah
Stefan Krah added the comment: I'm seeing other unrelated timeouts on the OpenIndiana machines. Jesús, are the machines perhaps operating under an unusually high load? -- nosy: +jcea ___ Python tracker <http://bugs.python.org/is

[issue20336] test_asyncio: relax timings even more

2014-01-23 Thread Stefan Krah
Stefan Krah added the comment: I see. That's astonishing, because usually the builds are ultra-fast on those machines. -- nosy: -gvanrossum ___ Python tracker <http://bugs.python.org/is

[issue20336] test_asyncio: relax timings even more

2014-01-23 Thread Stefan Krah
Stefan Krah added the comment: +1 for doing something about timing failures. Perhaps also a decorator @skip_if_load_higher_than(x). [Nick, I'm adding you because our current test suite could lead to "commit impossible" situations with Zuul.] --

[issue19334] test_asyncio hanging for 1 hour (non-AIX version)

2014-01-23 Thread Stefan Krah
Stefan Krah added the comment: It was hanging on FreeBSD 7.2 recently: http://buildbot.python.org/all/builders/x86%20FreeBSD%207.2%203.x/builds/4917/steps/test/logs/stdio The older FreeBSD systems have broken threading though, so we could just disable the offending tests. I would not waste

[issue19334] test_asyncio hanging for 1 hour (non-AIX version)

2014-01-23 Thread Stefan Krah
Stefan Krah added the comment: OK, I have not seen the original issue in any recent builds either. -- ___ Python tracker <http://bugs.python.org/issue19

[issue20326] Argument Clinic should use a non-error-prone syntax to mark text signatures

2014-01-26 Thread Stefan Krah
Stefan Krah added the comment: I like the "sig=" and the "$". There seems to be a small glitch in __rdivmod__: help(int.__rdivmod__) __rdivmod__(, value) sig=($self, value) Returns divmod(value, self). The sig line is shown (and the preferred form is the impera

[issue20326] Argument Clinic should use a non-error-prone syntax to mark text signatures

2014-01-26 Thread Stefan Krah
Stefan Krah added the comment: > What is the redundant info? {"__rdivmod__", __builtin_offsetof (PyHeapTypeObject, as_number.nb_divmod), (void *)(slot_nb_divmod), wrap_binaryfunc_r, "sig=($self, value)\n" "sig=($self, value)\nReturns divmod(value, self)."} Th

[issue20399] Comparison of memoryview

2014-01-27 Thread Stefan Krah
Stefan Krah added the comment: For integer sequences I think non-equality comparisons will be somewhat confusing. Are the sequences little or big endian? If we start to view bytes more like latin-1 again (PEP 461), it would make sense for the 'B' and &

[issue20308] inspect.Signature doesn't support user classes without __init__ or __new__

2014-01-28 Thread Stefan Krah
Stefan Krah added the comment: One test fails --without-doc-strings: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.0%203.x/builds/6266/steps/test/logs/stdio -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue20

[issue20338] Idle: increase max calltip width

2014-01-28 Thread Stefan Krah
Stefan Krah added the comment: I think test_idle is failing on many build slaves following this commit. -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue20

[issue20166] window x64 c-extensions not works on python3.4.0b2

2014-01-28 Thread Stefan Krah
Stefan Krah added the comment: Ping. The blocker seems to have passed beta3. :) -- ___ Python tracker <http://bugs.python.org/issue20166> ___ ___ Python-bug

[issue20166] window x64 c-extensions not works on python3.4.0b2

2014-01-28 Thread Stefan Krah
Stefan Krah added the comment: Thanks, that seems to be the best course of action. Fixed in 69827c2ab9d0. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed superseder: -> test_distutils warning: initfunc exported twice on Windows type: ->

[issue9709] test_distutils warning: initfunc exported twice on Windows

2014-01-28 Thread Stefan Krah
Stefan Krah added the comment: Too many extensions are not using PyMODINIT_FUNC (See #20166). Closing as WONT_FIX. -- resolution: fixed -> wont fix ___ Python tracker <http://bugs.python.org/iss

[issue20338] Idle: increase max calltip width

2014-01-29 Thread Stefan Krah
Stefan Krah added the comment: Terry J. Reedy wrote: > and fixed fixed the first-line deletion somewhere in changes to about 30 > other files. Ah, so it was a Derby accident. Let's hope things stabilize soon. -- ___ Python tra

[issue17159] Remove explicit type check from inspect.Signature.from_function()

2014-01-29 Thread Stefan Behnel
Stefan Behnel added the comment: Yes, the situation didn't change. -- ___ Python tracker <http://bugs.python.org/issue17159> ___ ___ Python-bugs-list m

[issue20326] Argument Clinic should use a non-error-prone syntax to mark text signatures

2014-01-30 Thread Stefan Behnel
Stefan Behnel added the comment: I stumble over this because I had already adapted our doctests in Cython to the changed Py3.4 behaviour, so they started failing now because the automatic signature extraction was essentially reverted in CPython. I had started to consider it a feature that

[issue17159] Remove explicit type check from inspect.Signature.from_function()

2014-01-30 Thread Stefan Behnel
Stefan Behnel added the comment: LGTM, thanks! And works nicely with Cython: """ import inspect def test_isfunction(): """ >>> test_isfunction() True """ return inspect.isfunction(test_isfunction) def test_sig

[issue17159] Remove explicit type check from inspect.Signature.from_function()

2014-01-31 Thread Stefan Behnel
Stefan Behnel added the comment: pretty please? :) -- ___ Python tracker <http://bugs.python.org/issue17159> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17159] Remove explicit type check from inspect.Signature.from_function()

2014-01-31 Thread Stefan Behnel
Stefan Behnel added the comment: Tried it, works for me. Explicitly rejecting classes is a good idea, IMHO, as is requiring that any function-like object must be callable, obviously. -- ___ Python tracker <http://bugs.python.org/issue17

[issue17159] Remove explicit type check from inspect.Signature.from_function()

2014-01-31 Thread Stefan Behnel
Stefan Behnel added the comment: Thanks a lot! -- ___ Python tracker <http://bugs.python.org/issue17159> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20471] test_signature_on_class() of test_inspect fails on "AMD64 FreeBSD 9.0 3.x" buildbot

2014-02-01 Thread Stefan Krah
Stefan Krah added the comment: The build is --without-doc-strings. That should do the trick. -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue20

[issue20471] test_signature_on_class() of test_inspect fails on "AMD64 FreeBSD 9.0 3.x" buildbot

2014-02-01 Thread Stefan Krah
Stefan Krah added the comment: I think you just need to use the @requires_docstrings decorator for the test. -- To me the failure looks expected if there aren't any docstrings. -- ___ Python tracker <http://bugs.python.org/is

[issue17159] Remove explicit type check from inspect.Signature.from_function()

2014-02-01 Thread Stefan Behnel
Stefan Behnel added the comment: Hmm, I now notice that I was mistaken about this working: ''' import inspect def test_isfunction(): """ >>> test_isfunction() True """ return inspect.isfunction(test_isfunction) '

[issue17159] Remove explicit type check from inspect.Signature.from_function()

2014-02-01 Thread Stefan Behnel
Stefan Behnel added the comment: > I'm not sure I like the idea that Cython functions are "chimeras" of > some sort, i.e. they have a type of python builtin functions, hence, > logically, Signature.from_builtin should work on them (and they have to > follow __text_s

[issue17159] Remove explicit type check from inspect.Signature.from_function()

2014-02-01 Thread Stefan Behnel
Stefan Behnel added the comment: Attached is a minimal patch that does what I think you meant. -- Added file: http://bugs.python.org/file33846/divert_from_builtin.patch ___ Python tracker <http://bugs.python.org/issue17

[issue17159] Remove explicit type check from inspect.Signature.from_function()

2014-02-01 Thread Stefan Behnel
Stefan Behnel added the comment: I tried the third patch and it works, but when I write this into a docstring: def func(x, *, y=None): """sig=(a,b)""" then it fails to extract the signature again and returns (a,b) instead. I also tried putting in so

[issue20326] Argument Clinic should use a non-error-prone syntax to mark text signatures

2014-02-01 Thread Stefan Behnel
Stefan Behnel added the comment: I tried this in Cython and ISTM that the C level parser is a bit too forgiving: def sig(a, b): """sig=(a*b)""" return a * b -- ___ Python tracker <

[issue17159] Remove explicit type check from inspect.Signature.from_function()

2014-02-02 Thread Stefan Behnel
Stefan Behnel added the comment: > I assumed that anything that had a __text_signature__ wasn't going > to have any other kind of signature information. Therefore, if the > object had a __text_signature__ attribute, then I already knew that's > the best approach and i

[issue17159] Remove explicit type check from inspect.Signature.from_function()

2014-02-02 Thread Stefan Behnel
Stefan Behnel added the comment: Ok, I think I figured it out now. Essentially, Cython's functions type, despite starting with the same struct layout as PyCFunction, must not visibly inherit from PyCFunction. Consequently, inspect.isbuiltin() returns False, as does inspect.isfun

<    32   33   34   35   36   37   38   39   40   41   >