Malaysia python programmers
Hi, I apologize if this is not the place to do this. A python user group for malaysia is currently being formed , so if you are in malaysia, feel free to join us at : www.python.my Marcus.CM. -- http://mail.python.org/mailman/listinfo/python-list
Re: Why is there no GUI-tools like this for Windows?
Hi, Coming from a windows world i could understand this. For GUI, there is nothing near the power of the Visual Studio, this is especially true since C#. So python for me is for anything except GUI. It becomes self rejecting notion to do GUI in python when you type in those stuff that could have been handled by an IDE, thus for linux project i just do the web interface + php and let python do all the other hard core work. But looking at the video, i think if they could do this for ruby, then the python community should be able to come out with a similar one. There is something called BOA i read somewhere but its having some kind of compatibility problem with newer versions of wxpyhon. (;-) i didnt really manage to see that video it took forever to load, but the comments gave enuf hints). Marcus. maestro wrote: http://www.youtube.com/watch?v=PXpwC1o5AcI I have done some GUI-programming for windows with Python but the Tkinter interface sucked and while it is the only one I tried I got the impression they are all the same. It's amazing how retarded a lot of the stuff programmers do is. Watcing that video, that is how it should be. I can just do the layout with my mouse and then there is a program that writes the code for me. GUI-programming is hard for no reason. One good program then forever easy... Is there not something like this for Python/Windows? Is the Linux one only for ruby or for any language? Oh well im switching to Linux anyway and mostly write webapps but still... -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Malaysia python user group
Hi, I am thinking of promoting Python for the local developers here in Malaysia, via Universities , seminars etc . Is there already a user group here in Malaysia? Any pointers would help. Marcus. -- http://mail.python.org/mailman/listinfo/python-list
Re: Python Written in C?
Hi everyone, Yes, python is written in C. Maybe the original poster is looking for "ultimate" language and thus finds it uncomfortable that python should be written in C and not python itself. Actually it doesnt matter if IronPython is written in C# and Python in C. Each programming language is like a tool to the programmer and no, C is not outdate, its just a language with a much higher learning curve and its best left to do stuffs requiring drivers or optimized algorithms and other embedded stuffs that is usable by other languages. What do you think C# is written in? C# ? You see how flawed this logic is. Anyway, good luck on your search. But why look for "ultimate" language, when the core difference is the "programmmer" him/herself. In the hands of an skilled programmer, any language could accomplish much and then there is an issue with "time". I would cringe to do in C what i do in python nowadays, and i have like 14 years of C/C++ programming background. Someone wrote bittorrent in python and today its Utorrent written in C/C++ that is "cool", you see that doesnt mean that the next guy wrote write it in python would not beat the cool factor, its a matter of design, look, feel and its all about the programmer. Like they say in racing, its the driver not the car. -- http://mail.python.org/mailman/listinfo/python-list
Re: Python Written in C?
Its called a BMW today. Fredrik Lundh wrote: Tim Golden wrote: Wrong! Real programmers can program using only Touring machine Is that some kind of bicycle? there's a nearly infinite number of software projects with that name, but the Ultimate Touring Machine could be found in sydney not long ago: http://tinyurl.com/5t2dl4 -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Re: Attack a sacred Python Cow
Well after reading some of these posts on "sacred python cow" on the "self" , i would generally feel that most programmers who started with C++/Java would find it odd. And its true, i agree completely there should not be a need to put "self" into every single member function. If you were writing an application and one of your classes adds the same variable to each of its member function you would do away with it too. What could be done instead is :- 1. python should hardcode the keyword "self". So whenever this keyword is used, it would automatically implied that it is referring to a class scope variable. This would be similar to how the "this" keyword is used in C++. 2. Omit self from the parameter. class Abc : def DoSomething (a,b,c) : # class variable self.somevar = a self.someblar = b self.somec = c somevar = a * b # local variable Russ P. wrote: On Jul 26, 2:25 pm, Terry Reedy There is a lot of code you have not seen. Really. In informal code I use 's' and 'o' for 'self' and 'other'. I don't usually post such because it is not considered polite. So you have seen a biased sample of the universe. You take the name down to a single letter. As I suggested in an earlier post on this thread, why not take it down to zero letters? You could if Python accepted something like class Whatever: def fun( , cat): .cat = cat This is even better than the single-character name, not only because it is shorter, but also because there is no question that you are referring to "self." No need to look back at the method signature to verify that. For those who don't like the way the empty first argument looks, maybe something like this could be allowed: def fun( ., cat): -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Re: Module clarification
Hi Hussein, Basically a module is a FILE and is considered as a singleton model. Yes ur wow.py assumption is correct. I recommend getting Mark Lutz Learning Python book to get you started. Marcus.CM Hussein B wrote: Hi. I'm a Java guy and I'm playing around Python these days... In Java, we organize our classes into packages and then jarring the packages into JAR files. What are modules in Python? What is the equivalent of modules in Java? Please correct me if I'm wrong: I saved my Python code under the file Wow.py Wow.py is now a module and I can use it in other Python code: import Wow Thanks. -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Re: We programming
Hi , I hope this doesnt invite flames.but for webpages i suggest stick with php... I'm outta here.wooosh srinivasan srinivas wrote: Hi, Could someone suggest me better python modules for developing web programming related projects like web-pages download and uopload?? Thanks, Srini Explore your hobbies and interests. Go to http://in.promos.yahoo.com/groups/ -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
py2exe bug with email.MIMEText
There is a bug with py2exe when (at least under windows) when importing email # example testmime.py import email msg = email.MIMEText.MIMEText("dsafdafdasfA") print "ok" 1. Save the text above and setup as testmime.py 2. Run it and u can see "ok" 3. Create setup.py and run : python setup.py py2exe 4. Run the testmime.exe and u will get error "Import error : No module name text" # Example setup.py from distutils.core import setup import py2exe setup(console=['testmime.py']) Anyone knows the fix for this? -- http://mail.python.org/mailman/listinfo/python-list
Re: py2exe bug with email.MIMEText
Hi, After some debugging, i found the solution is to :- import email import email.mime.text import email.iterators import email.generator import email.utils Marcus. Marcus.CM wrote: There is a bug with py2exe when (at least under windows) when importing email # example testmime.py import email msg = email.MIMEText.MIMEText("dsafdafdasfA") print "ok" 1. Save the text above and setup as testmime.py 2. Run it and u can see "ok" 3. Create setup.py and run : python setup.py py2exe 4. Run the testmime.exe and u will get error "Import error : No module name text" # Example setup.py from distutils.core import setup import py2exe setup(console=['testmime.py']) Anyone knows the fix for this? -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Segmentation Fault on CDLL reloading
Hi, I use the following ctype to load a .so library in Linux. vr = ctypes.CDLL(sstr) And the following to release it so that i can reload the library without quiting the python script. _ctypes.dlclose(vr._handle) These calls are guarded by a writer lock and access to it guarded by a reader lock which i got from recipe : http://code.activestate.com/recipes/413393/ The problem is during the re-loading of the library occasionally the python script will abort with "Segmentation Fault". This is like 1 out of 10 times it can happen and that is good enough to kill the application. Is there any reason to this or how to do i prevent it? Marcus .CM -- http://mail.python.org/mailman/listinfo/python-list
found a bug with smtpd, where can i report this?
Hi, Where should i report the bug? smtpd bug. Marcus.CM -- http://mail.python.org/mailman/listinfo/python-list
Re: Recognizing the email package
Hi, Actually i think its the email package that needs to be "redefined", using lazyimporter is a bad decision and a lousy one. Even py2exe could not handle it correctly. Marcus. Wingware Support wrote: Marcus.CM wrote: Is there any reason why the IDE cant recognize the uppercase attribute names of the email package but its the recommended naming . This is due to the email package using LazyImporter objects to dynamically assign names at runtime in ways that the Wing source analyzer doesn't understand. We'll try to fix this in future Wing versions. Thanks, John -- http://mail.python.org/mailman/listinfo/python-list