Re: developing web spider

2008-04-01 Thread Daniel Fetchinson
> I would want to know which could be the best programming language for > developing web spider. > More information about the spider, much better,, I hear Larry and Sergei were not exactly unsuccessful with a python implementation although you might of course try something even better :) If you a

developing web spider

2008-04-01 Thread abeen
Hello, I would want to know which could be the best programming language for developing web spider. More information about the spider, much better,, thanks http://www.imavista.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Basic class implementation question

2008-04-01 Thread Henry Chang
You might want to consult this. http://www.ibiblio.org/g2swap/byteofpython/read/object-methods.html On Tue, Apr 1, 2008 at 9:43 PM, <[EMAIL PROTECTED]> wrote: > I can't get call a class for some reason. This must be one of those > newbie questions I hear so much about: > > class wontwork: >

Re: Basic class implementation question

2008-04-01 Thread Henry Chang
Try this. class wontwork: def really(self): print "Hello World" wontwork().really() On Tue, Apr 1, 2008 at 9:43 PM, <[EMAIL PROTECTED]> wrote: > I can't get call a class for some reason. This must be one of those > newbie questions I hear so much about: > > class wontwo

Basic class implementation question

2008-04-01 Thread hexusnexus
I can't get call a class for some reason. This must be one of those newbie questions I hear so much about: class wontwork: def really(): print "Hello World" wontwork.really() This returns (as an error): Traceback (most recent call last): File "", line 1, in wontw

Re: ANN: pry unit testing framework

2008-04-01 Thread Aldo Cortesi
Hi Ben, > > We are happy to announce the first release of Pry, a unit testing > > framework. > > Thanks for the announcement, and for the software. > > If Pry is already incompatible with xUnit (i.e. Python's 'unittest'), > could we please have names that adhere to the Python style guide > ? >

Re: ANN: pry unit testing framework

2008-04-01 Thread Ben Finney
Aldo Cortesi <[EMAIL PROTECTED]> writes: > We are happy to announce the first release of Pry, a unit testing > framework. Thanks for the announcement, and for the software. If Pry is already incompatible with xUnit (i.e. Python's 'unittest'), could we please have names that adhere to the Python

Re: the scaling of pics in pygame

2008-04-01 Thread lbonafide
On Apr 1, 9:44 pm, Jimmy <[EMAIL PROTECTED]> wrote: > Hi, everyone > > I am using Pygame to write a small program. I tried to load a .jpg > picture into > the screen, however, the size of the pic doesn't fit into the window > properly. Can > anyone tell me how to scale the picture into the window?

Re: bsddb3 thread problem

2008-04-01 Thread [EMAIL PROTECTED]
On Apr 1, 9:02 pm, Rhamphoryncus <[EMAIL PROTECTED]> wrote: > It's my understanding that the connection is NOT thread-safe.  Your > thread should be using an entirely separate connection.- Hide quoted text - > Can you please explain that, which connection you are talking about? How to modify my te

Re: generator functions: why won't this work?

2008-04-01 Thread Gabriel Genellina
En Tue, 01 Apr 2008 23:56:50 -0300, <[EMAIL PROTECTED]> escribió: > I'm trying to understand generator functions and the yield keyword. > I'd like to understand why the following code isn't supposed to work. > (What I would have expected it to do is, for a variable number of > arguments composed o

Re: bsddb3 thread problem

2008-04-01 Thread [EMAIL PROTECTED]
> Using threads with bsddb3.  I spent weeks trying to get it to behave > when threading.  I gave up in the end and changed to sqlite :-( > So does it mean that I will have to use threading locks around access methods? or that will also fail mysteriously :) -- http://mail.python.org/mailman/listin

Re: generator functions: why won't this work?

2008-04-01 Thread George Sakkis
On Apr 1, 11:17 pm, George Sakkis <[EMAIL PROTECTED]> wrote: > On Apr 1, 10:56 pm, [EMAIL PROTECTED] wrote: > > > > > Hi all, > > > I'm trying to understand generator functions and the yield keyword. > > I'd like to understand why the following code isn't supposed to work. > > (What I would have ex

Re: generator functions: why won't this work?

2008-04-01 Thread Steve Holden
[EMAIL PROTECTED] wrote: > Hi all, > > I'm trying to understand generator functions and the yield keyword. > I'd like to understand why the following code isn't supposed to work. > (What I would have expected it to do is, for a variable number of > arguments composed of numbers, tuples of numbers,

Re: generator functions: why won't this work?

2008-04-01 Thread George Sakkis
On Apr 1, 10:56 pm, [EMAIL PROTECTED] wrote: > Hi all, > > I'm trying to understand generator functions and the yield keyword. > I'd like to understand why the following code isn't supposed to work. > (What I would have expected it to do is, for a variable number of > arguments composed of numbers,

Re: generator functions: why won't this work?

2008-04-01 Thread Mel
[EMAIL PROTECTED] wrote: > I'm trying to understand generator functions and the yield keyword. > I'd like to understand why the following code isn't supposed to work. > (What I would have expected it to do is, for a variable number of > arguments composed of numbers, tuples of numbers, tuples of tu

generator functions: why won't this work?

2008-04-01 Thread zillow20
Hi all, I'm trying to understand generator functions and the yield keyword. I'd like to understand why the following code isn't supposed to work. (What I would have expected it to do is, for a variable number of arguments composed of numbers, tuples of numbers, tuples of tuples, etc., the function

Re: Python-by-example - new online guide to Python Standard Library

2008-04-01 Thread Roy H. Han
Learning by example is the best. I remember working through a book when I was little called "Qbasic by Example." On Tue, Apr 1, 2008 at 9:15 PM, AK <[EMAIL PROTECTED]> wrote: > Hello, > > I find that I learn easier when I go from specific examples to a more > general explanation of function's ut

Re: ANN: cubictemp template engine

2008-04-01 Thread Aldo Cortesi
Hi Daniel, > Does it support the Buffet API? No - we don't use any of the frameworks that require it. If the implementation is simple enough, though, I'd be happy to look at a patch... ;) > Do you have any benchmarks to compare it with other template systems > (in terms of speed)? Not formall

Re: manipulating hex values

2008-04-01 Thread Grant Edwards
On 2008-04-01, Stephen Cattaneo <[EMAIL PROTECTED]> wrote: >>> I am relatively new to socket programming. I am attempting to >>> use raw sockets to spoof my IP address. >> >> Don't bother to try... > > Is there a better solution to spoofing my IP. then using raw > sockets You'll have to define

the scaling of pics in pygame

2008-04-01 Thread Jimmy
Hi, everyone I am using Pygame to write a small program. I tried to load a .jpg picture into the screen, however, the size of the pic doesn't fit into the window properly. Can anyone tell me how to scale the picture into the window? thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: Using QSystemTrayIcon with PyQt

2008-04-01 Thread Benjamin
On Apr 1, 7:56 am, BlueBird <[EMAIL PROTECTED]> wrote: > On Apr 1, 6:00 am, Alex Teiche <[EMAIL PROTECTED]> wrote: > > > > > On Mar 31, 7:53 pm, Benjamin <[EMAIL PROTECTED]> wrote: > > > > On Mar 31, 8:41 pm, Alex Teiche <[EMAIL PROTECTED]> wrote: > > > > > On Mar 31, 6:40 pm, Alex Teiche <[EMAIL P

Re: ANN: cubictemp template engine

2008-04-01 Thread Daniel Fetchinson
> We are happy to announce release 2.0 of Cubictemp, a small, elegant > templating system for Python. > > > Features > > > * Simple, well-tested and well-documented. > * Integrates tightly with Python - pass arbitrary Python objects into a > template, walk sequences and iterators, evaluate

ANN: pry unit testing framework

2008-04-01 Thread Aldo Cortesi
We are happy to announce the first release of Pry, a unit testing framework. Features * Built-in coverage analysis, profiling, and quick-and-dirty benchmarking * Assertion-based tests - no ugly failUnless*, failIf*, etc. methods * Tree-based test structure for better fixture

Re: class super method

2008-04-01 Thread Ed Leafe
On Apr 1, 2008, at 6:10 PM, Steve Holden wrote: > Ed is a good enough designer to avoid the corner cases. Strangely > enough > the one place where I have ended up making significant use of super() > was in providing mixins for wxPython interface classes! Thanks much for the compliment.

ANN: cubictemp template engine

2008-04-01 Thread Aldo Cortesi
We are happy to announce release 2.0 of Cubictemp, a small, elegant templating system for Python. Features * Simple, well-tested and well-documented. * Integrates tightly with Python - pass arbitrary Python objects into a template, walk sequences and iterators, evaluate e

Re: Decrementing of reference count of new objects?

2008-04-01 Thread Gabriel Genellina
En Tue, 01 Apr 2008 18:49:28 -0300, Mitko Haralanov <[EMAIL PROTECTED]> escribió: > For the most part, I understand the theory behind reference counting in > Python C code. But there is one thing that I am confused about and I > have not been able to clear it up. > > Let say that you have the fo

Re: Python Audio PAN (left or right) and channels

2008-04-01 Thread alex23
On Apr 2, 4:04 am, [EMAIL PROTECTED] wrote: > I need to play mp3 files on different channels and listen Channel 0 on > the left earphone and Channel 1 on the right... > How can I play mp3 files in different channel and pan the output? Hey Mark, Have you taken a look at GStreamer? What you're afte

Re: troll poll

2008-04-01 Thread alex23
On Apr 1, 11:15 pm, George Sakkis <[EMAIL PROTECTED]> wrote: > Wow, thanks to this thread I discovered the Google Groups KillFile, a > firefox+greasemonkey killfile script (http://www.penney.org/ > ggkiller.html). Hope it works as advertised! That is awesome, thank you so much for posting this. Th

Re: BeautiflSoup -- getting all the attributes of a tag?

2008-04-01 Thread Paul McGuire
On Apr 1, 6:28 pm, 7stud <[EMAIL PROTECTED]> wrote: > On Apr 1, 5:25 pm, 7stud <[EMAIL PROTECTED]> wrote: > > > > > > > You can treat a tag like a dictionary to obtain a specific attribute: > > > import BeautifulSoup as bs > > > html = "hello" > > > doc = bs.BeautifulSoup(html) > > div = doc.find("

Re: XML Parsing

2008-04-01 Thread Gabriel Genellina
En Tue, 01 Apr 2008 20:44:41 -0300, 7stud <[EMAIL PROTECTED]> escribió: >>           I am new to XML parsing.Could you kindly tell me whats the >> problem with the following code: >> >> import xml.dom.minidom >> import xml.parsers.expat > > I don't know if you are aware of the BeautifulSoup modu

Re: Re: manipulating hex values

2008-04-01 Thread Gabriel Genellina
En Tue, 01 Apr 2008 16:09:09 -0300, Stephen Cattaneo <[EMAIL PROTECTED]> escribió: > Gabriel Genellina wrote: >> En Tue, >> 01 Apr 2008 14:11:31 -0300, Stephen Cattaneo >> <[EMAIL PROTECTED]> escribió: >> >>> I am relatively new to socket programming. I am attempting to use raw >>> sockets to sp

Python-by-example - new online guide to Python Standard Library

2008-04-01 Thread AK
Hello, I find that I learn easier when I go from specific examples to a more general explanation of function's utility and I made a reference guide that will eventually document all functions, classes and methods in Python's Standard Library. For now, I covered about 20 most important modules.

Re: What motivates all unpaid volunteers at Pycon?

2008-04-01 Thread Ed Leafe
On Apr 1, 2008, at 5:37 PM, [EMAIL PROTECTED] wrote: > What do the people get back who did all the hard work at registration > desk and > preparing conference attendee bags? ...who did all hotel preparations? You'll have to ask them. When I've been a part of events like this, just know

Re: Not Sure This Can Be Done...

2008-04-01 Thread MrJean1
In any script upon startup, sys.path[0] contains the full path of the directory where the script is located. See under 'path'. it should be straightforward from here (untested though). In each script, get the sys.path[0] string, split it using os.pat

Re: XML Parsing

2008-04-01 Thread 7stud
On Apr 1, 1:42 pm, Alok Kothari <[EMAIL PROTECTED]> wrote: > Hello, >           I am new to XML parsing.Could you kindly tell me whats the > problem with the following code: > > import xml.dom.minidom > import xml.parsers.expat > document = """Lettermanis token>betterthan token>JayLeno""" > > # 3 h

Re: BeautiflSoup -- getting all the attributes of a tag?

2008-04-01 Thread 7stud
On Apr 1, 5:25 pm, 7stud <[EMAIL PROTECTED]> wrote: > You can treat a tag like a dictionary to obtain a specific attribute: > > import BeautifulSoup as bs > > html = "hello" > > doc = bs.BeautifulSoup(html) > div = doc.find("div") > print div > print div["x"] > > --output:-- > a > > But you can't i

Re: Summary of threading for experienced non-Python programmers?

2008-04-01 Thread Diez B. Roggisch
> I believe you stil misunderstand. The select module doesn't provide > an inteface to aio(3). It provides an interface to select() and > poll() system calls, which don't provide asynchronous access to > regular files. I never claimed it provided access to aio. In the thread with Paul Rubin, it

BeautiflSoup -- getting all the attributes of a tag?

2008-04-01 Thread 7stud
You can treat a tag like a dictionary to obtain a specific attribute: import BeautifulSoup as bs html = "hello" doc = bs.BeautifulSoup(html) div = doc.find("div") print div print div["x"] --output:-- a But you can't iterate over a tag to get all the attributes: import BeautifulSoup as bs htm

Re: object-relational mappers

2008-04-01 Thread hdante
On Apr 1, 5:40 pm, Aaron Watters <[EMAIL PROTECTED]> wrote: > I've been poking around the world of object-relational > mappers and it inspired me to coin a corellary to the > the famous quote on regular expressions: > > "You have objects and a database: that's 2 problems. > So: get an object-relati

Re: Is this a good time to start learning python?

2008-04-01 Thread Steve Holden
[EMAIL PROTECTED] wrote: > On Apr 1, 2:42 pm, "Eduardo O. Padoan" <[EMAIL PROTECTED]> > wrote: >> On Tue, Apr 1, 2008 at 4:20 PM, <[EMAIL PROTECTED]> wrote: > >>> You misunderstand. C++ has a lot of "warts" to maintain backwards >>> compatibility with C. The standards committee could eliminat

Re: class super method

2008-04-01 Thread Steve Holden
Steve Holden wrote: > George Sakkis wrote: >> On Mar 31, 10:41 pm, Ed Leafe <[EMAIL PROTECTED]> wrote: [...] >> In a sentence, it's better than nothing but worse than anything. >> > So you are prepared to write off the voice of experience because some > random web pages contradict what Ed is sayin

Re: Is this a good time to start learning python?

2008-04-01 Thread Gabriel Genellina
En Tue, 01 Apr 2008 15:57:21 -0300, <[EMAIL PROTECTED]> escribió: > On Apr 1, 12:47 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> > wrote: >> Please explain how the existence of Python 3.0 would break your >> production   >> code. > > The existence of battery acid won't hurt me either, unless I co

Re: What motivates all unpaid volunteers at Pycon?

2008-04-01 Thread Martin v. Löwis
> What do the people get back who did all the hard work at registration > desk and > preparing conference attendee bags? ...who did all hotel preparations? I think these questions are better asked at the pycon organizers list, than on comp.lang.python (which none of the volunteers may actually rea

Re: Directed Graph Traversal

2008-04-01 Thread Tim Daneliuk
bukzor wrote: > Can someone point me in the direction of a good solution of this? I'm > using it to construct a SQL query compiler, where each node is a table > and each edge is a join. I'm planning on using the NetworkX library if > possible. > https://networkx.lanl.gov/reference/networkx/ > > >

Re: Not Sure This Can Be Done...

2008-04-01 Thread Diez B. Roggisch
gamename schrieb: >> Use virtualenv to create a local python, and activate that when >> developing for that branch. > > Thanks for the suggestion, but that's the problem: having to activate > it. > Isn't there some way to simply have the local script look at a > specified > dir rather than starti

Re: Directed Graph Traversal

2008-04-01 Thread bukzor
On Apr 1, 3:46 pm, bukzor <[EMAIL PROTECTED]> wrote: > Can someone point me in the direction of a good solution of this? I'm > using it to construct a SQL query compiler, where each node is a table > and each edge is a join. I'm planning on using the NetworkX library if > possible.https://networkx.

Directed Graph Traversal

2008-04-01 Thread bukzor
Can someone point me in the direction of a good solution of this? I'm using it to construct a SQL query compiler, where each node is a table and each edge is a join. I'm planning on using the NetworkX library if possible. https://networkx.lanl.gov/reference/networkx/ Given a directed graph and a

Re: What motivates all unpaid volunteers at Pycon?

2008-04-01 Thread [EMAIL PROTECTED]
On Apr 1, 11:45 am, Ed Leafe <[EMAIL PROTECTED]> wrote: Assuming that people get nothing back by participating in a > community, yes, it would be curious. My experience, though, is that I > get a lot more out of it than I could ever contribute. IOW, it's a > great example of synergy. What do the p

Re: object-relational mappers

2008-04-01 Thread Matthew Woodcraft
Aaron Watters <[EMAIL PROTECTED]> wrote: > I've been poking around the world of object-relational > mappers and it inspired me to coin a corellary to the > the famous quote on regular expressions: > "You have objects and a database: that's 2 problems. > So: get an object-relational mapper: > now

Re: class super method

2008-04-01 Thread Steve Holden
George Sakkis wrote: > On Mar 31, 10:41 pm, Ed Leafe <[EMAIL PROTECTED]> wrote: > >> On Mar 31, 2008, at 5:58 PM, George Sakkis wrote: >> is there any tutorial for super method (when/how to use it)? or maybe someone could explain me how it works? thx >>> Super is one of the dark cor

Re: Not Sure This Can Be Done...

2008-04-01 Thread gamename
> Use virtualenv to create a local python, and activate that when > developing for that branch. Thanks for the suggestion, but that's the problem: having to activate it. Isn't there some way to simply have the local script look at a specified dir rather than starting a virtual environment? -T -

Decrementing of reference count of new objects?

2008-04-01 Thread Mitko Haralanov
For the most part, I understand the theory behind reference counting in Python C code. But there is one thing that I am confused about and I have not been able to clear it up. Let say that you have the following function (over-simplified): PyObject *do_work (PyObject *self, PyObject *args) {

Re: Is this a good time to start learning python?

2008-04-01 Thread Basilisk96
On Mar 31, 11:40 am, Rui Maciel <[EMAIL PROTECTED]> wrote: > Recently I woke up inclined to take up the task of learning another > programming language. I've already dipped my toes in Perl (I've read online > tutorials and wrote a couple of irrelevant pet projects) but, as the > computers at my wor

Re: xlrd and cPickle.dump

2008-04-01 Thread John Machin
On Apr 2, 7:19 am, [EMAIL PROTECTED] wrote: > > How many megabytes is "extremely large"? How many seconds does it take > > to open it with xlrd.open_workbook? > > The document is 15mb ad 50,000+ rows (for test purposes I will use a > smaller sample), 15 Mb is not large. E.g. 120 Mb is large. > bu

Re: Python in High School

2008-04-01 Thread Basilisk96
On Apr 1, 12:27 pm, sprad <[EMAIL PROTECTED]> wrote: > I'm a high school computer teacher, and I'm starting a series of > programming courses next year (disguised as "game development" classes > to capture more interest). The first year will be a gentle > introduction to programming, leading to two

[ANN] Vellum 0.7: Simple Python Can Build Many Things

2008-04-01 Thread Zed A. Shaw
Hi All, This is another announce for my fun little make,Rake,Scons alternative named Vellum. The goal of Vellum is to create a complete build system in the least amount of clean Python as possible, while keeping the build mechanism safe from code injection (if you need that). == STATUS I went a

Re: Why prefer != over <> for Python 3.0?

2008-04-01 Thread MRAB
On Mar 30, 7:59 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Sun, 30 Mar 2008 11:10:20 -0300, MRAB <[EMAIL PROTECTED]> > escribió: > > > > > On Mar 30, 6:35 am, "Gabriel Genellina" <[EMAIL PROTECTED]> > > wrote: > >> En Sun, 30 Mar 2008 02:11:33 -0300, hdante <[EMAIL PROTECTED]> escribió

Re: Python in High School

2008-04-01 Thread André
On Apr 1, 3:09 pm, Bruno Desthuilliers wrote: > sprad a écrit : > > > > > I'm a high school computer teacher, and I'm starting a series of > > programming courses next year (disguised as "game development" classes > > to capture more interest). The first year will be a gentle > > introduction to p

Re: PyQt - Question on QListWidget's selectedItems Method

2008-04-01 Thread Kelie
Another question I have about QListWidget is when user manually selects and deselects a QListWidgetItem, the background color switches between blue and white. But when an item is programmingly selected with setItemSelected method, the background color is some kind of light gray instead of blue. Why

Re: Not Sure This Can Be Done...

2008-04-01 Thread Diez B. Roggisch
gamename schrieb: > Hi, > > I generally have several copies of the same development environment > checked out from cvs at any one time. Each development tree has a > 'tools' dir containing python modules. Scattered in different places > in the tree are various python scripts. > > What I want to

Not Sure This Can Be Done...

2008-04-01 Thread gamename
Hi, I generally have several copies of the same development environment checked out from cvs at any one time. Each development tree has a 'tools' dir containing python modules. Scattered in different places in the tree are various python scripts. What I want to do is force my scripts to always

Re: object-relational mappers

2008-04-01 Thread Jason Scheirer
On Apr 1, 1:40 pm, Aaron Watters <[EMAIL PROTECTED]> wrote: > I've been poking around the world of object-relational > mappers and it inspired me to coin a corellary to the > the famous quote on regular expressions: > > "You have objects and a database: that's 2 problems. > So: get an object-relati

Re: XML Parsing

2008-04-01 Thread Jason Scheirer
On Apr 1, 12:42 pm, Alok Kothari <[EMAIL PROTECTED]> wrote: > Hello, > I am new to XML parsing.Could you kindly tell me whats the > problem with the following code: > > import xml.dom.minidom > import xml.parsers.expat > document = """Lettermanis token>betterthan token>JayLeno""" > > # 3

object-relational mappers

2008-04-01 Thread Aaron Watters
I've been poking around the world of object-relational mappers and it inspired me to coin a corellary to the the famous quote on regular expressions: "You have objects and a database: that's 2 problems. So: get an object-relational mapper: now you have 2**3 problems." That is to say I feel that t

Re: Re: manipulating hex values

2008-04-01 Thread J. Cliff Dyer
On Tue, 2008-04-01 at 12:09 -0700, Stephen Cattaneo wrote: > > The source of my confusion is that I need to keep my bytes formated > correctly. I am using the below 'raw socket example' proof-of-concept > code as my example. (And yes, I have tried the proof-of-concept. It > works correctly.

Re: python persistence

2008-04-01 Thread castironpi
On Apr 1, 11:34 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Tue, 01 Apr 2008 08:47:33 -0300, <[EMAIL PROTECTED]> escribió: > > >> c['0']= type('None',(),{}) > >> > Traceback (most recent call last): > >> > pickle.PicklingError: Can't pickle : it's not > >> > found as __main__.None

Re: import multiple modules with same name

2008-04-01 Thread Konstantin Veretennicov
On Mon, Mar 31, 2008 at 11:52 PM, Christian Bird <[EMAIL PROTECTED]> wrote: > Is it possible to import multiple modules with the same name from > different locations? This might work: import imp util1 = imp.load_source('util1', 'mod1/util.py') util2 = imp.load_source('util2', 'mod2/util.py') B

Re: XML Parsing

2008-04-01 Thread Alok Kothari
Thanks ! it worked ! On Wed, Apr 2, 2008 at 1:31 AM, Konstantin Veretennicov < [EMAIL PROTECTED]> wrote: > On Tue, Apr 1, 2008 at 10:42 PM, Alok Kothari <[EMAIL PROTECTED]> > wrote: > > > Hello, > > I am new to XML parsing.Could you kindly tell me whats the > > problem with the following

Re: xlrd and cPickle.dump

2008-04-01 Thread patrick . waldo
> How many megabytes is "extremely large"? How many seconds does it take > to open it with xlrd.open_workbook? The document is 15mb ad 50,000+ rows (for test purposes I will use a smaller sample), but my computer hangs (ie it takes a long time) when I try to do simple manipulations and the documen

Re: Why prefer != over <> for Python 3.0?

2008-04-01 Thread John J. Lee
"Gabriel Genellina" <[EMAIL PROTECTED]> writes: [...] >> There was a version of APL for the Sinclair QL which replaced the >> standard APL symbols with keywords. > > Wow, APL on 8 bits? > Now there is (or perhaps there was) J, a reincarnation of APL by > Iverson himself that uses ASCII characters

Re: Is this a good time to start learning python?

2008-04-01 Thread lbonafide
On Apr 1, 2:42 pm, "Eduardo O. Padoan" <[EMAIL PROTECTED]> wrote: > On Tue, Apr 1, 2008 at 4:20 PM,  <[EMAIL PROTECTED]> wrote: > >  You misunderstand.  C++ has a lot of "warts" to maintain backwards > >  compatibility with C.  The standards committee could eliminate these > >  warts to make the l

Re: What motivates all unpaid volunteers at Pycon?

2008-04-01 Thread Greg Lindstrom
> >> There really isn't any simple answer. Most people seem to be > >> motivated to help out their communities, > > > > I still think all this unselfishness is noteworthy > > and curious. > > >Assuming that people get nothing back by participating in a > community, yes, it would be curious

Re: Python in High School

2008-04-01 Thread Laurent Pointal
Le Tue, 01 Apr 2008 12:35:46 -0700, Paddy a écrit : > On Apr 1, 6:27 pm, sprad <[EMAIL PROTECTED]> wrote: >> >> I want to believe. Evangelize away. > > How proficient are you in Flash/Actionscript? I suggest you try out > Python/Pygame and extrapolate from that, given your available time, > woul

Re: XML Parsing

2008-04-01 Thread Konstantin Veretennicov
On Tue, Apr 1, 2008 at 10:42 PM, Alok Kothari <[EMAIL PROTECTED]> wrote: > Hello, > I am new to XML parsing.Could you kindly tell me whats the > problem with the following code: > > import xml.dom.minidom > import xml.parsers.expat > document = """Lettermanis token>betterthan token>JayLen

Re: Is this a good time to start learning python?

2008-04-01 Thread Konstantin Veretennicov
> > > > > Backward compatibility is important. C++ could break all ties with > C > > > to "clean up" as well, but it would be a braindead move that would > > > break existing code bases upon upgrade. > > > > C++ is not C. No one "upgrades" from C to C++. > > You misunderstand. C++ has a lot o

XML Parsing

2008-04-01 Thread Alok Kothari
Hello, I am new to XML parsing.Could you kindly tell me whats the problem with the following code: import xml.dom.minidom import xml.parsers.expat document = """LettermanisbetterthanJayLeno""" # 3 handler functions def start_element(name, attrs): print 'Start element:', name, attr

Re: Is this a good time to start learning python?

2008-04-01 Thread Eduardo O. Padoan
On Tue, Apr 1, 2008 at 4:20 PM, <[EMAIL PROTECTED]> wrote: > > > > Please explain how the existence of Python 3.0 would break your > production > > > > code. > > > > > The existence of battery acid won't hurt me either, unless I come into > > > contact with it. If one eventually upgrades

Re: [OT] troll poll

2008-04-01 Thread Steve Holden
Duncan Booth wrote: > Gary Herron <[EMAIL PROTECTED]> wrote: > >> Duncan Booth wrote: >>> Paul Rubin wrote: >>> >>> "Daniel Fetchinson" <[EMAIL PROTECTED]> writes: > [ ] - Xah Lee > [ ] - castironpi > I've lost track but has it

Re: Python in High School

2008-04-01 Thread Paddy
On Apr 1, 6:27 pm, sprad <[EMAIL PROTECTED]> wrote: > I'm a high school computer teacher, and I'm starting a series of > programming courses next year (disguised as "game development" classes > to capture more interest). The first year will be a gentle > introduction to programming, leading to two

Re: Why prefer != over <> for Python 3.0?

2008-04-01 Thread Steve Holden
Torsten Bronger wrote: > Hallöchen! > > Jorge Vargas writes: > >> On Tue, Apr 1, 2008 at 6:03 AM, Gabriel Genellina >> <[EMAIL PROTECTED]> wrote: >> >>> [...] >>> >>> I think it should be easy to add support for ≠≤≥ and even λ, >>> only the tokenizer has to be changed. >>> >> show me a keyboard

Re: How to build a body like this use SOAPPy?

2008-04-01 Thread John J. Lee
qgg <[EMAIL PROTECTED]> writes: [...] > [...] Heh, you may have picked an discouragingly spammish subject line. John -- http://mail.python.org/mailman/listinfo/python-list

Re: Is this a good time to start learning python?

2008-04-01 Thread lbonafide
On Apr 1, 2:11 pm, "Eduardo O. Padoan" <[EMAIL PROTECTED]> wrote: > On Tue, Apr 1, 2008 at 3:57 PM,  <[EMAIL PROTECTED]> wrote: > > On Apr 1, 12:47 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> > >  wrote: > >  > En Tue, 01 Apr 2008 13:57:55 -0300, <[EMAIL PROTECTED]> escribió: > > >  > > On Mar 31,

PyQt - Question on QListWidget's selectedItems Method

2008-04-01 Thread Kelie
Hello, This method returns selected items by the order of user's picking, instead of the original order of these items. For example, if a ListWidget stores a list of ['A', 'B', 'C', 'D'] and when user is prompted to make a selection, if he picks 'D' first, then 'B', the returned ListWidget items w

Re: Re: manipulating hex values

2008-04-01 Thread Stephen Cattaneo
Gabriel Genellina wrote: > En Tue, > 01 Apr 2008 14:11:31 -0300, Stephen Cattaneo > <[EMAIL PROTECTED]> escribió: > >> I am relatively new to socket programming. I am attempting to use raw >> sockets to spoof my IP address. > > Don't bother to try... > ? Is there a better solution to spoofing

Re: Is this a good time to start learning python?

2008-04-01 Thread Eduardo O. Padoan
On Tue, Apr 1, 2008 at 3:57 PM, <[EMAIL PROTECTED]> wrote: > On Apr 1, 12:47 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> > wrote: > > En Tue, 01 Apr 2008 13:57:55 -0300, <[EMAIL PROTECTED]> escribió: > > > > > > On Mar 31, 1:36 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> > > > wrote: > > > >

Re: deleting a line from a file

2008-04-01 Thread Paddy
On Apr 1, 6:32 pm, Mark Wooding <[EMAIL PROTECTED]> wrote: > Paddy <[EMAIL PROTECTED]> wrote: > > Why not use the fileinput modules functionality to iterate over a file > > in-place,printing just those lines you want? > > From the Python 2.5 manual: > > : *Optional in-place filtering:* if the keywo

Re: Is this a good time to start learning python?

2008-04-01 Thread lbonafide
On Apr 1, 12:47 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Tue, 01 Apr 2008 13:57:55 -0300, <[EMAIL PROTECTED]> escribió: > > > On Mar 31, 1:36 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> > > wrote: > > >> Don't be scared by the "backwards incompatible" tag - it's the way to   > >> get

Re: Why prefer != over <> for Python 3.0?

2008-04-01 Thread Konstantin Veretennicov
On Tue, Apr 1, 2008 at 12:04 PM, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > En Tue, 01 Apr 2008 04:15:57 -0300, Jorge Vargas <[EMAIL PROTECTED]> > escribió: > > > as for the original question, the point of going unicode is not to > > make code unicode, but to make code's output unicode. thin o

Re: What motivates all unpaid volunteers at Pycon?

2008-04-01 Thread Ed Leafe
On Apr 1, 2008, at 1:20 PM, [EMAIL PROTECTED] wrote: >> There really isn't any simple answer. Most people seem to be >> motivated >> to help out their communities, > > I still think all this unselfishness is noteworthy > and curious. Assuming that people get nothing back by participat

libgmail through proxy

2008-04-01 Thread Ravi Kumar
HI, I was trying to use libgmail. I used that successfully, fetched mail to some extend (thought after some mails, it threw exceptions on NonIterable Int). But when I used the same package from my office where I have to use the proxy, it failed. I used idle, then I also set os.ENVIRON['http_proxy']

Re: Homework help

2008-04-01 Thread Grant Edwards
On 2008-04-01, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: >> Write a function zip(lst1, lst2) such that zip accepts two equal >> length lists and returns a list of pairs. For example, zip(['a', 'b', >> 'c'], [10, 20, 30]) should evaluate to the list [('a', 10), ('b', 20), >> ('c', 30)]. >

Re: manipulating hex values

2008-04-01 Thread Grant Edwards
On 2008-04-01, Stephen Cattaneo <[EMAIL PROTECTED]> wrote: > I am relatively new to socket programming. I am attempting to > use raw sockets to spoof my IP address. From what I can tell > I will have to build from the Ethernet layer on up. This is > fine, but I am having some trouble with manip

Re: Python in High School

2008-04-01 Thread Bruno Desthuilliers
sprad a écrit : > On Apr 1, 11:41 am, mdomans <[EMAIL PROTECTED]> wrote: >> Python needs no evangelizing but I can tell you that it is a powerfull >> tool. I prefer to think that flash is rather visualization tool than >> programing language, and java needs a lot of typing and a lot of >> reading.

Re: What motivates all unpaid volunteers at Pycon?

2008-04-01 Thread [EMAIL PROTECTED]
On Mar 31, 7:35 pm, [EMAIL PROTECTED] (Aahz) wrote: > There really isn't any simple answer. Most people seem to be motivated > to help out their communities, I still think all this unselfishness is noteworthy and curious. Chris -- http://mail.python.org/mailman/listinfo/python-list

Re: Python in High School

2008-04-01 Thread sprad
On Apr 1, 11:41 am, mdomans <[EMAIL PROTECTED]> wrote: > Python needs no evangelizing but I can tell you that it is a powerfull > tool. I prefer to think that flash is rather visualization tool than > programing language, and java needs a lot of typing and a lot of > reading. On the other hand pyth

Re: class super method

2008-04-01 Thread Ed Leafe
On Apr 1, 2008, at 12:53 PM, Michele Simionato wrote: > It is just that you did not run (yet) in a corner case of super. The > interesting question would be: did any of your users run into issues > using you library which is heavily relying on super? Especially when > composing it with their own c

Re: Python in High School

2008-04-01 Thread Bruno Desthuilliers
sprad a écrit : > I'm a high school computer teacher, and I'm starting a series of > programming courses next year (disguised as "game development" classes > to capture more interest). The first year will be a gentle > introduction to programming, leading to two more years of advanced > topics. >

Re: manipulating hex values

2008-04-01 Thread Gabriel Genellina
En Tue, 01 Apr 2008 14:11:31 -0300, Stephen Cattaneo <[EMAIL PROTECTED]> escribió: > I am relatively new to socket programming. I am attempting to use raw > sockets to spoof my IP address. Don't bother to try... > From what I can tell I will have to > build from the Ethernet layer on up. Th

Python Audio PAN (left or right) and channels

2008-04-01 Thread ilgufoeiltucano
Hi folks... I don't know if there are other modules that let me do whatever I want with mp3s or only PyGame do that... I need to play mp3 files on different channels and listen Channel 0 on the left earphone and Channel 1 on the right... I know how to play mp3 files with pygame... I also know th

Re: Homework help

2008-04-01 Thread Dan Upton
> > Write a function zip(lst1, lst2) such that zip accepts two equal > > length lists and returns a list of pairs. For example, zip(['a', 'b', > > 'c'], [10, 20, 30]) should evaluate to the list [('a', 10), ('b', 20), > > ('c', 30)]. > > Hey not even a rebinding necessary. :-) > We had some

  1   2   >