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

2008-04-01 Thread Jorge Vargas
On Tue, Apr 1, 2008 at 6:03 AM, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > En Mon, 31 Mar 2008 16:17:39 -0300, Terry Reedy <[EMAIL PROTECTED]> > escribió: > > > > "Bjoern Schliessmann" <[EMAIL PROTECTED]> > > wrote > > in message news:[EMAIL PROTECTED] > > | > However, I'm quite sure that w

Re: Newbie Question - Overloading ==

2008-04-01 Thread Duncan Booth
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: >> Surely an A isn't equal to every other object which just happens to >> have the same attributes 'a' and 'b'? > > And why not ?-) > >> I would have thoughts the tests want to be >> something like: >> >> class A: >> def __eq__(self,other): >>

bsddb3 thread problem

2008-04-01 Thread [EMAIL PROTECTED]
In my application I am trying to access(read) a DB thru a thread while my main thread is adding data to it and it gives following error(s) bsddb._db.DBRunRecoveryError: (-30974, 'DB_RUNRECOVERY: Fatal error, run database recovery -- PANIC: Permission denied') and sometimes bsddb._db.DBRunRecovery

Re: [OT] troll poll

2008-04-01 Thread Duncan Booth
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 been established that they are no

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

2008-04-01 Thread Torsten Bronger
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 that has those symbols and I'm all up f

Re: counting using variable length string as base

2008-04-01 Thread David Fraser
On Mar 31, 8:18 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Mon, 31 Mar 2008 09:30:00 -0300, Graeme Glass <[EMAIL PROTECTED]> > escribió: > > > On Mar 27, 11:01 am, Peter Otten <[EMAIL PROTECTED]> wrote: > >> a b c aa ab ac ba bb bc ca cb cc aaa aab aac aba abb abc aca acb acc > >> baa

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

2008-04-01 Thread Ben Finney
Torsten Bronger <[EMAIL PROTECTED]> writes: > However, I'm slightly disappointed with the UTF-8 support in some > mail clients involved in this thread, so Unicode surely has not > arrived yet. Want http://www.cafepress.com/nucleartacos.26721820>. -- \ "bash awk grep perl sed, df du, du-d

Re: counting using variable length string as base

2008-04-01 Thread Paul Rubin
Grimsqueaker <[EMAIL PROTECTED]> writes: > Basically I want to find every possible order of every combination. > Its easy if you know how many characters there will be in your string > (use nested for loops), but I am stuck with the variable length > string. I think I have to use a generator but I'

Re: Newbie Question - Overloading ==

2008-04-01 Thread Bruno Desthuilliers
Duncan Booth a écrit : > "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > >>> Surely an A isn't equal to every other object which just happens to >>> have the same attributes 'a' and 'b'? >> And why not ?-) >> >>> I would have thoughts the tests want to be >>> something like: >>> >>> class A: >>>

RE: troll poll

2008-04-01 Thread Diez B. Roggisch
Delaney, Timothy (Tim) wrote: > George Sakkis wrote: > >> On Mar 31, 1:46 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: >> More specifically, who can create a bigger mess on c.l.py? (check one) >>> [ ] - Xah Lee [X] - castironpi >>> >>> Xah Lee's postings might be

Re: counting using variable length string as base

2008-04-01 Thread rootkill
On Mar 27, 8:15 am, Grimsqueaker <[EMAIL PROTECTED]> wrote: > Hi, I'm fairly new to Python and to this list. I have a problem that > is driving me insane, sorry if it seems simple to everyone, I've been > fighting with it for a while. :)) > > I want to take a variable length string and use it as a

Re: CTypes, 64 bit windows, 32 bit dll

2008-04-01 Thread rdahlstrom
On Apr 1, 2:03 am, Tim Roberts <[EMAIL PROTECTED]> wrote: > rdahlstrom <[EMAIL PROTECTED]> wrote: > >On Mar 31, 12:53 pm, "mimi.vx" <[EMAIL PROTECTED]> wrote: > >> On Mar 31, 4:22 pm, rdahlstrom <[EMAIL PROTECTED]> wrote: > > >> > So I have a 64 bit Windows 2003 system, running python 2.5.1.1. > >

Re: [OT] troll poll

2008-04-01 Thread Marco Mariani
Daniel Fetchinson wrote: > This is a quick poll to have scientific data on our beloved troll community: > > Whose trolling behaviour is more professional? (check one) You forgot to mention Ilias Lazaridis. He needs to be Analyzed and Evaluated, too. -- http://mail.python.org/mailman/listinfo

xlrd and cPickle.dump

2008-04-01 Thread patrick . waldo
Hi all, Sorry for the repeat I needed to reform my question and had some problems...silly me. The xlrd documentation says: "Pickleable. Default is true. In Python 2.4 or earlier, setting to false will cause use of array.array objects which save some memory but can't be pickled. In Python 2.5, ar

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

2008-04-01 Thread Colin J. Williams
Terry Reedy wrote: > "Rui Maciel" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > | 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

Re: Prototype OO

2008-04-01 Thread Bruno Desthuilliers
sam a écrit : > Steven D'Aprano napisał(a): > >>> I can see that Python and Javascript inheritance model is almost the >>> same. Both languages are dynamically typed. And it seems that using >>> "classes" in Python makes some things more complicated then it is >>> necessary (eg functions, methods

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

2008-04-01 Thread Gabriel Genellina
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 of print > calls and templates and comments the world's complexity in languages. > sadl

Canon Laser Printer

2008-04-01 Thread sharma . mohit80
Canon Laser Printer - LBP2900 :- Features: * New print technologies for faster printouts with print speeds of up to 12ppm monochrome, the LBP2900 offers fast printouts at an affordable price. * Two groundbreaking Canon technologies: CAPT 2.1 and Hi-SCoA redesign the printing process for imp

Re: python persistence

2008-04-01 Thread castironpi
On Apr 1, 12:16 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Tue, 01 Apr 2008 00:48:35 -0300, <[EMAIL PROTECTED]> escribió: > > > We do have, but on Windows, file is not locked to multi-tasking, > > shelve.  But why don't we have types in there, or non-string > > primitives in keys? > >

Re: standard input, for s in f, and buffering

2008-04-01 Thread Jorgen Grahn
On Mon, 31 Mar 2008 22:27:39 -0700 (PDT), Paddy <[EMAIL PROTECTED]> wrote: > On Mar 31, 11:47 pm, Jorgen Grahn <[EMAIL PROTECTED]> wrote: >> On 31 Mar 2008 06:54:29 GMT, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> >> wrote: >> >> > On Sun, 30 Mar 2008 21:02:44 +, Jorgen Grahn wrote: >> >> >>

Re: PyQt - How to prevent a dialog being resized?

2008-04-01 Thread Chris Ortner
On Apr 1, 12:12 am, Kelie <[EMAIL PROTECTED]> wrote: > Hello, > > My question is as subject. I tried something like this and it doesn't > work. > > def resizeEvent(self, event): >     self.size = event.oldSize() > > Any hint? > > Thank you. If you use the Qt designer you can set the minimum- and m

Re: Passing function objects to timeit

2008-04-01 Thread Peter Otten
George Sakkis wrote: > I'm afraid that the taken approach is worse than your patch. For one > thing, it allows only zero-arg functions. Of course one can work > around it by passing "lambda: f(...)" but that's adding extra overhead > which can be measurable for small fast functions. Even if passin

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

2008-04-01 Thread Rui Maciel
After reading all replies I've decided to keep the subscription to this group, crank up the tutorials and start getting my head around Python. Thanks for all the helpful replies. Kudos, everyone! Rui Maciel -- http://mail.python.org/mailman/listinfo/python-list

Re: class super method

2008-04-01 Thread brooklineTom
On Mon, 31 Mar 2008 21:41:37 -0500, 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 corners o

Re: python scripts to standalone executable

2008-04-01 Thread BlueBird
On Mar 31, 7:24 pm, Amit Gupta <[EMAIL PROTECTED]> wrote: > Hi > > I am looking for a some tool that can convert python scripts to > executable on Linux. > > I found freeeze.py as the only option so far. Couple of queries on > freeze: > > 1. Have anyone used the freeze utility and any experiences t

Re: How to insert multiple rows in SQLite Dbase

2008-04-01 Thread Miki
> Thanks regards to your suggestion, but I don't understand why we have > to put the IF statement? It's just an example, one possible implementation could be: def parse_data(data): mapping = {} for line in data.splitlines(): if not line.strip(): continue key, val

Re: Rubik's cube translation

2008-04-01 Thread castironpi
On Apr 1, 1:00 am, Tim Roberts <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > >What if this is connected: > > D > >array([[1, 2, 3], > >       [4, 5, 6], > >       [6, 7, 8]]) > E > >array([[6, 7, 8], > >       [0, 0, 0], > >       [0, 0, 0]]) > > >--> > > D > >array([[1,

Re: xlrd and cPickle.dump

2008-04-01 Thread John Machin
[EMAIL PROTECTED] wrote: > Hi all, > > Sorry for the repeat I needed to reform my question and had some > problems...silly me. Indeed. Is omitting the traceback part of the "reformation"? > > The xlrd documentation says: > "Pickleable. Default is true. In Python 2.4 or earlier, setting to > fa

Adding Images to MySQL

2008-04-01 Thread Victor Subervi
Hi; I´m trying to figure out how to upload images into a MySQL database. (Yes, that is what I want to do.) I have a form that asks for data, like this: 1ra Foto Pequeña: Then I send that form to a python script that processes like this: cursor.execute('insert into products (' + col_names + ') valu

Re: troll poll

2008-04-01 Thread George Sakkis
On Apr 1, 5:43 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > Delaney, Timothy (Tim) wrote: > > George Sakkis wrote: > > >> On Mar 31, 1:46 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > > More specifically, who can create a bigger mess on c.l.py? (check > one) > > [

Re: Using QSystemTrayIcon with PyQt

2008-04-01 Thread BlueBird
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 PROTECTED]> wrote: > > > > > On Mar 31, 11:49 am, Alex Teiche <[EM

Re: class super method

2008-04-01 Thread Ed Leafe
On Apr 1, 2008, at 7:23 AM, [EMAIL PROTECTED] wrote: > I've also found myself wondering: > > 1. What are the two arguments to super used for? To determine the type (1st arg) for which the superclass hierarchy is to be determined, and the instance (2nd arg) if the super object is to

Re: PyQt - How to prevent a dialog being resized?

2008-04-01 Thread David Boddie
On Apr 1, 12:12 am, Kelie wrote: > > My question is as subject. I tried something like this and it doesn't > > work. > > > > def resizeEvent(self, event): > > self.size = event.oldSize() > > > > Any hint? > > If you use the Qt designer you can set the minimum- and maximum window > size to th

Re: class super method

2008-04-01 Thread George Sakkis
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 corners of the language

Copy Stdout to string

2008-04-01 Thread sophie_newbie
Hi, I'm wondering if its possible to copy all of stdout's output to a string, while still being able to print on screen. I know you can capture stdout, but I still need the output to appear on the screen also... Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: class super method

2008-04-01 Thread Ed Leafe
On Apr 1, 2008, at 8:43 AM, George Sakkis wrote: > Did you follow the links I gave by any chance? With all the gotchas > and rules of how to use it properly, it's far from what I would call > elegant. Please. Anything powerful can be dangerous if used indiscriminately. But in a language

Re: Copy Stdout to string

2008-04-01 Thread Gerard Flanagan
On Apr 1, 4:03 pm, sophie_newbie <[EMAIL PROTECTED]> wrote: > Hi, I'm wondering if its possible to copy all of stdout's output to a > string, while still being able to print on screen. I know you can > capture stdout, but I still need the output to appear on the screen > also... > > Thanks! I don'

RE: Copy Stdout to string

2008-04-01 Thread Ryan Ginstrom
> On Behalf Of sophie_newbie > Hi, I'm wondering if its possible to copy all of stdout's > output to a string, while still being able to print on > screen. I know you can capture stdout, but I still need the > output to appear on the screen also... If I understand you correctly, the following c

TypeError with weakrefs

2008-04-01 Thread Ben Kaplan
I'm working with weakrefs, and I keep getting a type error The exact line I am getting is Exception exceptions.TypeError: '__call__() takes exactly 0 arguments (1 given)' in ignored The strange part is that I am not trying to call anything. From debugging, I found out that the message is pr

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

2008-04-01 Thread Reedick, Andrew
> -Original Message- > From: [EMAIL PROTECTED] [mailto:python- > [EMAIL PROTECTED] On Behalf Of Ant > Sent: Monday, March 31, 2008 5:58 PM > To: python-list@python.org > Subject: Re: Is this a good time to start learning python? > > On Mar 31, 5:40 pm, Rui Maciel <[EMAIL PROTECTED]> wrot

Re: Copy Stdout to string

2008-04-01 Thread sophie_newbie
On Apr 1, 3:03 pm, sophie_newbie <[EMAIL PROTECTED]> wrote: > Hi, I'm wondering if its possible to copy all of stdout's output to a > string, while still being able to print on screen. I know you can > capture stdout, but I still need the output to appear on the screen > also... > > Thanks! I foun

Homework help

2008-04-01 Thread bobby . connor
Hey guys I haev this homework assignment due today I don't necessarily want the answers, but need help on how to approach it/the steps i need to solve the problems Thanks # (2 Points) Write a python function howMany(item,lst) which accepts an item and a lst of items and returns the number of time

Re: Homework help

2008-04-01 Thread Paul Rubin
[EMAIL PROTECTED] writes: > I don't necessarily want the answers, but need help on how to approach > it/the steps i need to solve the problems What parts are you having difficulty with? Are there some course materials and have you read them yet? -- http://mail.python.org/mailman/listinfo/python-

Re: Homework help

2008-04-01 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : > Hey guys > I haev this homework assignment due today Isn't it a bit too late to worry about it then ? -- http://mail.python.org/mailman/listinfo/python-list

Re: python persistence

2008-04-01 Thread Gabriel Genellina
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 >> >> Don't do that then. Or use the available pickle hooks to customize how  

Re: bsddb3 thread problem

2008-04-01 Thread Rhamphoryncus
On Apr 1, 1:29 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > In my application I am trying to access(read) a DB thru a thread while > my main thread is adding data to it and it gives following error(s) > > bsddb._db.DBRunRecoveryError: (-30974, 'DB_RUNRECOVERY: Fatal error, > run database re

Re: Homework help

2008-04-01 Thread Dave Hansen
On Apr 1, 11:29 am, [EMAIL PROTECTED] wrote: > On Apr 1, 12:17 pm, Paul Rubin wrote: > > > [EMAIL PROTECTED] writes: > > > I don't necessarily want the answers, but need help on how to approach > > > it/the steps i need to solve the problems > > > What parts are you havin

Re: PyQt - How to prevent a dialog being resized?

2008-04-01 Thread Kelie
Thanks to all. I used the approach suggested by David. -- http://mail.python.org/mailman/listinfo/python-list

Re: class super method

2008-04-01 Thread George Sakkis
On Apr 1, 10:21 am, Ed Leafe <[EMAIL PROTECTED]> wrote: > On Apr 1, 2008, at 8:43 AM, George Sakkis wrote: > > Pehaps, at least as long as you make sure that all superclasses have a > > compatible signature - which in practice typically means accept > > arbitrary *args and **kwargs in every class

Re: Homework help

2008-04-01 Thread Tommy Grav
On Apr 1, 2008, at 12:29 PM, [EMAIL PROTECTED] wrote: > On Apr 1, 12:17 pm, Paul Rubin wrote: >> [EMAIL PROTECTED] writes: >>> I don't necessarily want the answers, but need help on how to >>> approach >>> it/the steps i need to solve the problems >> >> What parts are

Re: Homework help

2008-04-01 Thread bobby . connor
On Apr 1, 12:17 pm, Paul Rubin wrote: > [EMAIL PROTECTED] writes: > > I don't necessarily want the answers, but need help on how to approach > > it/the steps i need to solve the problems > > What parts are you having difficulty with? Are there some course > materials and

Re: class super method

2008-04-01 Thread Gabriel Genellina
En Tue, 01 Apr 2008 11:21:48 -0300, Ed Leafe <[EMAIL PROTECTED]> escribió: > On Apr 1, 2008, at 8:43 AM, George Sakkis wrote: > >> Pehaps, at least as long as you make sure that all superclasses have a >> compatible signature - which in practice typically means accept >> arbitrary *args and **kwarg

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

2008-04-01 Thread lbonafide
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   > rid of nasty things that could not be dropped otherwise. I would consider breaking production code to be "nasty" as well. -- http://mail.python.org/m

Re: Homework help

2008-04-01 Thread Terry Reedy
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Hey guys | I haev this homework assignment due today | I don't necessarily want the answers, but need help on how to approach | it/the steps i need to solve the problems | Thanks Read the section of the tutorial (and possibly Launguag

Re: bsddb3 thread problem

2008-04-01 Thread Nick Craig-Wood
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > In my application I am trying to access(read) a DB thru a thread while > my main thread is adding data to it and it gives following error(s) [snip] > Do anybody has a clue what I am doing wrong here? Using threads with bsddb3. I spent weeks trying

Re: Adding Images to MySQL

2008-04-01 Thread Gabriel Genellina
En Tue, 01 Apr 2008 09:36:00 -0300, Victor Subervi <[EMAIL PROTECTED]> escribió: > Hi; > I´m trying to figure out how to upload images into a MySQL database. > (Yes, > that is what I want to do.) I have a form that asks for data, like this: > 1ra Foto Pequeña: > > Then I send that form to a p

Re: Homework help

2008-04-01 Thread John Nagle
[EMAIL PROTECTED] wrote: > Hey guys > I haev this homework assignment due today > I don't necessarily want the answers, but need help on how to approach > it/the steps i need to solve the problems > Thanks > > # (2 Points) Write a python function howMany(item,lst) which accepts > an item and a ls

manipulating hex values

2008-04-01 Thread Stephen Cattaneo
Hi all, 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 manipulating my hex values. Seems to me that there are tw

[ANN] Python course, May 2008

2008-04-01 Thread wesley chun
*** my apologies... this training course is next month, not this Fall! *** contact me privately off-list for further details. thanks! > FINAL ANNOUNCEMENT > > Need to get up-to-speed with Python as quickly as possible? Come join > me, Wesley Chun, author of Prentice-Hall's well-received "Core P

Re: Homework help

2008-04-01 Thread Marc 'BlackJack' Rintsch
On Tue, 01 Apr 2008 09:11:12 -0700, bobby.connor wrote: > # (2 Points) Write a python function howMany(item,lst) which accepts > an item and a lst of items and returns the number of times item occurs > in lst. For example, howMany(3,[1,2,3,2,3]) should return 2. Study the methods on lists. > #

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

2008-04-01 Thread Gabriel Genellina
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   >> rid of nasty things that could not be dropped otherwise. > > I would con

Re: deleting a line from a file

2008-04-01 Thread Mark Wooding
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 keyword argument `INPLACE=1' is : passed to `input()' or to the `FileInput

Re: [ANN] Python courses this Fall

2008-04-01 Thread wesley chun
FINAL ANNOUNCEMENT Need to get up-to-speed with Python as quickly as possible? Come join me, Wesley Chun, author of Prentice-Hall's well-received "Core Python Programming," for another comprehensive intro course next month in beautiful Northern California! I look forward to meeting you! - - - - -

Re: Python in High School

2008-04-01 Thread mdomans
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 python is simple to read and write, can be debuged easily, is intui

Re: Homework help

2008-04-01 Thread Nick Craig-Wood
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hey guys > I haev this homework assignment due today > I don't necessarily want the answers, but need help on how to approach > it/the steps i need to solve the problems > Thanks > > # (2 Points) Write a python function howMany(item,lst) which

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 in High School

2008-04-01 Thread sprad
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. I was initially thinking abo

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: 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: 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 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: class super method

2008-04-01 Thread Michele Simionato
On Apr 1, 4:41 am, Ed Leafe <[EMAIL PROTECTED]> wrote: > I disagree - super is quite elegant and dependable. > > Because Python support multiple inheritance, it is difficult to > manually ensure that when augmenting a method that the correct > superclass calls are made. super() hand

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

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

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: 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)]. >

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: 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

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: 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: 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 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: 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

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: 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,

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: 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: 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: [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: 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

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 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

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: 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: 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: 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: 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: 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: 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

  1   2   >