Re: is python Object oriented??

2009-02-03 Thread Hendrik van Rooyen
"Scott David Daniels" wrote: > You might enjoy looking at QNX, since I think it is built along the > lines you are describing here. I have an ancient copy of their OS, > but haven't followed for more than couple of decades. I vaguely know about it, and I know they claim to be hot on real time

Re: what IDE is the best to write python?

2009-02-03 Thread Bob Martin
in 100686 20090203 181957 Catherine Heathcote wrote: >Tim Rowe wrote: >> 2009/2/3 Jervis Whitley : >> >>> real programmers use ed. >> >> Ed? Eee, tha' were lucky. We had to make holes in Hollerith cards wi' >> our bare teeth... >> >

Re: what IDE is the best to write python?

2009-02-03 Thread Torabisu
On Feb 1, 9:42 am, "mcheun...@hotmail.com" wrote: > Hi all >    what IDE is the best to write python? > thanks > from Peter (mcheun...@hotmail.com) I use a combination of: 1. VI/VIM 2. Eclipse with PyDev extensions 3. NetBeans with Python Module installed When I'm working directly on developmen

Re: is python Object oriented??

2009-02-03 Thread Steven D'Aprano
On Tue, 03 Feb 2009 12:09:46 +0100, Bruno Desthuilliers wrote: >> I love Python, and I'm greedy and want it all: I want a dynamic, >> easy-to- use language *and* a compiler that can protect me from myself > > That's not what compilers are for. So you say. >> and bad data. > > I definitly fai

Re: imaplib thread method anomaly

2009-02-03 Thread Piers Lauder
On Tue, 3 Feb 2009 05:22:01 -0800 (PST), Mr SZ wrote: > > I was looking at the thread functionality of IMAP4rev1 servers with the > threading extension. Here is my output with debug=8 : > > > > 02:23.02 > GDJB3 UID THREAD references UTF-8 (SEEN) > 02:23.02 < * THREAD (3)(2)(

Re: Python Global State

2009-02-03 Thread Hendrik van Rooyen
er wrote: >Simple question, I think: Is there a way to make a >completely global variable across a slew of modules? >If not, what is the canonical way to keep a global state? >The purpose of this is to try to prevent circular module >imports, which just sort of seems nasty. Thank you! T

How do i add body to 'email.mime.multipart.MIMEMultipart' instance?

2009-02-03 Thread srinivasan srinivas
Hi, Could someone tell me the way to add body content to 'email.mime.multipart.MIMEMultipart' instance? Thanks, Srini Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/ -- http://mail.python.org/mailman/listinfo/python-list

Re: python libpcap equivalent

2009-02-03 Thread Grant Edwards
On 2009-02-03, Steve Holden wrote: >> You can use pylibpcap to capture packets, and then use a raw >> socket to send them out again on whatever interface you want. FWIW, under Linux you can also capture packets using a raw-mode socket, but the only times I've done it I was only capturing packets

Re: Extracting file from zip archive in Python 2.6.1

2009-02-03 Thread Gabriel Genellina
En Wed, 04 Feb 2009 00:36:40 -0200, Brandon Taylor escribió: On Feb 3, 1:16 pm, Brandon Taylor wrote: On Feb 3, 9:45 am, "Gabriel Genellina" wrote: > En Tue, 03 Feb 2009 05:31:24 -0200, Brandon Taylor   > escribió: > > zip_file.extract(zip_name + '/' + thumbnail_image, thumbnail_path) >

Re: Import without executing module

2009-02-03 Thread Ray
Hi Stephen, On Feb 4, 1:08 pm, Stephen Hansen wrote: > On Tue, Feb 3, 2009 > > > So, is inserting the above if statement common practice for python > > programmers?  As a C programmer, it seems that people put a "#ifndef > > XXX...#define XXX...[all of the code]...#endif" almost as a habit.  I

Re: Good or bad use of __repr__?

2009-02-03 Thread Terry Reedy
Alaric Haag wrote: Hello, Is the use of __repr__ below a "really bad idea"? class Dimension(): def __init__(self, setp, name): ptr = setp.contents.dim while ptr.contents.name != name: ptr = ptr.contents.next self.name = ptr.contents.name self.si

Re: Good or bad use of __repr__?

2009-02-03 Thread Steven D'Aprano
On Wed, 04 Feb 2009 05:18:29 +, Steven D'Aprano wrote: > ... I'd recommend: > > def __repr__(self): > return '%s(%s, %s)' % ( > self.__class__.__name__, self.ptr, self.name) > def __str__(self): > return "" % self.size > > > except of course your class doesn'

Re: Good or bad use of __repr__?

2009-02-03 Thread Steven D'Aprano
On Tue, 03 Feb 2009 22:02:13 -0600, Alaric Haag wrote: > Hello, > > Is the use of __repr__ below a "really bad idea"? > > class Dimension(): > def __init__(self, setp, name): > ptr = setp.contents.dim > while ptr.contents.name != name: > ptr = ptr.contents.next >

Re: is python Object oriented??

2009-02-03 Thread Russ P.
On Feb 3, 7:49 pm, "Rhodri James" wrote: > On Wed, 04 Feb 2009 01:13:32 -, Russ P. wrote: > > On Feb 3, 4:05 pm, "Rhodri James" wrote: > >> I'm very much of the second opinion; it was Russ who did the sudden   > >> volte > >> face and declared that it was trivial to circumvent. > > > Whoa! H

Re: How to call python from a foreign language thread (C++)

2009-02-03 Thread Victor Lin
On 2月4日, 上午2時44分, Philip Semanchuk wrote: > On Feb 3, 2009, at 12:51 PM, Victor Lin wrote: > > > > > It seems that my program can't call to Python's function from thread > > directly, because there is Global Interpreter Lock. The python's GIL > > is so complex, I have no idea how it works. I'm sor

Re: Good or bad use of __repr__?

2009-02-03 Thread Stephen Hansen
> > As written, if a program references a Dimension instance without an > attribute, it gets the size attrbute "by default". If it wants the other > attributes, they have to be spec'd. In the context of the code being > developed, the "size" attribute is the "logical" representation of the > dimens

Re: Import without executing module

2009-02-03 Thread Stephen Hansen
On Tue, Feb 3, 2009 > So, is inserting the above if statement common practice for python > programmers? As a C programmer, it seems that people put a "#ifndef > XXX...#define XXX...[all of the code]...#endif" almost as a habit. I > wonder if its the same thing? That statement is very common in P

Good or bad use of __repr__?

2009-02-03 Thread Alaric Haag
Hello, Is the use of __repr__ below a "really bad idea"? class Dimension(): def __init__(self, setp, name): ptr = setp.contents.dim while ptr.contents.name != name: ptr = ptr.contents.next self.name = ptr.contents.name self.size = ptr.contents.size

Re: Extracting file from zip archive in Python 2.6.1

2009-02-03 Thread Brandon Taylor
On Feb 3, 9:15 pm, rdmur...@bitdance.com wrote: > Quoth Brandon Taylor : > > > > > Ok, the first thing I needed to do was add: > > > from __future__ import with_statement at the beginning of my file > > > but: > > > with zip_file.open(zip_name + '/' + thumbnail_image) as source: > >                

Re: is python Object oriented??

2009-02-03 Thread Rhodri James
On Wed, 04 Feb 2009 01:13:32 -, Russ P. wrote: On Feb 3, 4:05 pm, "Rhodri James" wrote: I'm very much of the second opinion; it was Russ who did the sudden volte face and declared that it was trivial to circumvent. Whoa! Hold on a minute here. Your failure to understand a simple idea

Re: Cross platform compilation?

2009-02-03 Thread Miki
On Feb 2, 6:59 pm, "John Harper" wrote: > I am trying to build Python to use in an embedded system which uses a > ppc_440 CPU. The only information I've found is something written by > Klaus Reimer a few years ago, which was based on Python 2.2. So far I > seem to have successfully built Python it

Re: Passing environment variable to "subprocess" causes failure

2009-02-03 Thread Miki
> Code A: > > p = subprocess.Popen( ['python', '-V'], env={ 'PYTHONPATH': 'C:/ > Documents and Settings/David Gould/workspace/DgTools/Common/Trunk/ > Source' } ) > print p.communicate()[0] > print p.returncode > > Output: > > None > -1072365564 My *guess* is that since PATH is not in the environme

Re: Extracting file from zip archive in Python 2.6.1

2009-02-03 Thread rdmurray
Quoth Brandon Taylor : > Ok, the first thing I needed to do was add: > > from __future__ import with_statement at the beginning of my file > > but: > > with zip_file.open(zip_name + '/' + thumbnail_image) as source: > with open(os.path.join(thumbnail_path, > thumbnail_image),

Re: Passing environment variable to "subprocess" causes failure

2009-02-03 Thread rdmurray
Quoth MRAB : > davidgo...@davidgould.com wrote: > > I'm attempting to run subprocess and passing in an environment > > variable. When I do this the child process fails with an error. When I > > don't pass an environement variable it runs fine. > > > > BTW Running this code under Windows XP wit

Re: Import without executing module

2009-02-03 Thread Ray
Hi Lie, On Feb 3, 7:21 pm, Lie wrote: > On Feb 3, 1:37 pm, Ray wrote: > > > I'll enclose the top-level commands with the if statement above...its > > just a minor change, but it seems unavoidable. > > > Thanks again! > > > Ray > > If you really don't want the file to be changed, you could (dep

Re: Extracting file from zip archive in Python 2.6.1

2009-02-03 Thread MRAB
Brandon Taylor wrote: > On Feb 3, 1:16 pm, Brandon Taylor wrote: >> On Feb 3, 9:45 am, "Gabriel Genellina" wrote: >> >> >> >>> En Tue, 03 Feb 2009 05:31:24 -0200, Brandon Taylor >>> escribió: I'm having an issue specifying the path for extracting files from a .zip archive. In my metho

Re: Passing environment variable to "subprocess" causes failure

2009-02-03 Thread MRAB
davidgo...@davidgould.com wrote: > I'm attempting to run subprocess and passing in an environment > variable. When I do this the child process fails with an error. When I > don't pass an environement variable it runs fine. > > BTW Running this code under Windows XP with Python 2.6.1 > > Code A: >

Re: Extracting file from zip archive in Python 2.6.1

2009-02-03 Thread Brandon Taylor
On Feb 3, 1:16 pm, Brandon Taylor wrote: > On Feb 3, 9:45 am, "Gabriel Genellina" wrote: > > > > > En Tue, 03 Feb 2009 05:31:24 -0200, Brandon Taylor   > > escribió: > > > > I'm having an issue specifying the path for extracting files from > > > a .zip archive. In my method, I have: > > > > zip_

v 3.0 mpkg

2009-02-03 Thread John Forse
Does anyone know if Python v3.0 is available as an .mpkg installer for Mac 10.5.6. I have used 2.5 & updated to 2.6.1 this way, but can't find any reference to one on the Python.org download site. I've downloaded the Python 3.0 folder but can't follow how to install it without a .mpkg file

Passing environment variable to "subprocess" causes failure

2009-02-03 Thread davidgould
I'm attempting to run subprocess and passing in an environment variable. When I do this the child process fails with an error. When I don't pass an environement variable it runs fine. BTW Running this code under Windows XP with Python 2.6.1 Code A: p = subprocess.Popen( ['python', '-V'], env={ '

Re: is python Object oriented??

2009-02-03 Thread Russ P.
On Feb 3, 4:14 pm, "Rhodri James" wrote: > On Tue, 03 Feb 2009 05:37:57 -, Russ P. wrote: > > On Feb 2, 7:48 pm, "Rhodri James" wrote: > >> On Tue, 03 Feb 2009 02:16:01 -, Russ P. > >> wrote: > >> > Here we go again. If you have access to the source code (as you nearly > >> > always do

global variable confusion

2009-02-03 Thread rdmurray
"Robert D.M. Smith" wrote: > I have a question on global variables and how to use them. I have 2 files; > a.py & b.py > > # a.py - > > myvar = { 'test' : '123' } > > # --- > # b.py - > > from a import myvar > > def test(): > a.myvar = { 'blah' : '456' } > > # - > > If

Re: is python Object oriented??

2009-02-03 Thread Russ P.
On Feb 3, 4:05 pm, "Rhodri James" wrote: > On Tue, 03 Feb 2009 08:45:23 -, Steven D'Aprano > > wrote: > > I find this extreme position is rather incoherent. If I may paraphrase > > the argument as I see it: > > "Enforced data hiding is useless, because it is utterly trivial to bypass > > it,

Re: is python Object oriented??

2009-02-03 Thread David Cournapeau
On Wed, Feb 4, 2009 at 4:10 AM, wrote: > > What limitations? The only limitations I see are the ones associated > with opaque types (what you mentioned above). Opaque type are used in C++ as well, for data hiding - if private/public were that great for data hiding, the PIMPL idiom would not be

Re: function scope

2009-02-03 Thread Baris Demir
Tim Roberts wrote: Mike Kent wrote: On Feb 2, 6:40 pm, Baris Demir wrote: def simpleCut(d=dict()): temp=d for i in temp.keys(): if(temp[i] == ...) : temp[i]=new_value return temp You have been bitten by the shared default paramet

Re: is python Object oriented??

2009-02-03 Thread Steven D'Aprano
On Tue, 03 Feb 2009 10:20:28 +0100, Thorsten Kampe wrote: >> If a "private" keyword (or equivalent) were available, then the change >> would need to be made in only one location rather than at every >> occurrence off the identifier. That is much less error prone. Sure, you >> can argue (as I'm su

Re: is python Object oriented??

2009-02-03 Thread Rhodri James
On Tue, 03 Feb 2009 08:45:23 -, Steven D'Aprano wrote: I find this extreme position is rather incoherent. If I may paraphrase the argument as I see it: "Enforced data hiding is useless, because it is utterly trivial to bypass it, AND it's wicked, because it makes it unbelievably painfu

Re: function call overhead

2009-02-03 Thread Default User
The original message in this thread was posted with the intent to disrupt comp.lang.c by setting follow-ups there. Please either ignore this thread or change the distribution. Thanks, and sorry our troll has caused problems in your group. Brian -- http://mail.python.org/mailman/listinfo/python

Re: is python Object oriented??

2009-02-03 Thread Rhodri James
On Tue, 03 Feb 2009 05:37:57 -, Russ P. wrote: On Feb 2, 7:48 pm, "Rhodri James" wrote: On Tue, 03 Feb 2009 02:16:01 -, Russ P. wrote: > Here we go again. If you have access to the source code (as you nearly > always do with Python code), then "breaking the language-enforced data >

Re: Path question

2009-02-03 Thread Scott David Daniels
Geert Vancompernolle wrote: I have the following path construction: ... ./src/__init__.py /main.py /modules/__init__.py /application.py /ui/__init__.py /mainwindow/__init__.py /mainwindow.py I want to call ... 'MainWindow' in module 'mainwindow', f

Re: python libpcap equivalent

2009-02-03 Thread Gabriel
Steve Holden wrote: Unknown wrote: On 2009-02-03, Gabriel wrote: I need to write a software router [yes, software equivalent to hardware box that is routing packets .)]. It's a school work.. Question is: is possible write this kind of application in python? Hmm. It's going to be rather diff

Re: python libpcap equivalent

2009-02-03 Thread Gabriel
Steve Holden wrote: Unknown wrote: On 2009-02-03, Gabriel wrote: I need to write a software router [yes, software equivalent to hardware box that is routing packets .)]. It's a school work.. Question is: is possible write this kind of application in python? Hmm. It's going to be rather diff

Re: function call overhead

2009-02-03 Thread Christian Heimes
Eddie Watson schrieb: > What's the Python function call overhead like? Like 6, maybe 7 *scnr* -- http://mail.python.org/mailman/listinfo/python-list

Re: parse date/time from a log entry with only strftime (and no regexen)

2009-02-03 Thread andrew cooke
> > ValueError: unconverted data remains:  this is the remainder of the log   > > line > > that I do not care about you could catch the ValueError and split at the ':' in the .args attribute to find the extra data. you could then find the extra data in the original string, use the index to remove

function call overhead

2009-02-03 Thread Eddie Watson
What's the Python function call overhead like? Eddie Watson "CLC plonkers in a state of panic!!!" -- http://mail.python.org/mailman/listinfo/python-list

Re: Locating python

2009-02-03 Thread Steve Holden
Mike Driscoll wrote: > On Feb 3, 3:24 pm, David Sevilla wrote: >> Hi, >> >> Apologies if this was answered somewhere else, I have not found >> anything similar anywhere. >> >> I have SUSE 11.0 and I am trying to install a program called >> mnemosyne. I need easy_install for this, for which I insta

Re: Cross platform compilation?

2009-02-03 Thread Christian Heimes
John Harper schrieb: > I am trying to build Python to use in an embedded system which uses a > ppc_440 CPU. The only information I've found is something written by > Klaus Reimer a few years ago, which was based on Python 2.2. So far I > seem to have successfully built Python itself, but buildin

Re: Locating python

2009-02-03 Thread andrew cooke
sorry, you are using easy_install, so sudo easy_install instead of what i said a moment ago. the important thing is to use "sudo". andrew On Feb 3, 7:30 pm, andrew cooke wrote: > the exact details of what you are reporting seem a bit odd, but i have > seen a similar error because i ha

Re: Locating python

2009-02-03 Thread David Sevilla
On Feb 3, 11:30 pm, andrew cooke wrote: > the exact details of what you are reporting seem a bit odd, but i have > seen a similar error because i have tried to use my own account to > install the package, instead of using root. > > what i believe happens is that easy_install first tries to create

Re: python libpcap equivalent

2009-02-03 Thread Steve Holden
Unknown wrote: > On 2009-02-03, Gabriel wrote: > >> I need to write a software router [yes, software equivalent to >> hardware box that is routing packets .)]. It's a school work.. > >> Question is: is possible write this kind of application in >> python? > > Hmm. It's going to be rather diffi

Re: Locating python

2009-02-03 Thread David Sevilla
On Feb 3, 11:24 pm, Mike Driscoll wrote: > On Feb 3, 3:24 pm, David Sevilla wrote: > > > > > Hi, > > > Apologies if this was answered somewhere else, I have not found > > anything similar anywhere. > > > I have SUSE 11.0 and I am trying to install a program called > > mnemosyne. I need easy_insta

Re: python libpcap equivalent

2009-02-03 Thread Grant Edwards
On 2009-02-03, Gabriel wrote: > I need to write a software router [yes, software equivalent to > hardware box that is routing packets .)]. It's a school work.. > Question is: is possible write this kind of application in > python? Hmm. It's going to be rather difficult, but you might be able t

Re: Locating python

2009-02-03 Thread andrew cooke
the exact details of what you are reporting seem a bit odd, but i have seen a similar error because i have tried to use my own account to install the package, instead of using root. what i believe happens is that easy_install first tries to create the "test" file, and then checks it is there. if

Re: Reading text file with wierd file extension?

2009-02-03 Thread Steve Holden
John Machin wrote: > On Feb 3, 8:07 am, "Diez B. Roggisch" wrote: > >> This is written very slowly, so you can read it better: >> >> Please post the traceback. > > *AND* please post the text of the IOError message > > *AND* please do yourself a favour and move your files out of the root > direc

Re: Locating python

2009-02-03 Thread Mike Driscoll
On Feb 3, 3:24 pm, David Sevilla wrote: > Hi, > > Apologies if this was answered somewhere else, I have not found > anything similar anywhere. > > I have SUSE 11.0 and I am trying to install a program called > mnemosyne. I need easy_install for this, for which I installed > setuptools through yast

Re: JDBC in CPYTHON

2009-02-03 Thread Simon Brunning
2009/2/3 KMCB : > I was wondering if anyone was aware of a JDBC DBAPI module for > cpython. I have looked at PYJDBC and was interested in avoiding using > that extra level of ICE. I was thinking maybe someone would have back > ported zxJDBC from Jython. Or used that as a starting point, to > cre

Re: kinterbasdb + firebird 1.5 with python 2.6 ?

2009-02-03 Thread Christian Heimes
Laszlo Nagy schrieb: > Does anyone know how to get firebird 1.5 driver (kinterbasdb) for > FireBird 1.5? > > My problem: > >* python 2.6 already installed on a server >* there is a firebird 1.5 database on the same server >* I need to access it from python 2.6 > > Any thoughts? kint

Re: Reading text file with wierd file extension?

2009-02-03 Thread Lionel
On Feb 2, 2:07 pm, John Machin wrote: > On Feb 3, 8:43 am, Lionel wrote: > > >         ResourceFilepath = DataFilepath + ".src" > > Don't you mean ".rsc"? Good Grief!!! That's It!! I've been staring at it all day and I didn't see it. I'm sorry I've wasted everyone's time. This is bloody embaras

Re: Reading text file with wierd file extension?

2009-02-03 Thread John Machin
On Feb 3, 8:43 am, Lionel wrote: >         ResourceFilepath = DataFilepath + ".src" Don't you mean ".rsc"? -- http://mail.python.org/mailman/listinfo/python-list

Re: Reading text file with wierd file extension?

2009-02-03 Thread John Machin
On Feb 3, 8:07 am, "Diez B. Roggisch" wrote: > > This is written very slowly, so you can read it better: > > Please post the traceback. *AND* please post the text of the IOError message *AND* please do yourself a favour and move your files out of the root directory into a directory with a meani

Financial aid for PyCon 2009 is now available

2009-02-03 Thread ted
I'm happy to announce that the Python Software Foundation has allocated some funds to help people attend PyCon 2009! If you would like to come to PyCon but can't afford it, the PSF may be able to help you pay for registration, lodging/hotel costs and transportation (flight etc.). Please see http:

Cross platform compilation?

2009-02-03 Thread John Harper
I am trying to build Python to use in an embedded system which uses a ppc_440 CPU. The only information I've found is something written by Klaus Reimer a few years ago, which was based on Python 2.2. So far I seem to have successfully built Python itself, but building the extensions fails miser

Re: English-like Python

2009-02-03 Thread Aaron Brady
On Feb 3, 2:01 pm, "J. Cliff Dyer" wrote: > On Tue, 2009-02-03 at 08:33 -0700, Joe Strout wrote: > > J. Cliff Dyer wrote: > > > > But what if your language allows functions to be used as first class > > > objects?  (Mine does :))   > > > > x = Beep > > > > Does that assign the name x to the Beep o

Re: what IDE is the best to write python?

2009-02-03 Thread Aahz
In article , Catherine Heathcote wrote: >Tim Rowe wrote: >> 2009/2/3 Jervis Whitley : >>> >>> real programmers use ed. >> >> Ed? Eee, tha' were lucky. We had to make holes in Hollerith cards wi' >> our bare teeth... > >You had teeth!?! > >Oh and hi, I shall be a new face in the crowd ;) Welcom

Re: x64 speed

2009-02-03 Thread Martin v. Löwis
>> I follow David's guess that Linux does better IO than Windows (not >> knowing anything about the benchmark, of course) >> > I originally thought it must be the vmware host stuff offloading IO to > the second core, but watching with sysinternals didn't show a lot of > extra stuff going on with th

Re: Python Global State

2009-02-03 Thread Gabriel Genellina
En Tue, 03 Feb 2009 17:10:18 -0200, er escribió: It might be nice if Python could provide a global dictionary, perhaps _G{}, where you can throw things. This is actually the solution provided by the Lua scripting language. Thanks for the global_ module solution, I was just making sure t

Re: x64 speed

2009-02-03 Thread Robin Becker
Martin v. Löwis wrote: . I follow David's guess that Linux does better IO than Windows (not knowing anything about the benchmark, of course) Regards, Martin I originally thought it must be the vmware host stuff offloading IO to the second core, but watching with sysinternals didn't show a

Locating python

2009-02-03 Thread David Sevilla
Hi, Apologies if this was answered somewhere else, I have not found anything similar anywhere. I have SUSE 11.0 and I am trying to install a program called mnemosyne. I need easy_install for this, for which I installed setuptools through yast2. But when I run easy_install for the final installati

Re: x64 speed

2009-02-03 Thread Robin Becker
Tim Daneliuk wrote: .. Which vmware product? vmware server -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: x64 speed

2009-02-03 Thread Robin Becker
Paul Rubin wrote: Robin Becker writes: so it looks like the vmware emulated system is much faster. Is it the x64 working faster at its design sizes or perhaps the compiler or could it be the vmware system caching all writes etc etc? For the red hat x64 build the only special configuration was t

Re: x64 speed

2009-02-03 Thread Robin Becker
Diez B. Roggisch wrote: Robin Becker schrieb: Whilst doing some portability testing with reportlab I noticed a strange speedup for our unittest suite with python2.5 host win32 xp3 unittest time=42.2 seconds vmware RHEL x64 unittest time=30.9 seconds so it looks like the vmware emulated syste

Re: x64 speed

2009-02-03 Thread Paul Rubin
Robin Becker writes: > so it looks like the vmware emulated system is much faster. Is it the > x64 working faster at its design sizes or perhaps the compiler or > could it be the vmware system caching all writes etc etc? For the red > hat x64 build the only special configuration was to use ucs2 Y

Re: kinterbasdb + firebird 1.5 with python 2.6 ?

2009-02-03 Thread imageguy
On Feb 3, 2:32 pm, Laszlo Nagy wrote: > Does anyone know how to get firebird 1.5 driver (kinterbasdb) for > FireBird 1.5? > > My problem: > >     * python 2.6 already installed on a server >     * there is a firebird 1.5 database on the same server >     * I need to access it from python 2.6 > > A

Re: is python Object oriented??

2009-02-03 Thread Gabriel Genellina
En Mon, 02 Feb 2009 19:51:11 -0200, Russ P. escribió: Suppose a library developer (or a module developer on a large team) uses leading underscores. Now suppose that, for whatever reason (pressure from the users, perhaps), the library developer decides to change a "private" attribute to public

Re: English-like Python

2009-02-03 Thread Steve Holden
J. Cliff Dyer wrote: > On Tue, 2009-02-03 at 08:33 -0700, Joe Strout wrote: >> J. Cliff Dyer wrote: >> >>> But what if your language allows functions to be used as first class >>> objects? (Mine does :)) >>> >>> x = Beep >>> >>> Does that assign the name x to the Beep object or does it assign th

python libpcap equivalent

2009-02-03 Thread Gabriel
Hello I need to write a software router [yes, software equivalent to a hardware box that is routing packets .)]. It's a school work.. Question is: is possible write this kind of application in python? and if it's, what module should i use? I tried search for some libpcap equivalent in python a

Re: what IDE is the best to write python?

2009-02-03 Thread Istvan Albert
On Feb 2, 12:06 pm, Thorsten Kampe wrote: > > It makes my eyes bleed > > Ever tried sunglasses? Sunglasses for bleeding eyes? For pete's sake try bandages. -- http://mail.python.org/mailman/listinfo/python-list

Re: x64 speed

2009-02-03 Thread Diez B. Roggisch
Robin Becker schrieb: Whilst doing some portability testing with reportlab I noticed a strange speedup for our unittest suite with python2.5 host win32 xp3 unittest time=42.2 seconds vmware RHEL x64 unittest time=30.9 seconds so it looks like the vmware emulated system is much faster. Is it t

Re: Safe to get address of va_list function parameter?

2009-02-03 Thread Gabriel Genellina
En Tue, 03 Feb 2009 15:31:21 -0200, Keith escribió: Is it safe to get the address of a va_list function parameter? Wrong group... -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: what IDE is the best to write python?

2009-02-03 Thread Robert Kern
On 2009-02-03 12:19, Catherine Heathcote wrote: Tim Rowe wrote: 2009/2/3 Jervis Whitley : real programmers use ed. Ed? Eee, tha' were lucky. We had to make holes in Hollerith cards wi' our bare teeth... You had teeth!?! Oh and hi, I shall be a new face in the crowd ;) Welcome! -- Rober

Re: Window (tkinter) with no decoration

2009-02-03 Thread Djames Suhanko
Exactly ! I thank you very much, Matimus !!! >> I would like to do a menu bar like kicker or windows menu. is possible? > Maybe you are looking for this? > rt = Tkinter.Tk() > rt.overrideredirect(True) -- Djames Suhanko LinuxUser 158.760 -- http://mail.python.org/mailman/listinfo/python-list

Re: Window (tkinter) with no decoration

2009-02-03 Thread Matimus
On Feb 3, 8:58 am, Djames Suhanko wrote: > Hello, programmers! >  I would like to do a menu bar like kicker or windows menu. is possible? > > -- > Djames Suhanko > LinuxUser 158.760 Maybe you are looking for this? import Tkinter rt = Tkinter.Tk() rt.overrideredirect(True) # do stuff Matt --

Re: English-like Python

2009-02-03 Thread J. Cliff Dyer
On Tue, 2009-02-03 at 08:33 -0700, Joe Strout wrote: > J. Cliff Dyer wrote: > > > But what if your language allows functions to be used as first class > > objects? (Mine does :)) > > > > x = Beep > > > > Does that assign the name x to the Beep object or does it assign the > > result of a Bee

Re: x64 speed

2009-02-03 Thread Martin v. Löwis
Robin Becker wrote: > Whilst doing some portability testing with reportlab I noticed a strange > speedup for our unittest suite with python2.5 > > host win32 xp3 unittest time=42.2 seconds > vmware RHEL x64 unittest time=30.9 seconds > > so it looks like the vmware emulated system is much faster

Re: what IDE is the best to write python?

2009-02-03 Thread Steve Holden
Tim Rowe wrote: > 2009/2/3 Jervis Whitley : > >> real programmers use ed. > > Ed? Eee, tha' were lucky. We had to make holes in Hollerith cards wi' > our bare teeth... > Cards? Teeth? You were lucky! We 'ad ter stare at t'paper tape until the intensity of our gaze burned holes in it. If yer got

kinterbasdb + firebird 1.5 with python 2.6 ?

2009-02-03 Thread Laszlo Nagy
Does anyone know how to get firebird 1.5 driver (kinterbasdb) for FireBird 1.5? My problem: * python 2.6 already installed on a server * there is a firebird 1.5 database on the same server * I need to access it from python 2.6 Any thoughts? -- http://mail.python.org/mailman/listinfo

Re: is python Object oriented??

2009-02-03 Thread rdmurray
Quoth David Cournapeau : > On Wed, Feb 4, 2009 at 2:36 AM, wrote: > > > > Pretty much, unless maybe the code documents what you're not supposed > > to access: > > But that's my point: that's just not true for many packages I have > used - some packages do follow the _ convention, some don't. For

Re: Path question

2009-02-03 Thread Diez B. Roggisch
Geert Vancompernolle schrieb: Hi, I have the following path construction: ./src/__init__.py /main.py /modules/__init__.py /application.py /ui/__init__.py /mainwindow/__init__.py /mainwindow.py Now I want to call the method 'MainWindow' in the mo

Re: Extracting file from zip archive in Python 2.6.1

2009-02-03 Thread Brandon Taylor
On Feb 3, 9:45 am, "Gabriel Genellina" wrote: > En Tue, 03 Feb 2009 05:31:24 -0200, Brandon Taylor   > escribió: > > > I'm having an issue specifying the path for extracting files from > > a .zip archive. In my method, I have: > > > zip_file.extract(zip_name + '/' + thumbnail_image, thumbnail_pat

Resolver One 1.4 beta - with IronPython 2.0 and numpy

2009-02-03 Thread Giles Thomas
Hi all, Version 1.4 of Resolver One, our Pythonic spreadsheet, uses the Ironclad project to provide (alpha-level) support for numpy in a IronPython application. You can put numpy matrices in spreadsheet cells and manipulate them like any other data - there's a 4-minute screencast here:

Re: is python Object oriented??

2009-02-03 Thread thmpsn . m . k
On Feb 3, 12:05 pm, David Cournapeau wrote: > On Wed, Feb 4, 2009 at 2:36 AM,   wrote: > > On Feb 3, 1:14 am, David Cournapeau wrote: > >> On Tue, Feb 3, 2009 at 2:37 PM, Russ P. wrote: > >> > On Feb 2, 7:48 pm, "Rhodri James" wrote: > >> >> On Tue, 03 Feb 2009 02:16:01 -, Russ P. > >> >>

Re: Python Global State

2009-02-03 Thread er
That was my hack for one other app, but I did it because I'd only been studying Python for a month or two. Glad to see others did it once as well, but that we all wised up. =P It might be nice if Python could provide a global dictionary, perhaps _G{}, where you can throw things. This is actuall

Path question

2009-02-03 Thread Geert Vancompernolle
Hi, I have the following path construction: ./src/__init__.py /main.py /modules/__init__.py /application.py /ui/__init__.py /mainwindow/__init__.py /mainwindow.py Now I want to call the method 'MainWindow' in the module 'mainwindow', from the mo

Re: How to call python from a foreign language thread (C++)

2009-02-03 Thread Philip Semanchuk
On Feb 3, 2009, at 12:51 PM, Victor Lin wrote: It seems that my program can't call to Python's function from thread directly, because there is Global Interpreter Lock. The python's GIL is so complex, I have no idea how it works. I'm sorry, what I can do is to ask. My question is. What should I

Re: what IDE is the best to write python?

2009-02-03 Thread rdmurray
Quoth a...@pythoncraft.com (Aahz): > In article , > Thorsten Kampe wrote: > >* Aahz (2 Feb 2009 09:29:43 -0800) > >> In article , > >> Thorsten Kampe wrote: > >>>* Aahz (2 Feb 2009 06:30:00 -0800) > In article <874ozd3cr3@benfinney.id.au>, > Ben Finney wrote: > >a...@pythonc

JDBC in CPYTHON

2009-02-03 Thread KMCB
I was wondering if anyone was aware of a JDBC DBAPI module for cpython. I have looked at PYJDBC and was interested in avoiding using that extra level of ICE. I was thinking maybe someone would have back ported zxJDBC from Jython. Or used that as a starting point, to create a module and had a C b

Re: Python Global State

2009-02-03 Thread rdmurray
Quoth MRAB : > er wrote: > > Simple question, I think: Is there a way to make a completely global > > variable across a slew of modules? If not, what is the canonical > > way to keep a global state? The purpose of this is to try to prevent > > circular module imports, which just sort of seems nas

Re: what IDE is the best to write python?

2009-02-03 Thread Catherine Heathcote
Tim Rowe wrote: 2009/2/3 Jervis Whitley : real programmers use ed. Ed? Eee, tha' were lucky. We had to make holes in Hollerith cards wi' our bare teeth... You had teeth!?! Oh and hi, I shall be a new face in the crowd ;) -- http://mail.python.org/mailman/listinfo/python-list

Re: what IDE is the best to write python?

2009-02-03 Thread Tim Rowe
2009/2/3 Jervis Whitley : > real programmers use ed. Ed? Eee, tha' were lucky. We had to make holes in Hollerith cards wi' our bare teeth... -- Tim Rowe -- http://mail.python.org/mailman/listinfo/python-list

Re: x64 speed

2009-02-03 Thread David Cournapeau
On Wed, Feb 4, 2009 at 2:36 AM, Robin Becker wrote: > Whilst doing some portability testing with reportlab I noticed a strange > speedup for our unittest suite with python2.5 > > host win32 xp3 unittest time=42.2 seconds > vmware RHEL x64 unittest time=30.9 seconds > > so it looks like the vmware

  1   2   >