Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 8th, 2004, 10:03 AM
DevHims DevHims is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 27 DevHims User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question py2exe - How to call function which accept object as argument in .exe file?

Hii To all,

I am using python 2.3.3 and py2exe 0.5.0. I am finding one difficulty here. I developed script with one function, which acccepts class object as argument and work on that object and return new object(of same class) to calling programe.

The class is defined in module that i am importing. The problem when i created .exe using py2exe, i am not able to call that function with or without class object as argument.

Please anybody can give me guidance for that. Even i tried to create simple script with function which prints "HELLO". Then generate .exe. When i am executing it it is not printing it.

What could be problem? is there some calling convention to use?

Thanks in advance.

DevHims

Reply With Quote
  #2  
Old June 9th, 2004, 01:10 AM
Grim Archon's Avatar
Grim Archon Grim Archon is offline
Mini me.
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2003
Location: Cambridge, UK
Posts: 783 Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)  Folding Points: 1488 Folding Title: Novice Folder
Time spent in forums: 3 Days 2 h 15 m 57 sec
Reputation Power: 7
Send a message via MSN to Grim Archon
From your post it sounds like you have a basic configuration problem with the setup.py script - you could post it here.

Have you tried my script?
http://forums.devshed.com/t137769/s...ighlight=py2exe
__________________
*** Experimental Python Markup CGI V2 ***

Reply With Quote
  #3  
Old June 9th, 2004, 09:15 AM
DevHims DevHims is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 27 DevHims User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question

Hii Grim,

Let me explin in brief what i am doing. I have three .py files.

first .py file " Use In.txt file and generate object of class MyList" . Class MyList and its methods are defined in MyFlow.py file.

Second .py file " which can be any python file with function that accept Object of class MyList, perform some operation on it and return new objcet of class MyList."

Third .py file " which accepts object of class MyList and generate 'Out.txt' file. "

class MyList is imported by all three files. Now i want to make one .exe file which utilize all three files. So, input to .exe file is In.txt file and output will be 'out.txt' file.

or three different .exe files from each of .py file and use to perform same functionality. I am not sure which will possible. You sholu suggest me way to do this.

Second, if i will convert second .py file into .exe file, then how it will accept object of class mylist.

Please provide some input. Thanks Buddy.

DevHims

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > py2exe - Hwo to call function which accept object as argument?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT