Re: Python and Flaming Thunder

2008-05-13 Thread Terry Reedy
"Dave Parker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] |> 5-10 times faster for what kind of code? | Mostly numerical analysis and CGI scripting. For numerical analysis, a fair comparison is Python with NumPy installed (or the older versions thereof). -- http://mail.pyth

Re: feedparser

2008-05-13 Thread Mike
On Tue, May 13, 2008 at 11:16 PM, <[EMAIL PROTECTED]> wrote: > On May 13, 6:06 am, "Gabriel Genellina" <[EMAIL PROTECTED]> > wrote: > > En Tue, 13 May 2008 07:30:44 -0300, Mike <[EMAIL PROTECTED]> escribió: > > > > > > > > > > > > > I'm trying to use the feedparser module (http://www.feedparser.or

Re: usage of python

2008-05-13 Thread Terry Reedy
"Rajarshi" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Hi, I teach an introductory programming course in Python. As part of | the introduction I'd like to highlight the usage of Python in | industry. The idea is to show that there are big players using Python | for a variety of

Re: help with file path exceeding 255 characters

2008-05-13 Thread John Machin
[EMAIL PROTECTED] wrote: I have trouble of obtaining the file size of a file because the fullpath exceeds 255 characters. I get this message with os.path.getsize(fullpath). fullpath = r"\\LOSSSFS002\NWE_TECHNICAL\05. UK\Schiehallion (204_25a) \Amos&Burke_P559\07. Technical (Subsurface)\06. Well

Re: question about python statements

2008-05-13 Thread Terry Reedy
"Ohad Frand" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Hi | Thanks a lot for your reply | I think the main uses for it is to study the language and to see that I | didn't miss anything else or that something is changed from one version | to another. The language manual lists

Re: Why can't I import this?

2008-05-13 Thread Diez B. Roggisch
Thumper's dad always told him: If you don't have anything nice/useful/ garbage to say, then don't say noth'ng at all. You mean it's not useful to tell you - to give more information on *what* acutally goes wrong? - in the meantime, to look harder for your mistake, because it's unlikely to

Learning Python and the Zen of the Mailing List

2008-05-13 Thread Dan Esch
I decided to learn Python. I decided to learn Python because I hate visual basic for applications and I can feel my brain shrink everytime I invoke that freaking macro editor. It's bad enough that Mwfdg [EMAIL PROTECTED] <[EMAIL PROTECTED]> had to eliminate the original simple keystroke macro to

Re: python: lexical or dynamic scope?

2008-05-13 Thread Carl Banks
On May 13, 3:27 pm, globalrev <[EMAIL PROTECTED]> wrote: > i cant figure outif python has lexical or general scope. > > it seems functions have lexical scope but with some restrictions and Yes. (You can't modify a local variable from an inner scope--this will change in Python 3.0.) > some non-fu

What is self.file = file for?

2008-05-13 Thread wxPythoner
Hello! I have trouble understanding something in this code snippet: class TextReader: """Print and number lines in a text file.""" def __init__(self, file): self.file = file . . . When would you do a thing like self.file = file ? I really don't find an

Purpose of operator package

2008-05-13 Thread Eric Anderson
I mainly work in other languages (mostly Ruby lately) but my text editor (Scribes) is python. With python being everywhere for dynamic scripting I thought I would read the source to learn the language better (I've gone through some basic tutorials but I always prefer to learn from real source). So

Re: help with file path exceeding 255 characters

2008-05-13 Thread yguan08
On May 13, 4:38 pm, John Machin <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > I have trouble of obtaining the file size of a file because the > > fullpath exceeds 255 characters. I get this message with > > os.path.getsize(fullpath). > > > fullpath = r"\\LOSSSFS002\NWE_TECHNICAL\05. UK\

Re: Python and Flaming Thunder

2008-05-13 Thread MRAB
On May 13, 6:32 pm, "D'Arcy J.M. Cain" <[EMAIL PROTECTED]> wrote: > On Tue, 13 May 2008 19:57:10 +0300 > "Andrii V. Mishkovskyi" <[EMAIL PROTECTED]> wrote: > > > Not everybody has grown in English-speaking community, you know. And > > knowing math quite good, I prefer writing "x = y" instead of "Se

Re: Why can't I import this?

2008-05-13 Thread John Henry
On May 13, 1:49 pm, Gary Herron <[EMAIL PROTECTED]> wrote: > John Henry wrote: > > Hi list, > > > I can't understand this. The following import statement works fine: > > > from PythonCard.templates.dialogs import runOptionsDialog > > > but this one fails: > > > from PythonCard.tools.codeEd

Re: What is self.file = file for?

2008-05-13 Thread Gary Herron
[EMAIL PROTECTED] wrote: Hello! I have trouble understanding something in this code snippet: class TextReader: """Print and number lines in a text file.""" def __init__(self, file): self.file = file . . . When would you do a thing like self.file = file

Re: usage of python

2008-05-13 Thread Christian Heimes
Rajarshi schrieb: > Hi, I teach an introductory programming course in Python. As part of > the introduction I'd like to highlight the usage of Python in > industry. The idea is to show that there are big players using Python > for a variety of tasks. Given that the students come from a variety of >

Re: What is self.file = file for?

2008-05-13 Thread Daniel Fetchinson
> I have trouble understanding something in this code snippet: > > class TextReader: > """Print and number lines in a text file.""" > def __init__(self, file): > self.file = file > . > . > . > > > When would you do a thing like self.file = file ? I really d

Re: do you fail at FizzBuzz? simple prog test

2008-05-13 Thread Mensanator
On May 13, 3:57 pm, John Machin <[EMAIL PROTECTED]> wrote: > Matthew Woodcraft wrote: > > Gabriel Genellina <[EMAIL PROTECTED]> wrote: > >> I would like to write a similar problem without this non-programming   > >> distracting issues (that is, a problem simple enough to be answered in a   > >> few

Re: help with file path exceeding 255 characters

2008-05-13 Thread John Machin
[EMAIL PROTECTED] wrote: On May 13, 4:38 pm, John Machin <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote: I have trouble of obtaining the file size of a file because the fullpath exceeds 255 characters. I get this message with At the DOS command level, you can do subst x: very\long\pat

Re: help with file path exceeding 255 characters

2008-05-13 Thread yguan08
On May 13, 5:31 pm, John Machin <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > On May 13, 4:38 pm, John Machin <[EMAIL PROTECTED]> wrote: > >> [EMAIL PROTECTED] wrote: > >>> I have trouble of obtaining the file size of a file because the > >>> fullpath exceeds 255 characters. I get this

Re: Purpose of operator package

2008-05-13 Thread Christian Heimes
Eric Anderson schrieb: > Seems like unnecessary code but obviously I know nothing about Python. Correct, the truth example isn't a good example. "if argv" is better. But you can write interesting things with the operator module. For example >>> import operator >>> def fac(x): ... return reduc

python/swig

2008-05-13 Thread gianluca
Hy, I need help indeed, about python/swig C wrapper. Exactly, I've built a python library from C library and it seem works. Unfortunatly, a gruop of function that requred pointer to pointer parmeters give me a exception like this: "TypeError: in method 'BestRules', argument 1 of type 'value_type

Re: What is self.file = file for?

2008-05-13 Thread afrobeard
If you are familiar to C++ or a similar language, the concept of the this pointer might not be alien to you. self in this context is basically a reference to the class itself. Hence self.file is creating a class member and setting to the input from file. As Gary pointed out, during initialization,

Re: Why can't I import this?

2008-05-13 Thread Gary Herron
John Henry wrote: On May 13, 1:49 pm, Gary Herron <[EMAIL PROTECTED]> wrote: John Henry wrote: Hi list, I can't understand this. The following import statement works fine: from PythonCard.templates.dialogs import runOptionsDialog but this one fails:

[ANN] PPyGui emulator

2008-05-13 Thread Stef Mientki
hello, I've ran the first real world application through PPyGui-emulator, so I think it's time to release the first version. There's lot of room for improvements and a more beautiful layout. PPyGui-emulator is build upon wxPython and released under BSD license. For remarks, screen shots and dow

Re: Python and Flaming Thunder

2008-05-13 Thread John Machin
D'Arcy J.M. Cain wrote: On Tue, 13 May 2008 19:57:10 +0300 "Andrii V. Mishkovskyi" <[EMAIL PROTECTED]> wrote: Not everybody has grown in English-speaking community, you know. And knowing math quite good, I prefer writing "x = y" instead of "Set x to y". OMG! It's COBOL. Wasn't there an abort

Re: built in list generator?

2008-05-13 Thread afrobeard
range(50,100,2) returns a list of numbers starting from 50 and less than 100 with a step size of 2. list() takes any iterable datatype and converts it into a list. e.g. list((1, 2, 3)) would return [1,2,3] & list([1, 2]) would return [1,2] In this case there is no point of calling range within l

Re: help with file path exceeding 255 characters

2008-05-13 Thread Roger Upole
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I have trouble of obtaining the file size of a file because the > fullpath exceeds 255 characters. I get this message with > os.path.getsize(fullpath). > > fullpath = r"\\LOSSSFS002\NWE_TECHNICAL\05. UK\Schiehallion (204_25a) > \Amos&Bur

Re: usage of python

2008-05-13 Thread afrobeard
If I were you, I'd show them actual code and how easy it is to get things done. Showing them how to implement a GTalk Bot[http:// code.google.com/p/pygtalkrobot/] or how to build simple arcade games with PyGame[http://www.pygame.org/news.html] would harbor much more interest in my opinion because i

Discount Price !! AF1 Jordan1-23 Sneakers, Chloe Coach UGG Handbags, GGG EDhardy T-shirts, Dior Sandals, ETC

2008-05-13 Thread chinasupply00
Discount Prada Handbags, Chanel Handbags, LV Handbags, (G U C C I)Handbags, D&G Handbags, Chloe Handbags, Hermes Handbags, Guess Handbags, Jimmy Choo Handbags, Bcbg Handbags. Supply Dior Wallet, Fendi Wallet, Coach Purse, Juicy Purse, Miumiu Purse Supply BOSS t-shirts, men's Lacoste T-shirts, G U

Re: python vs. grep

2008-05-13 Thread Ricardo Aráoz
Ville M. Vainio wrote: Ricardo Aráoz <[EMAIL PROTECTED]> writes: The easy/simple (too easy/simple?) way I see out of it is to read THE WHOLE file into memory and don't worry. But what if the file is too The easiest and simplest approach is often the best with Python. Keep forgetting that!

Re: Purpose of operator package

2008-05-13 Thread I V
On Wed, 14 May 2008 00:38:44 +0200, Christian Heimes wrote: > Eric Anderson schrieb: >> Seems like unnecessary code but obviously I know nothing about Python. > > Correct, the truth example isn't a good example. "if argv" is better. I hadn't heard of operator.truth before. Does it do anything dif

Re: Is using range() in for loops really Pythonic?

2008-05-13 Thread Ben Finney
John Nagle <[EMAIL PROTECTED]> writes: > Matt Nordhoff wrote: > > Well, you should use "xrange(10)" instead of "range(10)". > > CPython really is naive. That sort of thing should be a > compile-time optimization. Or even a case of the 'xrange' behaviour making 'range' obsolete. Which, as I p

Re: [off-topic] Usenet

2008-05-13 Thread Ben Finney
hdante <[EMAIL PROTECTED]> writes: > How can I access Usenet without using Google Groups ? (my ISP doesn't > have a NNTP server). Complain to your ISP; let them know they have a paying customer who isn't getting an essential internet service. (No, this likely won't change *your* situation, and y

Re: Why can't I import this?

2008-05-13 Thread Ben Finney
John Henry <[EMAIL PROTECTED]> writes: > On May 13, 1:18 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > > John Henry schrieb: > > > > > the class CodeEditor all exists and yet idle keep complaining > > > that it can't import from PythonCard.tools. > > > > How do these complaints *look* - we c

Re: built in list generator?

2008-05-13 Thread Ben Finney
"Diez B. Roggisch" <[EMAIL PROTECTED]> writes: > globalrev schrieb: > > if i want a list with all numbers between x and y is there a way to > > do this with an inbult function. > > > > i mean i can always construct a function to do this but is there > > soemthing like: > > > > nbrs = list(range(5

Re: asynchat sends data on async_chat.push and .push_with_producer

2008-05-13 Thread Giampaolo Rodola'
On 13 Mag, 23:25, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: > On Tue, 13 May 2008 14:05:43 -0700 (PDT), Giampaolo Rodola' <[EMAIL > PROTECTED]> wrote: > >On 13 Mag, 22:16, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: > >> On Tue, 13 May 2008 11:50:30 -0700 (PDT), Giampaolo Rodola' <[EMAIL

Re: threads problem in python

2008-05-13 Thread Astan Chee
Sorry, I mean functions not classes. Well, actually, one is a class and another is a function. So when the script (its a free game btw) runs, it instantiates the first class and somewhere in the middle of processing the first class, I need to call a function as a separate thread, I also want to

Re: Purpose of operator package

2008-05-13 Thread Carl Banks
On May 13, 6:09 pm, Eric Anderson <[EMAIL PROTECTED]> wrote: > I mainly work in other languages (mostly Ruby lately) but my text > editor (Scribes) is python. With python being everywhere for dynamic > scripting I thought I would read the source to learn the language > better (I've gone through som

Re: Purpose of operator package

2008-05-13 Thread Carl Banks
On May 13, 7:46 pm, Carl Banks <[EMAIL PROTECTED]> wrote: > On May 13, 6:09 pm, Eric Anderson <[EMAIL PROTECTED]> wrote: > > > I mainly work in other languages (mostly Ruby lately) but my text > > editor (Scribes) is python. With python being everywhere for dynamic > > scripting I thought I would r

list.__len__() or len(list)

2008-05-13 Thread Nikhil
which one is better? and why? __len__() is a built-in function of the list object and is updated along with the list object elements and will be useful incase the list is very huge. len() is an external method again, which may require the processing cycles again. Is it right? -- http://mai

Re: list.__len__() or len(list)

2008-05-13 Thread [EMAIL PROTECTED]
On May 13, 6:57 pm, Nikhil <[EMAIL PROTECTED]> wrote: > which one is better? and why? > > __len__() is a built-in function of the list object and is updated along > with the list object elements and will be useful incase the list is very > huge. > > len() is an external method again, which may requ

Re: downloading a link with javascript in it..

2008-05-13 Thread Jetus
On May 12, 4:06 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > Jetus schrieb: > > > > > I am able to download this page (enclosed code), but I then want to > > download a pdf file that I can view in a regular browser by clicking > > on the "view" link. I don't know how to automate this next pa

Re: list.__len__() or len(list)

2008-05-13 Thread Ian Kelly
On Tue, May 13, 2008 at 5:57 PM, Nikhil <[EMAIL PROTECTED]> wrote: > __len__() is a built-in function of the list object and is updated along > with the list object elements and will be useful incase the list is very > huge. > > len() is an external method again, which may require the processing

Re: Why can't I import this?

2008-05-13 Thread John Henry
On May 13, 3:42 pm, Gary Herron <[EMAIL PROTECTED]> wrote: > John Henry wrote: > > On May 13, 1:49 pm, Gary Herron <[EMAIL PROTECTED]> wrote: > > >> John Henry wrote: > > >>> Hi list, > > >>> I can't understand this. The following import statement works fine: > > >>> from PythonCard.templates.

Install Python MySQL db module?

2008-05-13 Thread Con
Hi, how does properly install the Python MySQL db module for Mac OS X? I was only able to locate the Win32 modules. Thanks in advance, -Conrad -- http://mail.python.org/mailman/listinfo/python-list

Re: downloading a link with javascript in it..

2008-05-13 Thread Jetus
On May 12, 6:59 pm, 7stud <[EMAIL PROTECTED]> wrote: > On May 12, 1:54 pm, Jetus <[EMAIL PROTECTED]> wrote: > > > I am able to download this page (enclosed code), but I then want to > > download a pdf file that I can view in a regular browser by clicking > > on the "view" link. I don't know how to

Re: I'm stuck in Python!

2008-05-13 Thread castironpi
On May 13, 2:41 pm, "inhahe" <[EMAIL PROTECTED]> wrote: > "George Sakkis" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > On May 13, 9:46 am, Sanoski <[EMAIL PROTECTED]> wrote: > > >> Any programming that helps you solve a problem is fun and > >> recreational. At least, that's

Re: Install Python MySQL db module?

2008-05-13 Thread [EMAIL PROTECTED]
On May 13, 7:29 pm, Con <[EMAIL PROTECTED]> wrote: > Hi, how does properly install the Python MySQL db module for Mac OS > X?  I was only able to locate the Win32 modules. > > Thanks in advance, > > -Conrad I think the easiest way to would be to use macports. -- http://mail.python.org/mailman/list

Re: asynchat sends data on async_chat.push and .push_with_producer

2008-05-13 Thread Jean-Paul Calderone
On Tue, 13 May 2008 16:44:11 -0700 (PDT), Giampaolo Rodola' <[EMAIL PROTECTED]> wrote: [snip] To support scheduling calls, you just have to know when the next call is going to happen. Then, you can wake up at exactly that time. This is what Twisted does, even for select reactor. ;) Yes bu

Re: asynchat sends data on async_chat.push and .push_with_producer

2008-05-13 Thread Jean-Paul Calderone
On Tue, 13 May 2008 20:56:03 -0400, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: On Tue, 13 May 2008 16:44:11 -0700 (PDT), Giampaolo Rodola' <[EMAIL PROTECTED]> wrote: [snip] To support scheduling calls, you just have to know when the next call is going to happen. Then, you can wake up at

Re: Install Python MySQL db module?

2008-05-13 Thread Rick Dooling
On May 13, 7:29 pm, Con <[EMAIL PROTECTED]> wrote: > Hi, how does properly install the Python MySQL db module for Mac OS > X? I was only able to locate the Win32 modules. > > Thanks in advance, > > -Conrad I tried this a couple of weeks ago using macports and had problems. See, for example: htt

Re: Accepting text input

2008-05-13 Thread Collin
Gabriel Genellina wrote: En Mon, 12 May 2008 01:54:28 -0300, Collin <[EMAIL PROTECTED]> escribió: Collin wrote: I'm pretty new to Python, but this has really bugged me. I can't find a way around it. The problem is that, when I use raw_input("sajfasjdf") whatever, or input("dsjfadsjfa"), you

Re: list.__len__() or len(list)

2008-05-13 Thread Christian Heimes
Ian Kelly schrieb: > The purpose of obj.__len__() is to implement len(obj), which simply > calls it. So obj.__len__() may be faster, but only marginally. The > reason to prefer len(obj) is that if you inadvertently pass an object > that does not implement __len__, you get the more appropriate > T

libxml2 Installation for Python 2.4

2008-05-13 Thread Alok Kumar
Hi, Can someone point me how to install libxml2 for python. It works fine on my Redhat 4.0 linux Box, but when I am trying to run my script on ARM target , it throws import error for libxml2. I am using xpath in my script and in header trying to import libxml2. Thanks in advance. Alok -- http://

Re: Desktop notifications on Windows

2008-05-13 Thread WindPower
On Apr 26, 11:42 pm, Mike Driscoll <[EMAIL PROTECTED]> wrote: > On Apr 26, 4:08 pm, WindPower <[EMAIL PROTECTED]> wrote: > > > > > On Apr 26, 4:52 am, David <[EMAIL PROTECTED]> wrote: > > > > On Sat, Apr 26, 2008 at 4:41 AM, <[EMAIL PROTECTED]> wrote: > > > > I'm looking for a way to implement des

Re: Install Python MySQL db module?

2008-05-13 Thread Graham Dumpleton
On May 14, 10:58 am, Rick Dooling <[EMAIL PROTECTED]> wrote: > On May 13, 7:29 pm, Con <[EMAIL PROTECTED]> wrote: > > > Hi, how does properly install the Python MySQL db module for Mac OS > > X?  I was only able to locate the Win32 modules. > > > Thanks in advance, > > > -Conrad > > I tried this a

Re: asynchat sends data on async_chat.push and .push_with_producer

2008-05-13 Thread Giampaolo Rodola'
On 14 Mag, 02:56, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: > Why?  Isn't this why subtraction exists?  If there is a call scheduled to > happen at T1 and the current time is T2, then I know that after (T1 - T2) > elapses, it will be time to run the call.  Why do I have to do any checks > at

Re: asynchat sends data on async_chat.push and .push_with_producer

2008-05-13 Thread Josiah Carlson
On May 13, 9:35 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > In a pure world, the only writing that is done would be within the > > handle_send() callbacks within the select loop. Then again, in a > > perfect world, calling readable() and writable() would have no strange > > side affects

2004 example, passing function error

2008-05-13 Thread globalrev
http://linuxgazette.net/109/pramode.html >>> >>>def sqr(x): return x*x ... >>>def cube(x): return x*x*x ... >>>sqr >>>a = [sqr, cube] >>>a[0](2) >>>def compose(f, g): return f(g(x)) ... >>>compose(sqr, cube, 2) 64 >>> but i get: >>> compose(sqr, cube, 2) Traceback (most recent call last): F

Re: 2004 example, passing function error

2008-05-13 Thread Carsten Haese
globalrev wrote: but it looks like he just copied his shell...has there been a change since 2004 inr egards to how you can pass functions as arguments to functions?? It looks like it's copy/pasted from a shell, but it's not. No past or present Python interpreter could produce an interactive s

Re: where to get McMillan Installer?

2008-05-13 Thread gsal
On May 13, 1:59 pm, Kevin Walzer <[EMAIL PROTECTED]> wrote: > gsal wrote: > > There does not seem to be a valid url for the Installer, anywhere. > > Could anyone provide me with a copy of it? > > > many thanks. > > http://pyinstaller.python-hosting.com/ > > -- > Kevin Walzer > Code by Kevinhttp://w

portable way to tell what Popen will call

2008-05-13 Thread Brendan Miller
I need a portable way to tell what subprocess.Popen will call. For instance on unix systems, Popen will work for files flagged with the executable bit, whereas on windows Popen will work on files ending the in .exe extension (and I don't think anything else). Is there a portable way to check what

Re: Python and Flaming Thunder

2008-05-13 Thread Janzert
D'Arcy J.M. Cain wrote: On Tue, 13 May 2008 19:57:10 +0300 "Andrii V. Mishkovskyi" <[EMAIL PROTECTED]> wrote: Not everybody has grown in English-speaking community, you know. And knowing math quite good, I prefer writing "x = y" instead of "Set x to y". OMG! It's COBOL. Wasn't there an abort

Re: 2004 example, passing function error

2008-05-13 Thread alex23
On May 14, 11:40 am, globalrev <[EMAIL PROTECTED]> wrote: > so just a mistake on his part? but it looks like he just copied his > shell...has there been a change since 2004 inr egards to how you can > pass functions as arguments to functions?? Adding the value argument (x) to the compose function

Re: I'm stuck in Python!

2008-05-13 Thread alex23
On May 14, 5:41 am, "inhahe" <[EMAIL PROTECTED]> wrote: > "George Sakkis" <[EMAIL PROTECTED]> wrote in message > > You must be new here. It is an AS (Artificial Stupidity) trolling bot, > > you can safely ignore its posts. > > How does it generate text? My guess is by inhaling a lot of intoxicants

Re: Accepting text input

2008-05-13 Thread Kam-Hung Soh
On Wed, 14 May 2008 11:02:36 +1000, Collin <[EMAIL PROTECTED]> wrote: Gabriel Genellina wrote: En Mon, 12 May 2008 01:54:28 -0300, Collin <[EMAIL PROTECTED]> escribió: Collin wrote: I'm pretty new to Python, but this has really bugged me. I can't find a way around it. The problem is th

Re: Python and Flaming Thunder

2008-05-13 Thread miller . paul . w
On May 13, 10:34 am, hdante <[EMAIL PROTECTED]> wrote: > The "Flaming Thunder" looks promising, but without being free > software, it's unlikely it will create a large developer community, > specially considering both free general purpose and scientific > programming languages. I'll agree that s

Python isn't English -- and that's a good thing!

2008-05-13 Thread miller . paul . w
On May 13, 6:14 pm, MRAB <[EMAIL PROTECTED]> wrote: > On May 13, 6:32 pm, "D'Arcy J.M. Cain" <[EMAIL PROTECTED]> wrote: > I once had to do a bit of scripting in AppleScript. The problem I > found was that AppleScript tries to be so much like natural English > that I never got a clear idea of wheth

Re: wxpython dialog - do something after ShowModal()?

2008-05-13 Thread Gabriel Genellina
En Tue, 13 May 2008 09:41:25 -0300, Iain King <[EMAIL PROTECTED]> escribió: Hi. I have a modal dialog whcih has a "Browse..." button which pops up a file selector. This all works fine, but the first thing the user has to do when they open the dialog is select a file, so I would like the dial

Re: Literate programs in Python

2008-05-13 Thread Michele Simionato
On May 13, 5:28 pm, Paul Miller <[EMAIL PROTECTED]> wrote: > Does anyone know of any (preferably largish) examples of literate > programs written using Python? Alternatively, does anyone know of any > literate programming tools which support Python well? (I am aware of > Leo and I've been to lite

Re: where to get McMillan Installer?

2008-05-13 Thread Gabriel Genellina
En Tue, 13 May 2008 10:23:33 -0300, gsal <[EMAIL PROTECTED]> escribió: hhhmmm...py2exe...I tried it earlier and it couldn't handle some of the packages I was using because they were in the "egg" form. I was hoping Installer could...then again, I don't know how long ago Installer was written and

Re: Python and Flaming Thunder

2008-05-13 Thread Lie
On May 13, 11:20 pm, Dave Parker <[EMAIL PROTECTED]> wrote: > > 5-10 times faster for what kind of code? > > Mostly numerical analysis and CGI scripting.  All of Flaming Thunder's > library code is in assembly language, and Flaming Thunder creates > statically-linked pure syscall CGI scripts. > > >

Re: file locked for writing

2008-05-13 Thread Gabriel Genellina
En Tue, 13 May 2008 11:57:03 -0300, Dmitry Teslenko <[EMAIL PROTECTED]> escribió: Hello! I use some script in python 2.5 from vim editor (it has python bindings) that updates some file and then launches another program (ms visual studio, for example) to do something with updated file. I faced

Re: Python and Flaming Thunder

2008-05-13 Thread s0suk3
On May 13, 10:24 am, Dave Parker <[EMAIL PROTECTED]> wrote: > > The "Flaming Thunder" looks promising, but without being free > > software, it's unlikely it will create a large developer community, > > specially considering both free general purpose and scientific > > programming languages. > > Pe

Re: Python and Flaming Thunder

2008-05-13 Thread Lie
On May 13, 11:36 pm, Dave Parker <[EMAIL PROTECTED]> wrote: > > ... there's something that feels very unnatural about writing English as > > code. > > I think it is ironic that you think Flaming Thunder is unnatural > because it is more English-like, when being English-like was one of > Python's g

Re: how to pass a python socket to a .dll?

2008-05-13 Thread Gabriel Genellina
En Tue, 13 May 2008 12:48:26 -0300, inhahe <[EMAIL PROTECTED]> escribió: i'm trying to make a .dll that will let me use WSAPoll, which is a windows sockets function, to mimic select.poll on a windows box. i cbb learning python extensions, so i'm just going to use ctypes with a dll, so I hope

Re: What is self.file = file for?

2008-05-13 Thread Gary Herron
Chester wrote: I see. A very good explanation indeed. Thank you for it. But why would anyone want to do this anyway? In a single sentence, OOP (Object Oriented Programming) is a way to organize a program around your data and the operations on that data. Many books and college courses are

Re: Fill memeory with endless loop?

2008-05-13 Thread Gabriel Genellina
En Tue, 13 May 2008 15:18:31 -0300, globalrev <[EMAIL PROTECTED]> escribió: On 13 Maj, 18:59, Filip Štědronský <[EMAIL PROTECTED]> wrote: On Út, kvě 13, 2008 at 06:49:33 +0200, globalrev wrote: > if i do something like > while 1: > print "x" > will the program ever stop because it runs ou

Re: do you fail at FizzBuzz? simple prog test

2008-05-13 Thread miller . paul . w
On May 12, 3:55 am, [EMAIL PROTECTED] wrote: > As a test, I would leave out the last sentence, and see how many > people (and how fast) figure out than a number can be multiple of > three _and_ five and that the requirement is somehow incomplete ... Actually, if you leave off the last sentence, w

BeautifulSoup/sgmllib crash

2008-05-13 Thread John Nagle
Here's another example of the annoying "attributes must be ASCII but sgmllib doesn't check" problem. Run "http://www.serversdirect.com"; through BeautifulSoup, and watch it blow up at this bogus HTML: Support Multi-Core Intel® Xeon® processor 3200/3000 sequence The parser uses the ®

Re: usage of python

2008-05-13 Thread Gabriel Genellina
En Tue, 13 May 2008 18:37:10 -0300, Terry Reedy <[EMAIL PROTECTED]> escribió: "Rajarshi" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Hi, I teach an introductory programming course in Python. As part of | the introduction I'd like to highlight the usage of Python in | industry

Re: What is self.file = file for?

2008-05-13 Thread Banibrata Dutta
__init__() is the object-constructor for TextReader class, accepting an argument 'file' (reference to an Object). TextReader has a member variable / attribute, called 'file' too (same name as the argument to __init__()). The constructor is invoked when an object of TextReader class is being create.

Re: help with file path exceeding 255 characters

2008-05-13 Thread Gabriel Genellina
En Tue, 13 May 2008 18:06:13 -0300, <[EMAIL PROTECTED]> escribió: On May 13, 3:49 pm, Arnaud Delobelle <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] writes: > I have trouble of obtaining the file size of a file because the > fullpath exceeds 255 characters. I get this message with WindowsErro

hai friend

2008-05-13 Thread p . selvaraj2008
hai friend how are you i wish to all of your successfull works and learn more money www.yourambition.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and Flaming Thunder

2008-05-13 Thread Lie
On May 14, 12:05 am, Dave Parker <[EMAIL PROTECTED]> wrote: > > Just to support this statement: PHP runs an order of magnitude slower than > > python. Yet a great deal (if not the majority) of dynamic sites out there > > run under PHP. All of these are unhappy customers? > > The websites owners mig

Re: usage of python

2008-05-13 Thread Ivan Illarionov
On 13 май, 21:10, Rajarshi <[EMAIL PROTECTED]> wrote: > Hi, I teach an introductory programming course in Python. As part of > the introduction I'd like to highlight the usage of Python in > industry. The idea is to show that there are big players using Python > for a variety of tasks. Given that t

Re: Literate programs in Python

2008-05-13 Thread Marc 'BlackJack' Rintsch
On Tue, 13 May 2008 08:28:00 -0700, Paul Miller wrote: > Alternatively, does anyone know of any literate programming tools which > support Python well? There's PyLit_. It uses reStructuredText_ and can translate between a reStructuredText with code blocks and source code with the text as comment

Re: Python and Flaming Thunder

2008-05-13 Thread Lie
On May 14, 11:25 am, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Tue, 13 May 2008 09:36:28 -0700 (PDT), Dave Parker > <[EMAIL PROTECTED]> declaimed the following in > comp.lang.python: > > > > ... there's something that feels very unnatural about writing English as > > > code. > > > I think

Re: Python and Flaming Thunder

2008-05-13 Thread Lie
On May 14, 12:51 pm, Lie <[EMAIL PROTECTED]> wrote: > And your 8 by 8 cross compiler doesn't impress me at all, they're all > based on x86/IA-32 architecture which is quite similar, no PowerPC, > SPARC, ARM, no other CISC or RISC architecture. And your compiler is a > single language compiler inste

Re: do you fail at FizzBuzz? simple prog test

2008-05-13 Thread Gabriel Genellina
En Tue, 13 May 2008 19:31:03 -0300, Mensanator <[EMAIL PROTECTED]> escribió: Such as what's the voltage at point A? +5v | 220 ohm | +-- A | 330 ohm | ground Would you be surprised at how many applicants couldn't figure that out because they forgot to b

Re: Fill memeory with endless loop?

2008-05-13 Thread Tim Roberts
globalrev <[EMAIL PROTECTED]> wrote: > >and when the program get skiled because out of memory all this will be >deleted from the memory? Yes. When a process is killed, all of the memory it was using is released. >so there is no way that you can, by accident, fill your whole >harddrive and make i

Re: threads problem in python

2008-05-13 Thread Gabriel Genellina
En Tue, 13 May 2008 20:46:51 -0300, Astan Chee <[EMAIL PROTECTED]> escribió: Sorry, I mean functions not classes. Well, actually, one is a class and another is a function. So when the script (its a free game btw) runs, it instantiates the first class and somewhere in the middle of processing the

Re: Is using range() in for loops really Pythonic?

2008-05-13 Thread Marc 'BlackJack' Rintsch
On Tue, 13 May 2008 10:20:41 -0700, John Nagle wrote: > Matt Nordhoff wrote: > >> Well, you should use "xrange(10)" instead of "range(10)". > >CPython really is naive. That sort of thing should be a > compile-time optimization. It's not naive, it can't know at compile time what object is b

<    1   2   3