~pygame/pygame/main

Viewing all changes in revision 46.

  • Committer: Lenard Lindstrom
  • Date: 2017-04-30 01:50:27 UTC
  • Revision ID: git-v1:703350f68182641fe72ef1f41d81998fb6d4b385
Update Rect slicing for Python 3

Python 3.x does away with the sequence slot functions sq_slice and
sq_ass_slice. Instead the mapping slot functions mp_subscript and
mp_ass_subscript must be defined to accept a slice key. This patch
implements the proper slice and ellipsis handling for the Rect type and
adds the missing unit tests.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: