Building python 64-bit on OS 10.5?

2009-03-10 Thread Dan Yamins
Dear all: I've two questions: 1) I've been trying to building python as a 64-bit version on OS 10.5. I'm not too familiar with building python from scratch, and a number of basic attempts made from piecing together things I've seen on the web have failed. (For instance, ./configure --en

Re: PyEval_EvalCode(...) problem

2009-03-10 Thread Gabriel Genellina
En Tue, 10 Mar 2009 13:23:44 -0200, escribió: http://rafb.net/p/Uyb5Ps45.html Pelase note, when I call PyObject_CallObject(...) in the wrapped C register(..) method it works fine. Sorry, I cannot make any sense of that code and your previous post. Where is op assigned to? register? what'

Re: A Dangling Tk Entry

2009-03-10 Thread Rhodri James
On Tue, 10 Mar 2009 12:41:07 -, W. eWatson wrote: [snippety snip] Rhodri James wrote: > You're misunderstanding. The line that you arrowed above has absolutely > nothing whatsoever to do with the method "body()", so keeping on showing > us ever fuller version of that isn't going

Re: What does self.grid() do?

2009-03-10 Thread chuck
On Mar 5, 3:03 am, Marc 'BlackJack' Rintsch wrote: > On Wed, 04 Mar 2009 09:04:50 -0800, chuck wrote: > > On Mar 3, 10:40 pm, Marc 'BlackJack' Rintsch wrote: > >> On Tue, 03 Mar 2009 18:06:56 -0800, chuck wrote: > >> > I am learning python right now.  In the lesson on tkinter I see this > >> > pi

Stopping SocketServer on Python 2.5

2009-03-10 Thread David George
Hi guys, I've been developing some code for a university project using Python. We've been working on an existing codebase, cleaning it up and removing dead wood. We decided to make some changes to internal message handling by using a SocketServer, which worked great when we were using 2.6, a

lexical analysis of python

2009-03-10 Thread robert . muller2
I am trying to implement a lexer and parser for a subset of python using lexer and parser generators. (It doesn't matter, but I happen to be using ocamllex and ocamlyacc). I've run into the following annoying problem and hoping someone can tell me what I'm missing. Lexers generated by such tools re

Re: lexical analysis of python

2009-03-10 Thread Paul McGuire
On Mar 10, 8:31 pm, robert.mull...@gmail.com wrote: > I am trying to implement a lexer and parser for a subset of python > using lexer and parser generators. (It doesn't matter, but I happen to > be using > ocamllex and ocamlyacc). I've run into the following annoying problem > and hoping someone c

Re: Is python worth learning as a second language?

2009-03-10 Thread r
On Mar 10, 6:46 pm, Craig Allen wrote: > Honestly, I've become more of a Python fan than I am really > comfortable with... it can't be as good as I think. > > -craig Don't fight it, just go with it man... just go with it! *wink* -- http://mail.python.org/mailman/listinfo/python-list

Re: lexical analysis of python

2009-03-10 Thread robert . muller2
On Mar 10, 9:38 pm, Paul McGuire wrote: > On Mar 10, 8:31 pm, robert.mull...@gmail.com wrote: > > > > > I am trying to implement a lexer and parser for a subset of python > > using lexer and parser generators. (It doesn't matter, but I happen to > > be using > > ocamllex and ocamlyacc). I've run i

Re: lexical analysis of python

2009-03-10 Thread andrew cooke
robert.mull...@gmail.com wrote: > I understand the method, but when you say you "count one DEDENT for > each level" > well lets say you counted 3 of them. Do you have a way to interject 3 > consecutive > DEDENT tokens into the token stream so that the parser receives them > before it > receives the

Re: Number Sequencing, Grouping and Filtering

2009-03-10 Thread Raymond Hettinger
[flebber] > the only issue i can see is that i am using python 2.54 currently as > ifelt it more supported by other programs than 2.6 or 3.0. After > searching it seems that itertools has had a upgrade in 2.61 All of the itertools include pure python equivalents in their docs, so it should be poss

Re: [JOB] Short-term python programming consultant - funds expire soon!

2009-03-10 Thread Rob Clewley
> Please see http://www.python.org/community/jobs/ > for where to post this most effectively. OK, sorry, I hadn't seen that site before. >> Our open-source software project (PyDSTool) has money to hire an >> experienced Python programmer on a short-term, per-task basis as a >> technical consultan

Re: Problem--Extending the behavior of an upstream package

2009-03-10 Thread Aahz
In article <60848752-2c3f-4512-bf61-0bc11c919...@i20g2000prf.googlegroups.com>, Carl Banks wrote: > >The problem comes when a different part of the upstream package also >subclasses or creates a Box. When an upstream function creates a box, >it creates an upstream.packaging.Box instead of a >min

Re: Stopping SocketServer on Python 2.5

2009-03-10 Thread Mark Tolonen
"David George" wrote in message news:00150e67$0$27956$c3e8...@news.astraweb.com... Hi guys, I've been developing some code for a university project using Python. We've been working on an existing codebase, cleaning it up and removing dead wood. We decided to make some changes to internal

Problem with string format

2009-03-10 Thread Mike314
Hello, I have a strange problem with the string format: >>> '%s %s %s %s %s' % ['01', '02', '03', '04', '05'] Traceback (most recent call last): File "", line 1, in TypeError: not enough arguments for format string But as soon I use tuple it is working: >>> '%s %s %s %s %s' % ('01', '02',

Re: Problem with string format

2009-03-10 Thread Steven D'Aprano
On Tue, 10 Mar 2009 22:07:59 -0700, Mike314 wrote: > Hello, > >I have a strange problem with the string format: > '%s %s %s %s %s' % ['01', '02', '03', '04', '05'] > Traceback (most recent call last): > File "", line 1, in > TypeError: not enough arguments for format string > > But

Re: Problem with string format

2009-03-10 Thread Mensanator
On Mar 11, 12:07 am, Mike314 wrote: > Hello, > >    I have a strange problem with the string format: > > >>> '%s %s %s %s %s' % ['01', '02', '03', '04', '05'] > > Traceback (most recent call last): >   File "", line 1, in > TypeError: not enough arguments for format string > > But as soon I use t

Problem with os.chdir()

2009-03-10 Thread venutaurus...@gmail.com
Hello all, I am writing a python script which has to access deep paths then supported normally by the Windows OS (>255). So I am appending "\ \?\" to do so. But when I use the path in the above fashion with os.chdir() it is unable to recognize my folder and throwing an error: Traceback

Re: Problem with string format

2009-03-10 Thread John Machin
On Mar 11, 4:07 pm, Mike314 wrote: > Hello, > >    I have a strange problem with the string format: > > >>> '%s %s %s %s %s' % ['01', '02', '03', '04', '05'] > > Traceback (most recent call last): >   File "", line 1, in > TypeError: not enough arguments for format string > > But as soon I use tu

Re: lexical analysis of python

2009-03-10 Thread Paul McGuire
On Mar 10, 8:53 pm, robert.mull...@gmail.com wrote: > I understand the method, but when you say you "count one DEDENT for > each level" > well lets say you counted 3 of them. Do you have a way to interject 3 > consecutive > DEDENT tokens into the token stream so that the parser receives them > befo

Re: factory functions & methods

2009-03-10 Thread Gabriel Genellina
En Sun, 08 Mar 2009 20:08:32 -0200, Aaron Brady escribió: Hello, I am creating a container. I have some types which are built to be members of the container. The members need to know which container they are in, as they call methods on it, such as finding other members. I want help with t

Re: Problem with os.chdir()

2009-03-10 Thread Tim Golden
venutaurus...@gmail.com wrote: Hello all, I am writing a python script which has to access deep paths then supported normally by the Windows OS (>255). So I am appending "\ \?\" to do so. But when I use the path in the above fashion with os.chdir() it is unable to recognize my folder a

Re: A Dangling Tk Entry

2009-03-10 Thread Marc 'BlackJack' Rintsch
On Mon, 09 Mar 2009 21:14:51 -0700, W. eWatson wrote: >>> def Set_Enter_Data(self): >>> sdict = {} >>> sdict[ "ok" ] = False >>> sdict[ "anumber" ] = self.anumber >>> dialog = Enter_Data_Dialog( self.master, sdict ) <--- >>> returning >> >> That's

Re: Ban Xah Lee

2009-03-10 Thread Lawrence D'Oliveiro
Anybody else notice that "xah lee" is "eel hax" spelt backwards? -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem--Extending the behavior of an upstream package

2009-03-10 Thread Carl Banks
On Mar 10, 9:33 pm, a...@pythoncraft.com (Aahz) wrote: > In article > <60848752-2c3f-4512-bf61-0bc11c919...@i20g2000prf.googlegroups.com>, > Carl Banks   wrote: > > > > >The problem comes when a different part of the upstream package also > >subclasses or creates a Box.  When an upstream function

Re: Ban Xah Lee

2009-03-10 Thread Kenneth Tilton
Craig Allen wrote: There you go: a 30-second psychological diagnosis by an electrical engineer based entirely on Usenet postings. It doesn't get much more worthless than that... -- Grant rolf but interesting post nonetheless. I have been really somewhat fascinated by AS since I heard of it a

urllib2.URLError:

2009-03-10 Thread Coonay
i use python2.6 File "C:\PROGRA~1\Python26\lib\urllib2.py", line 383, in open response = self._open(req, data) File "C:\PROGRA~1\Python26\lib\urllib2.py", line 401, in _open '_open', req) File "C:\PROGRA~1\Python26\lib\urllib2.py", line 361, in _call_chain result = func(*args) F

<    1   2