Hello,

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

Here's the changeset:

# HG changeset patch
# User [email protected]
# 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/
+ [email protected]
++++++++++++++++++++++++++++++++++++++++++

Attachment: changeset_diff
Description: Binary data

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to