Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Overloaded function
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ian Bell  
View profile  
 More options Aug 6 2012, 11:55 pm
From: Ian Bell <ian.h.b...@gmail.com>
Date: Mon, 6 Aug 2012 23:55:36 -0400
Local: Mon, Aug 6 2012 11:55 pm
Subject: Overloaded function

Is there any way to do overloaded functions in cython?  I have a PXD file
that demonstrates what I am trying to do:

cdef extern from "CoolProp.h":

    double _Props "Props"(char *Output,char Name1, double Prop1, char
Name2, double Prop2, char * Ref)
    double _Props1 "Props"(char * Ref, char *Output)

#Function prototypes
cpdef double Props(bytes Parameter, bytes param1, float value1, bytes
param2, float value2, bytes Fluid)
cpdef double Props(bytes Fluid, bytes Parameter)

I would then write my implementation in a PYX file and all should be well.

I can get this to work with SWIG without problems, but I am getting
progressively more annoyed with SWIG in general and am hoping to move all
my SWIG code to cython and get rid of SWIG entirely throughout all my
projects.

Thanks,
Ian


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.