Re: Regular Expression pattern group

2006-06-15 Thread Ant
> I am a fussy learner. Could someone explain to me why the following > inconsistency exists between methods? How can it be justified if it is > considered all right? It's the standard way of accessing groups from regex matches in pretty much all languages that support them. In most modern langua

Re: What is Expressiveness in a Computer Language

2006-06-15 Thread Pascal Costanza
Neelakantan Krishnaswami wrote: > In article <[EMAIL PROTECTED]>, Pascal Costanza wrote: >> Torben Ægidius Mogensen wrote: >> >>> On a similar note, is a statically typed langauge more or less >>> expressive than a dynamically typed language? Some would say less, as >>> you can write programs in a

Re: Trace KeyboardInterrupt exception?

2006-06-15 Thread [EMAIL PROTECTED]
if you want to interrupt the code to find out where it is, you can instead connect to it in gdb and get the python traceback of each thread. if you're interested I'll post the necesary gdb-macro for that (didn't put it on the net yet) -- http://mail.python.org/mailman/listinfo/python-list

Re: nested functions

2006-06-15 Thread Duncan Booth
Georg Brandl wrote: > That's right. However, if the outer function is only called a few times > and the nested function is called a lot, the locals lookup for the > function name is theoretically faster than the globals lookup. Also, > in methods you can use closures, so you don't have to pass, fo

Re: nested functions

2006-06-15 Thread Fredrik Lundh
George Sakkis wrote: > It shouldn't come as a surprise if it turns out to be slower, since the > nested function is redefined every time the outer is called. except that it isn't, really: all that happens is that a new function object is created from prebuilt parts, and assigned to a local varia

Re: popen and password entry

2006-06-15 Thread Ganesan Rajagopal
> Sinan Nalkaya <[EMAIL PROTECTED]> writes: > hi, > i have found expect method for this purpose. i`m trying to use pexpect but > following code gives me an something strange as a result. When working with pexpect, logging the entire conversation is extremely useful fro debugging > import pex

Re: Correctly reading stdout/stderr from subprocess

2006-06-15 Thread Michele Simionato
Maric Michaud wrote: I would consider avoiding threads via Twisted utils.getProcessOutput: http://twistedmatrix.com/projects/core/documentation/howto/process.html#auto6 Michele Simionato -- http://mail.python.org/mailman/listinfo/python-list

Possible inaccuracy in Python 2.4 when using profiler calibration

2006-06-15 Thread Brian Quinlan
I have a misinformed theory that I'd like to share with the list. I believe that profiler calibration no longer makes sense in Python 2.4 because C functions are tracked and they have a different call overhead than Python functions (and calibration is done only using Python functions). Here is

Re: Correctly reading stdout/stderr from subprocess

2006-06-15 Thread Maric Michaud
Le Mercredi 14 Juin 2006 19:56, Christoph Haas a écrit : > > Quite interesting. I dived into /usr/lib/python2.4/subprocess.py and > found out that the "communicate()" method actually works similarly. I > might even prefer your version You should'nt IMO, the former 'run2' was quite short compared

Re: Numerics, NaNs, IEEE 754 and C99

2006-06-15 Thread Nick Maclaren
In article <[EMAIL PROTECTED]>, Grant Edwards <[EMAIL PROTECTED]> writes: |> |> I assume the "you" in that sentence refers to the IEEE FP |> standards group. I just try to follow the standard, but I have |> found that the behavior required by the IEEE standard is |> generally what works best for

Re: Correctly reading stdout/stderr from subprocess

2006-06-15 Thread Christoph Haas
On Thu, Jun 15, 2006 at 10:37:18AM +0200, Maric Michaud wrote: > Le Mercredi 14 Juin 2006 19:56, Christoph Haas a écrit : > > > > Quite interesting. I dived into /usr/lib/python2.4/subprocess.py and > > found out that the "communicate()" method actually works similarly. I > > might even prefer your

Re: popen and password entry

2006-06-15 Thread sinan nalkaya
thanks for reply, i add the line you suggested, thats what i get [EMAIL PROTECTED]:~/tmp/multi_server$ python deneme.py Password: qwe123 finished Exception pexpect.ExceptionPexpect: in > ignored does rsync may cause a problem while trying to fork-exec ssh ? > Add "child.logfile = sys.stdout" he

Re: Numerics, NaNs, IEEE 754 and C99

2006-06-15 Thread Christophe
Nick Maclaren a écrit : > Now, can you explain why 1/0 => -Inf wouldn't work as well? I.e. why > are ALL of your zeroes, INCLUDING those that arise from subtractions, > are known to be positive? I would say that the most common reason people assume 1/0 = Inf is probably because they do not make

Re: __cmp__ method

2006-06-15 Thread bruno at modulix
JH wrote: > Hi > > Can anyone explain to me why the following codes do not work? I want to > try out using __cmp__ method to change the sorting order. I subclass > the str and override the __cmp__ method so the strings can be sorted by > the lengh. I expect the shortest string should be in the fro

Re: popen and password entry

2006-06-15 Thread Ganesan Rajagopal
> sinan nalkaya <[EMAIL PROTECTED]> writes: > thanks for reply, i add the line you suggested, thats what i get > [EMAIL PROTECTED]:~/tmp/multi_server$ python deneme.py > Password: qwe123 > finished Ah, got it. You didn't wait for the rsync process to complete. Put the body of the "try:" in a

Re: Numerics, NaNs, IEEE 754 and C99

2006-06-15 Thread Nick Maclaren
In article <[EMAIL PROTECTED]>, Christophe <[EMAIL PROTECTED]> writes: |> |> > Now, can you explain why 1/0 => -Inf wouldn't work as well? I.e. why |> > are ALL of your zeroes, INCLUDING those that arise from subtractions, |> > are known to be positive? |> |> I would say that the most common rea

distutils `requires' tag

2006-06-15 Thread jimburton
Hi, I'm using python 2.3.5 and want to use distutils to distribute a module that depends on another - is there any way to specify that? Something like: setup(name='aimspy', ... requires = { 'jpype': '*'}, ) Thanks -- http://mail.python.org/mailman/listinfo/python-list

Python in Windows ng

2006-06-15 Thread veritas
Can anyone tell me of a good newsgroup for running/programming Python on Windows OS ? Thanks in advance . -- http://mail.python.org/mailman/listinfo/python-list

Which compiler will Python 2.5 / Windows (Intel) be built with?

2006-06-15 Thread meyer
Hi everyone, which compiler will Python 2.5 on Windows (Intel) be built with? I notice that Python 2.4 apparently has been built with the VS2003 toolkit compiler, and I read a post from Scott David Daniels [1] where he said that probably the VS2003 toolkit will be used for Python 2.5 again. Howeve

IntCtrl doesn't found? and arrays (newbie)

2006-06-15 Thread tontudelbot
Hello, I'm a newbie doing my first program. I'm doing the GUI of it and I need IntCtrl. I do: wx.IntCtrl(self, id=wx.NewId(), min=1, max=9) but Python says: AttributeError: 'module' object has no attribute 'IntCtrl' I tried doing this like I find somewhere else, but the result is the same..:

Re: nested functions

2006-06-15 Thread Duncan Booth
Fredrik Lundh wrote: > George Sakkis wrote: > >> It shouldn't come as a surprise if it turns out to be slower, since >> the nested function is redefined every time the outer is called. > > except that it isn't, really: all that happens is that a new function > object is created from prebuilt par

Re: Database read and write

2006-06-15 Thread ftc
Stan Cook a écrit : > Ok . I know I'm talking ancient history, but some of us are stuck > working with them. Is there anything for python which will ope, read, > and write to a Dbase 3 or 4 file? I really need your assistance on this > one. If you work on Windows, there are dbf odbc drivers

Re: __lt__ slowing the "in" operator even if not called

2006-06-15 Thread Maric Michaud
Le Mercredi 14 Juin 2006 22:57, Emanuele Aina a écrit : > Here you can see that even with only the __lt__ method it goes 10x > slower, but __lt__ is never called as "Foo" is not printed. No, that is not what it shows. The only thing it shows is that in operator is slow for lists, and as it iterate

Re: Python in Windows ng

2006-06-15 Thread Fredrik Lundh
"veritas" wrote: > Can anyone tell me of a good newsgroup for running/programming Python on > Windows OS ? as long as your posts include at least some Python, this is a perfectly appropriate forum. -- http://mail.python.org/mailman/listinfo/python-list

Re: memory leak problem with arrays

2006-06-15 Thread Fredrik Lundh
<[EMAIL PROTECTED]> wrote: > After doing this I see that iterative counters used to collect occurrences > and nested loop counters (ii & jj) as seen in the code example below > are the culprits with the worst ones over 1M: > > for ii in xrange(0,40): >for jj in x

Re: popen and password entry

2006-06-15 Thread sinan nalkaya
i put while True: before top of line, i=child.expect() . it worked, the file has gone but also it goes into loop with many EOF result, i tried the os.waitpid() function with child.pid but didnt help me. still couldn`t get the problem. thanks for help On Thursday 15 June 2006 12:04, Ganesan Raj

umask option for tarfile extract

2006-06-15 Thread Faik Uygur
Hello, While extracting a tar file, is there a way to give an umask option for creating the non-existing upper directories of the file within the tar archive. The default behaviour is to create the directories with 0777 permission bits. Code taken from tarfile.py of python version 2.4.3:

how you get Python files on websites?

2006-06-15 Thread azadi232
i downloaded Python 2.4 and did a bit of playing with it (iam using Windows platform) i have a few questions about Python 1. Can Python work with databases like MySql,Oracle? (i think it sounds silly) 2.the Python fi

Re: popen and password entry

2006-06-15 Thread sinan nalkaya
finally following code works, import pexpect, sys cmd = '/usr/bin/rsync config [EMAIL PROTECTED]:/tmp/.' #cmd = 'ssh [EMAIL PROTECTED]' child = pexpect.spawn(cmd) child.logfile = sys.stdout passwd = 'qwe123' i = 0 try: while i == 0: i = child.expect(['Password:','Password:

Re: how you get Python files on websites?

2006-06-15 Thread bruno at modulix
[EMAIL PROTECTED] wrote: (snip) > i have a few questions about Python > > 1. Can Python work with databases like MySql,Oracle? (i think it sounds > silly) http://www.google.com/search?q=%2Bpython+%2Bdb > 2.the Python files have .py extension and i used Windows Command > Prompt(DOS) to execute th

Re: __lt__ slowing the "in" operator even if not called

2006-06-15 Thread Emanuele Aina
Maric Michaud spiegò: > Le Mercredi 14 Juin 2006 22:57, Emanuele Aina a écrit : > > Here you can see that even with only the __lt__ method it goes 10x > > slower, but __lt__ is never called as "Foo" is not printed. > > No, that is not what it shows. The only thing it shows is that in operator is >

Re: __lt__ slowing the "in" operator even if not called

2006-06-15 Thread Maric Michaud
Le Jeudi 15 Juin 2006 14:14, Emanuele Aina a écrit : > But I hoped in a more exaustive answer: why python has to do this > lookup when the __lt__ method is not involved at all? It is not the case, that's what my program shows : in operator at the beginning of list: 173 in operator at the end of

Re: umask option for tarfile extract

2006-06-15 Thread Fredrik Lundh
Faik Uygur wrote: > While extracting a tar file, is there a way to give an umask option for > creating the non-existing upper directories of the file within the tar > archive. os.umask -- http://mail.python.org/mailman/listinfo/python-list

interactive programme, using pyTTS

2006-06-15 Thread carmel stanley
Hi i have been making an interactive programme,i have recently tried using "pyTTS" with it. This is a small ammount of it. import pyTTS tts = pyTTS.Create() tts.Rate = -3 tts.Speak('hi molly how old are you?.') s = raw_input ("how old are you?") if s=='3': print "thats great" else: print "tut

Re: memory leak problem with arrays

2006-06-15 Thread Carl Banks
sonjaa wrote: > I've created a cellular automata program in python with the numpy array > extensions. After each cycle/iteration the memory used to examine and > change the array as determined by the transition rules is never freed. Are you aware that slicing shares memory? For example, say you d

Re: nested functions

2006-06-15 Thread George Sakkis
Duncan Booth wrote: > Fredrik Lundh wrote: > > > George Sakkis wrote: > > > >> It shouldn't come as a surprise if it turns out to be slower, since > >> the nested function is redefined every time the outer is called. > > > > except that it isn't, really: all that happens is that a new function > >

Re: distutils `requires' tag

2006-06-15 Thread Diez B. Roggisch
jimburton schrieb: > Hi, I'm using python 2.3.5 and want to use distutils to distribute a > module that depends on another - is there any way to specify that? Use setuptools. It can do such a thing. Diez -- http://mail.python.org/mailman/listinfo/python-list

Re: umask option for tarfile extract

2006-06-15 Thread Faik Uygur
Perşembe 15 Haziran 2006 15:20 tarihinde, Fredrik Lundh şunları yazmıştı: > Faik Uygur wrote: > > While extracting a tar file, is there a way to give an umask option for > > creating the non-existing upper directories of the file within the tar > > archive. > > os.umask Nope, this will not help.

Re: __lt__ slowing the "in" operator even if not called

2006-06-15 Thread Emanuele Aina
Maric Michaud continuò: > > But I hoped in a more exaustive answer: why python has to do this > > lookup when the __lt__ method is not involved at all? > > It is not the case, that's what my program shows : > > > > in operator at the beginning of list: 173 > in operator at the end of list: 28249

Re: popen and password entry

2006-06-15 Thread Ganesan Rajagopal
> sinan nalkaya <[EMAIL PROTECTED]> writes: > child.expect(['Password:','Password: ',pexpect.EOF,pexpect.TIMEOUT]) > if i == 0: child.sendline(passwd) > elif i == 1:print 1 > elif i == 2:print 2 > elif i == 3:prin

python and HDF

2006-06-15 Thread Sheldon
Hi, I am using a HLHDF C wrapper to extract data from HDF (version 5) files. I can view the contents with IDL, for example, and read the attributes in the HDF file. There is one attribute that I extracted and only of part of the string was returned. In the HDF file, the attribute data is a name wh

Re: __lt__ slowing the "in" operator even if not called

2006-06-15 Thread Christophe
Emanuele Aina a écrit : > Maric Michaud continuò: > > >>>But I hoped in a more exaustive answer: why python has to do this >>>lookup when the __lt__ method is not involved at all? >> >>It is not the case, that's what my program shows : >> >> >> >>in operator at the beginning of list: 173 >>in ope

Re: Database read and write

2006-06-15 Thread Stan Cook
ftc wrote: > Stan Cook a écrit : >> Ok . I know I'm talking ancient history, but some of us are stuck >> working with them. Is there anything for python which will ope, read, >> and write to a Dbase 3 or 4 file? I really need your assistance on >> this one. > > If you work on Windows, there

Re: Newbie wxpython staticbitmap help please

2006-06-15 Thread janama
jean-michel bain-cornu wrote: > Why won't you write it yourself using the demo ? > It's clear and well documented. > Regards, > jm Hi, have been just trying for 5 hours with the timer demo in wx, i just havnt clicked with how to tie it in together, I know (think) i need the following features fr

Re: Newbie wxpython staticbitmap help please

2006-06-15 Thread jean-michel bain-cornu
> Thanks for any help with any of this I have no time at the moment. I'm going to try to give you an answer tomorrow morning (june 16) (if nobody did of course). See you jm -- http://mail.python.org/mailman/listinfo/python-list

Re: python and HDF

2006-06-15 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Sheldon wrote: > I am using a HLHDF C wrapper to extract data from HDF (version 5) > files. > I can view the contents with IDL, for example, and read the attributes > in the HDF file. There is one attribute that I extracted and only of > part of the string was returned. In

Re: Numerics, NaNs, IEEE 754 and C99

2006-06-15 Thread Grant Edwards
On 2006-06-15, Nick Maclaren <[EMAIL PROTECTED]> wrote: > > In article <[EMAIL PROTECTED]>, > Grant Edwards <[EMAIL PROTECTED]> writes: >|> >|> I assume the "you" in that sentence refers to the IEEE FP >|> standards group. I just try to follow the standard, but I have >|> found that the behavior

Re: Numerics, NaNs, IEEE 754 and C99

2006-06-15 Thread Grant Edwards
On 2006-06-15, Nick Maclaren <[EMAIL PROTECTED]> wrote: > Hence, the SAFE approach is to make the inverse of all zeros a > NaN. OK. You're right. I'm wrong about what my Python programs should do. In any case, that ship sailed. Maybe you can argue convincingly that theoretically your approa

Python is fun (useless social thread) ;-)

2006-06-15 Thread John Salerno
I have to say, I'm having a very enjoyable time learning and using Python. I spent a year playing around with C# and I feel like I learned/know less about it than I do about Python from just the past couple of months. Of course it's easier, but there's just something about it that makes me keep

Re: Numerics, NaNs, IEEE 754 and C99

2006-06-15 Thread [EMAIL PROTECTED]
Nick Maclaren wrote: > ... > Now, I should like to improve this, but there are two problems. The > first is political, and is whether it would be acceptable in Python to > restore the semantics that were standard up until about 1980 in the > numerical programming area. I.e. one where anything tha

Re: __lt__ slowing the "in" operator even if not called

2006-06-15 Thread Maric Michaud
Le Jeudi 15 Juin 2006 14:14, Emanuele Aina a écrit : > > Every classes that define the __eq__ operator will find quickly the > > elements if they are at the beginning of the list. > > If they are at the end, the in oprerator is slower in these classes > > because of the overhead of function calls (

Python and databases (was: Re: how you get Python files on websites?)

2006-06-15 Thread Ben Finney
[EMAIL PROTECTED] writes: > 1. Can Python work with databases like MySql,Oracle? (i think it > sounds silly) Not silly: http://www.python.org/topics/database/> -- \ "Money is always to be found when men are to be sent to the | `\ frontiers to be destroyed: when the object is t

GUI in Python using wxGlade

2006-06-15 Thread diffuser78
I recently tried a hand at wxGlade and was happy to see it designs a GUI for you in minutes. I am a newbie Python coder. I am not completely aware of GUI programming. I can easily make menubars etc but I am not too sure sure how to get more windows poppping to get more information. I mean when you

python-list@python.org Removed

2006-06-15 Thread Gary M. Gordon
We are sorry to see you leaving Gary M. Gordon, LLC! You will not receive news and information about Gary M. Gordon, LLC anymore. -- If you ever want to join Gary M. Gordon, LLC again, simply visit: http://www.garymgordon.com/easylis

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread Grant Edwards
On 2006-06-15, John Salerno <[EMAIL PROTECTED]> wrote: > So out of curiosity, I'm just wondering how everyone else came > to learn it. If you feel like responding, I'll ask my > questions for easy quoting: I didn't want to use Outlook to read my e-mail, so I needed a way to get them onto a non-MS

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread Michele Simionato
John Salerno wrote: > So out of curiosity, I'm just wondering how everyone else came to learn > it. I have already reported my first experiences with Python here: http://groups.google.com/group/comp.lang.python/browse_frm/thread/2afa89689e897039/3d77eba36a97751d?q=simionato+my+first+python&rnum=3#

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread Thomas Guettler
> Did you have to learn it for a job? No, I learned it because Perl was too dirty and Java to complicated. Now it is part of my daily job. > Also, how did you go about learning it? Programming, reading this newsgroup, reading the python cookbook, reading python source files of the standard libr

Re: Numerics, NaNs, IEEE 754 and C99

2006-06-15 Thread Nick Maclaren
In article <[EMAIL PROTECTED]>, Grant Edwards <[EMAIL PROTECTED]> writes: |> On 2006-06-15, Nick Maclaren <[EMAIL PROTECTED]> wrote: |> |> > Hence, the SAFE approach is to make the inverse of all zeros a |> > NaN. |> |> OK. You're right. I'm wrong about what my Python programs |> should do. |>

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread Luis M. González
Thomas Guettler wrote: > There are some things in Python I don't know very well: Decorators and > generators. But somehow I don't think that I really need them. I think that I learn best when I have a problem and I'm trying to solve it. There are features that you don't know what they're for, and

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread Dave Opstad
In article <[EMAIL PROTECTED]>, John Salerno <[EMAIL PROTECTED]> wrote: I had retired from Apple in 2001 after 33 years in the business, feeling completely burned out. Didn't want to even look at another line of code. After resting and recuperating for a couple years, though, I picked up a boo

Re: GUI in Python using wxGlade

2006-06-15 Thread Steve Holden
[EMAIL PROTECTED] wrote: > I recently tried a hand at wxGlade and was happy to see it designs a > GUI for you in minutes. I am a newbie Python coder. I am not completely > aware of GUI programming. > > I can easily make menubars etc but I am not too sure sure how to get > more windows poppping to

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread Michele Simionato
Thomas Guettler wrote: > There are some things in Python I don't know very well: Decorators and > generators. Then you should come at EuroPython and attend at my talk! ;) But if you can't come to Switzerland, you can always look at http://www.phyast.pitt.edu/~micheles/python/decorator.zip http://

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread BartlebyScrivener
>> Did you have to learn it for a job? No. >> Or did you just like what you saw and decided to learn it for fun? Tried Perl first, but since I don't use it every day (sometimes don't do anything but RUN scripts for weeks on end if I'm in a big project), I would forget all of the Perl between lea

Re: Numerics, NaNs, IEEE 754 and C99

2006-06-15 Thread Nick Maclaren
In article <[EMAIL PROTECTED]>, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: |> |> As one of the few people on this group who will admit to programming |> before 1980, let alone doing numerical programming then (I presume |> writing code to process gigabytes of seismic data via Fast Fourier |

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread Jarek Zgoda
John Salerno napisał(a): > So out of curiosity, I'm just wondering how everyone else came to learn > it. If you feel like responding, I'll ask my questions for easy quoting: > > Did you have to learn it for a job? > > Or did you just like what you saw and decided to learn it for fun? > > Also,

Re: __lt__ slowing the "in" operator even if not called

2006-06-15 Thread andrewdalke
Emanuele Aina wrote: > I have some code which does a lot of "in" on lists containing objects > with no __eq__ defined. > > It all goes fast until I add the __lt__() method: then I have a > slowdown comparable to the one I get using the overridden __eq__, while > the __lt__ method is never called. >

Re: distutils `requires' tag

2006-06-15 Thread jimburton
Diez B. Roggisch wrote: > jimburton schrieb: > > Hi, I'm using python 2.3.5 and want to use distutils to distribute a > > module that depends on another - is there any way to specify that? > > Use setuptools. It can do such a thing. > > Diez Many thanks. -- http://mail.python.org/mailman/list

Re: Numerics, NaNs, IEEE 754 and C99

2006-06-15 Thread Grant Edwards
On 2006-06-15, Nick Maclaren <[EMAIL PROTECTED]> wrote: >|> Making Python incompatible with IEEE |> 754 is a bad idea. > > No, that is wrong, on many counts. > > Firstly, a FAR more common assumption is that integers wrap in twos' > complement - Python does not do that. It used to, and I sure wis

Re: Python in Windows ng

2006-06-15 Thread BartlebyScrivener
>> newsgroup for running/programming Python on Windows One of Python's many virtues is its portability. Separate newsgroups aren't needed. If you would like a nice summary of the potential glitches and gotchas using Python on Windows, try the Alan Gauld tutorial. It's a frames page, so I can't dee

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread Fredrik Lundh
Sybren Stuvel wrote: >> Are there still some things you feel you need to learn or improve? > > I'd love to be able to calll functions from Windows DLLs on x86 Linux. call functions *in* DLLs, you mean? http://docs.python.org/dev/lib/module-ctypes.html http://starship.python.net/crew/t

Re: Which compiler will Python 2.5 / Windows (Intel) be built with?

2006-06-15 Thread Scott David Daniels
[EMAIL PROTECTED] wrote: > Hi everyone, > > which compiler will Python 2.5 on Windows (Intel) be built with? Same as for Python 2.4 (the decision was taken a while ago). Intel sells a compatible compiler, I believe. -- --Scott David Daniels [EMAIL PROTECTED] -- http://mail.python.org/mailman/li

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread John Salerno
Michele Simionato wrote: > John Salerno wrote: >> So out of curiosity, I'm just wondering how everyone else came to learn >> it. > > I have already reported my first experiences with Python here: > http://groups.google.com/group/comp.lang.python/browse_frm/thread/2afa89689e897039/3d77eba36a97751d?

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread Scott David Daniels
BartlebyScrivener wrote: > I am not touching OO, classes, or GUIs until I understand > EVERYTHING else. Could take a few years. ;) You know how modules separate globals, right? That is, what you write in one module doesn't affect the names in another module. What classes (and hence OO) give

Re: Numerics, NaNs, IEEE 754 and C99

2006-06-15 Thread Nick Maclaren
In article <[EMAIL PROTECTED]>, Grant Edwards <[EMAIL PROTECTED]> writes: |> > |> > Firstly, a FAR more common assumption is that integers wrap in twos' |> > complement - Python does not do that. |> |> It used to, and I sure wish there was still a way to get that |> behavior back. Now I have to

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread John Salerno
BartlebyScrivener wrote: > I am not touching OO, classes, or GUIs until I understand EVERYTHING > else. Could take a few years. ;) LOL. That's exactly why I love Python, because you don't have to mess with any of that (explicitly) if you don't want to! Of course, here I am probably going way ov

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread John Salerno
Jarek Zgoda wrote: > And I still don't get this "web application" hype, and all these "web > frameworks" scare me, as I internally don't trust any magic. > Yeah, I dabbled with CGI, but I haven't seriously looked into anything like TurboGears yet. Of course, my problem is that I don't *need* to

Re: Numerics, NaNs, IEEE 754 and C99

2006-06-15 Thread Fredrik Lundh
Grant Edwards wrote: >> Firstly, a FAR more common assumption is that integers wrap in twos' >> complement - Python does not do that. > > It used to for integers ? what version was that ? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread Scott David Daniels
John Salerno wrote: When I was pursuing a PhD, I was working on query optimization in object-oriented databases. My thesis was that you could actually do query optimization without breaking encapsulation, and I had several tricks that I knew how to use to do that. I needed a language in the DB th

Re: Numerics, NaNs, IEEE 754 and C99

2006-06-15 Thread Grant Edwards
On 2006-06-15, Nick Maclaren <[EMAIL PROTECTED]> wrote: >|>> Firstly, a FAR more common assumption is that integers wrap in twos' >|>> complement - Python does not do that. >|> >|> It used to, and I sure wish there was still a way to get that >|> behavior back. Now I have to do all sorts of bitw

Re: GUI in Python using wxGlade

2006-06-15 Thread diffuser78
I am pasting my code. I created a small little GUI without any functionality as of yet. I wanted to ask few questions on that. [code] #!/usr/bin/env python # -*- coding: UTF-8 -*- # generated by wxGlade 0.4cvs on Thu Jun 15 10:51:12 2006 import wx class MyFrame(wx.Frame): def __init__(self,

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread Carl Trachte
Original Message Subject: Re: Python is fun (useless social thread) ;-) From:"Carl Trachte" <[EMAIL PROTECTED]> Date:Thu, June 15, 2006 8:21 am To: -- > > So o

Re: Python Help

2006-06-15 Thread Ten
On Wednesday 14 June 2006 16:57, Kathy Garcia wrote: > htmldiv style='background-color'DIV class=RTE > P BR FONT face="Courier New"To Whom it May Concern BR I have recently > downloaded Python 2.4.3 on Windows XP. The program does not recongnize when > I type in python " name 'python' is not define

Re: Numerics, NaNs, IEEE 754 and C99

2006-06-15 Thread Grant Edwards
On 2006-06-15, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Grant Edwards wrote: > >>> Firstly, a FAR more common assumption is that integers wrap in twos' >>> complement - Python does not do that. >> >> It used to > > for integers ? what version was that ? Am I remebering incorrectly? Didn't the

Re: Tiddlywiki type project in Python?

2006-06-15 Thread R. P. Dillon
I've been doing some work on a didiwiki-like program written in Python. Since Python is embedded in browsers, the didwiki approach make sense: write the server in your language of choice (didwiki uses C), and lay the necessary (simple) wiki code on top of the server. Roll the entire thing in

Re: Tiddlywiki type project in Python?

2006-06-15 Thread R. P. Dillon
That should have said "Since Python _isn't_ embedded in browsers"! Rick R. P. Dillon wrote: > I've been doing some work on a didiwiki-like program written in Python. > Since Python is embedded in browsers, the didwiki approach make sense: > write the server in your language of choice (didwiki

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread Jarek Zgoda
John Salerno napisał(a): >> And I still don't get this "web application" hype, and all these "web >> frameworks" scare me, as I internally don't trust any magic. > > Yeah, I dabbled with CGI, but I haven't seriously looked into anything > like TurboGears yet. Of course, my problem is that I don't

code folding, a unique problem to python?

2006-06-15 Thread John Salerno
Specifically, I'm using UltraEdit and perhaps there's no way perfect way to implement code folding with it, given how it uses its syntax highlighting file to do so (i.e., you have to specify an "Opening" and "Closing" character in which to enfold code, such as braces). But my question is more g

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread BartlebyScrivener
>> I'd like something a bit like a module, >> but I'd like to make several of them, >> and not have them interfere with each other." Thank you. I sense what you are saying, but at this point I'd be thinking, "Why not just make several modules?" :) I'll get to it. I've got my hands full just learni

Vancouver Python Workshop - Talk submission deadline

2006-06-15 Thread Brian Quinlan
What's New? === This is your last change to submit a talk for the Vancouver Python Workshop. Talks will be accepted until Friday June 16th. This is a great opportunity for you to share your project or interests with the Python community, so please take advantage of it! To submit a talk,

Re: Which compiler will Python 2.5 / Windows (Intel) be built with?

2006-06-15 Thread Jarek Zgoda
Scott David Daniels napisał(a): >> which compiler will Python 2.5 on Windows (Intel) be built with? > > Same as for Python 2.4 (the decision was taken a while ago). > Intel sells a compatible compiler, I believe. Sounds rather bad. Anyway, there should be some kits available from second-hand at

Re: code folding, a unique problem to python?

2006-06-15 Thread Tim Chase
> But my question is more general: is it possible to implement > code folding with Python given that it has no real block > delimiters? Or is this still a matter of which particular > editor/IDE you use? Yes, it is an editor thing. In Vim, it's as simple as :set foldmethod=indent and

Re: code folding, a unique problem to python?

2006-06-15 Thread Laszlo Nagy
John Salerno írta: > Specifically, I'm using UltraEdit and perhaps there's no way perfect way > to implement code folding with it, given how it uses its syntax > highlighting file to do so (i.e., you have to specify an "Opening" and > "Closing" character in which to enfold code, such as braces).

Re: code folding, a unique problem to python?

2006-06-15 Thread Fredrik Lundh
John Salerno wrote: > But my question is more general: is it possible to implement code > folding with Python given that it has no real block delimiters? Or is > this still a matter of which particular editor/IDE you use? since the Python syntax *has* real block delimiters (look up INDENT and

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread Diez B. Roggisch
Sybren Stuvel schrieb: > John Salerno enlightened us with: >> Did you have to learn it for a job? > > Nope, but I do most of my job in Python nowadays. I heard rumours > about it being a nice language. After my first look at it, I was > hooked! > >> Also, how did you go about learning it? > > I

Re: Which compiler will Python 2.5 / Windows (Intel) be built with?

2006-06-15 Thread nikie
[EMAIL PROTECTED] wrote: > Hi everyone, > > which compiler will Python 2.5 on Windows (Intel) be built with? I > notice that Python 2.4 apparently has been built with the VS2003 > toolkit compiler, and I read a post from Scott David Daniels [1] where > he said that probably the VS2003 toolkit will

Re: Which compiler will Python 2.5 / Windows (Intel) be built with?

2006-06-15 Thread Jarek Zgoda
nikie napisał(a): > If you want to *buy* VS 2003, you could still purchase a 1-year MSDN > Pro Subscription. The price difference isn't *that* big compared to a > single-user license of VS, and it automatically includes past VS > versions (everything from VC++ 6.0 and upwards, IIRC). This doesn't

Re: Numerics, NaNs, IEEE 754 and C99

2006-06-15 Thread Tim Peters
[Nick Maclaren] Firstly, a FAR more common assumption is that integers wrap in twos' complement - Python does not do that. [Grant Edwards] >>> It used to [Fredrik Lundh] >> for integers ? what version was that ? [Grant] > Am I remebering incorrectly? Mostly but not entirely. > Didn'

Re: GUI in Python using wxGlade

2006-06-15 Thread Steve Holden
[EMAIL PROTECTED] wrote: > I am pasting my code. I created a small little GUI without any > functionality as of yet. I wanted to ask few questions on that. > [lots of code ...] > > If I click on any of the items of the File Menu, say I click on "Open > config File", I want a new windows to come u

Re: code folding, a unique problem to python?

2006-06-15 Thread Diez B. Roggisch
John Salerno schrieb: > Specifically, I'm using UltraEdit and perhaps there's no way perfect way > to implement code folding with it, given how it uses its syntax > highlighting file to do so (i.e., you have to specify an "Opening" and > "Closing" character in which to enfold code, such as brace

Re: code folding, a unique problem to python?

2006-06-15 Thread John Salerno
Fredrik Lundh wrote: > John Salerno wrote: > >> But my question is more general: is it possible to implement code >> folding with Python given that it has no real block delimiters? Or is >> this still a matter of which particular editor/IDE you use? > > since the Python syntax *has* real block

  1   2   3   >