Lichen

Changeset

908:8b0c4d9b2c99
2019-06-08 Paul Boddie raw files shortlog changelog graph Merged changes from the default branch. trailing-data
     1.1 --- a/inspector.py	Sun Jun 02 23:13:27 2019 +0200
     1.2 +++ b/inspector.py	Sat Jun 08 17:55:55 2019 +0200
     1.3 @@ -3,8 +3,8 @@
     1.4  """
     1.5  Inspect and obtain module structure.
     1.6  
     1.7 -Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013,
     1.8 -              2014, 2015, 2016, 2017, 2018 Paul Boddie <paul@boddie.org.uk>
     1.9 +Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
    1.10 +              2018, 2019 Paul Boddie <paul@boddie.org.uk>
    1.11  
    1.12  This program is free software; you can redistribute it and/or modify it under
    1.13  the terms of the GNU General Public License as published by the Free Software
    1.14 @@ -659,6 +659,9 @@
    1.15                     self.function_defaults[function_name] = []
    1.16  
    1.17          for argname, default in compiler.ast.get_defaults(n):
    1.18 +            if argname[0] == ".":
    1.19 +                argname = argname[1:]
    1.20 +
    1.21              if default:
    1.22  
    1.23                  # Obtain any reference for the default.
     2.1 --- a/lib/__builtins__/exception/base.py	Sun Jun 02 23:13:27 2019 +0200
     2.2 +++ b/lib/__builtins__/exception/base.py	Sat Jun 08 17:55:55 2019 +0200
     2.3 @@ -71,7 +71,11 @@
     2.4  
     2.5      "An exception signalling the end of iteration."
     2.6  
     2.7 -    pass
     2.8 +    def __init__(self, .iterator=None):
     2.9 +
    2.10 +        "Initialise the exception with the given 'iterator'."
    2.11 +
    2.12 +        pass
    2.13  
    2.14  class ValueError(Exception):
    2.15  
     3.1 --- a/lib/__builtins__/iteration/iterator.py	Sun Jun 02 23:13:27 2019 +0200
     3.2 +++ b/lib/__builtins__/iteration/iterator.py	Sat Jun 08 17:55:55 2019 +0200
     3.3 @@ -3,7 +3,7 @@
     3.4  """
     3.5  Iterator objects.
     3.6  
     3.7 -Copyright (C) 2015, 2016 Paul Boddie <paul@boddie.org.uk>
     3.8 +Copyright (C) 2015, 2016, 2019 Paul Boddie <paul@boddie.org.uk>
     3.9  
    3.10  This program is free software; you can redistribute it and/or modify it under
    3.11  the terms of the GNU General Public License as published by the Free Software
    3.12 @@ -39,6 +39,6 @@
    3.13              self.i += 1
    3.14              return value
    3.15          except IndexError:
    3.16 -            raise StopIteration()
    3.17 +            raise StopIteration, self
    3.18  
    3.19  # vim: tabstop=4 expandtab shiftwidth=4
     4.1 --- a/lib/__builtins__/set.py	Sun Jun 02 23:13:27 2019 +0200
     4.2 +++ b/lib/__builtins__/set.py	Sat Jun 08 17:55:55 2019 +0200
     4.3 @@ -3,7 +3,7 @@
     4.4  """
     4.5  Set objects.
     4.6  
     4.7 -Copyright (C) 2015, 2016, 2017 Paul Boddie <paul@boddie.org.uk>
     4.8 +Copyright (C) 2015, 2016, 2017, 2019 Paul Boddie <paul@boddie.org.uk>
     4.9  
    4.10  This program is free software; you can redistribute it and/or modify it under
    4.11  the terms of the GNU General Public License as published by the Free Software
    4.12 @@ -323,7 +323,7 @@
    4.13              try:
    4.14                  bucket = self.mapping.buckets[self.index]
    4.15              except IndexError:
    4.16 -                raise StopIteration
    4.17 +                raise StopIteration, self
    4.18  
    4.19              # Access the current item. If no such item exists, get another
    4.20              # bucket.
     5.1 --- a/lib/__builtins__/span.py	Sun Jun 02 23:13:27 2019 +0200
     5.2 +++ b/lib/__builtins__/span.py	Sat Jun 08 17:55:55 2019 +0200
     5.3 @@ -3,7 +3,7 @@
     5.4  """
     5.5  Span-related objects.
     5.6  
     5.7 -Copyright (C) 2015, 2016, 2017, 2018 Paul Boddie <paul@boddie.org.uk>
     5.8 +Copyright (C) 2015, 2016, 2017, 2018, 2019 Paul Boddie <paul@boddie.org.uk>
     5.9  
    5.10  This program is free software; you can redistribute it and/or modify it under
    5.11  the terms of the GNU General Public License as published by the Free Software
    5.12 @@ -101,7 +101,7 @@
    5.13          "Return the next item or raise a StopIteration exception."
    5.14  
    5.15          if not self.count:
    5.16 -            raise StopIteration
    5.17 +            raise StopIteration, self
    5.18  
    5.19          current = self.current
    5.20          self.current = self.current.__add__(self.step)