Dr. Dobb's Python-URL! - weekly Python news and links (Sep 6)

2006-09-06 Thread Jack Diederich
QOTW: The bad news is that I seem to be an anti-channeler, so my interest is perhaps not a *good* sign - Jim Jewett I'm sorry this letter is so long. I didn't have time to write a shorter one. - Blaise Pascal (1657) The Python 2.5 release date is now September 19th.

Re: How to get all the file of a oppoint directory from a FTP

2006-09-06 Thread John Machin
snowf wrote: There are no such a method using to download a whole directory in the lib of ' ftplib '. thanks for anybody's help! So you'll have to lash one up: (untested) Firstly, alist = [] ftpobj.retrlines('list', alist.append) should get you a list of filenames. Secondly,

IDE

2006-09-06 Thread Aravind
hi, i am a newbie to python but used with some developement in c++ and VB. Can anyone suggest me a good IDE for python for developing apps...? i've seen Qt designer.. some of my friends said it can be used for python also but they r not sure. pls help... thanks in advance --

Re: How to get all the file of a oppoint directory from a FTP

2006-09-06 Thread snowf
John Machin wrote: snowf wrote: There are no such a method using to download a whole directory in the lib of ' ftplib '. thanks for anybody's help! So you'll have to lash one up: (untested) Firstly, alist = [] ftpobj.retrlines('list', alist.append) should get you a list

Re: IDE

2006-09-06 Thread kishimo
I recommend you Stani's Python Editor (SPE) which is available for Windows, Linux and Mac. http://www.stani.be/python/spe A short tutorial about SPE can be found at: http://www.serpia.org/spe good luck -- http://mail.python.org/mailman/listinfo/python-list

Re: Dice gen and analyser script for RPGs: comments sought

2006-09-06 Thread Paul Rubin
Richard Buckle [EMAIL PROTECTED] writes: Comments, insights and overall evaluations are especially welcomed re: * Cleanliness of design * Pythonicity of design * Pythonicity of code * Efficiency of code * Quality of docstrings * Conformance with modern docstring standards * Conformance

Re: Better way to replace/remove characters in a list of strings.

2006-09-06 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], George Sakkis wrote: Chris Brat wrote: Wouldn't this only cause problems with large lists - for once off scripts with small lists it doesn't seem like a big issue to me. The extra memory to allocate the new list is usually a minor issue; the important one is

Re: threading support in python

2006-09-06 Thread [EMAIL PROTECTED]
Paul Rubin wrote: Jean-Paul Calderone [EMAIL PROTECTED] writes: which more explicitly shows the semantics actually desired. Not that huge a benefit as far as I can tell. Lisp programmers have gotten along fine without it for 40+ years... Uh yea. No lisp programmer has ever written a

Re: threading support in python

2006-09-06 Thread [EMAIL PROTECTED]
Paul Rubin wrote: [EMAIL PROTECTED] [EMAIL PROTECTED] writes: Having memory protection is superior to not having it--OS designers spent years implementing it, why would you toss out a fair chunk of it? Being explicit about what you're sharing is generally better than not. Part of the win

Re: threading support in python

2006-09-06 Thread [EMAIL PROTECTED]
Paul Rubin wrote: [EMAIL PROTECTED] [EMAIL PROTECTED] writes: I think it's even worse. The standard Python library offers shared memory, but not cross-process locks. File locks are supported by the standard library (at least on Unix, I've not tried on Windows). They work

Re: threading support in python

2006-09-06 Thread Paul Rubin
[EMAIL PROTECTED] [EMAIL PROTECTED] writes: Part of the win of programming in Python instead of C is having the language do memory management for you--no more null pointers dereferences or malloc/free errors. Using shared memory puts all that squarely back in your lap. Huh? Why

Re: threading support in python

2006-09-06 Thread Paul Rubin
[EMAIL PROTECTED] [EMAIL PROTECTED] writes: You can, absolutely. If you're sharing memory through mmap it's usually the preferred solution; fcntl locks ranges of an open file, so you lock exactly the portions of the mmap that you're using at a given time. How can it do that without having to

Re: CONSTRUCT -

2006-09-06 Thread Steve Holden
Simon Forman wrote: Fredrik Lundh wrote: Simon Forman wrote: I'm sorry, your post makes very little sense. you're somewhat new here, right ? ;-) /F Yah, I've been posting here about three months now. Why, did I miss something? :-) Yes: the previous posts from the same poster.

Re: Is it just me, or is Sqlite3 goofy?

2006-09-06 Thread Steve Holden
[EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: I think your whole experience is based on it. But shouldn't a significant feature like that be explained in the Python manuals? Why should I go dig up Sqlite FAQs to learn what should have been in the manuals? I don't know, but

Re: Is it just me, or is Sqlite3 goofy?

2006-09-06 Thread Steve Holden
[EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: I think your whole experience is based on it. But shouldn't a significant feature like that be explained in the Python manuals? Why should I go dig up Sqlite FAQs to learn what should have been in the manuals? I don't know, but

Re: threading support in python

2006-09-06 Thread Steve Holden
[EMAIL PROTECTED] wrote: Paul Rubin wrote: [EMAIL PROTECTED] [EMAIL PROTECTED] writes: Having memory protection is superior to not having it--OS designers spent years implementing it, why would you toss out a fair chunk of it? Being explicit about what you're sharing is generally better than

Import a textfile to MS SQL with python

2006-09-06 Thread [EMAIL PROTECTED]
I'm a dba for SQL server and I Will import a textfile to SQL. For example I use a file with 3 columns. ID, Name and Surname and the columns are tab separated. I don't know much about programming. Anyway, I use this code below. It works, but it will not split the columns. I have tried to change the

Re: threading support in python

2006-09-06 Thread Steve Holden
[EMAIL PROTECTED] wrote: Paul Rubin wrote: Jean-Paul Calderone [EMAIL PROTECTED] writes: which more explicitly shows the semantics actually desired. Not that huge a benefit as far as I can tell. Lisp programmers have gotten along fine without it for 40+ years... Uh yea. No lisp programmer

Re: any portable way to print? (and i mean on a printer)

2006-09-06 Thread Steve Holden
Liquid Snake wrote: I think my question is clear.., is there any way to print any text on a portable way?..., and actually, i don't know how to print at all.., just give me some pointers, name a module, and i can investigate for myself.. sorry for my english, thanks in advance.. ps: i

Re: Removing from a List in Place

2006-09-06 Thread Steve Holden
[EMAIL PROTECTED] wrote: Tim Williams: You could also use a list comprehension for your case alist = [1 ,2 ,3] alist = [x for x in alist if x != 2] alist [1, 3] The list comprehension filtering is the simpler and often the best solution. For memory-conscious people this is another

Re: How to get all the file of a oppoint directory from a FTP

2006-09-06 Thread Steve Holden
snowf wrote: There are no such a method using to download a whole directory in the lib of ' ftplib '. thanks for anybody's help! If your Python distrbution contains a Tools directory you should look for the ftpmirror.py utility in it. If you don't have Tools then you can extract them

RE: Import a textfile to MS SQL with python

2006-09-06 Thread Tim Golden
[EMAIL PROTECTED] | I'm a dba for SQL server and I Will import a textfile to SQL. Not a Python answer, but unless you're in it for the learning experience, I *seriously* suggest you look at the built-in BULK INSERT command to see if it meets your needs. Random URL:

Re: Higher-level OpenGL modules

2006-09-06 Thread Ben Sizer
[EMAIL PROTECTED] wrote: http://pyopengl.sourceforge.net/ I wouldn't begin to tell you how to install this.. Looks like russian roulette with virus since the .dll's are not available and are not linked from the site but are available from lots of places in the google search. I think you're

Re: Import a textfile to MS SQL with python

2006-09-06 Thread Steve Holden
[EMAIL PROTECTED] wrote: I'm a dba for SQL server and I Will import a textfile to SQL. For example I use a file with 3 columns. ID, Name and Surname and the columns are tab separated. I don't know much about programming. Anyway, I use this code below. It works, but it will not split the

Re: SQLObject or SQLAlchemy?

2006-09-06 Thread Bruno Desthuilliers
lazaridis_com wrote: Bruno Desthuilliers wrote: lazaridis_com wrote: Ο/Η Bruno Desthuilliers έγραψε: lazaridis_com wrote: John Salerno wrote: Are there any major differences between these two? It seems they can both be used with TurboGears, and SQLAlchemy with Django. I'm just wondering

RE: a Pywin Outlook adress Book Question

2006-09-06 Thread Tim Golden
[Kai Mayfarth] | Ist there a way to search a Adressbook over Python for a | special contact. | I know how i read and write a contact, but know i have to search over | Python for some contacts, because the adress book has know over 1700 | entrys, and it tooks a long time to get them all over

Re: Is it just me, or is Sqlite3 goofy?

2006-09-06 Thread Bruno Desthuilliers
[EMAIL PROTECTED] wrote: (snip) But shouldn't a significant feature like that be explained in the Python manuals? Why should it ? It's a SQLite feature, not a Python one. Why should I go dig up Sqlite FAQs to learn what should have been in the manuals? Why should you read the manuals at

Re: [Article] OpenOffice.org and Python

2006-09-06 Thread Sybren Stuvel
MC enlightened us with: Thanks! You're welcome! - and Python 2.4.x? I've used Python 2.4.3 to write the article. - I have Python 2.4 and then embbed Python 2.3 of OOo ; how install some things in this last Python? I dream to call Pywin32 from OOo... Please rephrase that

Re: Import a textfile to MS SQL with python

2006-09-06 Thread [EMAIL PROTECTED]
i know the bulk instert functions i ms sql but i will use this script for oracle in a linux enviroment to so i think python is a good choice. regard joel -- http://mail.python.org/mailman/listinfo/python-list

Re: threading support in python

2006-09-06 Thread [EMAIL PROTECTED]
Steve Holden wrote: [EMAIL PROTECTED] wrote: Paul Rubin wrote: Jean-Paul Calderone [EMAIL PROTECTED] writes: which more explicitly shows the semantics actually desired. Not that huge a benefit as far as I can tell. Lisp programmers have gotten along fine without it for 40+ years...

Re: threading support in python

2006-09-06 Thread Paul Rubin
[EMAIL PROTECTED] [EMAIL PROTECTED] writes: Throwing them out without careful consideration is a bad idea--ref-counting is _not_ simply one GC implementation among many, it actually offers useful semantics and the cost of giving up those semantics should be considered before throwing out

Re: OpenOffice.org and Python

2006-09-06 Thread olive
Sybren, you did not understand Michel question because Ubuntu seems to be the only distribution coming with OpenOffice and Python 2.4 compiled together. Others platform such as Windoze are limitated to Python 2.3 when working with OpenOffice and compiling is a pain especially under Windoze.

RE: a Pywin Outlook adress Book Question

2006-09-06 Thread Tim Golden
| [Kai Mayfarth] | | | Ist there a way to search a Adressbook over Python for a | | special contact. [TJG] | As far as I can see from a quick glance, there is no method | of the AddressList or AddressEntries objects which calls into | the Outlook code itself to search Although now I Google a

Re: How to get all the file of a oppoint directory from a FTP

2006-09-06 Thread snowf
Steve Holden wrote: snowf wrote: There are no such a method using to download a whole directory in the lib of ' ftplib '. thanks for anybody's help! If your Python distrbution contains a Tools directory you should look for the ftpmirror.py utility in it. If you don't have Tools then

RE: Import a textfile to MS SQL with python

2006-09-06 Thread Tim Golden
[EMAIL PROTECTED] | I'm a dba for SQL server and I Will import a textfile to SQL. For | example I use a file with 3 columns. ID, Name and Surname and the | columns are tab separated. I don't know much about programming. | Anyway, I use this code below. It works, but it will not split the |

Re: OpenOffice.org and Python

2006-09-06 Thread Sybren Stuvel
olive enlightened us with: you did not understand Michel question because Ubuntu seems to be the only distribution coming with OpenOffice and Python 2.4 compiled together. Ah, okay. I have no other distributions here, so I rely on others to give me more information about them. Others

Re: Import a textfile to MS SQL with python

2006-09-06 Thread [EMAIL PROTECTED]
Ok thanks Tim. I'm possible to read the file now as you described but when I pass it to the DB I got an error says: [['1', 'Joel', 'Sjoo'], ['2', 'Sture', 'Andersson'], ['3', 'Arne', 'Svensson']] Traceback (most recent call last): File txttosql6.py, line 23, in ? row File

Re: threading support in python

2006-09-06 Thread mystilleef
You can use multiple processes to simulate threads via an IPC mechanism. I use D-Bus to achieve this. http://www.freedesktop.org/wiki/Software/dbus km wrote: Hi all, Are there any alternate ways of attaining true threading in python ? if GIL doesnt go then does it mean that python is useless

Re: wxPython GUI update with data from a MySQL database

2006-09-06 Thread Alina Ghergu
I solved the problem by using a more recent version of MySQLdb, compatible with MySQL 5.0. -- http://mail.python.org/mailman/listinfo/python-list

How to insert an email-link into wxPython's HtmlWindow

2006-09-06 Thread [EMAIL PROTECTED]
Hello. I don't know if this topic is appropriate in this group (and my English is not good). My problem is here: I created a HtmlWindow in wxPython, then I wrote some code and set it to the page-text. In these code there was a line a href=mailto:[EMAIL PROTECTED][EMAIL PROTECTED]/a (where name

RE: Import a textfile to MS SQL with python

2006-09-06 Thread Tim Golden
[EMAIL PROTECTED] | Traceback (most recent call last): | File txttosql6.py, line 23, in ? | row | File C:\Python24\Lib\site-packages\pymssql.py, line 120, in execute | self.executemany(operation, (params,)) | File C:\Python24\Lib\site-packages\pymssql.py, line 146, in | executemany |

Re: OpenOffice.org and Python

2006-09-06 Thread M�ta-MCI
Hi! Poor people. Poor people... but (very) rich client!!! ;-) @+ Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

sci-py error

2006-09-06 Thread Cecilia Marini Bettolo
Hi! When installing scipy I get this error: python setup.py install Traceback (most recent call last): File setup.py, line 55, in ? setup_package() File setup.py, line 28, in setup_package from numpy.distutils.core import setup File

Getting Process Name on Win32

2006-09-06 Thread Rama
Hi, I want to list the names of all the processes running on my machine. I am stuck at this point and do not know how to extract the name of a process. Using win32process.EnumProcesses, I am able to obtain the pids of all the processes and using win32api.OpenProcess() I have obtained a handle to

RE: Getting Process Name on Win32

2006-09-06 Thread Tim Golden
[Rama] | I want to list the names of all the processes running on | my machine. I am stuck at this point and do not know how to | extract the name of a process. WMI is good for this kind of thing: http://tgolden.sc.sabren.com/python/wmi_cookbook.html#running_processes TJG

Re: Getting Process Name on Win32

2006-09-06 Thread Rama
On 06/09/06, Tim Golden [EMAIL PROTECTED] wrote: [Rama]|I want to list the names of all the processes running on| my machine. I am stuck at this point and do not know how to| extract the name of a process.WMI is good for this kind of thing:

Re: Getting Process Name on Win32

2006-09-06 Thread Stefan Rank
[BTW, there is a list/newsgroup specifically for pywin32] on 06.09.2006 12:56 Rama said the following: Hi, I want to list the names of all the processes running on my machine. I am stuck at this point and do not know how to extract the name of a process. Using

Re: SQLObject or SQLAlchemy?

2006-09-06 Thread lazaridis_com
alex23 wrote: lazaridis_com wrote: The persist case evaluates python persistency systems (or mechanisms), and will show my personal preference: Do you feel that evaluating-for-evaluation's-sake produces a more measured understanding of the value of a product than that taken from its use

Re: Import a textfile to MS SQL with python

2006-09-06 Thread [EMAIL PROTECTED]
i gott the same results with both executemany and execute. i will try with some other sql modules. if you try tim so let me now if you cot it to work. many thanks for your help. regards joel -- http://mail.python.org/mailman/listinfo/python-list

Re: SQLObject or SQLAlchemy?

2006-09-06 Thread lazaridis_com
Bruno Desthuilliers wrote: lazaridis_com wrote: Bruno Desthuilliers wrote: lazaridis_com wrote: Ο/Η Bruno Desthuilliers έγραψε: lazaridis_com wrote: John Salerno wrote: Are there any major differences between these two? It seems they can both be used with TurboGears, and SQLAlchemy

getting quick arp request

2006-09-06 Thread seb
Hello, What I need : I need to write a scanner that test all the IP adresses that repond on a given port. The Ip list is of roughly of length 200. I need to get the response every 60 seconds (or better). I would prefer first not to use nmap.

Re: CONSTRUCT -

2006-09-06 Thread lazaridis_com
Steve Holden wrote: lazaridis_com wrote: Georg Brandl wrote: lazaridis_com wrote: Georg Brandl wrote: lazaridis_com wrote: I would like to fulfill the following task: The construct: if __name__ == '__main__': should be changed to something like: if identifier.name ==

Re: IronPython 1.0 released today!

2006-09-06 Thread gslindstrom
Jim Hugunin wrote: I'm extremely happy to announce that we have released IronPython 1.0 today! http://www.codeplex.com/IronPython Way to go, Jim!! I am impressed with the effort. --greg -- http://mail.python.org/mailman/listinfo/python-list

Re: getting quick arp request

2006-09-06 Thread Ben Sizer
seb wrote: I need to write a scanner that test all the IP adresses that repond on a given port. ... I am using winXP pro on a 2GHZ P4 and 512 Mo. If you have XP Service Pack 2, it cripples port-scanning as part of a 'security' fix. Broadly speaking, it limits the rate at which you can make

python vs java

2006-09-06 Thread Aravind
hi, some of my friends told that python and java are similar in the idea of platform independency. Can anyone give me an idea as i'm a newbie to java and python but used to C++. My idea is to develop an app which can run both in windows and linux. Pls help. Thanks in advance --

Re: Is it just me, or is Sqlite3 goofy?

2006-09-06 Thread Ben Sizer
Bruno Desthuilliers wrote: [EMAIL PROTECTED] wrote: I don't mind living with it as long as it's documented. It is. In SQLite manual. Or do you hope the Python manual to also fully document PostgreSQL, MySQL, Oracle, Apache, Posix, Win32 etc ? With those other applications, you have a

Re: Netstat Speed

2006-09-06 Thread Jorgen Grahn
On Sat, 2 Sep 2006 20:13:01 +0200, Sybren Stuvel [EMAIL PROTECTED] wrote: Jorgen Grahn enlightened us with: | def ip_is_active(addr): | Return success if 'addr' shows up in the output from 'netstat -an'. | We assume that a suitable version of netstat exists. | If I have an if in

running script in pyalamode

2006-09-06 Thread [EMAIL PROTECTED]
Is there a way to run a script within the editor of pyalamode? Or does one need to open and run the saved .py file? -- http://mail.python.org/mailman/listinfo/python-list

Re: getting quick arp request

2006-09-06 Thread seb
Hi Ben, I am indeed using XP SP2. I have checked on the event viewer and I have not seen the event 4226. Besides I also run on the same PC angry Ip scanner 2.21. Checking using ethereal the arp request are all dispatched quit quickly (see my mail above). Thanks for the advice anyway. Sebastien.

RE: Import a textfile to MS SQL with python

2006-09-06 Thread Tim Golden
[EMAIL PROTECTED] | i gott the same results with both executemany and execute. i will try | with some other sql modules. if you try tim so let me now if | you cot it | to work. OK, the relevant thing here is the paramstyle. When I made that misguided claim earlier that ? was the most common

Re: python vs java

2006-09-06 Thread Simon Hibbs
Aravind wrote: hi, some of my friends told that python and java are similar in the idea of platform independency. Can anyone give me an idea as i'm a newbie to java and python but used to C++. My idea is to develop an app which can run both in windows and linux. That's true to an extent.

Re: getting quick arp request

2006-09-06 Thread seb
Hi Ben, I am indeed using XP SP2. - Some more info : - 1) I have checked on the event viewer and I have not seen the event 4226 while I have run the code sample above. 2) I can still see this error (4226) recently In the log so that I must have

accessing the DHCP Server Management API

2006-09-06 Thread GHUM
Hello, I need to get a list of active leases on a windows dhcp server. Experts from Microsoft statet: A: Go to the Address leases of each scope in the DHCP snap-in and dump the leases to a text file from the DHCP server snap-in. The text file gives you all the information for every active

Re: Import a textfile to MS SQL with python

2006-09-06 Thread [EMAIL PROTECTED]
Yes i got it to work now. Thank you for all help Tim and Steve. I hope it will work for Oracle to :) Regards Joel -- http://mail.python.org/mailman/listinfo/python-list

Re: [ANN] IronPython 1.0 released today!

2006-09-06 Thread Chris
Jim Hugunin wrote: I'm extremely happy to announce that we have released IronPython 1.0 today! http://www.codeplex.com/IronPython snip I'm no code guru but it sounds interesting. So can I import numpy, scipy, matplotlib, wxpython etc like I do now with CPython and expect, short of a few

Re: How to insert an email-link into wxPython's HtmlWindow

2006-09-06 Thread NoelByron
Override OnLinkClicked() and check the passed link info for the 'mail:' prefix. And if its there, don't call the OnLinkClicked() method of the base class, to prevent wxWidgets from loading this link as a HTML ressource. Now, you have reduced your problem to: how do I call the standard Email

Re: python vs java

2006-09-06 Thread Andy Dingley
Aravind wrote: some of my friends told that python and java are similar in the idea of platform independency. Similar in goal, but quite different in approach. Python supports lots of platforms and goes to great lengths to offer facades around whatever features a platform does have, so as

Re: IronPython 1.0 released today!

2006-09-06 Thread NoelByron
Great, I couldn't do better Ok, I couldn't do it all... ;o) But I'm a little bit concerned. Have you ever thought of using a different file prefix for python files depending on .NET assemblies like .pyi? Sooner or later we want to associate IronPython files with IronPython in the windows

Re: any portable way to print? (and i mean on a printer)

2006-09-06 Thread David Boddie
Steve Holden wrote: Liquid Snake wrote: I think my question is clear.., is there any way to print any text on a portable way?..., and actually, i don't know how to print at all.., just give me some pointers, name a module, and i can investigate for myself.. sorry for my english, thanks in

Re: [ANN] IronPython 1.0 released today!

2006-09-06 Thread Neil Hodgson
Chris: I'm no code guru but it sounds interesting. So can I import numpy, scipy, matplotlib, wxpython etc like I do now with CPython and expect, short of a few tweaks, that my code will work? No, IronPython is currently unable to load CPython DLLs. Neil --

[no subject]

2006-09-06 Thread safecom
The original message was included as attachment Deleted0.txt Description: Binary data -- http://mail.python.org/mailman/listinfo/python-list

Re: [ANN] IronPython 1.0 released today!

2006-09-06 Thread Diez B. Roggisch
Chris wrote: Jim Hugunin wrote: I'm extremely happy to announce that we have released IronPython 1.0 today! http://www.codeplex.com/IronPython snip I'm no code guru but it sounds interesting. So can I import numpy, scipy, matplotlib, wxpython etc like I do now with CPython and expect,

ricerca

2006-09-06 Thread 1willy2
Stiamo cercando uno sviluppatore Python esperto in Vue 5 Infinite. Grazie Willy -- http://mail.python.org/mailman/listinfo/python-list

IronPython 1.0 - Bugs or Features?

2006-09-06 Thread Claudio Grondi
(just wanted to share my experience with IronPython 1.0) The context: C:\IronPython ipy.exe IronPython 1.0.60816 on .NET 2.0.50727.42 Copyright (c) Microsoft Corporation. All rights reserved. vs. C:\Python24 python.exe Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit

Re: python vs java

2006-09-06 Thread Jorgen Grahn
On Wed, 6 Sep 2006 17:53:29 +0530, Aravind [EMAIL PROTECTED] wrote: hi, some of my friends told that python and java are similar in the idea of platform independency. Can anyone give me an idea as i'm a newbie to java and python but used to C++. Well, what Java and Python (and some other

Read from .glade

2006-09-06 Thread ralfbrand50
Hello, I've got the following problem: I've got a Userinterface that is made in Glade, so i've got a .glade file. What I want is to get the id's of every widget from the class GtkEntry from a given window. The glade file is like ?xml version=1.0 standalone=no? !--*- mode: xml -*-- !DOCTYPE

change property after inheritance

2006-09-06 Thread David Isaac
Suppose a class has properties and I want to change the setter in a derived class. If the base class is mine, I can do this: http://www.kylev.com/2004/10/13/fun-with-python-properties/ Should I? (I.e., is that a good solution?) And what if I cannot change the base class? How to proceed then?

Re: python vs java

2006-09-06 Thread Bruno Desthuilliers
Aravind wrote: hi, some of my friends told that python and java are similar in the idea of platform independency. Well, not quite IMHO. Java treats the problem by taking the autistic attitude of pretending the underlying platform doesn't exists - which can be a major PITA. Python is much

Re: IDE

2006-09-06 Thread Bruno Desthuilliers
Aravind wrote: hi, i am a newbie to python but used with some developement in c++ and VB. Can anyone suggest me a good IDE for python for developing apps...? i've seen Qt designer.. some of my friends said it can be used for python also but they r not sure. What you're talking about here

Re: IDE

2006-09-06 Thread fuzzylollipop
Aravind wrote: hi, i am a newbie to python but used with some developement in c++ and VB. Can anyone suggest me a good IDE for python for developing apps...? i've seen Qt designer.. some of my friends said it can be used for python also but they r not sure. pls help... thanks in

Tkinter bus error right away

2006-09-06 Thread Ben Kovitz
Hi, I just tried to run Tkinter on OS X 10.3.9 under Python 2.4.3, and I'm getting a bus error as soon as I call Tk(). Googling has turned up info other Tkinter bus errors, but not this one that occurs right away, before doing anything fancy. Tk/Tcl is definitely installed on my computer, as

Re: IronPython 1.0 - Bugs or Features?

2006-09-06 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], Claudio Grondi wrote: The context: C:\IronPython ipy.exe IronPython 1.0.60816 on .NET 2.0.50727.42 Copyright (c) Microsoft Corporation. All rights reserved. vs. C:\Python24 python.exe Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)]

Re: python vs java

2006-09-06 Thread Morph
On 9/6/06, Aravind [EMAIL PROTECTED] wrote: hi,some of my friends told that python and java are similar in the idea ofplatform independency. Can anyone give me an idea as i'm a newbie to javaand python but used to C++. My idea is to develop an app which can run both in windows and linux. IMHO i

Re: sci-py error

2006-09-06 Thread Robert Kern
Cecilia Marini Bettolo wrote: Hi! When installing scipy I get this error: python setup.py install Traceback (most recent call last): File setup.py, line 55, in ? setup_package() File setup.py, line 28, in setup_package from numpy.distutils.core import setup File

Re: change property after inheritance

2006-09-06 Thread Maric Michaud
Le mercredi 06 septembre 2006 16:33, David Isaac a écrit : Suppose a class has properties and I want to change the setter in a derived class. If the base class is mine, I can do this: http://www.kylev.com/2004/10/13/fun-with-python-properties/ Should I? (I.e., is that a good solution?) Why

Re: Read from .glade

2006-09-06 Thread davelist
On Wednesday, September 06, 2006, at 10:36AM, [EMAIL PROTECTED] wrote: Hello, I've got the following problem: I've got a Userinterface that is made in Glade, so i've got a .glade file. What I want is to get the id's of every widget from the class GtkEntry from a given window. The glade file

Re: threading support in python

2006-09-06 Thread Bryan Olson
[EMAIL PROTECTED] wrote: Bryan Olson wrote: I think it's even worse. The standard Python library offers shared memory, but not cross-process locks. File locks are supported by the standard library (at least on Unix, I've not tried on Windows). They work cross-process and are a normal

Re: IronPython 1.0 - Bugs or Features?

2006-09-06 Thread Larry Bates
Claudio Grondi wrote: (just wanted to share my experience with IronPython 1.0) The context: C:\IronPython ipy.exe IronPython 1.0.60816 on .NET 2.0.50727.42 Copyright (c) Microsoft Corporation. All rights reserved. vs. C:\Python24 python.exe Python 2.4.2 (#67, Sep 28 2005,

Secure Postgres access

2006-09-06 Thread Reid Priedhorsky
Hi folks, I would like to access a remote Postgres server from a Python program in a secure way. Postgres doesn't currently listen to the Internet for connections, and I'd prefer to keep it that way. I know how to forward ports using SSH, but I don't like doing this because then anyone who knows

Refactor a buffered class...

2006-09-06 Thread lh84777
Hello, i'm looking for this behaviour and i write a piece of code which works, but it looks odd to me. can someone help me to refactor it ? i would like to walk across a list of items by series of N (N=3 below) of these. i had explicit mark of end of a sequence (here it is '.') which may be any

Re: IronPython 1.0 - Bugs or Features?

2006-09-06 Thread Robin Becker
Claudio Grondi wrote: Another problem with IronPython where CPython 2.4.2 runs ok was while I was trying to do: f = file(r'\\.\PhysicalDrive0', 'rb') getting ValueError: FileStream will not open Win32 devices such as disk partitions and tape drives. Avoid use of \\.\ in the path. Here

Re: Secure Postgres access

2006-09-06 Thread Paul Rubin
Reid Priedhorsky [EMAIL PROTECTED] writes: I know how to forward ports using SSH, but I don't like doing this because then anyone who knows the port number can connect to Postgres over the same tunnel. (I'm not the only user on the client machine.) Wouldn't they need a database password? --

Re: Secure Postgres access

2006-09-06 Thread Marshall
Can't you limit SSH tunneling access to the IP and/or MAC that you want to access ? It's simplest than any other solution. -- http://mail.python.org/mailman/listinfo/python-list

22, invalid agument error

2006-09-06 Thread Infinite Corridor
I am trying to get an echoserver running on my N80 Nokia cell phone, that uses python for s60. What worked: I ran echoclient on the phone and echoserver on my Powerbook and it worked. What doesnt work: When I try running the same scripts, so that I run echoclient on the laptop and echoserver on

Re: EVIDENCE: 911 was CONTROLLED DEMOLITION to make muslims 2nd class

2006-09-06 Thread Puppet_Sock
[EMAIL PROTECTED] wrote: [snip rubbish] You cannot even spell your own handle. http://en.wikipedia.org/wiki/Thermite Socks -- http://mail.python.org/mailman/listinfo/python-list

Scientific computing and data visualization.

2006-09-06 Thread Fie Pye
Hallo I would like to have a high class open source tools for scientific computing and powerful 2D and 3D data visualisation. Therefore I chose python, numpy and scipy as a base. Now I am in search for a visualisation tool. I tried matplotlib and py_opendx with OpenDx.

Path?

2006-09-06 Thread Dr. Pastor
I installed Python 2.5 on Windows XP. I got the following system that works well. --- Python 2.5b3 (r25b3:51041, Aug 3 2006, 09:35:06) [MSC v.1310 32 bit (Intel)] on win32 Type copyright, credits or license() for more information. IDLE 1.2b3 import sys sys.path

Re: Refactor a buffered class...

2006-09-06 Thread Michael Spencer
[EMAIL PROTECTED] wrote: Hello, i'm looking for this behaviour and i write a piece of code which works, but it looks odd to me. can someone help me to refactor it ? i would like to walk across a list of items by series of N (N=3 below) of these. i had explicit mark of end of a sequence

Script Bug?

2006-09-06 Thread Omar
okay,I'm going through this python tutorial, and according to the tutorial, I can type this: [code] myList = [1,2,3,4] for index in range(len(myList)): myList[index] += 1 print myList [/code] however, in my IDLE python shell, when I type [code] myList = [1,2,3,4] for index in

Re: IronPython 1.0 - Bugs or Features?

2006-09-06 Thread Claudio Grondi
Larry Bates wrote: Claudio Grondi wrote: (just wanted to share my experience with IronPython 1.0) The context: C:\IronPython ipy.exe IronPython 1.0.60816 on .NET 2.0.50727.42 Copyright (c) Microsoft Corporation. All rights reserved. vs. C:\Python24 python.exe Python 2.4.2 (#67, Sep

  1   2   >