Re: WTF?

2005-11-01 Thread Jim Benson
On Tue, 1 Nov 2005, James Stroud wrote: > Why do my posts get held for suspcious headers and troll Xha Lee gets to post > all sorts of profanity and ranting without any problem? > I like many others have had the same experience. I recently choose to respond to one of Xha Lee's post and my Re (

Re: wxPython: updating style of StaticText from event generated by button

2005-11-01 Thread Andrea Gavana
Hello Kees, > Thanks :), I'll give both of your hints a try. What I basically want to > do is have something like an "old style" button in win xp that's either > "up" or "down", since I couldn't find a more straightforward method I > thought taking a text widget and adjusting the border at mouse c

Re: wxPython: updating style of StaticText from event generated by button

2005-11-01 Thread KvS
Thanks :), I'll give both of your hints a try. What I basically want to do is have something like an "old style" button in win xp that's either "up" or "down", since I couldn't find a more straightforward method I thought taking a text widget and adjusting the border at mouse click would be the bes

Re: WTF?

2005-11-01 Thread Grant Edwards
On 2005-11-01, James Stroud <[EMAIL PROTECTED]> wrote: > On Tuesday 01 November 2005 14:26, Grant Edwards wrote: >> On 2005-11-01, James Stroud <[EMAIL PROTECTED]> wrote: >> > Why do my posts get held for suspcious headers > ... >> Held? It's not a moderated group... > > And I quoteth (that's King

Re: If Statement Error (Tic Tac Toe)

2005-11-01 Thread ale . of . ginger
Nevermind my previous reply: I've been fixing up the code and understand it. I'm at a nifty 80 lines where I am at now rather than 209 lines in the previous version! The changes are immense! The only problem I have is whenever player two goes, it says the cell is filled. But the code: if gameb

Re: WTF?

2005-11-01 Thread Ed Hotchkiss
happens to me too. -- http://mail.python.org/mailman/listinfo/python-list

Re: Rich __repr__

2005-11-01 Thread Ben Finney
Erik Max Francis <[EMAIL PROTECTED]> wrote: > Ben Finney wrote: > > If I want to implement a __repr__ that's reasonably "nice" to the > > programmer, what's the Right Way? Are there recipes I should look > > at? > > I tend to use: > > def __repr__(self): > if hasattr(self, '__str__'

Re: wxPython: updating style of StaticText from event generated by button

2005-11-01 Thread Andrea Gavana
Hello Kees, > and via the even handler I try to give StaticText a different style: In general you *can not* change in runtime the style of a widget. Only a very limited subset of the wxPython widgets supports style changes in runtime. I would suggest you 2 alternatives: 1) Use wx.lib.stattext ==

Problems with emulation of numeric types and coercion rules

2005-11-01 Thread ziga . seilnacht
""" I am trying to write some classes representing the quaternion number. I wrote a base class, which implements only the numerical interface, and a few subclasses, which provide methods for their specific domain. Since the operator methods will be the same for all these classes, the base class op

Re: Rich __repr__

2005-11-01 Thread Ben Finney
Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > In <[EMAIL PROTECTED]>, Ben Finney wrote: > > > class Human_Sex(str): > > def __repr__(self): > > repr_str = "%s(name=%s)" % ( > > self.__class__.__name__, > > str.__repr__(self) > >

Re: Python's website does a great disservice to the language

2005-11-01 Thread Grant Edwards
On 2005-11-01, Benjamin Niemann <[EMAIL PROTECTED]> wrote: > Steven D'Aprano wrote: > >> http://www.python.com/ perhaps? > > Yep, let's make this the new official python site ;) Well, I have to admit that I think the scheme they use to get you load the large flash chunk is pretty clever. Most sit

wxPython: updating style of StaticText from event generated by button

2005-11-01 Thread KvS
Hi all, I'm pretty new to (wx)Python so plz. don't shoot me if I've missed something obvious ;). I have a panel inside a frame, on which a Button and a StaticText is placed: self.panel = wx.Panel(self,-1) self.button = wx.Button(self.panel,-1,"Klikkerdeklik") self.button.SetPosition((200,40)) sel

Re: If Statement Error (Tic Tac Toe)

2005-11-01 Thread ale . of . ginger
So is there a way I have to set up the string OX in the beginning? Is this where it houses the location of the Xs and Os to determine whether or not a letter is already there? -- http://mail.python.org/mailman/listinfo/python-list

Re: WTF?

2005-11-01 Thread James Stroud
On Tuesday 01 November 2005 14:26, Grant Edwards wrote: > On 2005-11-01, James Stroud <[EMAIL PROTECTED]> wrote: > > Why do my posts get held for suspcious headers ... > Held? It's not a moderated group... And I quoteth (that's King James for "cuteth-and-pasteth"): > Your mail to 'Python-list' w

Re: Python's website does a great disservice to the language

2005-11-01 Thread Benjamin Niemann
Steven D'Aprano wrote: > http://www.python.com/ perhaps? Yep, let's make this the new official python site ;) -- Benjamin Niemann Email: pink at odahoda dot de WWW: http://www.odahoda.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: If Statement Error (Tic Tac Toe)

2005-11-01 Thread Mike Meyer
[EMAIL PROTECTED] writes: > Thank you. It seems I didn't understand logic statements as much as I > thought I did! > > The one remaining question I have deals with this: > > if gameboard[cell] not in 'OX': > gameboard[cell] = 'O' > else: > print "This cell is already filled."

Re: array of Tkinter variables?

2005-11-01 Thread Larry Bates
Jo Schambach wrote: > I want to build an array of entry widgets in python with Tkinter that > all have similar textvariables. I was hoping that I could use an array > of StringVar variables to attach to these widgets, so that I can loop > through the widget creation. But my simple minded approach

Re: Python's website does a great disservice to the language

2005-11-01 Thread Mike Meyer
"CppNewB" <[EMAIL PROTECTED]> writes: > My thoughts weren't to add a flash demo or develop some 500K logo or fixing > the font size. But the logos look like they were done in Paint and maybe a > readable default font is in order. So what's wrong with the fonts they use - where they didn't let yo

Re: Expanding Python as a macro language

2005-11-01 Thread qwweeeit
I didn't want to replicate any more, expecially because the last replies (Jorgen Grahn, Sybren Stuvel and Mike Meyer) have taken a direction that doesn't interest me (GUI or not GUI?), but I must thank gmi for his contribution. gmi wrote: > This may be of some use for you: >- http://www.idyll.

Re: WTF?

2005-11-01 Thread Grant Edwards
On 2005-11-01, James Stroud <[EMAIL PROTECTED]> wrote: > Why do my posts get held for suspcious headers and troll Xha > Lee gets to post all sorts of profanity and ranting without > any problem? Held? It's not a moderated group... -- Grant Edwards grante Yow! I'm

Re: WTF?

2005-11-01 Thread Ivan Shevanski
On 11/1/05, James Stroud <[EMAIL PROTECTED]> wrote: Why do my posts get held for suspcious headers and troll Xha Lee gets to postall sorts of profanity and ranting without any problem?--James StroudUCLA-DOE Institute for Genomics and ProteomicsBox 951570 Los Angeles, CA 90095http://www.jamesstroud.

array of Tkinter variables?

2005-11-01 Thread Jo Schambach
I want to build an array of entry widgets in python with Tkinter that all have similar textvariables. I was hoping that I could use an array of StringVar variables to attach to these widgets, so that I can loop through the widget creation. But my simple minded approach failed: for i in ran

Re: If Statement Error (Tic Tac Toe)

2005-11-01 Thread ale . of . ginger
Thank you. It seems I didn't understand logic statements as much as I thought I did! The one remaining question I have deals with this: if gameboard[cell] not in 'OX': gameboard[cell] = 'O' else: print "This cell is already filled." turnnumber -= 1 (gameboard[cell]

WTF?

2005-11-01 Thread James Stroud
Why do my posts get held for suspcious headers and troll Xha Lee gets to post all sorts of profanity and ranting without any problem? -- James Stroud UCLA-DOE Institute for Genomics and Proteomics Box 951570 Los Angeles, CA 90095 http://www.jamesstroud.com/ -- http://mail.python.org/mailman/lis

Re: If Statement Error (Tic Tac Toe)

2005-11-01 Thread Mike Meyer
[EMAIL PROTECTED] writes: > Greetings! I am trying to make a multiplayer (no AI, 2 person) game of > tic tac toe in Python. So far it has been pretty simple. My only > concern is with the win checking to see if a person has won. At first > it looked like it was working, but now it sometimes as

Re: Python's website does a great disservice to the language

2005-11-01 Thread Steven D'Aprano
On Tue, 01 Nov 2005 17:45:11 +, CppNewB wrote: > I was trying to advocate using Python for an upcoming prototype, so my boss > went out to take a look at the documentation and try and get a feel for what > the language is all about. > > First comment; "I hope the language is designed better

Re: python.org offline

2005-11-01 Thread Sybren Stuvel
A.M. Kuchling enlightened us with: > I suspect this is teething problems related to the move to a new > server. I've bumped up the number of Apache processes, so we'll see > if that alleviates the problem. Thanks! I hope it helps! Sybren -- The problem with the world is stupidity. Not saying th

Re: Object-Relational Mapping API for Python

2005-11-01 Thread Oliver Andrich
Hi, if you enjoyed Hibernate or got intrigued by it, go and look into SQLOject (http://www.sqlobject.org/). And you will be less intrigued by Hibernate, but will start to really like SQLObject. :) Best regards, Oliver -- Oliver Andrich <[EMAIL PROTECTED]> --- http://roughbook.de/ -- http://mail.

Re: Python's website does a great disservice to the language

2005-11-01 Thread CppNewB
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > CppNewB>and maybe a readable default font is in order.< > > That font looks fine to me, maybe there's a problem in the default font > of your browser, you can probably fix your problem... > "Explicit is better than implicit" I know ho

Re: Python's website does a great disservice to the language

2005-11-01 Thread bearophileHUGS
CppNewB>and maybe a readable default font is in order.< That font looks fine to me, maybe there's a problem in the default font of your browser, you can probably fix your problem... Bye, bearophile -- http://mail.python.org/mailman/listinfo/python-list

Re: extracting numbers from a file, excluding words

2005-11-01 Thread Micah Elliott
On Nov 01, Mike Meyer wrote: > Kristina Kudriaðova <[EMAIL PROTECTED]> writes: > > > 1 Nov 2005 09:19:45 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > >> Hi, I have a file with this content: > >> > >> z zzz z > >> ... > >> xxx xx x 34.215 > >> zzz zz > >> ..

Re: Python's website does a great disservice to the language

2005-11-01 Thread David Rasmussen
Steve Holden wrote: > > [Thinks: wonder if it's time to release a sneak preview]. > It is! It is! /David -- http://mail.python.org/mailman/listinfo/python-list

Re: Object-Relational Mapping API for Python

2005-11-01 Thread Dave Cook
On 2005-11-01, Aquarius <[EMAIL PROTECTED]> wrote: > I explored Java's Hibernate a bit and I was intrigued by how you can > map entity objects to database tables, preserving all the relations and > constraits. I am interested if there is something like this for Python > - I noticed some APIs in th

Re: Python's website does a great disservice to the language

2005-11-01 Thread CppNewB
"John J. Lee" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Robert Boyd <[EMAIL PROTECTED]> writes: > [...] >> rounded corners. The Python site is clean and to-the-point. I guess I >> could >> admin that the various Python logos look dated, but that's about it. Oh, >> and > [...]

Re: frozenset/subclassing/keyword args

2005-11-01 Thread Mark E. Fenner
> Without researching it, I would guess that you have to override __new__ > so as not to pass through the myName arg to the otherwise inherited and > called-with-all-arguments __new__ of the base class. > Regards, > Bengt Richter Bengt, Thanks as always! Python's rabbit holes always go a lit

Re: Python's website does a great disservice to the language

2005-11-01 Thread CppNewB
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > [EMAIL PROTECTED] wrote: > > to post a "can we round up a couple of designers?" message with an in- > flammatory subject line. that algorithm is rather simplistic, and can be If it's any consolation, I did check Google

Re: Flat file, Python accessible database?

2005-11-01 Thread Karlo Lozovina
[EMAIL PROTECTED] (=?utf-8?Q?Bj=C3=B6rn_Lindstr=C3=B6m?=) wrote in news:[EMAIL PROTECTED]: > If you need it to be SQL-like, SQLite seems to be the right thing. Tried that one, but had some problems setting things up. On the other hand, BerkeleyDB + Pybsddb worked like a charm, with no setting u

RE: If Statement Error (Tic Tac Toe)

2005-11-01 Thread Delaney, Timothy (Tim)
This site will help you get a useful answer: http://www.catb.org/~esr/faqs/smart-questions.html Tim Delaney -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter problem

2005-11-01 Thread dale cooper
Thanks! At this moment I can see the first python generated Tk window on my screen. It's great ;-))) -- http://mail.python.org/mailman/listinfo/python-list

If Statement Error (Tic Tac Toe)

2005-11-01 Thread ale . of . ginger
Greetings! I am trying to make a multiplayer (no AI, 2 person) game of tic tac toe in Python. So far it has been pretty simple. My only concern is with the win checking to see if a person has won. At first it looked like it was working, but now it sometimes assigns a win when you enter an X or

Re: Object-Relational Mapping API for Python

2005-11-01 Thread Robert Boyd
On 1 Nov 2005 11:22:23 -0800, Aquarius <[EMAIL PROTECTED]> wrote: I explored Java's Hibernate a bit and I was intrigued by how you canmap entity objects to database tables, preserving all the relations andconstraits. I am interested if there is something like this for Python - I noticed some APIs i

Re: looking for a good python module for MS SQL server

2005-11-01 Thread Peter Decker
On 11/1/05, Jarek Zgoda <[EMAIL PROTECTED]> wrote: > Things didn't change, as last update to adodbapi was long time ago... I > had no problems with stored procedures accessed using cursor's execute() > method (i.e. execute('exec sp_someproc, param')), but I never tried to > get any results, just c

Re: extracting numbers from a file, excluding words

2005-11-01 Thread Mike Meyer
Kristina Kudriaðova <[EMAIL PROTECTED]> writes: > 1 Nov 2005 09:19:45 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: >> Hi, I have a file with this content: >> >> z zzz z >> ... >> xxx xx x 34.215 >> zzz zz >> ... >> > > Hi, > > I'd suggest doing this: > > f =

Re: Xah's edu corner: the Journey of Foreign Characters thru Internet

2005-11-01 Thread Mike Meyer
[EMAIL PROTECTED] writes: > Interesting opinions this man has, I must say. A Sith of Computing he > may be? No. Sith are competent but evil. Xah Leh is incompetent, but apparently well-intentioned. Some of his opinions are correct, but that appears to be more by accident than anything else, and t

Re: Python's website does a great disservice to the language

2005-11-01 Thread John J. Lee
Robert Boyd <[EMAIL PROTECTED]> writes: [...] > rounded corners. The Python site is clean and to-the-point. I guess I could > admin that the various Python logos look dated, but that's about it. Oh, and [...] I love the logos! python.org looks simple to me, not amateurish. But that just goes to

Re: Rich __repr__

2005-11-01 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Ben Finney wrote: > class Human_Sex(str): > def __repr__(self): > repr_str = "%s(name=%s)" % ( > self.__class__.__name__, > str.__repr__(self) > ) > return repr_str I'm a bit surprised that `Hu

Re: callback for ctypes

2005-11-01 Thread David Wahler
James Hu wrote: > Hi, gurus, > > I would like to use ctypes to implement callback function for QImage > Camera to capture image asynchronously, and I have the c++ code of > callback, but I am totally in the dark, the ctypes tutorial is not good > enough for me to do that, does someone know where t

Re: callback for ctypes

2005-11-01 Thread Steve Horsley
James Hu wrote: > Hi, gurus, > > I would like to use ctypes to implement callback function for QImage > Camera to capture image asynchronously, and I have the c++ code of > callback, but I am totally in the dark, the ctypes tutorial is not good > enough for me to do that, does someone know where t

Re: Python's website does a great disservice to the language

2005-11-01 Thread Rocco Moretti
[EMAIL PROTECTED] wrote: > So the first thing you do when you go to a web page is to google if > they are going to redesign it? I think the implication was "The first thing to do before *suggesting that a redesign is nessasary* is to Google to see if such a redesign is taking place." -- http://

Re: Python's website does a great disservice to the language

2005-11-01 Thread Steve Horsley
[EMAIL PROTECTED] wrote: > Grant Edwards wrote: >> May God save us from "professional" looking web sites. >> I like the Python web site. It's simple, easy to read, and easy to >> use. > > I strongly agree with you, the web is full of web sites that are nice > "looking" but have microscopic fixed

Re: Python's website does a great disservice to the language

2005-11-01 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > So the first thing you do when you go to a web page is to google if > they are going to redesign it? the first thing he did was to go to the page, the next thing he did was to post a "can we round up a couple of designers?" message with an in- flammatory subject line.

Re: Python's website does a great disservice to the language

2005-11-01 Thread Terry Hancock
On Tuesday 01 November 2005 01:32 pm, [EMAIL PROTECTED] wrote: > So the first thing you do when you go to a web page is to google if > they are going to redesign it? No, but it might be wise before posting a potentially inflammatory and insulting comment about in on the mailing list. ;-) Seriousl

Re: Python's website does a great disservice to the language

2005-11-01 Thread Robert Kern
[EMAIL PROTECTED] wrote: > So the first thing you do when you go to a web page is to google if > they are going to redesign it? No one is suggesting that it should be. However, Googling before coming to a newsgroup to complain about anything is usually a good idea. -- Robert Kern [EMAIL PROTECTE

Re: extracting numbers from a file, excluding words

2005-11-01 Thread Jeffrey Schwab
Steve Horsley wrote: > Kristina Kudriašova wrote: > >> 1 Nov 2005 09:19:45 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: >> >>> Hi, I have a file with this content: >>> >>> z zzz z >>> ... >>> xxx xx x 34.215 >>> zzz zz >>> ... >>> >> >> Hi, >> >> I'd suggest

Re: Object-Relational Mapping API for Python

2005-11-01 Thread Lawrence Oluyede
sIl 2005-11-01, Aquarius <[EMAIL PROTECTED]> ha scritto: > I explored Java's Hibernate a bit and I was intrigued by how you can > map entity objects to database tables, preserving all the relations and > constraits. I am interested if there is something like this for Python > - I noticed some APIs

Re: Using graphviz to visualize trace.py output, anybody?

2005-11-01 Thread svenn . are
This looks like something, but I have to introspect myself to accept fink on my mac. Thanks for the pointer. -- Svenn -- http://mail.python.org/mailman/listinfo/python-list

Re: Using graphviz to visualize trace.py output, anybody?

2005-11-01 Thread svenn . are
I was originally thinking of piping the output of trace.py into a text file and then have python massage that text file into a dot file for graphviz to visualize. Some formatting is possible with graphviz, but I would expect the graph to be very dependent on how the program under test runs so I ha

Re: extracting numbers from a file, excluding words

2005-11-01 Thread Steve Horsley
Kristina Kudriašova wrote: > 1 Nov 2005 09:19:45 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: >> Hi, I have a file with this content: >> >> z zzz z >> ... >> xxx xx x 34.215 >> zzz zz >> ... >> > > Hi, > > I'd suggest doing this: > > f = file('...') > for l

Re: Why the nonsense number appears?

2005-11-01 Thread Steve Horsley
Dan Bishop wrote: > That's A source of error, but it's only part of the story. The > double-precision binary representation of 0.039 is 5620492334958379 * > 2**(-57), which is in error by 1/18014398509481984000. By contrast, > Johnny Lee's answer is in error by 9/262144000, which is more than 61

Re: Xah's edu corner: the Journey of Foreign Characters thru Internet

2005-11-01 Thread svenn . are
Interesting opinions this man has, I must say. A Sith of Computing he may be? -- Svenn -- http://mail.python.org/mailman/listinfo/python-list

Re: python.org offline

2005-11-01 Thread A.M. Kuchling
On Tue, 1 Nov 2005 18:18:06 +0100, Sybren Stuvel <[EMAIL PROTECTED]> wrote: > Yes, I can read. My question is: does anyone know why this happens so > often lately? I suspect this is teething problems related to the move to a new server. I've bumped up the number of Apache processes, so w

Re: Scanning a file

2005-11-01 Thread David Rasmussen
Steven D'Aprano wrote: > > However, there may be a simpler solution *fingers crossed* -- you are > searching for a sub-string "\x00\x00\x01\x00", which is hex 0x100. > Surely you don't want any old substring of "\x00\x00\x01\x00", but only > the ones which align on word boundaries? > Nope, so

Re: Scanning a file

2005-11-01 Thread David Rasmussen
Bengt Richter wrote: > > Good point, but perhaps the bit pattern the OP is looking for is guaranteed > (e.g. by some kind of HDLC-like bit or byte stuffing or escaping) not to occur > except as frame marker (which might make sense re the problem of re-synching > to frames in a glitched video strea

Re: Scanning a file

2005-11-01 Thread David Rasmussen
Lasse Vågsæther Karlsen wrote: > David Rasmussen wrote: > > >> If you must know, the above one-liner actually counts the number of >> frames in an MPEG2 file. I want to know this number for a number of >> files for various reasons. I don't want it to take forever. > > Don't you risk getting mo

Re: Python's website does a great disservice to the language

2005-11-01 Thread svenn . are
So the first thing you do when you go to a web page is to google if they are going to redesign it? -- Svenn -- http://mail.python.org/mailman/listinfo/python-list

Re: Automatically creating a HOME environ variable on Windows?

2005-11-01 Thread jim . eggleston
os.path.expanduser('~') is a bit cryptic for non-unix people. os.path.gethome() or something like that would be nicer. expanduser() should then call gethome() so the logic is in one place. It looks like the existing logic in expanduser() is out of date anyway. It should be updated to use %USERPROF

Re: Add attribute using pyxml

2005-11-01 Thread Robert Boyd
On 1 Nov 2005 11:09:10 -0800, PyPK <[EMAIL PROTECTED]> wrote: How do I add a new attribute to the existing xml Document tree??? Add an attribute of an element, or add a new element? I hope I've understood your question correctly...this demonstrates both adding a brand new element (tag) and an att

Re: Python's website does a great disservice to the language

2005-11-01 Thread Sybren Stuvel
[EMAIL PROTECTED] enlightened us with: > I strongly agree with you, the web is full of web sites that are > nice "looking" but have microscopic fixed fonts (against the very > spirit of Html), are full of useless flash, have lots of html > structures nested inside other ones (PHP sites are often li

Re: Automatically creating a HOME environ variable on Windows?

2005-11-01 Thread jim . eggleston
Does Windows 98 have a %USERPROFILE% environment variable? -- http://mail.python.org/mailman/listinfo/python-list

Object-Relational Mapping API for Python

2005-11-01 Thread Aquarius
I explored Java's Hibernate a bit and I was intrigued by how you can map entity objects to database tables, preserving all the relations and constraits. I am interested if there is something like this for Python - I noticed some APIs in the "Cheeseshop", but most of them were alpha, better, or seem

Re: python.org offline

2005-11-01 Thread Sybren Stuvel
[EMAIL PROTECTED] enlightened us with: > Works fine for me, and I check it pretty frequently. Perhaps it's a > problem with your ISP's communication with the Python.org ISP? I doubt it, since they are one and the same ;-) Sybren -- The problem with the world is stupidity. Not saying there shoul

Re: python.org offline

2005-11-01 Thread Sybren Stuvel
Steve Holden enlightened us with: > Possibly real maintenance occasioned by a recent move to a new > server, in preparation for the new-look web site. Makes sense. Thanks for the info! Sybren -- The problem with the world is stupidity. Not saying there should be a capital punishment for stupidit

Add attribute using pyxml

2005-11-01 Thread PyPK
How do I add a new attribute to the existing xml Document tree??? -- http://mail.python.org/mailman/listinfo/python-list

Python and DevTrack?

2005-11-01 Thread warpcat
I'm a python nubie, so be gental. I've been setting up functionality by managing my Perforce clientspec with python (since it seems all of P4's commands are avaliable at the prompt), and I'd love to get access to DevTrack in the same way, but it's looking like it's off limits, UI only. Does anyon

callback for ctypes

2005-11-01 Thread James Hu
Hi, gurus, I would like to use ctypes to implement callback function for QImage Camera to capture image asynchronously, and I have the c++ code of callback, but I am totally in the dark, the ctypes tutorial is not good enough for me to do that, does someone know where to dig more info for ctypes c

scweb pre-release 0.1

2005-11-01 Thread Philippe C. Martin
Dear all, referring to www.snakecard.com/WordPress: As I am _very_ much struggling with xpcom and pyxpcom, I have put on www.snakecard.com/SCWEB: 1) the cgi scripts 2) a firefox plugin which simulates the xpcom (ie: access to the external device ... smart card) and talks to the cgi scripts The

Re: Python's website does a great disservice to the language

2005-11-01 Thread Fredrik Lundh
message = message.replace("you're", "your") -- http://mail.python.org/mailman/listinfo/python-list

Re: Python's website does a great disservice to the language

2005-11-01 Thread bearophileHUGS
Grant Edwards wrote: > May God save us from "professional" looking web sites. > I like the Python web site. It's simple, easy to read, and easy to > use. I strongly agree with you, the web is full of web sites that are nice "looking" but have microscopic fixed fonts (against the very spirit of Ht

Re: Python's website does a great disservice to the language

2005-11-01 Thread Robert Boyd
On 11/1/05, CppNewB <[EMAIL PROTECTED]> wrote: ...First comment; "I hope the language is designed better than the site."  Thesite is readable, but is amateurish.  If I had an ounce of design skills inme, I would take a stab at it. Does boss have a problem with java.sun.com as well? The main visual

Re: Python's website does a great disservice to the language

2005-11-01 Thread Fredrik Lundh
"CppNewB" wrote: > I was trying to advocate using Python for an upcoming prototype, so my boss > went out to take a look at the documentation and try and get a feel for what > the language is all about. > > First comment; "I hope the language is designed better than the site." so your boss is a t

Re: Python's website does a great disservice to the language

2005-11-01 Thread Micah Elliott
On Nov 01, CppNewB wrote: > First comment; "I hope the language is designed better than the > site." The site is readable, but is amateurish. That's flaim bait if I ever saw it! I find the site quite lovely: very readable, no ads, well organized, nice colors, simple, easy to maintain (uses ht2ht

Re: Python's website does a great disservice to the language

2005-11-01 Thread CppNewB
Good news Steve. It's definitely time for a sneak preview. Let's see it! "Steve Holden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > CppNewB wrote: >> I was trying to advocate using Python for an upcoming prototype, so my >> boss went out to take a look at the documentation an

Re: Storing empties

2005-11-01 Thread Aahz
In article <[EMAIL PROTECTED]>, Alex Martelli <[EMAIL PROTECTED]> wrote: >Aahz <[EMAIL PROTECTED]> wrote: >> In article <[EMAIL PROTECTED]>, >> Alex Martelli <[EMAIL PROTECTED]> wrote: >>> >>>the canonical idiom when you need such distinction is: >>> >>>_not_there = object() >>>def foo(bar=_not_the

Re: Python's website does a great disservice to the language

2005-11-01 Thread Steve Holden
CppNewB wrote: > I was trying to advocate using Python for an upcoming prototype, so my boss > went out to take a look at the documentation and try and get a feel for what > the language is all about. > > First comment; "I hope the language is designed better than the site." The > site is read

Re: python.org offline

2005-11-01 Thread calad . sigilon
Works fine for me, and I check it pretty frequently. Perhaps it's a problem with your ISP's communication with the Python.org ISP? Sybren Stuvel wrote: > Hi all, > > In the past weeks, I often got this message from the python.org > webserver: > > ---

Re: Python's website does a great disservice to the language

2005-11-01 Thread Grant Edwards
On 2005-11-01, CppNewB <[EMAIL PROTECTED]> wrote: > I was trying to advocate using Python for an upcoming > prototype, so my boss went out to take a look at the > documentation and try and get a feel for what the language is > all about. > > First comment; "I hope the language is designed better t

Re: Flat file, Python accessible database?

2005-11-01 Thread Micah Elliott
On Nov 01, Karlo Lozovina wrote: > I've been Googling around for _small_, flat file (no server > processes), SQL-like database which can be easily access from > Python. Speed and perforamnce are of no issue, most important is > that all data is contained within single file and no server binary > ha

Re: python.org offline

2005-11-01 Thread Steve Holden
Sybren Stuvel wrote: > dcrespo enlightened us with: > >>"The server is temporarily unable to service your request due to >>maintenance downtime or capacity problems." > > > Yes, I can read. My question is: does anyone know why this happens so > often lately? > Possibly real maintenance occasion

Re: Flat file, Python accessible database?

2005-11-01 Thread Kent Johnson
Karlo Lozovina wrote: > I've been Googling around for _small_, flat file (no server processes), > SQL-like database which can be easily access from Python. Speed and > perforamnce are of no issue, most important is that all data is contained > within single file and no server binary has to run i

Re: Flat file, Python accessible database?

2005-11-01 Thread Björn Lindström
Karlo Lozovina <[EMAIL PROTECTED]> writes: > I've been Googling around for _small_, flat file (no server > processes), SQL-like database which can be easily access from Python. If you need it to be SQL-like, SQLite seems to be the right thing. It's not clear to me what you mean by "flat" file he

Python's website does a great disservice to the language

2005-11-01 Thread CppNewB
I was trying to advocate using Python for an upcoming prototype, so my boss went out to take a look at the documentation and try and get a feel for what the language is all about. First comment; "I hope the language is designed better than the site." The site is readable, but is amateurish. I

Flat file, Python accessible database?

2005-11-01 Thread Karlo Lozovina
I've been Googling around for _small_, flat file (no server processes), SQL-like database which can be easily access from Python. Speed and perforamnce are of no issue, most important is that all data is contained within single file and no server binary has to run in order to use the dbase. Oh,

Re: extracting numbers from a file, excluding words

2005-11-01 Thread Kristina Kudriašova
1 Nov 2005 09:19:45 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > Hi, I have a file with this content: > > z zzz z > ... > xxx xx x 34.215 > zzz zz > ... > Hi, I'd suggest doing this: f = file('...') for line in f: if 'xxx xx x' in line

Re: hello, I want to change n bytes of a binary file

2005-11-01 Thread Fredrik Lundh
"could ildg" wrote: > > so how can I do the binary stuff? > > 8-bit strings contain bytes. > > > I want a encrypt function like below: > > def encrypt(filename,n): > > f = open(filename,"rb+") > > > a=f.read(n) > > b = encrypt(a) Thank you~~,but where is the encrypt defined? oh, I though

Re: Embedding Python in an embedded system

2005-11-01 Thread Steve Holden
Stefan Arentz wrote: > Howdy. > > I'm looking at embedding python in a little embedded system. The device > (a linksys wrt54g router, popular hack object since it runs linux), has > limited resources. Just 4MB flash and 16MB memory. > > I'm interested in Python because I need to be more agile wit

extracting numbers from a file, excluding words

2005-11-01 Thread dawenliu
Hi, I have a file with this content: z zzz z ... xxx xx x 34.215 zzz zz ... "x" and "z" are letters. The lines with "z" are trash, and only the lines with "x" are important. I want to extract the number (34.215 in this case) behind the letters x, and store i

Re: python.org offline

2005-11-01 Thread Sybren Stuvel
dcrespo enlightened us with: > "The server is temporarily unable to service your request due to > maintenance downtime or capacity problems." Yes, I can read. My question is: does anyone know why this happens so often lately? Sybren -- The problem with the world is stupidity. Not saying there s

Re: Rename files with numbers

2005-11-01 Thread Ed Singleton
The best free app I've found for this is MusicBrainz [www.musicbrainz.com]. This has a huge database of obsessively correct details of albums which can be formatted in anyway you choose. It can automatically recognise which song an MP3 is! This is a similar script I wrote to renumber files in se

Re: cx_Oracle, is anything selected?

2005-11-01 Thread Damjan
> Apart from that: what harm does the connection to the smpt do? If it > works - keep it that way. I worry about being banned from the server. -- damjan -- http://mail.python.org/mailman/listinfo/python-list

Embedding Python in an embedded system

2005-11-01 Thread Stefan Arentz
Howdy. I'm looking at embedding python in a little embedded system. The device (a linksys wrt54g router, popular hack object since it runs linux), has limited resources. Just 4MB flash and 16MB memory. I'm interested in Python because I need to be more agile with developing an application for th

  1   2   >