Re: [Python-Dev] How long the wrong type of argument should we limit (or not) in the error message (C-api)?

2013-12-13 Thread David Hutto
Being that python is, to me, a prototyping language, then every possible outcome should be presented to the end user. A full variety of explanations should be presented to the programmer. On Fri, Dec 13, 2013 at 11:56 PM, Vajrasky Kok wrote: > Greetings, > > When fixing/adding error message fo

[Python-Dev] How long the wrong type of argument should we limit (or not) in the error message (C-api)?

2013-12-13 Thread Vajrasky Kok
Greetings, When fixing/adding error message for wrong type of argument in C code, I am always confused, how long the wrong type is the ideal? The type of error message that I am talking about: "Blabla() argument 1 must be integer not wrong_type". We have inconsistency in CPython code, for examp

Re: [Python-Dev] (#19562) Asserts in Python stdlib code (datetime.py)

2013-12-13 Thread Alexander Belopolsky
On Fri, Nov 15, 2013 at 9:10 PM, Tim Peters wrote: > > _DI4Y = _days_before_year(5) > > # A 4-year cycle has an extra leap day over what we'd get from pasting > > # together 4 single years. > > assert _DI4Y == 4 * 365 + 1 > > > > To me, the constant should be directly set to its known value. >

Re: [Python-Dev] How do we feel about using pragmas and __attribute__ in C code?

2013-12-13 Thread Christian Heimes
Am 13.12.2013 18:04, schrieb Brett Cannon: > http://bugs.python.org/issue12837 deals with the single compiler warning > left on OS X: a tautalogical compare in socketmodule.c that is valid > under POSIX. I have a solution that uses pragmas to turn off > tautological compare warnings for the single

Re: [Python-Dev] How do we feel about using pragmas and __attribute__ in C code?

2013-12-13 Thread Stefan Krah
Brett Cannon wrote: > So is there any reason to not use pragmas sparsely in the code? I'm +1 on using pragmas for suppressing selected warnings. > Tying into this and using compiler-specific things in C code, what about > __attribute__? http://bugs.python.org/issue19298 proposes an idea that Da

[Python-Dev] Summary of Python tracker Issues

2013-12-13 Thread Python tracker
ACTIVITY SUMMARY (2013-12-06 - 2013-12-13) Python tracker at http://bugs.python.org/ To view or respond to any of the issues listed below, click on the issue. Do NOT respond to this message. Issues counts and deltas: open4322 ( -1) closed 27428 (+69) total 31750 (+68) Open issues wit

[Python-Dev] How do we feel about using pragmas and __attribute__ in C code?

2013-12-13 Thread Brett Cannon
http://bugs.python.org/issue12837 deals with the single compiler warning left on OS X: a tautalogical compare in socketmodule.c that is valid under POSIX. I have a solution that uses pragmas to turn off tautological compare warnings for the single 'if' statement that triggers it. But there are very

Re: [Python-Dev] Committing PEP 3155

2013-12-13 Thread Kingmody
‏‫من جهاز الـ iPad الخاص بي‬___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Committing PEP 3155

2013-12-13 Thread Kingmody
‏‫من جهاز الـ iPad الخاص بي‬___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Committing PEP 3155

2013-12-13 Thread Kingmody
‏‫من جهاز الـ iPad الخاص بي‬___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com