FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Be greedier when checking for tuples or lists. by steeve · Pull Request #6 · msgpack/msgpack-python · GitHub

Be greedier when checking for tuples or lists. - #6

Merged
methane merged 1 commit into
msgpack:masterfrom
steeve:patch-2
Feb 16, 2012
Merged

Be greedier when checking for tuples or lists.#6
methane merged 1 commit into
msgpack:masterfrom
steeve:patch-2

Conversation

steeve commented Feb 16, 2012

Copy link
Copy Markdown
Contributor

Lots of objects implement iter and len. But that doesn't mean we should treat them as lists!
Limit msgpack arrays to tuples and lists.

methane commented Feb 16, 2012

Copy link
Copy Markdown
Member

You're right. Users should be able to hook packing objects implements sequence protocol.

methane added a commit that referenced this pull request Feb 16, 2012
Be greedier when checking for tuples or lists.
methane merged commit 3a472b1 into msgpack:master Feb 16, 2012
methane pushed a commit that referenced this pull request Aug 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL