Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3 compatibility and reduced memory footprint on tail #9

Merged
merged 1 commit into from
Feb 12, 2012

Conversation

jbvsmo
Copy link
Contributor

@jbvsmo jbvsmo commented Dec 31, 2011

  • Fixed doctest for t on Python 3 (range converted to list).
  • Python 3's strings have the __iter__ method and that breaks t. Added type check.
  • Changed tail to avoid all the iterator in memory (only qte sized list is kept).

All tests pass on Python 2 and 3

- Python 3's strings have the __iter__ method and that breaks "t". Added this restriction.
- Changed "tail" to avoid all the iterator in memory (only qte sized list is kept).

All tests pass on Python 2 and 3
JulienPalard added a commit that referenced this pull request Feb 12, 2012
Python 3 compatibility and reduced memory footprint on tail
@JulienPalard JulienPalard merged commit 208b669 into JulienPalard:master Feb 12, 2012
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.

2 participants