Re: Nothing to repeat

2011-01-09 Thread Martin Gregorie
ors between adjacent matching strings. I tried non-greedy matching, e.g. r'(spam*?)*', but this was worse, so I'll be interested to see how the real regex mavens do it. -- martin@ | Martin Gregorie gregorie. | Essex, UK org | -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: The good, the bad, and the ugly!

2011-01-19 Thread Martin Gregorie
GB RAM, LG DVD drive, new 160GB hdd and runs Fedora 13. It is a bit slow at runlevel 5 (graphical desktop) when driven from its own console, but I usually access it over the house net from a more modern Core Duo laptop that runs Fedora 14. The NetVista is more than adequate for web and RDBMS d

Re: Part of RFC 822 ignored by email module

2011-01-20 Thread Martin Gregorie
t returning the same value > in the two cases above the module is not "regarding CRLF immediately > followed by a LWSP-char as equivalent to the LWSP-char." > That's only a problem if your code cares about the composition of the whitespace and this, IMO is incorrect behaviour. When the separator between syntactic elements in a header is 'whitespace' it should not matter what combination of newlines, tabs and spaces make up the whitespace element. -- martin@ | Martin Gregorie gregorie. | Essex, UK org | -- http://mail.python.org/mailman/listinfo/python-list

Re: Part of RFC 822 ignored by email module

2011-01-20 Thread Martin Gregorie
On Thu, 20 Jan 2011 16:25:52 -0500, Bob Kline wrote: > On 1/20/2011 3:48 PM, Martin Gregorie wrote: >> That's only a problem if your code cares about the composition of the >> whitespace and this, IMO is incorrect behaviour. When the separator >> between syntact

Re: Part of RFC 822 ignored by email module

2011-01-20 Thread Martin Gregorie
be believed. If the Python e-mail module lets you, set it to use lenient parsing. If this isn't an option you may well find yourself having to fix up messages before you can parse them successfully. -- martin@ | Martin Gregorie gregorie. | Essex, UK org | -- http://mail.python.org/mailman/listinfo/python-list

Re: WxPython versus Tkinter.

2011-01-25 Thread Bob Martin
in 650595 20110124 192332 Bryan wrote: >On Jan 24, 12:05=A0pm, rantingrick wrote: >> On Jan 24, 12:00=A0pm, Bryan wrote: >> >> > Accessibility, like internationalization, is something few programmers >> > spend much time thinking about. >> >> Thats another uninformed statement by you we can add

Re: WxPython versus Tkinter.

2011-01-25 Thread Bob Martin
in 650672 20110125 115033 Bryan wrote: >On Jan 25, 2:02=A0am, Bob Martin wrote: >> in 650595 20110124 192332 Bryan wrote: >> >> >> >> >> >> >On Jan 24, 12:05=3DA0pm, rantingrick wrote: >> >> On Jan 24, 12:00=3DA0pm, Bryan wr

Re: WxPython versus Tkinter.

2011-01-25 Thread Bob Martin
in 650680 20110125 151901 Bryan wrote: >On Jan 25, 6:03=A0am, Bob Martin wrote: >> in 650672 20110125 115033 Bryan wrote: >> >> Do you think the whole world speaks US English? >> >> >No, absolutely not. I don't see how you go from "I don't thi

Re: Are Small Dogs Good with Kids?

2011-02-06 Thread Bob Martin
in 651499 20110206 194312 sahadat shamim wrote: >Are little canines nice with children? Most people can't seem to come >to a consensus about this query. individuals who regularly place >rescue canines with adoptive >more >http://animals-world24.blogspot.com/2011/02/are-small-dogs-good-with-kids.ht

Re: client server socket interaction (inetd)

2011-02-17 Thread Martin Gregorie
T,socket.SOCK_STREAM) > sock.connect((ip,port)) > sock.send(message) > for line in line_buffer(sock): > print line > sock.close() > > if __name__ == '__main__': > message = ' '.join(sys.argv[1:])

Re: client server socket interaction (inetd)

2011-02-17 Thread Martin Gregorie
can get one request through, and I assume (you didn't say) that a second request is also accepted without restarting the server. -- martin@ | Martin Gregorie gregorie. | Essex, UK org | -- http://mail.python.org/mailman/listinfo/python-list

Re: client server socket interaction (inetd)

2011-02-18 Thread Martin Gregorie
er path you should investigate popen. It is part of the os module. You could design the server so a suitable request runs LaTeX via popen, captures the stdout and stderr output, if any, and returns that and the LaTeX termination status code to the client as a response message. -- martin@

Re: An amazing one-minute bit of fun at the interactive prompt

2011-02-20 Thread Martin Gregorie
ot set iterations :-) >> >> That should be: pi plus-or-minus e > > It was in my reader. Perhaps your server has encoding trouble? Same here (Pan reader, Fedora 14). -- martin@ | Martin Gregorie gregorie. | Essex, UK org | -- http://mail.python.org/mailman/listinfo/python-list

Nested list problem - please...

2010-04-17 Thread Martin Hvidberg
inserted some line breaks and some indents, for readability. :-) Martin --- Code Start --- LV = list() # LV for Lable Value pair LV.extend(['lable','0']) CP = list() # CP for ComPund for i in range(0,5): CP.extend([LV[:]]) # incl. 5 _copies_ of LV CP[0][0] = 'Compound n

urllib2 times out accessing SSL URL on OS X

2010-04-20 Thread Martin Aspeli
he OS level. I've exported the certificate from Firefox and tried to add it to the System keychain in Keychain Access in OS X, and set it as trusted, but nothing seems to work. Any hints would be appreciated! Martin -- http://mail.python.org/mailman/listinfo/python-list

[ANN] Pyspread 0.1.1 released

2010-05-08 Thread Martin Manns
Martin -- http://mail.python.org/mailman/listinfo/python-list

reading xml from python

2010-05-11 Thread Hvidberg, Martin
to do this. Any suggestions appreciated. :-) Martin -- http://mail.python.org/mailman/listinfo/python-list

Re.: reading xml from python - Sum-up

2010-05-12 Thread Hvidberg, Martin
Thanks to all - Just to give a positive feed back. The following solution works for me: from xml.etree.ElementTree import ElementTree tree = ElementTree() tree.parse('inifile.xml') dicIni = dict((child.tag, child.text) for child in tree.getroot().getchildren()) :-) Martin Thi

Re: xrange issue 7721

2010-05-29 Thread Martin Manns
27;t been changed at all. Mark: Thank you for posting. 2.7 is not affected by issue 7721 because itertools.islice behavior is changed. Therefore, the original snippet should work in 2.7 (I have not tested this). I found the msg97928 code pretty obvious when seeing the snippet. If you disagree

Returning value from home made unit - how to?

2010-05-30 Thread Martin Hvidberg
module in file jacxl.py ? Best Regards Martin Hvidberg # == File jacxl.py = import jacXlgui if __name__ == "__main__": print "Hello World - from Main"; result = jacXlgui.app.MainLoop() print 'Result:',result # == End of jacxl.py ==

Re: xrange issue 7721

2010-05-30 Thread Martin Manns
get my point regarding the failure to raise a > ValueError :) Or am I wearing my extremely stupid hat today? Since you seem to find this issue important, are you going to re-open the issue? Cheers Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Anyone using GPG or PGP encryption/signatures in your Python apps?

2010-07-02 Thread Martin Manns
; python-gnupg (for example). pyme works great with Linux. However, I have never installed it on a Windows system. Martin -- http://mail.python.org/mailman/listinfo/python-list

pyodbc problem

2010-07-27 Thread Martin Gregorie
o Linux, PostgreSQL, ODBC, C or Java. My rig and software: Linux: Fedora 12 Where I'm running Python and ODBC, Lenovo Thinkpad R61i: Core Duo. Fedora 10 Where PostgreSQL is installed, IBM NetVista: Pentium III. PostgreSQL: 8.3

Re: Why is there no platform independent way of clearing a terminal?

2010-07-28 Thread Martin Gregorie
e you an idea of how complex this is, I've re-implemented termcap in Java for my own purposes. It amounts to 1100 lines of fairly well spaced and commented Java or about 340 statements, which were estimated by counting lines containing semicolons. -- martin@ | Martin Gregorie gregorie. | Essex,

Re: Why is python not written in C++ ?

2010-08-02 Thread Martin Gregorie
s of the programming language used. However, don't just listen to me: read the final report on Ariane 501 here: http://www.di.unito.it/~damiani/ariane5rep.html -- martin@ | Martin Gregorie gregorie. | Essex, UK org | -- http://mail.python.org/mailman/listinfo/python-list

ctypes: pointer to method

2010-08-05 Thread Martin Landa
G_set_error_routine(byref(self._print_error)) TypeError: byref() argument must be a ctypes instance, not 'instancemethod' C function G_set_error_routine is defined as void G_set_error_routine(int (*error_routine) (const char *, int)) Thanks in advance for any pointers. Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: ctypes: pointer to method

2010-08-06 Thread Martin Landa
G_debug(5, "print_error(): msg = \"%s\" type = %d", buffer, type); print_error(buffer, type); } Any idea how to solve it. Thanks, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: ctypes: pointer to method

2010-08-06 Thread Martin Landa
Hi, On Aug 6, 10:10 pm, Martin Landa wrote: > Any idea how to solve it. Thanks, Martin I overlooked note """ Make sure you keep references to CFUNCTYPE objects as long as they are used from C code. ctypes doesn’t, and if you don’t, they may be garbage collected, crashing y

Re: ctypes: pointer to method

2010-08-07 Thread Martin Landa
ines result type (restype), AFAIU that should work. Thanks in advance again, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: ctypes: pointer to method

2010-08-08 Thread Martin Landa
On Aug 7, 12:46 pm, Martin Landa wrote: > the problem occurs when restype is not None, but c_int. E.g. solved. Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Python "why" questions

2010-08-13 Thread Martin Gregorie
al sample[-500:750]; and Algol 68 went even further: flex [1:0] int count where the array bounds change dynamically with each assignment to 'count'. Iteration is supported by the lwb and upb operators which return the bounds of an array, so you can write: for i from l

Re: Python "why" questions

2010-08-15 Thread Bob Martin
in 639663 20100815 120123 Lawrence D'Oliveiro wrote: >In message , Ian Kelly >wrote: > >> The ability to change the minimum index is evil. > >Pascal allowed you to do that. And nobody ever characterized Pascal as >“evil”. Not for that reason, anyway... Why do you refer to Pascal in the past

Re: Python "why" questions

2010-08-16 Thread Martin Gregorie
On Mon, 16 Aug 2010 12:33:51 +1200, Gregory Ewing wrote: > Ian Kelly wrote: >> On Fri, Aug 13, 2010 at 11:53 AM, Martin Gregorie >> wrote: > >>> real sample[-500:750]; > >> Ugh, no. The ability to change the minimum index is evil. > > Not alway

Re: 79 chars or more?

2010-08-17 Thread Martin Gregorie
the top of your sig, i.e. use "-- ", not "--"? That way most news readers will automatically remove your sig when replying to your post. -- martin@ | Martin Gregorie gregorie. | Essex, UK org | -- http://mail.python.org/mailman/listinfo/python-list

Re: Python "why" questions

2010-08-17 Thread Martin Gregorie
;>> >>> [~/Movies] >>> |1> import numpy >>> >>> [~/Movies] >>> |2> len(numpy.r_[160.0:30.0:-0.01]) >>> 13000 >> >> >> Actually, the answer is 0, not 13000, because the step size is given as >> 0.01, not -0.01. >&g

Re: Iterative vs. Recursive coding

2010-08-19 Thread Martin Gregorie
factorial.__doc__ for n in range(1,10): print "%d! = %d" % (n, r_factorial(n)) - In case you're wondering "print i_factorial.__doc__" prints the docstring out of the i_factorial subroutine. You probably haven't covered that yet, but run it and see.

Re: Python "why" questions

2010-08-20 Thread Martin Braun
etc.). In practically all cases I deal with where the index matters, zero-based suits me better. The one-based indexing Matlab uses drives me crazy, and that's specifically designed for engineers. Martin -- Karlsruhe Institute of Technology (KIT) Communications Engineering Lab (CEL) Dipl.-

Re: A question to experienced Pythoneers

2010-08-20 Thread Martin Gregorie
hases are overrunning a sensible estimate or if the initial costing and estimation is underestimating the project size? -- martin@ | Martin Gregorie gregorie. | Essex, UK org | -- http://mail.python.org/mailman/listinfo/python-list

Re: Iterative vs. Recursive coding

2010-08-20 Thread Martin Gregorie
shit yourself or anybody else about this conformance to spec: either you screwed up or, hopefully less often, the designer wrote an ambiguous or plain wrong requirement. Either way, the problem must be resolved and the code be made to do what is wanted. while (results don't match the spec):

RE: [Python-Dev] Released: Python 2.6.6

2010-08-24 Thread Martin Jernberg
yay new python release :) > From: raymond.hettin...@gmail.com > Date: Tue, 24 Aug 2010 13:40:11 -0700 > To: ba...@python.org > CC: python-announce-l...@python.org; python-list@python.org; > python-...@python.org > Subject: Re: [Python-Dev] Released: Python 2.6.6 > > > On Aug 24, 2010, at 12:31

Re: Good books in computer science?

2009-06-14 Thread Bob Martin
in 117455 20090615 044816 Steven D'Aprano wrote: >On Mon, 15 Jun 2009 10:39:50 +1200, Lawrence D'Oliveiro wrote: > >>> Shame on you for deliberately cutting out my more serious and nuanced >>> answer while leaving a silly quip. >> >> Can't have been very "serious and nuanced" if it could be summe

Slow wxPyhon on Vista?

2009-06-19 Thread Martin Schöön
Vista configuration? TIA, /Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: RE: Good books in computer science?

2009-06-19 Thread Bob Martin
in 117815 20090617 221804 Phil Runciman wrote: >Because it reminds me of when things went badly wrong. IBM360, Von Neumann = >architecture, no hardware stacks ... > >IMHO Burroughs and ICL had better approaches to OS design back then but had= >less resources to develop their ideas.=20 > >However,

Re: RE: RE: Good books in computer science?

2009-06-21 Thread Bob Martin
in 118305 20090621 214008 Phil Runciman wrote: >How many instruction sets have you used? I have used at least 9. IBM 1401 IBM 1410 IBM 7090/7094 IBM 1620 IBM 360 IBM System/7 IBM 1130 IBM 1800 IBM Series/1 Intel 8080 etc Motorola 6800 etc Texas 9900 (my second favourite) plus a bunch of IBM micr

Re: Slow wxPyhon on Vista?

2009-06-25 Thread Martin Schöön
David Lyon writes: > On Fri, 19 Jun 2009 10:16:39 +0200, martin.sch...@gmail.com (Martin > Schöön) wrote: >> Here is my problem. When I use it on a Vista box its >> user interface is very, very slow when it comes to >> some but not all operations. On any other Wind

Re: Clarity vs. code reuse/generality

2009-07-06 Thread Martin Vilcans
On Fri, Jul 3, 2009 at 4:05 PM, kj wrote: > I'm will be teaching a programming class to novices, and I've run > into a clear conflict between two of the principles I'd like to > teach: code clarity vs. code reuse.  I'd love your opinion about > it. In general, code clarity is more important than r

Re: AP -- MeAmI.org Paces Google

2009-07-09 Thread Martin Musatov
Thank you. Martin Musatov 2009/7/9 Friðrik Már Jónsson > I'll be the first to admit it. The point of writing a fake story by > Associated Press and publishing it on a programming mailing list is totally > beyond me. > > Confoundedly yours, > Friðrik Már -- http://

Re: way for a function to understand whether it's being run through a OnCreate callback or not

2009-07-10 Thread Martin Vilcans
On Fri, Jul 10, 2009 at 8:18 AM, slamdunk wrote: > is there a way for a function to understand whether it's being run > through a OnCreate callback or not? > I have working functions that I want to recycle through the OnCreate > but need to catch the "nuke.thisNode()" bit inside them so they can >

Re: If Scheme is so good why MIT drops it?

2009-07-19 Thread Bob Martin
in 121683 20090719 210126 Terry Reedy wrote: >Roy Smith wrote: >> In article <1cethsrrw8h6k$.9ty7j7u7zovn@40tude.net>, >> Frank Buss wrote: >> >>> there is one free unique implementation on the 3 major platforms Linux, >>> Windows and MacOS X >> >> Most people would still consider Solaris to

Re: If Scheme is so good why MIT drops it?

2009-07-19 Thread Bob Martin
in 121708 20090720 072858 Frank Buss wrote: >Bob Martin wrote: > >> I think the OP means "major PC operating systems". Those with a wider >> knowledge of the computer world would consider IBM's mainframe operating >> systems to be deserving of the descript

basic thread question

2009-08-18 Thread Derek Martin
(i,)) thread_list.append(x) i+=1 while True: pass -- Derek D. Martin http://www.pizzashack.org/ GPG Key ID: 0x81CFE75D pgphh3xk5mOZY.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: basic thread question

2009-08-18 Thread Derek Martin
On Tue, Aug 18, 2009 at 03:10:15PM -0500, Derek Martin wrote: > I have some simple threaded code... If I run this > with an arg of 1 (start one thread), it pegs one cpu, as I would > expect. If I run it with an arg of 2 (start 2 threads), it uses both > CPUs, but utilization of both

Re: Annoying octal notation

2009-08-21 Thread Derek Martin
hout a community for the sake of avoiding a minor inconvenience of the n00b is DUMB. -- Derek D. Martin http://www.pizzashack.org/ GPG Key ID: 0x81CFE75D pgp5360ytwKYC.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Annoying octal notation

2009-08-21 Thread Derek Martin
a few of the other seemingly arbitrary changes in 3.x) is annoying, but Python is still one of the best languages to code in for any multitude of problems. -- Derek D. Martin http://www.pizzashack.org/ GPG Key ID: 0x81CFE75D pgpqtjVMR59uV.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Annoying octal notation

2009-08-22 Thread Derek Martin
— and we continue to think of them > as decimal numbers regardless. Having the language syntax opposed to > that is ...consistent with virtually every other popular programming language. -- Derek D. Martin http://www.pizzashack.org/ GPG Key ID: 0x81CFE75D pgpaLprG9uUPz.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Annoying octal notation

2009-08-22 Thread Derek Martin
write 0o12 instead of 012. Computer languages are not write-only, excepting maybe Perl. ;-) Writing 0o12 presents no hardship; but I assert, with at least some support from others here, that *reading* it does. -- Derek D. Martin http://www.pizzashack.org/ GPG Key ID: 0x81CFE75D pgp2DtXpzfNjd.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Annoying octal notation

2009-08-22 Thread Derek Martin
sent octal). Including Python, for some 20 years or so. -- Derek D. Martin http://www.pizzashack.org/ GPG Key ID: 0x81CFE75D pgpf8DJDYdSjx.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Annoying octal notation

2009-08-24 Thread Derek Martin
On Sun, Aug 23, 2009 at 06:13:31AM +, Steven D'Aprano wrote: > On Sat, 22 Aug 2009 22:19:01 -0500, Derek Martin wrote: > > On Sat, Aug 22, 2009 at 02:55:51AM +, Steven D'Aprano wrote: > >> And the great thing is that now you get to teach yourself to sto

Re: Annoying octal notation

2009-08-24 Thread Derek Martin
rogramming. The changing of this syntax seems like much ado about nothing to me, and as such is annoying, consider that I use it very often. -- Derek D. Martin http://www.pizzashack.org/ GPG Key ID: 0x81CFE75D pgpJdmZ75Hu7Q.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Annoying octal notation

2009-08-24 Thread Derek Martin
On Mon, Aug 24, 2009 at 08:56:48AM -0500, Derek Martin wrote: > On Sun, Aug 23, 2009 at 01:13:32PM +, Matthew Woodcraft wrote: > > A more common case is dates. > > I suppose this is true, but [...] > I tend to also discount this example, because when we write dates &g

Re: Annoying octal notation

2009-08-24 Thread Derek Martin
e (e.g. virtually anything that came out of Microsoft). [That's just my opinion, of course... but shared by many. :)] I don't think that happened by mere accident. That's not to say they were perfect, but those guys had their proverbial $#!t together. -- Derek D. Martin http://www.

Re: Annoying octal notation

2009-08-24 Thread Derek Martin
On Mon, Aug 24, 2009 at 08:31:13AM -0700, Carl Banks wrote: > On Aug 24, 6:56 am, Derek Martin wrote: > > I think hard-coding dates is more uncommon than using octal. ;-) > > [It unquestionably is, for me personally.] > > You just don't get it, do you? I think

Re: Annoying octal notation

2009-08-24 Thread Derek Martin
, just > like trailing zeroes after the decimal point: > > 9 = 09 = 009 = 9.0 = 9.00 = 0009.000 etc. Dude, seriously. No one ever *uses* leading zeros in the context of mathematics except in 2nd grade math class. -- Derek D. Martin http://www.pizzashack.org/ GPG Key ID: 0x81CFE7

Re: Annoying octal notation

2009-08-24 Thread Derek Martin
On Mon, Aug 24, 2009 at 05:03:28PM +, Steven D'Aprano wrote: > On Mon, 24 Aug 2009 11:21:46 -0500, Derek Martin wrote: > > since the old syntax is prevalent both within and without the > > Python community, making the change is, was, and always will be a > > bad id

Re: Annoying octal notation

2009-08-24 Thread Derek Martin
On Mon, Aug 24, 2009 at 04:40:14PM -0300, Gabriel Genellina wrote: > En Mon, 24 Aug 2009 14:40:24 -0300, Derek Martin > escribió: > > >Why is it so hard for you to accept that intelligent people can > >disagree with you, and that what's right for you might be bad for &g

Re: Is behavior of += intentional for int?

2009-08-30 Thread Derek Martin
7;s right. BIZZARE. Of course, none of this is real. In the end, it's all just a bunch of wires that either have current or don't. It's only how *WE* organize and think about that current that gives it any meaning. So you're free to think about it any way you like. -- Derek

Re: Is behavior of += intentional for int?

2009-08-30 Thread Derek Martin
that they are just an abstraction on top of current, as noted before). Python's model breaks down at that point; it is not so with most other types of objects... their values remain objects. And *that* is inconsistent. The same is true of character data as for numeric data. And that, I

Re: Is behavior of += intentional for int?

2009-08-30 Thread Derek Martin
ython work will be. While I did genuinely find the behavior bizarre when I encountered it, and honestly still do, I learned it quickly and moved past it. I'm not suggesting that it be changed, and I don't feel particularly strongly that it even should change. It's not so much the l

Re: Is behavior of += intentional for int?

2009-08-30 Thread Derek Martin
On Sun, Aug 30, 2009 at 04:26:54AM -0700, Carl Banks wrote: > On Aug 30, 12:33 am, Derek Martin wrote: > [snip rant] I was not ranting. I was explaining a perspective. > > THAT is why Python's behavior with regard to numerical objects is > > not intuitive, and frankly bi

Re: Is behavior of += intentional for int?

2009-08-30 Thread Derek Martin
ngs look like something familiar, but behave differently, they are naturally unintuitive. -- Derek D. Martin http://www.pizzashack.org/ GPG Key ID: 0x81CFE75D pgpMl4G8ABoo7.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Is behavior of += intentional for int?

2009-08-30 Thread Derek Martin
On Sun, Aug 30, 2009 at 05:43:42PM +, OKB (not okblacke) wrote: > Derek Martin wrote: > > > If Python is to say that objects have values, > > then the object can not *be* the value that it has, because that is a > > paradoxical self-reference. It's an object, not

Re: subprocess + python-daemon - bug/problem?

2009-09-16 Thread Joel Martin
On Sep 8, 5:19 pm, Ben Finney wrote: > Sewar writes: > > I looked at other daemon libraries and snippets, it's clearly the bug is in > > subprocess not python-daemon. > > Then I found Python bug #1731717 which discusses it. I'm running python-2.6.2 which supposedly has the fix for #1731717. Howe

Trouble importing cx_Oracle on HPUX

2010-08-26 Thread Cliff Martin
I have just gotten done building Python 3.1.2 on HPUX 11.31 Itanium (IA64) using gcc 4.4.3, and have tried building cx_Oracle to go with it. The build succeeds, but test and importing does not. I have tried building Python with threads and without. The only exotic thing I do with the configure for

Re: Trouble importing cx_Oracle on HPUX

2010-08-28 Thread Cliff Martin
ug 28, 2010 at 9:11 AM, Alexander Gattin wrote: > Hello, > > On Thu, Aug 26, 2010 at 08:08:42PM -0700, Cliff > Martin wrote: > > I have just gotten done building Python 3.1.2 on > > HPUX 11.31 Itanium (IA64) using gcc 4.4.3, and > > have tried building cx_Oracle to

Re: Trouble importing cx_Oracle on HPUX

2010-08-30 Thread Cliff Martin
including libttsh11 fixed the problem. Thank you! Now I can get on with fixing everything that Python 3 broke... err changed. :) -- Cliff On Sat, Aug 28, 2010 at 11:20 AM, Alexander Gattin wrote: > Hello, > > On Sat, Aug 28, 2010 at 09:27:05AM -0400, Cliff > Martin wrote:

Re: [Tutor] Arguments from the command line

2010-09-09 Thread Martin Gregorie
area of COBOL is a mess. PL/I specifies the main procedure with an OPTIONS(MAIN) clause and declares the integer ARGC_ and pointer ARGV_ variables in it, which are used like their C equivalents. -- martin@ | Martin Gregorie gregorie. | Essex, UK org | -- http://mail.python.org/mailman/listinfo/python-list

Re: Ugh! Python 3.1.x and MySQL

2010-09-10 Thread Martin Gregorie
consequently works with standard MySQL ODBC drivers. iODBC: http://www.iodbc.org/ is similar If you want something that's Windows compatible I can't help: I don't use either Windows or MySQL. -- martin@ | Martin Gregorie gregorie. | Essex, UK org | -- http://mail.python.org/mailman/listinfo/python-list

Re: suggestions please "what should i watch for/guard against' in a file upload situation?"

2010-10-06 Thread Martin Gregorie
ut any suggestions or examples are most welcome :) > There's probably something I've forgotten, but that list should get you going. -- martin@ | Martin Gregorie gregorie. | Essex, UK org | -- http://mail.python.org/mailman/listinfo/python-list

Re: Simple database explorer

2010-10-08 Thread Martin Gregorie
s an interface to unixODBC and a Data Manager utility that configures ODBC data sources. The documentation for the module is poor but the module and utility both work well once you've figured out how to use them. -- martin@ | Martin Gregorie gregorie. | Essex, UK org | -- http://mail.python.org/mailman/listinfo/python-list

Re: "Strong typing vs. strong testing"

2010-10-10 Thread Martin Gregorie
'rings of protection' which meant the OS could affect your code but you couldn't touch it and the OS in turn couldn't touch the hardware drivers etc. -- martin@ | Martin Gregorie gregorie. | Essex, UK org | -- http://mail.python.org/mailman/listinfo/python-list

send command to parent shell

2010-10-13 Thread Martin Landa
then underlaying command prompt by 'exit' command. Thanks in advance, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 249 (database api) -- executemany() with iterable?

2010-10-14 Thread Martin Gregorie
eration since, after a crash, the table changes can always be recovered from a journal roll-forward. A good DBMS will do that automatically when its restarted. -- martin@ | Martin Gregorie gregorie. | Essex, UK org | -- http://mail.python.org/mailman/listinfo/python-list

Re: EOF while scanning triple-quoted string literal

2010-10-15 Thread Martin Gregorie
e name, or a NULL byte. > > How do you create a file with a name that contains a NULL byte? Use a language or program that doesn't use null-terminated strings. Its quite easy in many BASICs, which often delimit strings by preceeding it with a with a byte count, and you hit Ctrl-SPA

Re: EOF while scanning triple-quoted string literal

2010-10-15 Thread Martin Gregorie
On Fri, 15 Oct 2010 18:14:13 +, Grant Edwards wrote: > On 2010-10-15, Martin Gregorie wrote: >> On Fri, 15 Oct 2010 17:02:07 +, Grant Edwards wrote: >> >>> On 2010-10-15, Steven D'Aprano >>> wrote: >>> >>>> In the Unix world, w

Re: EOF while scanning triple-quoted string literal

2010-10-15 Thread Martin Gregorie
into the null trap - sorry - because I actually meant to generalise the discussion into ways of getting a range of unwanted characters into a file name and why its unwise to use a filename without checking it for characters the OS doesn't like before creating a file with it. -- m

Re: PEP 249 (database api) -- executemany() with iterable?

2010-10-16 Thread Martin Gregorie
On Sun, 17 Oct 2010 11:27:17 +1300, Lawrence D'Oliveiro wrote: > In message , Martin Gregorie wrote: > >> On Thu, 14 Oct 2010 16:36:34 +1300, Lawrence D'Oliveiro wrote: >> >>> In message <4cb5e659$0$1650$742ec...@news.sonic.net>, John Nagle >>

Re: OO and game design questions

2010-10-19 Thread Martin Gregorie
ingle list for all types of object, in which case the object itself would be very small indeed. -- martin@ | Martin Gregorie gregorie. | Essex, UK org | -- http://mail.python.org/mailman/listinfo/python-list

Re: Print to an IPP printer (pkipplib?)

2010-10-20 Thread Martin Gregorie
ut > the print architecture so popenlp is not an option]. I just want to > send the data from a file handle to a remote IPP queue as a print job. See RFC 2910. -- martin@ | Martin Gregorie gregorie. | Essex, UK org | -- http://mail.python.org/mailman/listinfo/python-list

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-26 Thread Martin Gregorie
ical, you do the same as above and also tell the launcher that the program must run in a console window. Simple. Logical. Concise. I assume that what I've just described applies to OS X and virtually all other graphical desktops: I wouldn't know from personal experience because I do

Re: sed equivalent of something easy in python

2010-10-27 Thread Martin Gregorie
print "hello world" > def foo(): > print "foo()" > foo() > EOF > $ Or even better: $ cat hello #!/usr/bin/python print "hello world" def foo(): print "foo()" foo() $ chmod u+x hello $ hello hello world foo() $ which saves an un

[ANN] Pyspread 0.1.2 released

2010-10-30 Thread Martin Manns
values are now found * Saved pys files now have .pys suffix added automatically * Fixed font size reset bug when setting font attributes * Loading a file from command line now checks signature correctly * Fixed moving cells bug for edits in non top-left grid position in wx

Re: Compare source code

2010-11-01 Thread Bob Martin
in 645437 20101031 230912 Lawrence D'Oliveiro wrote: >In message <4ccd5ad9$0$19151$426a7...@news.free.fr>, jf wrote: > >> I edit each file to remove tabs ... > >expand -i newfile > >> Do you know a tools to compare the initial file with the cleaned one to >> know if the algorithms are the same ?

Re: What people are using to access this mailing list

2010-11-03 Thread Martin Gregorie
t; Using what client (or web client)? >> >> Emacs, of course :-; > > Slrn, of course. Pan since I'm on Linux. Agent if I was still a Windows user. Its the best news reader I've used. -- martin@ | Martin Gregorie gregorie. | Essex, UK org | -- http://mail.python.org/mailman/listinfo/python-list

Re: Python documentation too difficult for beginners

2010-11-03 Thread Martin Gregorie
me problem in Java and it has exactly the same root: a lazy programmer who can't be arsed to document his code. -- martin@ | Martin Gregorie gregorie. | Essex, UK org | -- http://mail.python.org/mailman/listinfo/python-list

Re: Commercial or Famous Applicattions.?

2010-11-09 Thread Martin Gregorie
On Tue, 09 Nov 2010 00:47:08 +, brf256 wrote: > Mailman is of course. > ...and don't forget getmail, a better behaved replacement for fetchmail. -- martin@ | Martin Gregorie gregorie. | Essex, UK org | -- http://mail.python.org/mailman/listinfo/python-list

Re: Pythonic/idiomatic?

2010-11-09 Thread Martin Gregorie
pleased to find that Python already has the optparse module. Using it is a no-brainer, particularly as it makes quite a good fist of being self-documenting and of spitting out a nicely formatted chunk of help text when asked to do so. -- martin@ | Martin Gregorie gregorie. | Essex, UK or

Re: Commercial or Famous Applicattions.?

2010-11-10 Thread Martin Gregorie
On Wed, 10 Nov 2010 13:59:02 +, Nobody wrote: > On Wed, 10 Nov 2010 13:07:58 +0000, Martin Gregorie wrote: > >> FWIW the thing that really irritated me about fetchmail is the way it >> only deletes messages at the end of a session and never cleans up after >> itself.

Re: How to test if a module exists?

2010-11-10 Thread Martin Gregorie
ng to stop > `new_zealand' from becoming a TLD at some point (the underscore makes it > unlikely, I grant). If you'd mangled the local part, or used an > explicitly reserved TLD such as `example', then there wouldn't be a > problem. > Using the .invalid TLD is a generally

Re: Commercial or Famous Applicattions.?

2010-11-10 Thread Martin Gregorie
On Wed, 10 Nov 2010 17:01:05 +1300, Lawrence D'Oliveiro wrote: > In message , Martin Gregorie wrote: > >> ...and don't forget getmail, a better behaved replacement for >> fetchmail. > > I was just looking this up in the Getmail FAQ, since I didn’t know about &g

Re: Commercial or Famous Applicattions.?

2010-11-11 Thread Martin Gregorie
On Wed, 10 Nov 2010 16:58:06 -0800, alex23 wrote: > Martin Gregorie wrote: >> Now, if ESR had fixed fetchmail [...] > > Did you try submitting patches? Nope. I'd already seen comments that bug reports etc. are ignored and tried getmail. Since that does the needful,

<    8   9   10   11   12   13   14   15   16   17   >