Re: Python deployment options.

2006-11-08 Thread king kikapu
I see...So, if these are the only options, the only "safe" bet is to install the language on the machine (beeing Win, Linux or Mac) and execute the .py files, right ?? On Nov 8, 1:24 pm, "Chris_147" <[EMAIL PROTECTED]> wrote: > king kikapu wrote: > > Hi to al

Re: Trying to get FreeImagePy to work.

2006-06-01 Thread Iain King
Michele Petrazzo wrote: > Iain King wrote: > > Michele Petrazzo wrote: > > > > I downloaded and installed 0.9.9.3, and it now works. Thanks! > > > > I advice you to don't use that ctypes version... Better is to use the > newest one and update freeima

Re: Trying to get FreeImagePy to work.

2006-06-01 Thread Iain King
Michele Petrazzo wrote: > Iain King wrote: > > Michele Petrazzo wrote: > >> Iain King wrote: > >>> Michele Petrazzo wrote: > >>> > >>> I downloaded and installed 0.9.9.3, and it now works. Thanks! > >>> > >> I advice y

Re: Trying to get FreeImagePy to work.

2006-06-01 Thread Iain King
Michele Petrazzo wrote: > Iain King wrote: > > However, when I'm do the > > fipy.convertToPil(), it inverts the image? > > No, it not invert the image... It only return the image as is. > > > I've inserted a > > fipy.invert() before the conversion as

Re: Trying to get FreeImagePy to work.

2006-06-02 Thread Iain King
Iain King wrote: > Michele Petrazzo wrote: > > Iain King wrote: > > > However, when I'm do the > > > fipy.convertToPil(), it inverts the image? > > > > No, it not invert the image... It only return the image as is. > > > > > I've ins

Re: shuffling elements of a list

2006-06-02 Thread Iain King
David C. Ullrich wrote: > On 30 May 2006 21:53:32 -0700, "greenflame" <[EMAIL PROTECTED]> > wrote: > > That's DSU for _sorting_ a list. I read about this, thought > it was pretty neat. I thought that the fact that you > could use the same trick for _shuffling_ a list was > my idea, gonna make me r

Re: Trying to get FreeImagePy to work.

2006-06-05 Thread Iain King
Michele Petrazzo wrote: > Iain King wrote: > >> I'll try out FIPY's resizing tomorrow too. OTOH, I have functions > >> to convert between PIL and wxPython, and functions to convert > >> betweem PIL and FIPY, but I don't see a function to convert

Re: Large Dictionaries

2006-06-05 Thread Iain King
Lawrence D'Oliveiro wrote: > In article <[EMAIL PROTECTED]>, > Scott David Daniels <[EMAIL PROTECTED]> wrote: > > >For example, time timsort (Python's internal sort) on pre-sorted > >data; you'll find it is handled faster than random data. > > But isn't that how a reasonable sorting algorithm sho

Bug in list comprehensions?

2006-06-07 Thread Iain King
I was playing with list comprehensions, to try and work out how doubled up versions work (like this one from another thread: [i for i in range(9) for j in range(i)]). I think I've figured that out, but I found something strange along the way: >>> alpha = ["one", "two", "three"] >>> beta = ["A", "

Re: pyqt show wizard

2006-06-07 Thread Iain King
David Boddie wrote: > Summary of the usual mess made by the Google Groups web interface: > > > I suspect that you really want to call w.exec_loop() instead, since > this will only return control to the method after the user has finished > interacting with the wizard. > > > Take a look at the QWiza

Re: .py and running in Windows:

2006-06-13 Thread Iain King
Andrew Gwozdziewycz wrote: > You'll have better results posting this to it's own thread. > He certainly should have, but since I've read it here anyway: > On Jun 13, 2006, at 9:29 AM, Michael Yanowitz wrote: > > > Hello: > > > > Presently in my Windows 2000 system, when I double-click on a >

Re: Feed wxComboBox with dictionary/hash

2006-06-22 Thread Iain King
Roland Rickborn wrote: > Hi folks, > > I am relatively new to Python. Although I read a lot of howtos, > introductions and wikis, I am still having trouble ;-) > > My querstion: > As the subject says, I'd like to feed a wx.ComboBox with a > dictionary/hash. According to the posting of Stano Paska

Re: String Question

2006-06-28 Thread Iain King
[EMAIL PROTECTED] wrote: > mac_string = '001485e55503' (This is the mac address of a computer.) > > I am using wake on LAN python script to start computer remote.It uses > format like this > > s.sendto('\xff'*6 + '\x00\x014\x85\xe5\x55\x03'*16, ('192.168.1.255', > 80)) > > where '\x00\x14\x8

Re: String Question

2006-06-30 Thread Iain King
Tim Roberts wrote: > "Iain King" <[EMAIL PROTECTED]> wrote: > > > >You probably want: > > > >s.sendto('\xff'*6 + ('\x%s\x%s\x%s\x%s\x%s\x%s' % (str01, str02, str03, > > sttr04, str05, str06))*16, ('192.168.1.255', 80

Re: conecting with a MsAcces DB by dao

2006-06-30 Thread Iain King
luis wrote: > Hi > I'm using activestate python 2.4 on win xp 2 ed. and Ms Access 2002 > (reading first http://starship.python.net/crew/bwilk/access.html) > I have writed the following code > > def append_from_Access(self): >try: > import ... > conn = win32com.client.Dispatch(r'ADO

Re: conecting with a MsAcces DB by dao

2006-06-30 Thread Iain King
luis wrote: > Iain King ha escrito: > > > luis wrote: > > > while not rs.EOF: > > > id=rs.Fields(colName.Value) #colName, valid column name > > > ... > > > rs.MoveNext() > > > rs.Close() > > >

Re: conecting with a MsAcces DB by dao

2006-06-30 Thread Iain King
luis wrote: > Iain King ha escrito: > > > luis wrote: > > > Iain King ha escrito: > > > > > > > luis wrote: > > > > > while not rs.EOF: > > > > > id=rs.Fields(colName.Value) #colName, valid column name >

Re: List Manipulation

2006-07-04 Thread Iain King
Roman wrote: > I would appreciate it if somebody could tell me where I went wrong in > the following snipet: > > When I run I get no result > > cnt = 0 > p=[] > reader = csv.reader(file("f:\webserver\inp.txt"), dialect="excel", > quotechar="'", delimiter='\t') > for line i

Re: List Manipulation

2006-07-05 Thread Iain King
Mike Kent wrote: > Roman wrote: > > Thanks for your help > > > > My intention is to create matrix based on parsed csv file. So, I would > > like to have a list of columns (which are also lists). > > > > I have made the following changes and it still doesn't work. > > > > > > cnt = 0 > > p=[[], []

Re: languages with full unicode support

2006-07-05 Thread Dale King
racters outside of ASCII. I don't think it is implementation defined. I believe it is actually required by the spec. The trouble is that so few compilers actually comply with the spec. A few years ago I asked for someone to actually point to a fully compliant compiler and no one could. -- Dale King -- http://mail.python.org/mailman/listinfo/python-list

Re: Full splitting of a file's pathname

2006-07-10 Thread Iain King
tac-tics wrote: > I know about os.path.split(), but Is there any standard function for > "fully" splitting a file's pathname? A function that is the opposite of > the os.path.join() function? For example: > > >>> ret = myster_function(./foo/bar/moo/lar/myfile.txt) > >>> print ret > ['.', 'foo', 'b

Re: PIL cannot open TIFF image in Windows

2006-09-11 Thread Iain King
Michele Petrazzo wrote: > Rob Williscroft wrote: > > > I downloaded some test images from: > > > > http://www.remotesensing.org/libtiff/images.html> > > > > I do the same and modified your code for try FreeImagePy and the results > are: > > ok: 41 error: 20 total: 61 > > Better

Re: Is it possible to save a running program and reload next time ?

2006-09-21 Thread Iain King
[EMAIL PROTECTED] wrote: > Hi, > > I have a program which will continue to run for several days. When it is > running, I can't do anything except waiting because it takes over most > of the CUP time. > > Is it possible that the program can save all running data to a file when > I want it to stop,

Python visual IDE

2006-11-22 Thread king kikapu
Hi to all, i am not sure if this question really belongs here but anyway, here it goes: I have seen a lot of IDEs for Python, a lot of good stuff but actually none of them has what, for example, Visual Studio has: a Visual Editor (with the ability to place controls on forms etc etc), or RAD I k

Re: Python visual IDE

2006-11-22 Thread king kikapu
look at the programs you mention! King Kikapu On Nov 22, 2:09 pm, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > king kikapu wrote: > > Hi to all, > > > i am not sure if this question really belongs here but anyway, here it > > goes: I have seen a lot of IDEs for Python

Re: Python visual IDE

2006-11-22 Thread king kikapu
I have already downloaded and seen the trial of Komodo Professional. Indeed it has a simple Gui Builder but one can only use TKinter on it. No wxWidgets support and far from truly RAD, but it is the only "integrated" GUI builder in these IDEs... On Nov 22, 4:31 pm, "Steve" <[EMAIL PROTECTED]> wr

Re: Python visual IDE

2006-11-22 Thread king kikapu
t;[EMAIL PROTECTED]> wrote: > king kikapu wrote: > > I have already downloaded and seen the trial of Komodo Professional. > > Indeed it has a simple Gui Builder but one can only use TKinter on it. > > No wxWidgets support and far from truly RAD, but it is the only > > &quo

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 decorator(fu

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 dec

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 anythin

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 -- http://mail.python.org/mailman/listinfo/python-

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: 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! -- http://mail.python.org/mailman/lis

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 self._a

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(

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]

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 a

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 suppo

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 ?? -- http://mail.pytho

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 fi

"wxPython in Action" book

2006-01-24 Thread Iain King
New book on wxPython: http://www.manning.com/books/rappin Release date of this month. Does anyone know if it's out yet / has anyone read it and has an opinion? Iain -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython Conventions

2006-02-01 Thread Iain King
Jared Russell wrote: > To mess around with it, I decided to create a small app to check my > Gmail. I want something that will just sit in my system tray checking > for new emails every ten minutes or so. How do you gain access to the system tray? Iain -- http://mail.python.org/mailman/listi

Re: Create dict from two lists

2006-02-10 Thread Iain King
py wrote: > Thanks, itertools.izip and just zip work great. However, I should have > mentioned this, is that I need to keep the new dictionary sorted. > > d = {1:'first', -5 : 'negative 5', 6:'six', 99:'ninety-nine', > 3:'three'} > keys = d.keys() > keys.sort() > vals = map(d.get, keys) > > At th

Re: Self-identifying functions and macro-ish behavior

2006-02-15 Thread Iain King
[EMAIL PROTECTED] wrote: > Hi, I was wondering how I may get a python function to know what its > name is without me having to write it manually? For example: > > def func1(): > > print 'func1' > return True > > def func2(): > > print 'func2' > return True > > should be

looping over more than one list

2006-02-16 Thread Iain King
When I loop over one list I use: for item in items: print item but often I want to loop through two lists at once, and I've been doing this like I would in any other language - creating an index counter and incrementing it. For example, (completely arbitrary), I have two strings of the same l

Re: Python CGI not working in Firefox but does in IE

2006-02-22 Thread Iain King
Harlin Seritt wrote: > I have this Python CGI script running: > > [CODE] > print 'Content-type: text/plain\n' > > location = 'http://server1.com' > > page = ''' > > > > > > ''' > > print page > [/CODE] > > It works fine and redirects perfectly when using Internet Explorer but > only shows thi

Re: Python CGI not working in Firefox but does in IE

2006-02-22 Thread Iain King
Iain King wrote: > Harlin Seritt wrote: > > I have this Python CGI script running: > > > > [CODE] > > print 'Content-type: text/plain\n' > > > > location = 'http://server1.com' > > > > page = ''' > > &g

Re: string stripping issues

2006-03-03 Thread Iain King
Ben Cartwright wrote: > Ben Cartwright wrote: > > orangeDinosaur wrote: > > > I am encountering a behavior I can think of reason for. Sometimes, > > > when I use the .strip module for strings, it takes away more than what > > > I've specified. For example: > > > > > > >>> a = 'Hughes. John\r

Re: object's list index

2006-03-03 Thread Iain King
William Meyer wrote: > hi, > > I need to get the index of an object in a list. I know that no two objects > in the list are the same, but objects might evaluate as equal. for example > > list = [obj1, obj2, obj3, obj4, obj5] > for object in list: > objectIndex = list.index(object) > pr

Re: object's list index

2006-03-03 Thread Iain King
Iain King wrote: > William Meyer wrote: > > hi, > > > > I need to get the index of an object in a list. I know that no two > > objects > > in the list are the same, but objects might evaluate as equal. for example > > > > list = [obj1, o

Re: object's list index

2006-03-03 Thread Iain King
Iain King wrote: > Iain King wrote: > > William Meyer wrote: > > > hi, > > > > > > I need to get the index of an object in a list. I know that no two > > > objects > > > in the list are the same, but objects might evaluate as equal.

Re: What are OOP's Jargons and Complexities?

2005-05-31 Thread Dale King
code to compile without error. Usually those errors were the programmers fault for trying to play fast and loose with data. But once you got it to compile it nearly always worked. -- Dale King -- http://mail.python.org/mailman/listinfo/python-list

Re: What are OOP's Jargons and Complexities?

2005-06-04 Thread Dale King
Anno Siegel wrote: > Tassilo v. Parseval <[EMAIL PROTECTED]> wrote in comp.lang.perl.misc: > >>Also sprach Dale King: >> >> >>>David Formosa (aka ? the Platypus) wrote: >>> >>>>On Tue, 24 May 2005 09:16:02 +0200, Tassilo v. Parseval &g

Re: wxPython and threads

2007-07-19 Thread Iain King
On Jul 18, 3:41 am, Benjamin <[EMAIL PROTECTED]> wrote: > I'm writing a search engine in Python with wxPython as the GUI. I have > the actual searching preformed on a different thread from Gui thread. > It sends it's results through a Queue to the results ListCtrl which > adds a new item. This work

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 softw

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 Pyt

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

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 hav

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

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 Asyn

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 pol

'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 t

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 ho

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 fu

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

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 u

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 more

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 Pyth

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-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

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 ma

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 Prot

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: 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.

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

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 i

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 "P

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

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

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: Difference between two times (working ugly code, needs polish)

2007-09-12 Thread Iain King
On Sep 12, 1:31 am, "Shawn Milochik" <[EMAIL PROTECTED]> wrote: > > I suppose really oneDay should be a global (i.e. outside the function > > definition). Apart from that it would be hard to improve on: obvious, > > easy to read, in short - pythonic. > > > Are you concerned about daylight savings?

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: PyUnicodeUCS4_FromEncodedObje

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 l

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

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

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 tha

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 t

<    1   2   3   4   5   >