Re: Netbeans Early Access and Python3

2008-12-07 Thread king kikapu
On Dec 6, 12:54 pm, king kikapu [EMAIL PROTECTED] wrote: Hi, have anyone using this release of NetBeans (6.5 with Python support) with Python 3 without any problems ? I mean, does it work with Python3 or only with 2.x ? No-one is using NetBeans for Python development ?? -- http

Netbeans Early Access and Python3

2008-12-06 Thread king kikapu
Hi, have anyone using this release of NetBeans (6.5 with Python support) with Python 3 without any problems ? I mean, does it work with Python3 or only with 2.x ? -- http://mail.python.org/mailman/listinfo/python-list

Re: Learning Python for no reason

2008-05-12 Thread king kikapu
Same for me here too! C# on the work, Python earning at the evening. I am bored to death with so many .net/C# years and i wanted to learn something different and cross platform. I think it will pay back some time... On May 12, 10:50 pm, JustMe [EMAIL PROTECTED] wrote: On 12 May, 20:02,

Re: How to make python run faster

2008-04-14 Thread king kikapu
On 14 Απρ, 16:48, 一首诗 [EMAIL PROTECTED] wrote: I read this article onhttp://kortis.to/radix/python_ext/ And I decided to try if it's true. I write the program in 4 ways: 1. Pure C 2. Python using C extension 3. Python using psycho 4. Pure Python And then I used timeit to test the speed

Re: Python GUI programming and boa or better ?

2008-04-14 Thread king kikapu
On 14 Απρ, 16:20, bvidinli [EMAIL PROTECTED] wrote: I program in python for about 2-3 monthos. I just started/tested gui programming with many tools. i tested boa last, it is the closest tool to delphi in tui tools that i used. I managed to play with it a bit. If you have any other tool

Re: Psyco alternative

2008-03-29 Thread king kikapu
On 28 Μαρ, 20:06, Paul Boddie [EMAIL PROTECTED] wrote: On 27 Mar, 15:19, Diez B. Roggisch [EMAIL PROTECTED] wrote: [Psyco maintenance and further development] Nope, but I heard through the grapevine that while it won't be supported for all times to come, a new version is in the making.

Re: Psyco alternative

2008-03-29 Thread king kikapu
On 29 Μαρ, 16:03, Luis M. González [EMAIL PROTECTED] wrote: On 27 mar, 13:14, king kikapu [EMAIL PROTECTED] wrote: One reason attention is going to PyPy instead of Psyco... Jean-Paul I had a look at PyPy, it, indeed, have a very long way to go so we can consider it an alternative

Eclipse and PyDev Package explorer

2008-03-28 Thread king kikapu
Hi, i am trying to fit Eclipse/Pydev in my needs/preference, so i want to ask this: As it is now, i see all my projects in that TreeView (PyDev Package Explorer). I would rather want this to behave like a more normal IDE where you Open one project and if you want close it and Open another, just

Re: Eclipse and PyDev Package explorer

2008-03-28 Thread king kikapu
A, and another one: If i set a custom builder for a pydev project, is there a way for this builder to automatically be assigned to every (pydev) project i will create from now on or i have to re-define it for every new one ? -- http://mail.python.org/mailman/listinfo/python-list

Psyco alternative

2008-03-27 Thread king kikapu
Hi, it seems that Psyco's author will not port it for the upcoming Python 3000 release :( So, for us who use it we will continue to use CPython 2.5.x version for some time to come. Is there an alternative to Psyco so i can have a look at ? Thanks in advance. --

Re: Psyco alternative

2008-03-27 Thread king kikapu
On 27 Μαρ, 14:35, Paul Rubin http://[EMAIL PROTECTED] wrote: king kikapu [EMAIL PROTECTED] writes: it seems that Psyco's author will not port it for the upcoming Python 3000 release :( I think the idea is it will be part of PyPy and you should use that. I know that his efforts are on PyPy

Re: Psyco alternative

2008-03-27 Thread king kikapu
On 27 Μαρ, 15:56, Diez B. Roggisch [EMAIL PROTECTED] wrote: king kikapu wrote: On 27 Μαρ, 14:35, Paul Rubin http://[EMAIL PROTECTED] wrote: king kikapu [EMAIL PROTECTED] writes: it seems that Psyco's author will not port it for the upcoming Python 3000 release :( I think the idea

Re: Psyco alternative

2008-03-27 Thread king kikapu
As for psyco, are there any alternatives to use now ? Nope, but I heard through the grapevine that while it won't be supported for all times to come, a new version is in the making. Aha!! It seems you have better sources than me! :) But ultimately, the author says that the approach is

Re: Psyco alternative

2008-03-27 Thread king kikapu
If it's about some problems, then maybe Cython is an alternative. http://cython.org Stefan Hmmm...thanks but i think Pyrex-like solution is not the ideal one. Coming from C# and having 8 years of expertise on it, i have gain a very positive thinking about jit compilers and i think that psyco

Re: Psyco alternative

2008-03-27 Thread king kikapu
One reason attention is going to PyPy instead of Psyco... Jean-Paul I had a look at PyPy, it, indeed, have a very long way to go so we can consider it an alternative. -- http://mail.python.org/mailman/listinfo/python-list

Re: What is The Eric4 IDE???

2008-03-20 Thread king kikapu
I use it for some time now and i think it is the best Python IDE out there, especially if someone wants to play with Qt. If you are on Windows, just install the Windows binary, it' all there! -- http://mail.python.org/mailman/listinfo/python-list

Re: Eclipse/PyQt/Eric4 question

2007-12-14 Thread king kikapu
On 14 Δεκ, 01:09, Fabio Zadrozny [EMAIL PROTECTED] wrote: Hmmm...but this means that i am forced to do this for ALL .ui files on the project, either changed or not and this can slow things down... (pyuic.bat can run for one or for ALL .ui files) The goal is to find a way to automatically

Eclipse/PyQt/Eric4 question

2007-12-13 Thread king kikapu
Hi, this is actually goes to whoever is using Eclipse and Eric4, the IDE that comes bundled with PyQt. I was using Eclipse until i saw Eric4 and i started experiment with it, very nice work. Eric4 has a feature that actually reminds us the work of some expensive IDEs, like Visual Studio, Delphi

Re: Eclipse/PyQt/Eric4 question

2007-12-13 Thread king kikapu
You can create a builder for calling an external program to do that on builds (right-click project - properties Builders). Another option is configuring an external program run -- menu: run external tools open external tools dialog (and you can bind a shortcut to rerun the last external

Re: Will Python 3.0 remove the global interpreter lock (GIL)

2007-09-03 Thread king kikapu
On Sep 3, 9:15 am, Michele Simionato [EMAIL PROTECTED] wrote: On Sep 3, 2:21 am, llothar [EMAIL PROTECTED] wrote: My personal opinion (and I am not the only one in the Python community) is that if you want to scale the way to go is to use processes, not threads, so removing the GIL would be

Re: Will Python 3.0 remove the global interpreter lock (GIL)

2007-09-03 Thread king kikapu
I was wondering (and maybe i still do) about this GIL problem. I am relatively new to Python (less than a year) and when i started to think about it i said: Oh, this IS a problem. But when i dig a little more, i found that Ah, maybe it isn't. I strongly believe that the best usage of multiple

Re: Will Python 3.0 remove the global interpreter lock (GIL)

2007-09-03 Thread king kikapu
I was wondering (and maybe i still do) about this GIL problem. I am relatively new to Python (less than a year) and when i started to think about it i said: Oh, this IS a problem. But when i dig a little more, i found that Ah, maybe it isn't. I strongly believe that the best usage of multiple

Re: Will Python 3.0 remove the global interpreter lock (GIL)

2007-09-03 Thread king kikapu
I was wondering (and maybe i still do) about this GIL problem. I am relatively new to Python (less than a year) and when i started to think about it i said: Oh, this IS a problem. But when i dig a little more, i found that Ah, maybe it isn't. I strongly believe that the best usage of multiple

Re: IDE for Python

2007-08-21 Thread king kikapu
On Aug 21, 12:00 pm, Joel Andres Granados [EMAIL PROTECTED] wrote: Hello list: I have tried various times to use an IDE for python put have always been disapointed. I have also tried a lot of them (IDEs) in the last year. I was finally happy with Eclipse/Pydev but i was always wanted a more

Re: Eclipse/PyDev question

2007-08-14 Thread king kikapu
Fabio, thanks for the reply! Anyway, i saw that i cannot import anything if i use Source Folders in Eclipse/PyDev. The only way i can accomplish that is by using PyDev Packages. Thus, i can import whatever i want ant intellisense is working great! I just cannot understand the usefulness of PyDev

Eclipse/PyDev question

2007-08-13 Thread king kikapu
Hi, i am using Eclipse (Platform Runtime binary) with PyDev and i was wondering if someone can help me with this: 1. I set breakpoints to a .py file and i have told Eclipse to open the Debug perspective when it sees that some .py file(s) of my project indeed contains breakpoints. So, i press F9,

Re: Eclipse/PyDev question

2007-08-13 Thread king kikapu
On Aug 13, 1:44 pm, [EMAIL PROTECTED] wrote: On Aug 13, 11:48 am, king kikapu [EMAIL PROTECTED] wrote: Hi, i am using Eclipse (Platform Runtime binary) with PyDev and i was wondering if someone can help me with this: 1. I set breakpoints to a .py file and i have told Eclipse to open

Re: Eclipse/PyDev question

2007-08-13 Thread king kikapu
Ah, i forgot another one: as any project evolves, you need to organize it in directories. So, i have a project named Dev and Eclipse has provided me (in Navigator) with Dev and Src. Inside Src i put my .py files. Let's say that i want to create a directory there (will i make it in Src or in Dev)

Re: Ipc mechanisms and designs.

2007-08-11 Thread king kikapu
On Aug 10, 10:33 pm, Nikita the Spider [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], king kikapu [EMAIL PROTECTED] wrote: Hi King Kikapu There's a shared memory module for Python, but it is *nix only, I'm afraid. I realize you said mainly Windows but this module seems to do what

Ipc mechanisms and designs.

2007-08-10 Thread king kikapu
Hi, inspired of the topic The Future of Python Threading, i started to realize that the only way to utilize the power of multiple cores using Python, is spawn processes and communicate with them. If we have the scenario: 1. Windows (mainly) development 2. Processes are running in the same

Re: The Future of Python Threading

2007-08-10 Thread king kikapu
All of which is avoided by designing the program to operate as discrete processes communicating via well-defined IPC mechanisms. Hi Ben, i would like to learn more about this, have you got any links to give me so i can have a look ? -- http://mail.python.org/mailman/listinfo/python-list

Re: Question about properties.

2007-08-10 Thread king kikapu
On Aug 10, 1:33 pm, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: On Fri, 10 Aug 2007 03:21:29 -0700, king kikapu wrote: Hi, i read in a book the following code snippet that is dealing with properties: class ProtectAndHideX(object): def __init__(self, x): assert

Question about properties.

2007-08-10 Thread king kikapu
Hi, i read in a book the following code snippet that is dealing with properties: class ProtectAndHideX(object): def __init__(self, x): assert isinstance(x, int), 'x must be an integer!' self.__x = ~x def get_x(self): return ~self.__x x = property(get_x)

Re: Question about properties.

2007-08-10 Thread king kikapu
Maybe is just a writers' play and nothing else. -- http://mail.python.org/mailman/listinfo/python-list

Re: Eclipse/PyDev question.

2007-08-06 Thread king kikapu
I like pydev and purchased the extensions ... there are bugs of course but what stopped me from using it is a project were I had some very large files (my fault). What do you mean by very large files ? Can't PyDev handle such ? -- http://mail.python.org/mailman/listinfo/python-list

Re: Eclipse/PyDev question.

2007-08-04 Thread king kikapu
News (or, news to me :) ) The creator of PyDev, contacted me and told me that latest version of PyDev need not require the whole SDK but only the Runtime Platfom is OK. That means that we download only the 40MB file (and not the 120 one) and this does not include all the Java stuff that we see in

Re: Eclipse/PyDev question.

2007-08-04 Thread king kikapu
Ah, and i think that the working set of Eclipse is smaller now... -- http://mail.python.org/mailman/listinfo/python-list

Re: Eclipse/PyDev question.

2007-08-03 Thread king kikapu
On Aug 3, 5:00 pm, gregarican [EMAIL PROTECTED] wrote: On Aug 3, 10:58 am, king kikapu [EMAIL PROTECTED] wrote: Hi, this is actually a question to those of us who use Eclipse and Pydev as their main Python developing environment. As i use Eclipse (3.3 Europa) only for Python and i have

Eclipse/PyDev question.

2007-08-03 Thread king kikapu
Hi, this is actually a question to those of us who use Eclipse and Pydev as their main Python developing environment. As i use Eclipse (3.3 Europa) only for Python and i have nothing to do with Java, is there a way to disable/uninstall some Java-specific stuff and make the environment actually

Re: Eclipse/PyDev question.

2007-08-03 Thread king kikapu
On Aug 3, 5:46 pm, Danyelle Gragsone [EMAIL PROTECTED] wrote: I wonder how long before they come out with a python version of eclipse. I know there is a C/C++ now. Danyelle The only problem i see in Eclipse/Pydev solution is that Eclipse is bulky...I was not designed for specific Python

Re: Replacing overloaded functions with closures.

2007-07-31 Thread king kikapu
Ok, i see... Thank you all :) -- http://mail.python.org/mailman/listinfo/python-list

Replacing overloaded functions with closures.

2007-07-30 Thread king kikapu
Hi, i am trying, to no avail yet, to take a C#'s overloaded functions skeleton and rewrite it in Python by using closures. I read somewhere on the net (http://dirtsimple.org/2004/12/python-is- not-java.html) that in Python we can reduce code duplication for overloaded functions by using closures.

Re: Replacing overloaded functions with closures.

2007-07-30 Thread king kikapu
The closures discussed in the article are not a solution for function overloading. They are a solution for function composition. Hmmm Python generally has no need for function name overloading--if you really want it you must do it manually using runtime type checking. def func(obj):

'int' object is not callable in an threaded app

2007-05-22 Thread king kikapu
Hi, i have a problem with the following piece of code that id just drive me nuts (from the morning...) I think is more Python specific than Qt, folks from Qt forum have already give me directions of how to do it but that Python error message is just impossible for me to figure out. And i am sure

Re: 'int' object is not callable in an threaded app

2007-05-22 Thread king kikapu
It appears that worker.start gets set to the result of count.ui.spFrom.value(). If that result is an int, then worker.start() is going to generate the TypeError you received. Did you actually mean to call worker.run() instead? --- -Bill Hamilton Some friend pointed out to me an hour

Gui thread and async jobs.

2007-05-08 Thread king kikapu
Hi, i am reading the book Python Cookbook, 2nd edition and i encountered a very handy recipe, the one that is called Combining GUIs and Asynchronous I/O with Threads It is talking about retain a main GUI thread, doing async work with worker threads and have both talk through a Queue object to

Re: Gui thread and async jobs.

2007-05-08 Thread king kikapu
On May 8, 4:00 pm, Diez B. Roggisch [EMAIL PROTECTED] wrote: king kikapu wrote: Hi, i am reading the book Python Cookbook, 2nd edition and i encountered a very handy recipe, the one that is called Combining GUIs and Asynchronous I/O with Threads It is talking about retain a main GUI

Re: Gui thread and async jobs.

2007-05-08 Thread king kikapu
On May 8, 5:52 pm, Diez B. Roggisch [EMAIL PROTECTED] wrote: It depends on the toolkit you use. Qt has thread-safe custom events in 3.x, and afaik signal/slots (and thus events) are generally thread-safe in 4.x. So, no problems there. Diez Aha...So you do not use polling there (in Qt),

Re: 32 OS on 64-bit machine

2007-05-03 Thread king kikapu
I have at home an AMD Turion 64 and using Ubuntu. You may be interested on this, i will post here the results when i get back home! -- http://mail.python.org/mailman/listinfo/python-list

Re: 32 OS on 64-bit machine

2007-05-03 Thread king kikapu
At Amd Turion 64, it gives: ('32bit', 'ELF') -- http://mail.python.org/mailman/listinfo/python-list

About installing new Python version.

2007-04-19 Thread king kikapu
Hi to all, i started with Python at v2.5 and now i see that a new version is released. As i already have a lot of stuff for Python installed in the site- packages directory, which is the correct way to install a new Python version without do any damage ? Remove Python and ALL Python related

Re: About installing new Python version.

2007-04-19 Thread king kikapu
On Apr 19, 11:39 am, [EMAIL PROTECTED] wrote: On Apr 19, 2:03 am, king kikapu [EMAIL PROTECTED] wrote: Hi to all, i started with Python at v2.5 and now i see that a new version is released. As i already have a lot of stuff for Python installed in the site- packages directory, which

Re: About installing new Python version.

2007-04-19 Thread king kikapu
On Apr 19, 12:10 pm, Ant [EMAIL PROTECTED] wrote: checked and everything seems to working fine. But this is an update release to 2.5, i do not know what is happening when, for example, a totally new Python version come out, like 2.6 or 2.7 or... Again just install it - it will by default

Re: About installing new Python version.

2007-04-19 Thread king kikapu
On Apr 19, 1:51 pm, Steve Holden [EMAIL PROTECTED] wrote: Good question. kk is right - with a change in *major* version (such as 2.4 to 3.5, 3.5 to 3.6) the compiled extensions will be incompatible, and will need to be recompiled. This can take a while, as extension authors frequently have

Re: Python editor/IDE on Linux?

2007-04-13 Thread king kikapu
I experiment with Ubuntu nowadays, and i find my Windows combination a realy win also there, Eclipse and PyDev. -- http://mail.python.org/mailman/listinfo/python-list

Re: About Trolltech QT OpenSource license.

2007-04-12 Thread king kikapu
On Apr 12, 1:02 am, Robert Kern [EMAIL PROTECTED] wrote: All parts of the software have to be licensed compatibly with the GPL. The FSF has a fairly comprehensive list of the licenses they believe are GPL-compatible. The source that you provide needs to be the preferred form for making

Re: About Trolltech QT OpenSource license.

2007-04-12 Thread king kikapu
I dig a little bit more on the Trolltech's site and i think that this page is telling all the truth: http://www.trolltech.com/developer/downloads/qt/faq So, this tells us all the good stuff people in this thread are talking about, i think is clear enough. --

Re: About Trolltech QT OpenSource license.

2007-04-11 Thread king kikapu
On Apr 11, 10:56 am, Robert Kern [EMAIL PROTECTED] wrote: Others have given good answers. I would only like to clarify what I think is the source of confusion here. While the FSF and many open source advocates make a distinction between the words commercial (meaning that someone derives money

Re: About Trolltech QT OpenSource license.

2007-04-11 Thread king kikapu
Ok, i see...So i can use Qt OS edition and earn money from this as long as i explicitly say (is a reference to a GPL in a readme text file enough for this ?) that this software is under the GPL lisence and i have the obligation to give the source code with it. It's a bit more

Re: About Trolltech QT OpenSource license.

2007-04-11 Thread king kikapu
Ο/Η Robert Kern έγραψε: It's a bit more complicated than that. There are good resources for understanding the implications of the GPL on the FSF's site which other people have pointed out. From what i can understand, you can sell your product and you have to give the source. Also you must

About Trolltech QT OpenSource license.

2007-04-10 Thread king kikapu
Hi to all, i am coming from the Microsoft (.net) world and at the quest of finding the right GUI toolkit that i can use from Python, i have two obvious choices to choose from: wxPython and Qt. Both are looking very good. Qt has Qt designer, a tool that really reminds me of the forms designers

Re: About Trolltech QT OpenSource license.

2007-04-10 Thread king kikapu
Ο/Η Jarek Zgoda έγραψε: king kikapu napisa³(a): This is a bullsh*t. Qt is free (as in free speech) on GPL. Nothing stops you from using it in any commercial project if only it fits the licensing terms (i.o.w. it's free software). This specially applies to inhouse development

Re: About Trolltech QT OpenSource license.

2007-04-10 Thread king kikapu
Ο/Η Peter Decker έγραψε: There is another alternative: Dabo, which wraps the wxPython toolkit. It has a GUI designer, although not as polished as the Qt Designer. Check out some of their screencasts to see their tools in action. You can find them at http://dabodev.com/documentation I am

PythonCard thoughts

2007-03-19 Thread king kikapu
Hi to all folks here, i downloaded and playing with PythonCard and i just want to share my thoughts so maybe we can discuss a little about it. I was used to wxGlade before and i think PythonCard is even better. I like the separate implementation of GUI and Code that PythonCard provides, i also

Re: PythonCard thoughts

2007-03-19 Thread king kikapu
I don't know much about PythonCard or wxGlade, but I use wxPython (which wxGlade uses, right?) and you now have the option to separate your GUI and code using an XRC file (xml file that describes layout). So perhaps this is something you can do with wxGlade, but at the same time it might

Re: PythonCard thoughts

2007-03-19 Thread king kikapu
Would you please explain more in detail this Message Watcher option? I use PythonCard from time to time, and I find it very easy to use and practical, even considering the small shortcomings you mentioned above, but I have no idea of this feature you're talking about.. Regards, Luis Luis,

Re: PythonCard thoughts

2007-03-19 Thread king kikapu
Ο/Η John Henry έγραψε: (If I understand your question correctly) There is no restirction on what you call your objects. For instance, I do call all of my buttons btnSomeThing, and so forth. No, i surely didn't mean this! What i mean is that the creation of these components happens to NOT

wxPython import error...

2007-03-04 Thread king kikapu
Hi, i am just completed installing Python/Pydev/Eclipse/wxPython on an Ubuntu system and all are running fine except program that contains references to wx It gives me: ImportError: /usr/lib/python2.4/site-packages/wx-2.8-gtk2-unicode/wx/ _core_.so: undefined symbol:

Re: NetUseAdd mystery

2007-02-27 Thread king kikapu
You need to use level 2 info to pass the username. Level 1 is for the old-style share with its own password. Also, it should be 'username': instead of just 'user':. hth Roger Roger many-many thanks! That was it, i had to put username instead of user and 2 instead of 1 at the

Re: book for a starter

2007-02-27 Thread king kikapu
Me, i bought this http://www.amazon.com/Core-Python-Programming-2nd/dp/0132269937/sr=8-1/qid=1172592163/ref=pd_bbs_sr_1/105-9302229-1138834?ie=UTF8s=books and i really think it is a great book for learning Python. It refers to the latest Python version (2.5) and covers a lot of things, besides the

NetUseAdd mystery

2007-02-26 Thread king kikapu
Is anyone see any error in the following code: mapDrive = MyServer\\C$ data = {'remote' : mapDrive, 'local' : 'M:', 'password' : 'mypassword', 'user' : 'Administrator', 'asg_type' : 0} win32net.NetUseAdd(None, 1, data) It gives me pywintypes.error: (1326,

Re: NetUseAdd mystery

2007-02-26 Thread king kikapu
I think your problem is that C$ is a special share. Try creating a share and connect to it instead. It is either that your your userid/ password are in fact incorrect. -Larry No, my credentials are absolutely correct. As for the $, what is the possible problem with that ?? Net use is

Re: Object type check

2007-02-08 Thread king kikapu
def modify(list_of_x): for x in list_of_x: try: x.change_in_place # don't call the method, just check it exists XX...what exactly is going on here ? I mean, what is actually happens if you omit the parenethesis as you just did ? I understand that it does not call

Re: Object type check

2007-02-08 Thread king kikapu
Ο/Η Michele Simionato έγραψε: See http://users.rcn.com/python/download/Descriptor.htm for more than you ever wanted to know about attribute access in Python. Michele Simionato Great stuff Michele, thanks! -- http://mail.python.org/mailman/listinfo/python-list

Object type check

2007-02-07 Thread king kikapu
Hi to all, in statically-types languages, let's say C# for example, we use polymorphism through interfaces. So we define an interface I with method M and then a class C that implements I interface and write code for the M method. So, if we have a function that takes a parameter of type I, we know

Re: Object type check

2007-02-07 Thread king kikapu
Dont restrict them to particular types. You would not restrict them to a particular class in C#. Instead, you define the interfaces simply by how you use the objects. Of cource i restrict them to particular types! In C# you cannot pass something bad this way because the compiler will just

Re: Object type check

2007-02-07 Thread king kikapu
at first, thanks you all for your help! So, i will follow your advice.In a moment though, i thought that ok, do not check anything of the parameter's type but do a try/catch at the calls inside the function But this way, i would rather defeat the purpose because i have to try/ catch in *every*

Re: Object type check

2007-02-07 Thread king kikapu
And so what ? Once an exception got caught, what are you going to do ? You have absolutely right, that's the reason i rejected this. You're starting to see the light, my friend !-) Strange world the dynamic one If that's too dynamic for you, then run for your life Hehe...you know,

Re: Correct db adapter

2007-02-02 Thread king kikapu
Thank you all! -- http://mail.python.org/mailman/listinfo/python-list

Re: Correct db adapter

2007-02-01 Thread king kikapu
Ok, i see.. Thanks a lot all of you for the help. I know from my Win/.Net/Sql Server expertise that odbc put a layer in the mix. That's why, for example, in .Net we have a native SqlClient data provider that talks to Sql Server directly. But one of the reasons that i started learning Python, is

Correct db adapter

2007-01-31 Thread king kikapu
Hi to all, i have started a month ago to seriously studying Python. I am now looking at the databases stuff and i want the opinion of more experienced Python programmers (than me) at the following : I see that there are a lot of databases adapters on the net, some following the DB-API 2.0 and

Re: Correct db adapter

2007-01-31 Thread king kikapu
Thanks for the replies. I think i do not need something like ORM, but just a db-module that i can work the database with it. I just want to know if pyodbc is the correct solution to do so or if it is another db-module that is more usefull for this job. --

Re: PyODBC Stored proc calling

2007-01-19 Thread king kikapu
No one is using pyodbc ?? :) -- http://mail.python.org/mailman/listinfo/python-list

PyODBC Stored proc calling

2007-01-18 Thread king kikapu
Hi to all, can anyone give me a jump-start about how to call Stored Procedures from PyODBC ?? I want to execute a very simple testing Stored Procedure on an Sql Server database. I started using PyODBC and code like the following cnxn = pyodbc.connect('DRIVER={SQL

program deployment

2007-01-05 Thread king kikapu
hi to all folks here, i am learning Python, just finished a book and i am starting to write programs. I just want to ask, is the correct way to deploy my programs to other computers, the .pyc files ?? I now that with the -m compileall . switch can compile a .py file into bytecodes. So i suppose

Re: program deployment

2007-01-05 Thread king kikapu
Python code is normally deployed as straight source code. But isn't this a problem of its own ?? I mean, many people do not feel good if the know that their source code is lying around on other machines... -- http://mail.python.org/mailman/listinfo/python-list

Re: program deployment

2007-01-05 Thread king kikapu
Are they embarassed by their code? hehehe...no, just worried about stealing their ideas... -- http://mail.python.org/mailman/listinfo/python-list

Re: program deployment

2007-01-05 Thread king kikapu
Under Windows, I ususally use py2exe+inno-setup. Xmmm...i have downloaded this and try a (very) simple project and it is working great. Of your experience, does it also working great when you have more complex solutions, e.x. many 3rd party modules like wxWidgets and so ?? --

Re: program deployment

2007-01-05 Thread king kikapu
Ok, i got the point...Things are a little bit different on the other way of the fence (Microsoft way...) and so many of Python's elements are a little (at least) strange at first... But hey, thank you all! -- http://mail.python.org/mailman/listinfo/python-list

Re: program deployment

2007-01-05 Thread king kikapu
Of course you do not distribute .cs (or .vb) files when deploying your application, but decompilers for .NET are plenty. Same for Java. Yes, but in .Net we have some strong dotfuscators that makes reverse engineer really difficult. In any way, it is not so easy to get to the source as .py

Re: db access

2006-12-29 Thread king kikapu
Hi Johnf, are you referring to this ? http://www.freetds.org/ And how i can get psmssql.py so i can get a shot on it, is it included in FreeTDS ?? On Dec 29, 12:12 am, johnf [EMAIL PROTECTED] wrote: king kikapu wrote: Hi to all, is there a way to use an RDBMS (in my case, SQL Server

db access

2006-12-28 Thread king kikapu
Hi to all, is there a way to use an RDBMS (in my case, SQL Server) from Python by using some built-in module of the language (v. 2.5) and through ODBC ?? I saw some samples that use statements like import dbi or import odbc but neither modules (dbi, odbc) are present on my system... Any hint(s)

Re: db access

2006-12-28 Thread king kikapu
Hey Martin, thanks for the fast reply! I have already seen that link and i just downloaded the pyodbc module but isn't Python already containing a built-in odbc module so to allow for db communication ?? On Dec 28, 6:06 pm, Martin P. Hellwig [EMAIL PROTECTED] wrote: king kikapu wrote: Hi

Re: Property error

2006-12-15 Thread king kikapu
What version of Python? Most recent versions don't need the Hi, thanks for the help! I am using 2.5 version and i think i like more the @property decorator instead of the property(...) syntax. Is the code changing much using @property ?? Thanks again! --

Re: Property error

2006-12-15 Thread king kikapu
Your example Dennis, work as expected. I understand the mistake i have made. But when i try to fix the original code usihn @property now, it gives me the same error. So, here it is: class Person(object): _age = 0 @property def age(): def fget(self): return

Property error

2006-12-14 Thread king kikapu
Hi to all, i am trying to use properties in Python and i am sure i have made something wrong with the below code but i just cannot see what it is. Can anyone please help me on this ? The code is : class Person(object): age = 0 @property def age(): def fget(self):

Re: decorators question

2006-12-05 Thread king kikapu
you're not listening. Be sure that i do...The fact that i come from another world does not mean that i am not listening, just that i find as strange some (new) things. Thank you all guys, i know what is happening now... Thanks again! kikapu --

decorators question

2006-12-04 Thread king kikapu
Hi, i am new to python and i have a question about how decorators are working. I have understand HOW they do their magic but i am trying to figure out WHEN they do it... I have the following simple example: #- def author(author_name): def

Re: decorators question

2006-12-04 Thread king kikapu
def func(): pass is *exactly* the same thing as: def func(): pass func = decorator(func) Yes, i know that but i thought that it is so when I call the function, not when the runtime just loads the module... Python calls the decorator, not the decorated

Re: decorators question

2006-12-04 Thread king kikapu
At first, i am coming from another (language) programming world (C# mainly) and i hope you understand my wonders. Ok then, you tell me that the interpreter always execute the code in a module...If there are only def declarations in the module and no code to invoke them it does not execute

  1   2   >