Re: Bug in python!? persistent value of an optional parameter in function!

2007-03-07 Thread C Barr Leigh
Oh, oops! Of course... :) A great and sensible feature if you're expecting it. Thanks very much, everyone, for the links and discussion! Chris -- http://mail.python.org/mailman/listinfo/python-list

Re: interpreting glyph outlines from ttfquery?

2007-03-22 Thread Mike C. Fletcher
om ttfquery import describe, glyphquery, glyph >> f = describe.openFont("/usr/share/fonts/truetype/freefont/ >> FreeSans.ttf") >> n = glyphquery.glyphName(f, 'D') >> g = glyph.Glyph(n) >> c = g.calculateContours(f) >> o = glyph.decompo

Re: [Python-Dev] Python 3000 PEP: Postfix type declarations

2007-04-01 Thread Johann C. Rocholl
Brilliant! On 4/1/07, Georg Brandl <[EMAIL PROTECTED]> wrote: > def foo${LATIN SMALL LETTER LAMBDA WITH STROKE}$(x${DOUBLE-STRUCK > CAPITAL C}$): > return None${ZERO WIDTH NO-BREAK SPACE}$ > > This is still easy to read and makes the full power of type-annotat

Re: PyDispatcher question

2007-04-05 Thread Mike C. Fletcher
Jorgen Bodde wrote: > Hi all, > > Hopefully someone can help me. I am fairly new to Python, and I am > looking into PyDispatcher. I am familiar with the C++ sigslot variant, > and I wonder how similar PyDispatches is. I run in to the following > 'problem' (pseudo code

Re: Understanding Python's interpreter

2007-04-07 Thread Mike C. Fletcher
thon-list, and new compiler writers are just as important educational targets as new Python programmers. Have fun, Mike -- ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.

Re: is laziness a programer's virtue?

2007-04-17 Thread Bruce C. Baker
"Lew" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Markus E Leypold >>> Trying to correct Xah's behaviour is probably impossible. > > Ingo Menger wrote: >> Perhaps somebody could ask the chinese government to put him in jail >> for "hurting international society" :) > > Y'know, e

Re: Getting rid of bitwise operators in Python 3?

2007-09-23 Thread c d saunter
: arguments and dicts, which are lot more versatile. Another major use, : talking to hardware, is not something oft done in Python either. Are you sure? I've been doing lots of exactly that for 4 years, and I'm not the only one round here... Python makes an excellent language for talking to

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-10-03 Thread Bent C Dalager
In article <[EMAIL PROTECTED]>, Frank Goenninger <[EMAIL PROTECTED]> wrote: > >Well, I didn't start the discussion. So you should ask the OP about the >why. I jumped in when I came across the so often mentioned "hey, it's >all well defined" statement was brought in. I simply said that if that >

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-10-03 Thread Bent C Dalager
In article <[EMAIL PROTECTED]>, David Kastrup <[EMAIL PROTECTED]> wrote: >[EMAIL PROTECTED] (Bent C Dalager) writes: > >> In article <[EMAIL PROTECTED]>, >> Frank Goenninger <[EMAIL PROTECTED]> wrote: >>> >>>Well, I didn't st

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-10-03 Thread Bent C Dalager
In article <[EMAIL PROTECTED]>, George Neuner wrote: >On Wed, 3 Oct 2007 09:36:40 + (UTC), [EMAIL PROTECTED] (Bent C >Dalager) wrote: > >> >>Only if you're being exceedingly pedantic and probably not even >>then. Webster 1913 lists, among other meanin

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-10-03 Thread Bent C Dalager
In article <[EMAIL PROTECTED]>, David Kastrup <[EMAIL PROTECTED]> wrote: >[EMAIL PROTECTED] (Bent C Dalager) writes: > >Not as much "been" liberated, but "turned" liberated. I expect that either way you split this hair, using "free" in the sense

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-10-03 Thread Bent C Dalager
In article <[EMAIL PROTECTED]>, David Kastrup <[EMAIL PROTECTED]> wrote: >[EMAIL PROTECTED] (Bent C Dalager) writes: > >> I have never claimed equivalence. What I have made claims about are >> the properties of one of the meanings of a word. Specifically, m

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-10-03 Thread Bent C Dalager
In article <[EMAIL PROTECTED]>, rjack <[EMAIL PROTECTED]> wrote: >Webster? WEBSTER. . . ? > >Whatever happened to the Oxford English Dictionary ? It suffers from not being in my "dict" installation I suppose. >Seems to me the English have always spoken the definitive >English. . . that's why the

Re: TwistedMatrix missing OpenSSL?

2007-10-05 Thread Mike C. Fletcher
lto:[EMAIL PROTECTED]>> wrote: -- ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Bidirectional communication over unix socket (named pipe)

2007-10-17 Thread Raúl Gómez C.
Hi Jeffrey, I've been reading the Python mailing list and I've found a post of you about Unix socket with Python, you've found the answer to you're problem by your self, but I wonder if you still has the working code and if you would share it? Thanks!... Raul On *Wed Mar 8 18:11:11 CET 2006, *

Re: Bidirectional communication over unix socket (named pipe)

2007-10-17 Thread Raúl Gómez C.
gt; len(TX): print "TX incomplete" while True: print "Waiting..." datagram = client.recv(1024) # the client sits here forever, I see the "waiting appear" but it doesn't advance beyond # the recv statement. if not datagram:

Re: Bidirectional communication over unix socket (named pipe)

2007-10-17 Thread Raúl Gómez C.
Nop, it doesn't work, at least for me (python 2.5)... On 10/18/07, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > > > As I understand the OP's own response, changing SOCK_DGRAM to SOCK_STREAM > here solved the issue. > > -- > Gabriel Genellina > > -- > http://mail.python.org/mailman/listinfo/pytho

Re: Bidirectional communication over unix socket (named pipe)

2007-10-17 Thread Raúl Gómez C.
This is the code I'm running (just the server): #!/usr/bin/python import socket import os, os.path import time if os.path.exists("hpcd_sock"): os.remove("hpcd_sock") server = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) server.bind("hpcd_sock") while True: datagram = server.recv(10

Re: Bidirectional communication over unix socket (named pipe)

2007-10-23 Thread Raúl Gómez C.
Hi list, I've been looking around and I found a very interesting solution to this problem, but instead of using a file for communication the author (Eduardo Fleury) uses a reference to the abstract namespace, chek it out... http://blog.eduardofleury.com/archives/2007/09/13/ Raul -- http://mail.

(MAC) CoreGraphics module???

2007-11-01 Thread David C. Ullrich
here a working CoreGraphics.py around somewhere? I found a file somewhere on the net that was the same as mine except it ended with from CG import * Adding that doesn't change anything.) (Yes, the XCode installation seems to be working fine.) ??? David C. Ullrich

Re: (MAC) CoreGraphics module???

2007-11-02 Thread David C. Ullrich
On Thu, 01 Nov 2007 19:39:20 -0500, Robert Kern <[EMAIL PROTECTED]> wrote: >David C. Ullrich wrote: >> [why doesn't CoreGraphics work?] > >That's different than the one that is referenced. The one those articles >reference is only available in the Python tha

Getting the output from a console command while it's been generated!

2007-01-26 Thread Raúl Gómez C.
Hi everyone, I'm trying to make my apps more informative to the user, so I want to know if its possible to get the output of the execution of a console command while it's been generated, I mean, I want to get the output from commands.getstatusoutput('CMD') while CMD it's been executed and not wai

Re: Getting the output from a console command while it's been generated!

2007-01-28 Thread Raúl Gómez C.
I can't use the subprocess module because my app needs to be compatible with Python 2.3 so, is there another approach to this problem??? Thanks! On 1/26/07, Gabriel Genellina <[EMAIL PROTECTED]> wrote: "Raúl Gómez C." <[EMAIL PROTECTED]> escribió en el mensaje ne

Taint (like in Perl) as a Python module: taint.py

2007-02-05 Thread Johann C. Rocholl
The following is my first attempt at adding a taint feature to Python to prevent os.system() from being called with untrusted input. What do you think of it? # taint.py - Emulate Perl's taint feature in Python # Copyright (C) 2007 Johann C. Rocholl <[EMAIL PROTECTED]> # # Permissio

Re: Taint (like in Perl) as a Python module: taint.py

2007-02-06 Thread Johann C. Rocholl
On Feb 6, 3:01 am, Ben Finney <[EMAIL PROTECTED]> wrote: > "Gabriel Genellina" <[EMAIL PROTECTED]> writes: > > And tainted() returns False by default? > > Sorry but in general, this won't work :( > > I'm inclined to agree that the default should be to flag an object as > tainted unless known ot

Re: pygame and python 2.5

2007-02-09 Thread Mike C. Fletcher
[EMAIL PROTECTED] wrote: > Ben> Python extensions written in C require recompilation for each new > Ben> version of Python, due to Python limitations. > > Can you propose a means to eliminate this limitation? > Sure, write your wrapper-style extensions in cty

Re: Saving PyOpenGl figures as ps

2007-02-11 Thread Mike C. Fletcher
ing an off-screen buffer (pbuffer or MESA) for the rendering, which may (depending on implementation) allow for higher resolutions. If you want a true vector graphic (PS, EPS) you'll need to use something like GL2PS. http://www.geuz.org/gl2ps/ HTH, Mike -- _____

Re: Dlls

2007-02-18 Thread Mike C. Fletcher
ers to use those "raw" functions, but they should work perfectly well. That is, you have to pass the right data-type, but then you'd have to do that in assembler too. Have fun, Mike -- Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: (MAC) CoreGraphics module???

2007-11-03 Thread David C. Ullrich
On Fri, 02 Nov 2007 14:09:25 -0500, Robert Kern <[EMAIL PROTECTED]> wrote: >David C. Ullrich wrote: >> [...] >> >> So CoreGraphics is a builtin in Apple-Python, >> explaining why I didn't find the relevant >> CoreGraphics.py anywhere on the hard driv

Re: (MAC) CoreGraphics module???

2007-11-03 Thread David C. Ullrich
On Fri, 2 Nov 2007 13:14:16 +0100, Tommy Nordgren <[EMAIL PROTECTED]> wrote: > >On 2 nov 2007, at 02.10, David C. Ullrich wrote: > >> [Why doesn't CoreGraphics work?] >> -- >> http://mail.python.org/mailman/listinfo/python-list > There are Python

Re: (MAC) CoreGraphics module???

2007-11-04 Thread David C. Ullrich
On Fri, 02 Nov 2007 14:09:25 -0500, Robert Kern <[EMAIL PROTECTED]> wrote: >David C. Ullrich wrote: >> [???] > >Okay, which version of OS X do you have? In 10.3 and 10.4 it used to be here: >/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-

Re: (MAC) CoreGraphics module???

2007-11-05 Thread David C. Ullrich
On Sun, 04 Nov 2007 15:56:21 -0600, Robert Kern <[EMAIL PROTECTED]> wrote: >David C. Ullrich wrote: >> On Fri, 02 Nov 2007 14:09:25 -0500, Robert Kern >> <[EMAIL PROTECTED]> wrote: >> >>> David C. Ullrich wrote: >>>> [???] >>> Okay,

Re: dependency algorithm

2007-11-14 Thread Mike C. Fletcher
ut that's pretty trivial to change. Have fun, Mike -- ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Screen Shots?

2007-12-04 Thread Mike C. Fletcher
> > Any help would be greatly appreciated If you are using Pygame (you don't say which GUI library you are using), you can draw the mini-map into a surface and then re-blit the surface to the screen each time you want to display it. HTH, Mike -- ___

Re: GUI development with 3D view

2007-12-10 Thread Mike C. Fletcher
machines that have problems with the 3.x alphas so far. Tempus fugit, Mike -- ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: State of the "Vaults of Parnassus"

2006-05-14 Thread Mike C. Fletcher
Last I heard he had someone who was helping him every once in a while to review the new submissions, but that was quite a while ago. I don't *think* there's any discarding, but rather a delay so long in publishing that it would feel like a discard... Take care, Mike -- ___

Modifying a variable in a non-global outer scope?

2006-05-19 Thread Edward C. Jones
#! /usr/bin/env python """ When I run the following program I get the error message: UnboundLocalError: local variable 'x' referenced before assignment Can "inner" change the value of a variable defined in "outer"? Where is this explained in the docs? """ def outer(): def inner(): x

Re: Using python for a CAD program

2006-05-21 Thread Mike C. Fletcher
imations, > etc? > While it might be possible to do this fast enough with Python, you will almost certainly want to use a retained-mode engine for the graphics display. There are quite a few retained-mode engines for Python, most are built on OpenGL. Some of those engines are written in Py

Re: TopSort in Python?

2008-01-20 Thread Mike C. Fletcher
ore I knew the name IIRC)). > P.S. we have revived a thread started in 1999! > For some of us 1999 is well into our Pythonic life-cycle :) Have fun, Mike -- ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http:

Windows AVIFile problems

2008-01-25 Thread c d saunter
: File "", line 1, in windll.AVIFile File "C:\Python25\lib\ctypes\__init__.py", line 415, in __getattr__ dll = self._dlltype(name) File "C:\Python25\lib\ctypes\__init__.py", line 340, in __init__ self._handle = _dlopen(self._name, mode) WindowsError: [Error 193] %1 is

Re: Windows AVIFile problems

2008-01-25 Thread c d saunter
Thomas Heller ([EMAIL PROTECTED]) wrote: : c d saunter schrieb: : > Hi All, : > : The dll is not corrupt. It is the 16-bit dll, possibly present for legacy : 16-bit support. Thomas, Thanks, that explains a lot. Regards, Chris Saunter -- http://mail.python.org/mailman/li

Re: PyOpenGL

2008-02-04 Thread Mike C. Fletcher
ur import until after you have the context setup and see if that lets glGetString return a valid pointer. HTH, Mike -- Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: IronPython vs CPython: faster in 1.6 times?

2008-02-05 Thread Mike C. Fletcher
ecoming reasonable as an embedded language, or a systems language. Only 2x slower than C would make Python pretty close to a perfect language... (far more attractive than a slightly tweaked syntax IMO). That's probably 5-10 developer years out, though, not counting any distractions from

how to run python script on remote machine

2008-02-08 Thread Praveena Boppudi (c)
Hi, Can anyone help me in executing python scripts on remote computer? Both are windows machines. Thanks, Praveena. -- http://mail.python.org/mailman/listinfo/python-list

how to find current working user

2008-02-11 Thread Praveena Boppudi (c)
Hi, Can anyone tell me how to find current working user in windows? Thanks, Praveena. -- http://mail.python.org/mailman/listinfo/python-list

How to add registry on remote machine

2008-02-12 Thread Praveena Boppudi (c)
Hi, Can anyone please tell me how to add registry on remote windows machine programmatically Thanks, Praveena. -- http://mail.python.org/mailman/listinfo/python-list

Re: Parallel port control with USB->Parallel converter

2008-02-14 Thread c d saunter
Soren, I don't know about the USB parallel port converters but there are variousways you can add USB connectivity yourself. A simple way are the USB devices from FTDI (http://www.ftdichip.com/FTProducts.htm) Either the FT232R or the FT245R. These are both single chip solutions that

Re: Parallel port control with USB->Parallel converter

2008-02-14 Thread c d saunter
you'd want the 245. regards cds c d saunter ([EMAIL PROTECTED]) wrote: : Soren, : I don't know about the USB parallel port converters but there are : variousways you can add USB connectivity yourself. : A simple way are the USB devices from FTDI : (http://www.ftdichip.com

Re: simpleparse - what is wrong with my grammar?

2008-02-24 Thread Mike C. Fletcher
,expr" is matched. It will continue recursing down into "expr" until it runs out of ram or otherwise encounters a system-level fault. You need to disambiguate your grammar to have it work with SimpleParse. How you do that will depend on what you really meant by expr,binop,expr:

Re: simpleparse - what is wrong with my grammar?

2008-02-25 Thread Mike C. Fletcher
Laszlo Nagy wrote: ... > Is there any way I can specify precedence tables? Or do I have to use > a different parser generator then? You normally specify them as top_precedence/second_precedence/last_precedence sets. SimpleParse' limitation is with ambiguity, not with precedence. SimpleParse wi

Speaking Text

2008-03-19 Thread David C. Ullrich
Linux presumably it only works if there happens to be a speech engine available...) David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: Speaking Text

2008-03-20 Thread David C. Ullrich
On Wed, 19 Mar 2008 07:41:29 -0500, David C. Ullrich <[EMAIL PROTECTED]> wrote: >Mac OS X has text-to-speech built into the interface. >So there must be a way to access that from the command >line as well - in fact the first thing I tried worked: > >os.system('say hell

Re: Problem with complex numbers

2008-03-23 Thread David C. Ullrich
then you get exactly one z**w. But that's not always the z**w that you need for your problem... >Ask >Google for some examples Thanks. >Christian David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

How to take snap shot of the of project screen in Python

2008-03-27 Thread Praveena Boppudi (c)
Hi, Can anyone help me out? Thanks, Praveena. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3D CAD -- need collaborators, or just brave souls :)

2009-02-10 Thread Mike C. Fletcher
rites are inevitable :) Simple CAD systems without shading/texturing shouldn't have any real performance issues under Python. We had 3D CAD back in 1993 sufficient to build reasonably complex environments when I was in architecture. Python's only about 10x slower than C, and if y

Unexpected string behaviour: txt = 'this' ' works'

2009-02-11 Thread c d saunter
I did a double take when debugging an error the other day. My problem was missing out a comma when building a list of strings. Much to my surprise the offending code still executed to cause problems later on: >>> txt = 'this', 'works' >>> print txt ('this', 'works') # As expected >>> txt = 'this

Re: Unexpected string behaviour: txt = 'this' ' works'

2009-02-11 Thread c d saunter
Bruno Desthuilliers (bruno.42.desthuilli...@websiteburo.invalid) wrote: : c d saunter a écrit : : > I did a double take when debugging an error the other day. My : > problem was missing out a comma when building a list of strings. : > : > Much to my surprise the offending code still

Re: OpenGL in TK

2009-02-17 Thread Mike C. Fletcher
headache of maintenance has vastly outweighed my interest. HTH, Mike -- ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Mathematica 7 compares to other languages

2008-12-01 Thread anonymous . c . lisper
On Dec 1, 2:23 am, Xah Lee <[EMAIL PROTECTED]> wrote: > On Nov 30, 7:30 pm, Xah Lee <[EMAIL PROTECTED]> wrote: > >>some stuff Are you a bot? I think you failed the Turing test after the 8th time you posted the exact same thing... I'm completely serious. -- http://mail.python.org/mailman/listinfo

Re: Mathematica 7 compares to other languages

2008-12-01 Thread anonymous . c . lisper
On Nov 30, 10:30 pm, Xah Lee <[EMAIL PROTECTED]> wrote: > some stuff You are a bot? I think you failed the Turing test when you posted the same thing 20 times. A rational human would realize that not too many people peruse this newsgroup, and that most of them have already seen the wall of text

Re: Mathematica 7 compares to other languages

2008-12-01 Thread anonymous . c . lisper
On Dec 1, 8:29 pm, Lew <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > A rational human would realize that not too many people peruse this > > newsgroup, > > and that most of them have already seen the wall of text post that you > > generate every time. > > Just out of curiosity, what do

Re: newbie question

2008-12-02 Thread David C. Ullrich
mainmain = double(main) I left off the final parentheses because I didn't want to call mainmain just then, I just wanted to set mainmain to the right thing. > Thanks ! -- David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: default value in __init__

2008-10-09 Thread David C. Ullrich
27;s a _bold face_ statement "Default parameter values are evaluated when the function definition is executed.", followed by an explanation of how that can lead to the sort of problem above. So I guess it _is_ awfully dangerous. They should really explain this aspect of the language's behavior to people who don't read the formal definition and also don't work through the tutorial. > Paolo -- David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: default value in __init__

2008-10-14 Thread David C. Ullrich
In article <[EMAIL PROTECTED]>, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > David C. Ullrich a écrit : > > In article > > <[EMAIL PROTECTED]>, > > kenneth <[EMAIL PROTECTED]> wrote: > > > >> On Oct 9, 10:14 am, Christian Heime

Re: Question

2008-10-14 Thread David C. Ullrich
In article <[EMAIL PROTECTED]>, "Aditi Meher" <[EMAIL PROTECTED]> wrote: > Hello > > How to write code to store data into buffer using python? buffer = data > Please reply. -- David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: default value in __init__

2008-10-16 Thread David C. Ullrich
In article <[EMAIL PROTECTED]>, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > David C. Ullrich a écrit : > > In article <[EMAIL PROTECTED]>, > > Bruno Desthuilliers <[EMAIL PROTECTED]> > > wrote: > > > >> David C. Ullrich a é

Re: default value in __init__

2008-10-21 Thread David C. Ullrich
In article <[EMAIL PROTECTED]>, Paul McGuire <[EMAIL PROTECTED]> wrote: > On Oct 14, 1:36 pm, "David C. Ullrich" <[EMAIL PROTECTED]> wrote: > > >[...] > > > In particular default parameters should work the way the user > > expects! The fac

Re: etymology of "list comprehension"?

2008-11-11 Thread David C. Ullrich
ion. > > Frege's original system of logic (late 19th century), now called > "naive set theory" had "unrestricted comprehension" which meant > you could say anything at all where the logical expression went. > This made the system inconsistent, because of Russell&

Re: ANN: SuPy 1.6

2009-02-23 Thread Mike C. Fletcher
if there's anything else you feel should be said about the program, let me know. http://www.vrplumber.com/py3d.py#supy Have fun, Mike -- ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumb

Re: Packaging Survey

2009-03-10 Thread C. Titus Brown
grammation-python.org -> Blog EN | http://tarekziade.wordpress.com/ -> -- -> http://mail.python.org/mailman/listinfo/python-announce-list -> -> Support the Python Software Foundation: -> http://www.python.org/psf/donations.html -> -- C. Titus Brown, c...@msu.edu -- http://mail.python.org/mailman/listinfo/python-list

Re: Ban Xah Lee

2009-03-20 Thread Bruce C. Miller
On Mar 7, 6:52 pm, Xah Lee wrote: > Of interest: > > • Why Can't You Be Normal? Though I doubt this will do any good, I'll offer some advice that hasn't been mentioned here and solved a lot of the problems I've had early in life with resistance to overly-emotional negative reactions to my opinion

Re: Introducing Python to others

2009-03-26 Thread David C. Ullrich
ence will be experienced (4+ years) programmers, almost > all of them are PHP developers (2 others, plus myself, work in C, know > C#, perl, java, etc.). > Because of this, I was thinking of making sure I included exceptions > and handling, the richness of the python library and a point

Re: Wing IDE Backup configuration settings?

2009-03-30 Thread Raúl Gómez C .
Find the .wingide folder in your home and tar it, at least in linux... On Sat, Mar 28, 2009 at 12:26 PM, John Doe wrote: > > Anyone know how to back up the configuration settings like font sizes > and colors in the Wing IDE? Thanks. > -- > http://mail.python.org/mailman/listinfo/python-list >

Re: Introducing Python to others

2009-03-31 Thread David C. Ullrich
In article <039360fb-a29c-4f43-b6e0-ba97fb598...@z23g2000prd.googlegroups.com>, Mensanator wrote: > On Mar 26, 11:42 am, "andrew cooke" wrote: > > David C. Ullrich wrote: > > > In article , > > >  "Paddy O'Loughlin" wrote: > &

Re: Introducing Python to others

2009-03-31 Thread David C. Ullrich
lf, other): > return type(self)(x - y for x, y in zip(self, other)) > def __repr__(self): > return '%s(%s)' % ( > type(self).__name__, list.__repr__(self)) > > x = Vector([1,2]) > x + x + x > > --Scott David Daniels > scott.dani...@acm.org -- David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: Introducing Python to others

2009-04-02 Thread David C. Ullrich
In article , "andrew cooke" wrote: > David C. Ullrich wrote: > > In article , > > Scott David Daniels wrote: [...] > >> > >> class Vector(list): > >> def __add__(self, other): > >> return type(self)(x + y

SoHo Book Problem

2009-04-07 Thread David C. Ullrich
- that would mean nobody even _glanced_ at what was coming out of the press. So I'm curious whether anyone else has a copy. (I know it's all online. Some people like _books_...) DU. -- David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: SoHo Book Problem

2009-04-08 Thread David C. Ullrich
mewhere where Google can see it... DU. In article , "David C. Ullrich" wrote: > Just curious - has anyone else bought the printed > Python 3 Reference Manual published by SoHo Books? > > Talking about what they call "Part 2" of their Python > Documentation. I

Re: Lisp mentality vs. Python mentality

2009-04-25 Thread anonymous . c . lisper
ng with the analogy, but I think a lot of what you describe as 'over-thinking' of the problem in lisp comes from people having an honest desire to answer the /right/ question. Lisp gives you a bit of granularity with regard to certain things (like comparison), that in many languages amount

Re: PyOpenGL Installation

2009-05-31 Thread Mike C. Fletcher
tion of endless must be broken ;) :) , Mike -- ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: wxpython dialog - do something after ShowModal()?

2008-05-14 Thread David C. Ullrich
In article <[EMAIL PROTECTED]>, Iain King <[EMAIL PROTECTED]> wrote: > Hi. I have a modal dialog whcih has a "Browse..." button which pops > up a file selector. This all works fine, but the first thing the user > has to do when they open the dialog is select a file, so I would like > the dialo

sys.excepthack...

2008-05-14 Thread David C. Ullrich
self.buffer = '' def write(self, text): self.buffer = self.buffer + text def Show(self): wx.MessageDialog(None, str(self.buffer), 'Error:',wx.OK).ShowModal() self.buffer = '' printer = ErrorDisplay() sys.stderr = prin

"indexed properties"...

2008-05-14 Thread David C. Ullrich
ain__": class AClass(object): def __init__(self): self.cells = [[0,0], [0,0]] def SetCell(self, (row, col), value): self.cells[row][col] = value def GetCell(self, (row, col)): return self.cells[row][col] cell = indexedproperty(GetCell, SetCell) C =

Re: sys.excepthack...

2008-05-14 Thread David C. Ullrich
In article <[EMAIL PROTECTED]>, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: > On Wed, 14 May 2008 15:47:18 -0500, "David C. Ullrich" <[EMAIL PROTECTED]> > wrote: > > [snip] > > > >Came up with a ridiculous hack involving both sys.stderr

Re: "indexed properties"...

2008-05-16 Thread David C. Ullrich
On Thu, 15 May 2008 10:59:41 -0300, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: >En Wed, 14 May 2008 18:15:41 -0300, David C. Ullrich <[EMAIL PROTECTED]> >escribió: > >> Having a hard time phrasing this in the form >> of a question... >> &g

Re: "indexed properties"...

2008-05-17 Thread David C. Ullrich
On Sat, 17 May 2008 00:27:31 -0300, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: >(warning: it's a rather long message) > >En Fri, 16 May 2008 12:58:46 -0300, David C. Ullrich ><[EMAIL PROTECTED]> escribió: >> On Thu, 15 May 2008 10:59:41 -0

Re: "indexed properties"...

2008-05-18 Thread David C. Ullrich
zip(self, other)]) >> >> worked as hoped if self is a Row and other is a >> Row _or_ a list.) >> >> Anyway, my m.rows[j] can't be a list, because >> I want to be able to say things like >> m.rows[0] += c*m.rows[2]. Allowing >> m.rows[j] = [1,

Re: Using Python for programming algorithms

2008-05-18 Thread David C. Ullrich
ted programming language —I mean, it is not like C, in that >sense. > >I am working on my PhD Thesis, which is about Operations Research, >heuristic algorithms, etc., and I am considering the possibility of >programming all my algorithms in Python. Other people have said things abou

Re: "indexed properties"...

2008-05-19 Thread David C. Ullrich
m.) Really. In one of the intended applications the matrix entries are going to be home-made Rationals. Just adding two of those guys takes a long time. It's still more than fast enough for the intended application, but [oh, never mind. Sorry about the argumentative tone - I _would_ like to know which "untenable position" you're referring to... >P. David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: python script to windows exe

2008-05-19 Thread David C. Ullrich
y(mailItem): > >name="\\"+mailItem.Subject+"__"+str(mailItem.ReceivedTime) >print name >#global outlook_app >try: >mailItem.SaveAs(path+name+".txt",OlSaveAsType['olTXT']) >except BaseException: >prin

Re: How do *you* use Python in non-GUI work?

2008-05-20 Thread David C. Ullrich
arious programs available that would solve his problem for him - writing a little Python to give the solution took less time than downloading one of those programs would have. >Thanks. David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: "indexed properties"...

2008-05-20 Thread David C. Ullrich
On Mon, 19 May 2008 14:48:03 +0200, pataphor <[EMAIL PROTECTED]> wrote: >On Mon, 19 May 2008 06:29:18 -0500 >David C. Ullrich <[EMAIL PROTECTED]> wrote: > >> Maybe you could be more specific? Various "positions" I've >> taken in all this may wel

Re: "indexed properties"...

2008-05-20 Thread David C. Ullrich
In article <[EMAIL PROTECTED]>, pataphor <[EMAIL PROTECTED]> wrote: > On Tue, 20 May 2008 06:12:01 -0500 > David C. Ullrich <[EMAIL PROTECTED]> wrote: > > > Well, ok. Like I said, I never _took_ the position that it _should_ > > be a list of lists, I

Re: "indexed properties"...

2008-05-22 Thread David C. Ullrich
On Wed, 21 May 2008 12:47:44 +0200, pataphor <[EMAIL PROTECTED]> wrote: >On Tue, 20 May 2008 10:40:17 -0500 >"David C. Ullrich" <[EMAIL PROTECTED]> wrote: > >> > > Today's little joke: Long ago I would have solved >> > > this by st

Re: Relationship between GUI and logic?

2008-05-23 Thread David C. Ullrich
ainly an issue of terminology, so probably I should just read up on MVC. > >> The user interface doesn't need to be graphical. There were games and >> emails clients and text editors before GUIs existed, you know ? > >Of course, but I'm specifically asking about creating a program that has a >GUI, and even more specifically it would be wxPython. > David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: Python is slow

2008-05-24 Thread David C. Ullrich
t;> >> > Brad a écrit : >> >> cm_gui wrote: >> >>> Python is slow. >> >> >> It ain't C++, but it ain't a punch card either... somewhere in between. I >> >> find it suitable for lots of stuff. I use C++ when perf

Re: Relationship between GUI and logic?

2008-05-24 Thread David C. Ullrich
final configuration betore saying anything to the model. The model should only deal with legal positions. (Could be that it's not until we start actually playing the game through the GUI that we find the model can't deal with two black queens. But that's not an example either, that would just mean the model is wrong, not allowing every legal position.) >-M- David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: WXpython Question

2008-05-24 Thread David C. Ullrich
; >> Have fun! And remember, there's a great wxPython mailing list too: >> >> http://www.wxpython.org/maillist.php >> >> Mike > >Thanks! You should also note docs.wxwidgets.org (I tend to find that by googling "wxTreeCtrl" or whatever.) The descriptions of various components there are more complete than in the (excellent!) wxPython book - it's C++ but usually not hard to figure out what the corresponding wxPython should be. David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: access interactive namespace from module (shared namespace?)

2008-05-25 Thread David C. Ullrich
;""utest.py""" import __main__ def doit(): print 2*__main__.a >Cheers, > >Ulrich > > David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: How to covert ASCII to integer in Python?

2008-05-30 Thread David C. Ullrich
7;s actually a problem you're trying to solve here, try ord instead of int. > Or probably you yourself should - quote : > "You probably should go through the tutorial ASAP that is located here: > > http://docs.python.org/tut/ " > > - > [Image] -- David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

<    4   5   6   7   8   9   10   11   12   >