Commits

Author Commit Message Labels Comments Date
Greg Malcolm
Merge github pull request #15 from dhilipsiva/master 'Rename .txt to .rst for better rendering'
Greg Malcolm
Merge github pull request #15 from dhilipsiva/master 'Rename .txt to .rst for better rendering'
Greg Malcolm
Merge github pull request from mgpb/empty_dict_literals 'Demonstrate empty dictionary literals'
gpiancastelli
Add missing return statement.
gpiancastelli
Cut misleading comments that (may) contain Rubyisms.
gpiancastelli
Avoid shadowing built-in names.
gpiancastelli
Implement the right try/finally idiom with files.
Greg Malcolm
Fixed a syntax error in regex module
Greg Malcolm
Merging generators fix
Greg Malcolm
Merging in last change again
Sietse Brouwer
Make python2 koans pep8-compliant. Running the pep8 script still throws up a number of errors: mostly W293 (whitespace on blank line), E701 (multiple statements on one line (colon)), and E501 (line too long). W293 I ignore to make copy-pasting into the interpreter easier: a blank line between two class methods would make the interpreter think the class was done. Where E701 survives, it's mostly in statements like ``if i > 10: bre…
Sietse Brouwer
about_classes: fix pep8-compliance, spelling.
Sietse Brouwer
Make about_classes pep8-compliant; fix spelling.
Anton Shestakov
This koan should make an example of difference between generators and lists by testing both at the same job. self.assertRaises(___, num_generator, [0]) raises "TypeError: 'generator' object is not callable" — list is not callable either, so the error shows nothing unexpected. self.assertRaises(___, num_generator[0]) raises "TypeError: 'generator' object is not subscriptable" — now this is significant.
Greg Malcolm
Fixed bad regex assert in Python 3 flavor of AboutGenerators (Thanks hiveNzin0 for spotting that one)
Greg Malcolm
Merged change by namrsal from github: 'Corrected example of the koans package hierarchy.'
Greg Malcolm
Merged change by namrsal from github: 'Improved formatting.'
Greg Malcolm
Merged rjo1970's commit from github mirror: 'A bit better example for pop, proving by observation of the test result that the argument to pop is relative to the left of the list, not the end.'
Greg Malcolm
Pushing github change from Anderson Dias: To use 'sorted' it makes more sense to have an unordered set instead of a ordered one
Greg Malcolm
Contribution from jtatum, github pull request#6: 'Changing tuple tests to be a little more contemplative'
Greg Malcolm
Merged contributes from George Dorn and flopezluis. Adapted Felixes regex koans to work with larger suite
Greg Malcolm
From icmurry, github: Added test demonstrating that calling send on a generator with a non-None argument is illegal. Demonstrates a TypeError is raised.
Greg Malcolm
From icmurry, github: Fixed issue: https://github.com/gregmalcolm/python_koans/issues#issue/2 (sum_it uninteresting) Made the change detailed in the ticket, namely bringing value into the loop, making it more obvious that the state of value is retained between iterations.
Greg Malcolm
From icmurry, github: Fixed issue: https://github.com/gregmalcolm/python_koans/issues#issue/1 (cube_me squares)
Greg Malcolm
From icmurry, github: Added another test to the AboutGenerators koan. Demonstrates that next(generator) is exactly equivelant to generator.send(None)
Greg Malcolm
From icmurry, github: Added a "THINK ABOUT IT" comment to the section on sending values into generators.
Greg Malcolm
syncing hg with git
Greg Malcolm
Fixed color initialization and koans filtering bugs for windows users
Greg Malcolm
Feature #12: Tweaked progress message
Greg Malcolm
Feature #12: Added Python 3 flavor
  1. Prev
  2. Next