Issue 17576: PyNumber_Index() is not int-subclass friendly (or operator.index() docs lie) (original) (raw)

Created on 2013-03-29 22:25 by barry, last changed 2022-04-11 14:57 by admin.

Messages (54)

msg185522 - (view)

Author: Barry A. Warsaw (barry) * (Python committer)

Date: 2013-03-29 22:25

operator.index() is just a thin wrapper around PyNumber_Index(). The documentation for operator.index() claims that it is equivalent to calling obj.index() but for subclasses of int, this is not true. In fact, PyNumber_Index() first does (e.g. in Python 3.3) a PyLong_Check() and if that succeeds, the original object is returned without doing the moral equivalent in C of calling obj.index(). An example:

class myint(int): def index(self): return int(self) + 1

x = myint(7) x.index() 8 from operator import index index(x) 7

The C API documents PyNumber_Index() as: "Returns the o converted to a Python int on success or NULL with a TypeError exception raised on failure."

Because this has been the behavior of PyNumber_Index() since at least 2.7 (I didn't check farther back), this probably cannot be classified as a bug deserving to be fixed in the code for older Pythons. It might be worth fixing for Python 3.4, i.e. by moving the index check before the type check. In the meantime, this is probably a documentation bug.

The C API implies, but should be clearer that if o is an int subtype (int and long in Python 2), it is returned unchanged. The operator.index() documentation should be amended to describe this behavior for int/long subclasses.

A different alternative would be to leave PyNumber_Index() unchanged, but with the doco fix, and to augment operator.index() to do the PyIndex_Check() first, before calling PyNumber_Index(). That's a little more redundant, but would provide the documented behavior without changing the C API.

msg185523 - (view)

Author: Barry A. Warsaw (barry) * (Python committer)

Date: 2013-03-29 22:29

You also end up with this nice bit of inconsistency:

x = myint(7) from operator import index range(10)[6:x] range(6, 7) range(10)[6:x.index()] range(6, 8) range(10)[6:index(x)] range(6, 7)

Granted, it's insane to have index() return a different value like this, but in my specific use case, it's the type of object returned from operator.index() that's the problem. operator.index() returns the subclass instance while obj.index() returns the int.

(The use case is the IntEnum of PEP 435.)

msg185530 - (view)

Author: Eric Snow (eric.snow) * (Python committer)

Date: 2013-03-30 00:29

Would it be okay to do a check on index after the PyLong_Check() succeeds? Something like this:

if (PyLong_Check(item) &&
    item->ob_type->tp_as_number->nb_index == PyLong_Type.tp_as_number->nb_index) {
    Py_INCREF(item);
    return item;
}

This is something Nick and I were talking about at the sprints regarding fast paths in the abstract API (for mappings and sequences in our case).

msg185531 - (view)

Author: Alex Gaynor (alex) * (Python committer)

Date: 2013-03-30 00:36

In my opinion that should use PyLong_CheckExact

msg185532 - (view)

Author: Barry A. Warsaw (barry) * (Python committer)

Date: 2013-03-30 00:39

On Mar 30, 2013, at 12:29 AM, Eric Snow wrote:

Would it be okay to do a check on index after the PyLong_Check() succeeds? Something like this:

if (PyLong_Check(item) && item->ob_type->tp_as_number->nb_index == PyLong_Type.tp_as_number->nb_index) { Py_INCREF(item); return item; }

This is something Nick and I were talking about at the sprints regarding fast paths in the abstract API (for mappings and sequences in our case).

I think that would work, yes. With this extra check, overriding index() in the subclass should fail this condition and fall back to the PyIndex_Check() clause.

msg188791 - (view)

Author: STINNER Victor (vstinner) * (Python committer)

Date: 2013-05-09 22:09

Alex> In my opinion that should use PyLong_CheckExact

+1

msg188810 - (view)

Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer)

Date: 2013-05-10 06:03

if (PyLong_CheckExact(item) || (PyLong_Check(item) && item->ob_type->tp_as_number->nb_index == PyLong_Type.tp_as_number->nb_index))

msg194335 - (view)

Author: Mark Dickinson (mark.dickinson) * (Python committer)

Date: 2013-08-04 08:56

See the related python-dev discussion started by Mark Shannon here:

http://mail.python.org/pipermail/python-dev/2013-March/125022.html

and continuing well into April here:

http://mail.python.org/pipermail/python-dev/2013-April/125042.html

The consensus that emerged from that thread seems to be that calls to operator.index and to int() should always return something of exact type int.

The attached patch:

I guess this may be too dangerous a change for Python 3.4. In that case, I propose raising warnings instead of TypeErrors for Python 3.4 and turning those into TypeErrors in Python 3.5.

One other question: should direct calls to int and index also have their return values type-checked? That doesn't seem to happen at the moment for other magic methods (see below), so it would seem consistent to only do the type checking for interpreter-generated implicit calls to int and index. Nick: any opinion?

class A: ... def len(self): return "a string" ... def bool(self): return "another string" ... a = A() a.len() 'a string' a.bool() 'another string' len(a) Traceback (most recent call last): File "", line 1, in TypeError: 'str' object cannot be interpreted as an integer bool(a) Traceback (most recent call last): File "", line 1, in TypeError: bool should return bool, returned str

msg194337 - (view)

Author: Mark Dickinson (mark.dickinson) * (Python committer)

Date: 2013-08-04 10:07

New patch that replaces the TypeErrors with warnings and fixes a refleak in the original patch.

msg194347 - (view)

Author: Alyssa Coghlan (ncoghlan) * (Python committer)

Date: 2013-08-04 11:29

The deprecation warning version looks good to me.

Something I'll mention explicitly (regarding the PyCon discussions that Eric mentioned above), is that we unfortunately couldn't do something like this for the various concrete APIs with overly permissive subclass checks. For those APIs, calling them directly was often the right thing for simple subtypes implemented in C to use to call up to the parent implementation.

This case is different, as it's the abstract APIs that currently have the overly permissive checks.

msg195713 - (view)

Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer)

Date: 2013-08-20 19:52

Shouldn't it be PendingDeprecationWarning?

msg195747 - (view)

Author: Mark Dickinson (mark.dickinson) * (Python committer)

Date: 2013-08-21 05:47

Shouldn't it be PendingDeprecationWarning?

Hmm. Possibly. I'm not sure what the policy is any more regarding DeprecationWarning versus PendingDeprecationWarning. Nick?

msg195759 - (view)

Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer)

Date: 2013-08-21 09:33

Yet some nitpicks.

Currently the code of _PyLong_FromNbInt() is inlined and the do_decref flag is used to prevent needless change refcounts of int objects (see also ). In proposed patch common code is extracted into the _PyLong_FromNbInt() function and int objects increfed and decrefed. Doesn't it affect a performance? PyLong_As* functions used in arguments parsing in a lot of builtins and their .performance is important.

If the patch slowdowns PyLong_As* functions we perhaps should check PyLong_CheckExact() before calling _PyLong_FromNbInt() and use the do_decref flag.

In general the idea and the patch LGTM.

msg195764 - (view)

Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer)

Date: 2013-08-21 10:22

On PyPy 1.8.0 operator.index(True) returns 1.

msg195772 - (view)

Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer)

Date: 2013-08-21 11:32

And yet one nitpick. For int subclasses which doesn't overload the int method the patch calls default int.int which creates a copy of int object. This is redundant in PyLong_As* functions because they only extract C int value and drop Python int object. So we can use int subclass object itself as good as int object.

msg195824 - (view)

Author: Alyssa Coghlan (ncoghlan) * (Python committer)

Date: 2013-08-21 21:32

On 21 Aug 2013 15:47, "Mark Dickinson" <report@bugs.python.org> wrote:

Mark Dickinson added the comment:

Shouldn't it be PendingDeprecationWarning?

Hmm. Possibly. I'm not sure what the policy is any more regarding DeprecationWarning versus PendingDeprecationWarning. Nick?

Not sure if this is written down anywhere, but I use PendingDeprecationWarning for "definitely still around next release, may not have a set date for removal" and DeprecationWarning for "may be removed next release".

msg200171 - (view)

Author: Ethan Furman (ethan.furman) * (Python committer)

Date: 2013-10-17 22:37

Where do we stand with this issue?

msg200229 - (view)

Author: Mark Dickinson (mark.dickinson) * (Python committer)

Date: 2013-10-18 08:00

I still need to act on some of Serhiy's comments. I do plan to get this in for 3.4.

msg205733 - (view)

Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer)

Date: 2013-12-09 19:30

Ping.

msg205735 - (view)

Author: Mark Dickinson (mark.dickinson) * (Python committer)

Date: 2013-12-09 19:42

Ping.

Bah. Sorry; I haven't had time to deal with this. Serhiy: are you interested in taking over?

msg205793 - (view)

Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer)

Date: 2013-12-10 11:47

Here is updated patch. There is no more overhead in PyLong_As* functions. Simplified PyNumber_Index(). assertWarns() now used instead of support.check_warnings(). Added new tests.

msg205802 - (view)

Author: Alyssa Coghlan (ncoghlan) * (Python committer)

Date: 2013-12-10 12:09

Took me a while to figure out that one of the code paths was being deleted as redundant because the type machinery will always fill in nb_int for int subclasses, but Serhiy's patch looks good to me.

msg205856 - (view)

Author: Mark Dickinson (mark.dickinson) * (Python committer)

Date: 2013-12-10 20:38

Thanks, Serhiy.

msg205862 - (view)

Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer)

Date: 2013-12-10 21:53

What about PyLong_AsSsize_t(), PyLong_AsUnsignedLong(), and PyLong_AsSize_t()? They are ignore int().

PyLong_AsVoidPtr() calls PyLong_AsLong(), PyLong_AsUnsignedLong(), PyLong_AsLongLong(), or PyLong_AsUnsignedLongLong() (depending on pointer's size and it's sign) and therefore can call or not call int, can raise or not raise TypeError on non-int subclasses with defined int().

msg205870 - (view)

Author: Alyssa Coghlan (ncoghlan) * (Python committer)

Date: 2013-12-10 23:11

The ssize_t functions deliberately ignore lossy int conversions (e.g. from floats) - that's why they only work on types that implement index.

msg205889 - (view)

Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer)

Date: 2013-12-11 07:34

The ssize_t functions deliberately ignore lossy int conversions (e.g. from floats) - that's why they only work on types that implement index.

They ignore index.

msg205890 - (view)

Author: Mark Dickinson (mark.dickinson) * (Python committer)

Date: 2013-12-11 07:37

Yes, the PyLong_As... conversions are a mess. In theory, they should all use index if available, and ignore int. In practice, it's a mess that's difficult to change without breaking things. I think there are already some other issues open on this subject.

msg205896 - (view)

Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer)

Date: 2013-12-11 08:59

PyLong_AsUnsignedLong() and PyLong_AsLong() can return different values for same object. Why int and index should be used for int subclasses at all? I'm not sure this is right solution.

msg205916 - (view)

Author: Roundup Robot (python-dev) (Python triager)

Date: 2013-12-11 19:28

New changeset 618cca51a27e by Serhiy Storchaka in branch '3.3': Issue #17576: Deprecation warning emitted now when int() or index() http://hg.python.org/cpython/rev/618cca51a27e

New changeset 59fb79d0411e by Serhiy Storchaka in branch 'default': Issue #17576: Deprecation warning emitted now when int() or index() http://hg.python.org/cpython/rev/59fb79d0411e

msg205919 - (view)

Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer)

Date: 2013-12-11 20:02

I first committed safe part of patch, which doesn't change behavior, only adds warnings and tests. Here is other part (very simple), which change behavior (in sum they are equal to issue17576_v3.patch with minor changes).

class A(int): ... def index(self): return 1 ... import operator operator.index(A())

Returns 0 without patch and 1 with patch.

class A: ... def trunc(self): return True ... int(A())

Returns True without patch and 1 with patch.

class A(int): ... def int(self): return 42 ... chr(A(43))

Returns '+' without patch and '*' with patch.

msg205921 - (view)

Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer)

Date: 2013-12-11 20:20

Even with last patch int() can return non-int:

class A(int): ... def int(self): return True ... def repr(self): return '' ... class B: ... def int(self): return A() ... class C: ... def trunc(self): return A() ... int(B()) int(C()) True

msg206199 - (view)

Author: Roundup Robot (python-dev) (Python triager)

Date: 2013-12-14 19:08

New changeset a3de2b3881c1 by Serhiy Storchaka in branch '3.3': Issue #17576: Removed deprecation warnings added in changeset 618cca51a27e. http://hg.python.org/cpython/rev/a3de2b3881c1

msg207293 - (view)

Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer)

Date: 2014-01-04 17:29

I have doubts about this issue, so I have unassigned it from myself.

msg236493 - (view)

Author: Manuel Jacob (mjacob) *

Date: 2015-02-24 13:38

Maybe I'm missing something, but it seems to me that test_int_subclass_with_index() is testing for the exactly wrong behaviour. Isn't the point of this issue that operator.index(a) should be equal to a.index()? Why are the tests checking that they are different?

msg236502 - (view)

Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer)

Date: 2015-02-24 15:05

The tests are checking that they are the same value (8) and the same type (int)?

msg236526 - (view)

Author: Manuel Jacob (mjacob) *

Date: 2015-02-24 17:44

The tests in the attached patches (for example issue17576_v3.patch) check that both are 8, but the tests which were actually committed are checking that "my_int.index() == 8" and "operator.index(my_int) == 7".

msg236528 - (view)

Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer)

Date: 2015-02-24 17:59

Ah, it just checks current behavior. So we will know when this will be changed.

msg236880 - (view)

Author: Alyssa Coghlan (ncoghlan) * (Python committer)

Date: 2015-02-28 12:00

OK, something appears to have gotten confused along the way here. Barry's original problem report was that operator.index() was returning a different answer than operator.index() for int subclasses. Absolutely nothing to do with the int builtin at all. While the fact int() may return int subclasses isn't especially good, it's also a longstanding behaviour.

The problem Barry reports, where a subclassing based proxy type isn't reverting to a normal integer when accessed via operator.index() despite defining index() to do exactly that should be possible to fix just by applying the stricter check specifically in PyNumber_Index.

Expanding the scope to cover int() and trunc() as well would be much, much hairier, as those are much older interfaces, and used in a wider variety of situations. We specifically invented index() to stay away from that mess while making it possible to explicitly indicate that a type supports a lossless conversion to int rather than a potentially lossy one.

msg336045 - (view)

Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer)

Date: 2019-02-20 06:57

See also .

msg344266 - (view)

Author: Mark Dickinson (mark.dickinson) * (Python committer)

Date: 2019-06-02 10:27

I'm working on a PR that finally changes the DeprecationWarnings that Serhiy introduced to TypeErrors; I think that should be acceptable, four Python versions and some years later. With that PR:

msg344275 - (view)

Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer)

Date: 2019-06-02 11:11

I am not sure that raising an error is the best option. We can just convert an integer subclass to an exact int using _PyLong_Copy().

I am not sure that converting to an exact int in low-level C API functions is the best option. In many cases we use only the content of the resulting object ignoring its type (when convert it to the C integer or float, to bytes array, to new instance of int subclass). Creating a new exact int is a waste of time.

This is why I withdrawn my patches and this issue is still open.

msg344308 - (view)

Author: Raymond Hettinger (rhettinger) * (Python committer)

Date: 2019-06-02 20:22

Can we at least switch to PyLong_CheckExact? That would fix Barry's original issue and should run slightly faster.

msg344384 - (view)

Author: Mark Dickinson (mark.dickinson) * (Python committer)

Date: 2019-06-03 06:46

Can we at least switch to PyLong_CheckExact?

+1

I am not sure that converting to an exact int in low-level C API functions is the best option.

I am sure. :-) The number of naturally-occurring cases where we're actually passing a subtype of int that's not exactly int should be tiny. So long as there's a PyLong_CheckExact fast path, I don't think there are really any performance concerns here.

And we definitely shouldn't let performance concerns dictate API; get the API right first, then see what can be done about performance without changing the API. It's clear to me that operator.index(obj) should give the exact same results as obj.__index__().

I'll split my PR up into two pieces, one for turning the deprecated behaviour into TypeErrors, and a second one that just makes the PyLong_CheckExact change. (I likely won't have time before feature freeze, though. OTOH, the PyLong_CheckExact change could be considered a bugfix.)

msg344386 - (view)

Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer)

Date: 2019-06-03 07:10

Can we at least switch to PyLong_CheckExact?

This is a behavior change and as such should be preceded by a period of warning.

If we go this way I propose to add a FutureWarning for int subclasses with overridden index.

As for turning the deprecated behaviour into TypeErrors, we added yet few deprecation warnings in 3.8. Would not be better to turn all of them into TypeErrors at the same time?

msg344406 - (view)

Author: Mark Dickinson (mark.dickinson) * (Python committer)

Date: 2019-06-03 10:34

I've closed the PR. Reassigning back to Ethan.

msg344681 - (view)

Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer)

Date: 2019-06-05 07:39

Mark, I think you can reopen the PR and merge it in 3.9 now.

As for my proposition to use the FutureWarning first, I think it is not necessary. The behavior change is very subtle and will affects only int subclasses with overridden index. Similar changes (preferring index over int) have been made in 3.8 without preceding FutureWarning. And similar minor changes were made in the past.

On other hand, I am not sure that index should be used for int subclasses. We already have the int content, so we can create an exact int with _PyLong_Copy().

msg349562 - (view)

Author: STINNER Victor (vstinner) * (Python committer)

Date: 2019-08-13 14:26

It started to write a new issue, but then I found this issue issue (created in 2013!) which is still open. So let me write my comment here instead.

The code to convert a number to an integer is quite complex in Python. There are many ways to do that and each way has subtle behavior differences (ex: index vs int). Python tolerates some behavior which lead to even more confusion. For example, some functions explicitly reject the float type but accept Decimal:

PyLong_Long(obj) calls type(obj).index() if it's defined, but it accepts subtypes of int, not only exactly the int type (type(x) == int). This feature is deprecated since Python 3.3 (released in 2012), since this change:

commit 31a655411a79b00517cdcd0a2752824d183db792 Author: Serhiy Storchaka <storchaka@gmail.com> Date: Wed Dec 11 21:07:54 2013 +0200

Issue [#17576](issue17576 "[open] PyNumber_Index() is not int-subclass friendly (or operator.index() docs lie)"): Deprecation warning emitted now when __int__() or __index__()
return not int instance.  Introduced _PyLong_FromNbInt() and refactored
PyLong_As*() functions.

I propose to now fail with an exception if int() or index() return type is not exactly int.

Note: My notes on Python numbers: https://pythondev.readthedocs.io/numbers.html

msg370171 - (view)

Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer)

Date: 2020-05-28 08:10

The current status:

But:

What I prefer as solutions of the remaining issues:

msg370177 - (view)

Author: Mark Dickinson (mark.dickinson) * (Python committer)

Date: 2020-05-28 08:41

[Serhiy]

I'm not sure about this. Thinking about the bigger picture, we have a similar deprecation in place for float returning an instance of a float subclass. That one I'd like to keep (and probably make an error for 3.10).

A problem I've run into in Real Code (TM) is needing to convert something float-like to a float, using the same mechanisms that (for example) something like math.sqrt uses.

One option is to call "float", but that requires explicitly excluding str, bytes and bytearray, which feels ugly and not very future-proof.

So the code ends up calling float. But because float can return an instance of a float subclass, it then still needs some way to convert the return value to an actual float. And that's surprisingly tricky.

So I really do want to see the ability of float to return a non-float eventually removed.

Similarly for int, there's no easy Python-side way to mimic the effect of calling int, followed by converting to an exact int. We have to:

  1. Do an explicit check for non-numbers (str, bytes, bytearray)
  2. Call int

Or:

  1. Call int
  2. Convert an instance of a possible subclass of int to something of exact type int. I don't know how to do this cleanly in general in Python, and end up resorting to evil tricks like adding 0.

Deprecating allowing int to return a non-int helps here, because it lets me simply call int.

I care much more about the float case than the int case, because the "right way" to duck-type integers is to use index rather than int, and for index we have operator.index as a solution.

But it would seem odd to have the rule in place for float but not for int and index.

The other way to solve my problem would be to provide an operator module function (operator.as_float?) that does a duck-typed conversion of an arbitrary Python object to a float.

msg370190 - (view)

Author: Mark Dickinson (mark.dickinson) * (Python committer)

Date: 2020-05-28 11:07

The other way to solve my problem would be to provide an operator module function (operator.as_float?) that does a duck-typed conversion of an arbitrary Python object to a float.

This does feel like the right solution to me. See #40801 and the linked PR. If we can do something like this, I'd be happy to drop the expectation that float return something of exact type float, and similarly for index.

msg381639 - (view)

Author: Brett Cannon (brett.cannon) * (Python committer)

Date: 2020-11-23 02:06

I think operator.index() should be brought to be inline with PyNumber_Index():

The language reference for index() suggests this is the direction to go (https://docs.python.org/3/reference/datamodel.html#object.index).

msg400674 - (view)

Author: Raymond Hettinger (rhettinger) * (Python committer)

Date: 2021-08-30 22:08

So I really do want to see the ability of float to return a non-float eventually removed.

Note, the str method on strings does not require an exact str.

class S:
    def __str__(self):
        return self

print(type(str(S('hello world'))))

msg400707 - (view)

Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer)

Date: 2021-08-31 10:27

PyNumber_Index() now always returns an instance of int.

If we go in this direction we should add a DeprecationWarning for str() returning not direct str. I am not sure that it is right. It adds a burden on authors of special methods to always convert the result to the corresponding direct type, while this conversion can silently (and more efficiently) be performed in the interpreter core.

msg400747 - (view)

Author: STINNER Victor (vstinner) * (Python committer)

Date: 2021-08-31 15:42

If we go in this direction we should add a DeprecationWarning for str() returning not direct str.

I saw str subclass being used for translation. Example:

class Message(str): """A Message object is a unicode object that can be translated. Translation of Message is done explicitly using the translate() method. For all non-translation intents and purposes, a Message is simply unicode, and can be treated as such. """

https://github.com/openstack/oslo.i18n/blob/master/oslo_i18n/_message.py

There is likely other funny use cases.

I don't know if str() is used on Message instances.

History

Date

User

Action

Args

2022-04-11 14:57:43

admin

set

github: 61776

2021-08-31 15:42:26

vstinner

set

messages: +

2021-08-31 10:27:05

serhiy.storchaka

set

messages: +

2021-08-30 22:08:31

rhettinger

set

messages: +

2020-11-23 02:06:51

brett.cannon

set

nosy: + brett.cannon
messages: +

2020-11-23 02:00:24

brett.cannon

set

title: PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie) -> PyNumber_Index() is not int-subclass friendly (or operator.index() docs lie)

2020-07-06 08:44:33

terry.reedy

set

versions: + Python 3.9, Python 3.10, - Python 2.7, Python 3.3, Python 3.4

2020-05-28 11:07:35

mark.dickinson

set

messages: +

2020-05-28 08:41:58

mark.dickinson

set

nosy: + mark.dickinson
messages: +

2020-05-28 08:10:59

serhiy.storchaka

set

messages: +

2019-08-13 15:52:44

vstinner

link

issue20861 superseder

2019-08-13 14:26:25

vstinner

set

messages: +

2019-06-05 07:39:45

serhiy.storchaka

set

messages: +

2019-06-03 10:35:23

mark.dickinson

set

nosy: - mark.dickinson

2019-06-03 10:34:46

mark.dickinson

set

assignee: mark.dickinson -> ethan.furman

messages: +
nosy: + ethan.furman

2019-06-03 07:10:51

serhiy.storchaka

set

messages: +

2019-06-03 06:46:54

mark.dickinson

set

messages: +

2019-06-02 20:22:01

rhettinger

set

nosy: + rhettinger
messages: +

2019-06-02 11:11:49

serhiy.storchaka

set

messages: +

2019-06-02 10:56:11

mark.dickinson

set

pull_requests: + <pull%5Frequest13623>

2019-06-02 10:46:42

mark.dickinson

set

assignee: ethan.furman -> mark.dickinson

2019-06-02 10:27:17

mark.dickinson

set

messages: +

2019-05-08 10:57:56

serhiy.storchaka

link

issue36846 superseder

2019-02-20 06:57:13

serhiy.storchaka

set

messages: +

2015-07-21 07:29:34

ethan.furman

set

nosy: - ethan.furman

2015-02-28 12:00:51

ncoghlan

set

messages: +

2015-02-24 17:59:40

serhiy.storchaka

set

messages: +

2015-02-24 17:44:37

mjacob

set

messages: +

2015-02-24 15:05:19

serhiy.storchaka

set

messages: +

2015-02-24 13:38:33

mjacob

set

nosy: + mjacob
messages: +

2015-01-15 05:02:36

ethan.furman

set

assignee: ethan.furman

2014-01-04 17:29:34

serhiy.storchaka

set

assignee: serhiy.storchaka -> (no value)
messages: +

2013-12-14 19:08:20

python-dev

set

messages: +

2013-12-11 20:20:57

serhiy.storchaka

set

messages: +

2013-12-11 20:02:12

serhiy.storchaka

set

files: + issue17576_v4.patch

messages: +

2013-12-11 19:28:18

python-dev

set

nosy: + python-dev
messages: +

2013-12-11 08:59:39

serhiy.storchaka

set

messages: +

2013-12-11 07:37:09

mark.dickinson

set

messages: +

2013-12-11 07:34:48

serhiy.storchaka

set

messages: +

2013-12-10 23:11:10

ncoghlan

set

messages: +

2013-12-10 21:53:32

serhiy.storchaka

set

messages: +

2013-12-10 20:38:04

mark.dickinson

set

messages: +

2013-12-10 12:09:03

ncoghlan

set

assignee: mark.dickinson -> serhiy.storchaka
messages: +

2013-12-10 11:47:31

serhiy.storchaka

set

files: + issue17576_v3.patch

messages: +

2013-12-09 19:42:24

mark.dickinson

set

messages: +

2013-12-09 19:30:09

serhiy.storchaka

set

messages: +

2013-10-18 20:38:38

Arfrever

set

nosy: + Arfrever

2013-10-18 08:00:27

mark.dickinson

set

messages: +

2013-10-17 22:37:01

ethan.furman

set

messages: +

2013-08-21 21:32:15

ncoghlan

set

messages: +

2013-08-21 11:32:36

serhiy.storchaka

set

messages: +

2013-08-21 10:22:18

serhiy.storchaka

set

messages: +

2013-08-21 09:33:16

serhiy.storchaka

set

messages: +

2013-08-21 09:03:12

serhiy.storchaka

link

issue18712 dependencies

2013-08-21 05:47:34

mark.dickinson

set

messages: +

2013-08-20 19:52:35

serhiy.storchaka

set

messages: +

2013-08-20 14:47:05

serhiy.storchaka

set

stage: patch review

2013-08-04 11:29:25

ncoghlan

set

messages: +

2013-08-04 10:07:25

mark.dickinson

set

files: + issue17576_v2.patch

messages: +

2013-08-04 08:56:17

mark.dickinson

set

files: + issue17576.patch

assignee: docs@python -> mark.dickinson
components: + Interpreter Core, - Documentation

keywords: + patch
nosy: + ncoghlan
messages: +

2013-05-10 06:03:37

serhiy.storchaka

set

nosy: + serhiy.storchaka
messages: +

2013-05-09 22:09:29

vstinner

set

nosy: + vstinner
messages: +

2013-05-08 22:20:31

terry.reedy

set

versions: - Python 3.1, Python 3.2

2013-04-05 16🔞09

ethan.furman

set

nosy: + ethan.furman

2013-03-30 08:25:44

mark.dickinson

set

nosy: + mark.dickinson

2013-03-30 00:39:42

barry

set

messages: +

2013-03-30 00:36:57

alex

set

nosy: + alex
messages: +

2013-03-30 00:29:36

eric.snow

set

nosy: + eric.snow
messages: +

2013-03-29 22:29:38

barry

set

messages: +

2013-03-29 22:25:33

barry

set

title: PyNumber_Index() is not int-subclass friendly -> PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

2013-03-29 22:25:11

barry

create