[Cython] typo in ExprNode.py

Hoyt Koepke hoytak at cs.ubc.ca
Sat Jan 10 07:21:18 CET 2009


Hello,

beginswith() in ExprNode.py should be startswith()

Here's the changeset:

# HG changeset patch
# User hoytak at hk-laptop.site
# Date 1231568090 28800
# Node ID f77199c86f6f461971d4ce0817ed68aa80e25cc5
# Parent  ee4817ddb9900cdec49ba086eb31c9f2c64ee338
Fixed typo; beginswith -> startswith

diff -r ee4817ddb990 -r f77199c86f6f Cython/Compiler/ExprNodes.py
--- a/Cython/Compiler/ExprNodes.py      Fri Jan 09 08:44:58 2009 +0100
+++ b/Cython/Compiler/ExprNodes.py      Fri Jan 09 22:14:50 2009 -0800
@@ -2608,13 +2608,13 @@

     def calculate_constant_result(self):
         attr = self.attribute
-        if attr.beginswith("__") and attr.endswith("__"):
+        if attr.startswith("__") and attr.endswith("__"):
             return
         self.constant_result = getattr(self.obj.constant_result, attr)

     def compile_time_value(self, denv):
         attr = self.attribute
-        if attr.beginswith("__") and attr.endswith("__"):
+        if attr.startswith("__") and attr.endswith("__"):
             self.error("Invalid attribute name '%s' in compile-time expression"
                 % attr)
             return None

Also attached...

--Hoyt

P.S. Is this the best way to send little updates like these?  Should I
send them to the whole list?


++++++++++++++++++++++++++++++++++++++++++++++++
+ Hoyt Koepke
+ University of Washington Department of Statistics
+ http://www.stat.washington.edu/~hoytak/
+ hoytak at gmail.com
++++++++++++++++++++++++++++++++++++++++++
-------------- next part --------------
A non-text attachment was scrubbed...
Name: changeset_diff
Type: application/octet-stream
Size: 1038 bytes
Desc: not available
Url : http://codespeak.net/pipermail/cython-dev/attachments/20090109/dab78c70/attachment.obj 


More information about the Cython-dev mailing list