Re: explicit self revisited

2006-11-11 Thread Doug
Fredrik Lundh wrote: > Fredrik Lundh wrote: > > cannot all you clueless trolls who cannot think of a single useful thing > > to contribute to Python start your own newsgroup? > > and before anyone complains; please note that they're working through > > http://www.effbot.org/pyfaq/design-index

Fredrik Lundh [was "Re: explicit self revisited"]

2006-11-12 Thread Doug
Fredrik Lundh wrote: > Doug wrote: >> >> Fredrik Lundh wrote: >>> Fredrik Lundh wrote: >>> > cannot all you clueless trolls who cannot think of a single useful thing >>> > to contribute to Python start your own newsgroup? >> >>>

Re: Py3K idea: why not drop the colon?

2006-11-12 Thread Doug
Michael Hobbs wrote: > Can anyone find a flaw with this change in syntax? > > Instead of dividing a compound statement with a colon, why not divide it > on a newline? For example, the colon could be dropped from this statement: > if self.hungry: > self.eat() > to > if self.hungry >

Re: Molten Metal Pools in WTC after weeks, only micronuke could have produced so much heat

2006-12-01 Thread Doug
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > W88 warhead design > > http://www.thepriceofliberty.org/06/09/25/wardpics-5.htm > > http://www.thepriceofliberty.org/06/09/25/wardpics-4.htm the diagrams are all wrong, they are fiction. -- http://mail.python.org/mailman/listinf

Re: Soap Client

2009-01-16 Thread Doug
has a great day! Doug -- http://mail.python.org/mailman/listinfo/python-list

libglade for python-2

2006-03-15 Thread Doug
local but I have included them for completeness) Doug -- http://mail.python.org/mailman/listinfo/python-list

Python / glade fundamentals

2006-03-16 Thread Doug
Hi all, Can someone tell me why I do not get a connection between the events and the functions in the sample below. GUI window appears OK, just no connections seem to be made. I am new to this so may be missing something fundamental. Thanks, Doug file pgtest.glade = http

Re: Python / glade fundamentals

2006-03-17 Thread Doug
OK, I have solved the problem. The reference was a help. The clue is that the events may not get passed through the parent. For reference here is the code that worked. It's good to finally get the basics working. Doug import gtk import gtk.glade def key_press(widget,event): print &quo

Writing a Carriage Return in Unicode

2009-11-18 Thread Doug
Hi! I am trying to write a UTF-8 file of UNICODE strings with a carriage return at the end of each line (code below). filOpen = codecs.open("c:\\temp\\unicode.txt",'w','utf-8') str1 = u'This is a test.' str2 = u'This is the second line.' str3 = u'This is the third line.' strCR = u"\u240D" fil

Re: Writing a Carriage Return in Unicode

2009-11-19 Thread Doug
Hi! Thanks for clearing this up!! -- http://mail.python.org/mailman/listinfo/python-list

Re: How to run python script in emacs

2009-11-25 Thread doug
When I type C-c C-c my emacs window just hangs. If I use Task Manager to kill cmdproxy I can get emacs back but of course interactivity with Python is not accomplished. By the way, if I do C-c ! then I get a functional python shell. Does anybody know a solution to this? On Oct 13, 7:12 am, rus

Using elementtree to Create HTML Form / Set "selected"

2010-08-12 Thread Doug
I'm using elementtree to create a form. I would like to set the "selected" attribute. Setting using the usual option.set( "selected" = "" ) gives me Operations how does one make Operations which is what I need. -- http://mail.python.org/mailman/listinfo/python-list

Re: Using elementtree to Create HTML Form / Set "selected"

2010-08-12 Thread Doug
On Aug 12, 10:47 am, Peter Otten <__pete...@web.de> wrote: > Doug wrote: > > I'm using elementtree to create a form. > > > I would like to set the "selected" attribute. > > > Setting using the usual > >  option.set( "selected" =

Ctypes, pthreads and pthread_mutex_t

2009-06-29 Thread Doug
Has any converted the structure pthread_mutex_t to a ctypes structure class ? I looking at some C code that is using pthreads and need to translate pthreads_mutex_t structure into python (via ctypes) Thanks -- http://mail.python.org/mailman/listinfo/python-list

print syntax

2009-09-03 Thread doug
I am new to python, working by way through 'Core Python Programming'. I can find no description of using print with the built-in type for formatting. I think I have got some [most?] of it from Chun, google, and python.org. My comment is - it should not be that hard to find. I would suggest a lin

Re: Python enabled gdb on Windows and relocation

2011-05-13 Thread Doug Evans
On Thu, May 12, 2011 at 9:19 AM, Ruben Van Boxem wrote: > (now in plain-text as required by gdb mailing list) > > Hi, > > I am currently trying to integrate Python support into my toolchain > build (including GDB of course). It is a sysrooted > binutils+GCC+GDB+mingw-w64 toolchain. > > I currently

Re: Python enabled gdb on Windows and relocation

2011-05-14 Thread Doug Evans
On Sat, May 14, 2011 at 2:09 AM, Ruben Van Boxem wrote: > 2011/5/14 Doug Evans : >> On Thu, May 12, 2011 at 9:19 AM, Ruben Van Boxem >> wrote: >>> (now in plain-text as required by gdb mailing list) >>> >>> Hi, >>> >>> I am currently tr

Re: Python enabled gdb on Windows and relocation

2011-05-14 Thread Doug Evans
On Sat, May 14, 2011 at 2:29 AM, Eli Zaretskii wrote: >> Date: Sat, 14 May 2011 11:09:13 +0200 >> From: Ruben Van Boxem >> Cc: g...@sourceware.org, python-list@python.org >> >> 1. Check hardcoded path; my suggestion would be "> executable>/../lib/python27" >> 2. If this fails to find the necessar

Re: Python enabled gdb on Windows and relocation

2011-05-14 Thread Doug Evans
On Sat, May 14, 2011 at 11:30 AM, Doug Evans wrote: > Note that --exec-prefix is the runtime location of python. > GCC uses this to tell libpython where to find its support files. > [grep for Py_SetProgramName in gdb/python/python.c] Oops. s/GCC/GDB/ -- http://mail.python.org/mailman

Re: Python enabled gdb on Windows and relocation

2011-05-17 Thread Doug Evans
On Sun, May 15, 2011 at 6:26 AM, Ruben Van Boxem wrote: > Wow, I think I have a partial solution. Delving into the Python docs, > for example here: > http://docs.python.org/using/windows.html#finding-modules, you can see > that PYTHONPATH is used first, then the Windows registry, then > PYTHONHOME

Re: Python enabled gdb on Windows and relocation

2011-05-17 Thread Doug Evans
On Sun, May 15, 2011 at 9:11 AM, Ruben Van Boxem wrote: > I am sorry for the repeated messages that no one cares about, but I > may have discovered GDB in its current form already allows what I > want: I tried to figure out what exact paths the snake in gdb was > using to search for its modules, a

Re: python3 regex?

2016-09-10 Thread Doug OLeary
again. I appreciate the tip. Doug O'Leary -- https://mail.python.org/mailman/listinfo/python-list

iterating over multi-line string

2016-09-11 Thread Doug OLeary
bj) print(l) I'm hoping to see that first header; however, I'm getting another error: Traceback (most recent call last): File "./testies.py", line 30, in next(iterobj) StopIteration I'm not quite sure what that means... Does that mean I got to the end of data w

Re: iterating over multi-line string

2016-09-11 Thread Doug OLeary
Hey; Never mind; I finally found the meaning of stopiteration. I guess my google-foo is a bit weak this morning. Thanks Doug -- https://mail.python.org/mailman/listinfo/python-list

more python3 regex?

2016-09-11 Thread Doug OLeary
this seems like it should be pretty straight forward so I'm obviously missing something basic. Any hints/tips/suggestions gratefully accepted. Doug O'Leary -- https://mail.python.org/mailman/listinfo/python-list

Re: more python3 regex?

2016-09-11 Thread Doug OLeary
ta to match an algorithm works as well in python as it does in perl. Go figure. My 200+ script that didn't work so well is now 63 lines, including comments... and works perfectly. Outstanding! Thanks for putting up with noob questions Doug -- https://mail.python.org/mailman/listinfo/python-list

xml parsing with lxml

2016-10-07 Thread Doug OLeary
en of .*?? In that partial list, it'd be name, domain-version, security-configuration, log, and server. For some reason, I'm not able to make the conceptual leap to get to the first step of those tutorials. The end goal of this exercise is to programatically identify weblogic clusters and their hosts. thanks Doug O'Leary -- https://mail.python.org/mailman/listinfo/python-list

Re: xml parsing with lxml

2016-10-07 Thread Doug OLeary
On Friday, October 7, 2016 at 3:21:43 PM UTC-5, John Gordon wrote: > root = doc.getroot() > for child in root: > print(child.tag) > Excellent! thank, you sir! that'll get me started. Appreciate the reply. Doug O'Leary -- https://mail.python.org/mailman/listinfo/python-list

lxml and xpath(?)

2016-10-24 Thread Doug OLeary
ight help but I've not been able to get even the simple examples working. Go figure, I just figured out what a namespace is... Any hints/tips/suggestions greatly appreciated especially with complete noob tutorials for xpath. Thanks for your time. Doug O'Leary -- https://mail.python.org/mailman/listinfo/python-list

Re: Some more odd behaviour from the Regexp library

2005-10-19 Thread Doug Schwarz
x27;exit: (.*?)', a) > In [4]: b.group(0) > Out[4]: 'exit: ' > > In [5]: b.group(1) > Out[5]: '' > > In [6]: b.group(2) > IndexError: no such group The ? tells (.*?) to match as little as possible and that is nothing. If you change it to (.*) it should

ElementTree - Why not part of the core?

2005-12-07 Thread doug . bromley
Why is the ElementTree API not a part of the Python core? I've recently been developing a script for accessing the Miva API only to find all the core API's provided by Python for parsing XML is messy and complicated. Many of the examples I see for parsing the data using these API's uses a similar

Re: Securing a future for anonymous functions in Python

2004-12-31 Thread Doug Holton
Steven Bethard wrote: Simo Melenius wrote: map (def x: if foo (x): return baz_1 (x) elif bar (x): return baz_2 (x) else: global hab hab.append (x) return baz_3 (hab), [1,2,3,4,5,6]) I think this would

Re: What can I do with Python ??

2005-01-01 Thread Doug Holton
BOOGIEMAN wrote: Thanks everybody, I downloaded latest windows version and Python-Docs-2.4 archive. Is that enough for absolute beginner. Is there any e-book, step by step guide ... etc for download, or anything else important what I have to know before I start learning Python ? The main thing I wo

Re: Python evolution: Unease

2005-01-04 Thread Doug Holton
Istvan Albert wrote: But if python were to become overly complicated I'll find something else. Three years ago I have not not used python at all, now I'm using it for everything. You're in luck, python 2.4 won't be significantly changing anytime soon. PS. why can't decorators solve this optional ty

Re: Python evolution: Unease

2005-01-04 Thread Doug Holton
Istvan Albert wrote: Doug Holton wrote: application is so important that I expect Python 3000 will have optional type declarations integrated into the argument list." I think that *optional* part of the "optional type declaration" is a myth. It may be optional in the sense that th

Re: How do I make Windows Application with Python ?

2005-01-05 Thread Doug Holton
BOOGIEMAN wrote: Thanks all for very detailed answers. BTW I tried this one but it seems that it doesn't use VS'es visual designer. Also it doesn't have "build" option so it is basicly only usefull to higlight Python syntax. Active Sate Komodo looks like much better choice I don't know of any pytho

Re: Embedding a restricted python interpreter

2005-01-06 Thread Doug Holton
Rolf Magnus wrote: Hi, I would like to embed a python interpreter within a program, but since that program would be able to automatically download scripts from the internet, I'd like to run those in a restricted environment, which basically means that I want to allow only a specific set of modules

Re: Securing a future for anonymous functions in Python

2005-01-06 Thread Doug Holton
Alan Gauld wrote: GvR has commented that he want to get rid of the lambda keyword for Python 3.0. Getting rid of lambda seems like a worthy goal, Can I ask what the objection to lambda is? 1) Is it the syntax? 2) Is it the limitation to a single expression? 3) Is it the word itself? I can symp

Re: Game programming in Python

2005-01-11 Thread Doug Holton
Baza wrote: I'm looking for any books or on-line resources on game programming using Python. Does anyone have any advice? See http://pygame.org/ There is also a book called "Game Programming with Python". -- http://mail.python.org/mailman/listinfo/python-list

Re: Windows GUIs from Python

2005-01-11 Thread Doug Holton
Bob Swerdlow wrote: Anyone have opinions about whether we will be better off using PythonNet or wxPython for the GUI layer of our application on Windows? Our code is all Python and is now running on Mac OS X with PyObjC and Cocoa, which works very well. Our goal is not necessarily to move to a

Re: java 5 could like python?

2005-01-15 Thread Doug Holton
vegetax wrote: In the other hand, with the recent changes in java 5 i can pythonize java, Have you seen Jython? http://www.jython.org/ It may be the best option for you. It will run just as fast as a regular java program. Also there is groovy: http://groovy.codehaus.org/ -- http://mail.python.or

Re: What YAML engine do you use?

2005-01-22 Thread Doug Holton
Fredrik Lundh wrote: A.M. Kuchling wrote: IMHO that's a bit extreme. Specifications are written to be detailed, so consequently they're torture to read. Seen the ReStructured Text spec lately? I've read many specs; YAML (both the spec and the format) is easily among the worst ten-or-so specs I'

Re: What YAML engine do you use?

2005-01-22 Thread Doug Holton
Fredrik Lundh wrote: and trust me, when things are hard to get right for developers, users will suffer too. That is exactly why YAML can be improved. But XML proves that getting it "right" for developers has little to do with getting it right for users (or for saving bandwidth). What's right fo

Re: What YAML engine do you use?

2005-01-22 Thread Doug Holton
rm wrote: this implementation of their idea. But I'd love to see a generic, pythonic data format. That's a good idea. But really Python is already close to that. A lot of times it is easier to just write out a python dictionary than using a DB or XML or whatever. Python is already close to YA

Re: [OT] XML design intent [was Re: What YAML engine do you use?]

2005-01-22 Thread Doug Holton
Peter Hansen wrote: Good question. The point is that an XML document is sometimes a file, sometimes a record in a relational database, sometimes an object delivered by an Object Request Broker, and sometimes a stream of bytes arriving at a network socket. These can all be described a

Re: What YAML engine do you use?

2005-01-22 Thread Doug Holton
Steve Holden wrote: Yet again I will interject that XML was only ever intended to be wriiten by programs. Hence its moronic stupidity and excellent uniformity. Neither was HTML, neither were URLs, neither were many things used the way they were intended. YAML, however, is specifically designed t

Re: What YAML engine do you use?

2005-01-22 Thread Doug Holton
Daniel Bickett wrote: In my (brief) experience with YAML, it seemed like there were several different ways of doing things, and I saw this as one of it's failures (since we're all comparing it to XML). However I maintain, in spite of all of that, that it can easily boil down to the fact that, for s

Re: What YAML engine do you use?

2005-01-22 Thread Doug Holton
You might like programming in XML then: http://www.meta-language.net/ Actually, the samples are hard to find, they are here: http://www.meta-language.net/sample.html Programming in XML makes Perl and PHP look like the cleanest languages ever invented. -- http://mail.python.org/mailman/listinfo/pyt

Re: compile python to binary

2005-01-23 Thread Doug Holton
Fredrik Lundh wrote: Daniel Bickett wrote: I believe Sam was talking about "frozen" python scripts using tools such as py2exe: oh, you mean that "python compiler" didn't mean "the python compiler". I wouldn't assume a novice uses terms the same way you would. It was quite clear from his message

Re: What YAML engine do you use?

2005-01-24 Thread Doug Holton
rm wrote: Doug Holton wrote: rm wrote: this implementation of their idea. But I'd love to see a generic, pythonic data format. That's a good idea. But really Python is already close to that. A lot of times it is easier to just write out a python dictionary than using a DB or XML o

[no subject]

2005-06-22 Thread Doug Ly
Is there a good IDE for Python? I have heard that Eclipse has a plugin for Jython only. Thanks   --Doug   -- http://mail.python.org/mailman/listinfo/python-list

Re: Favorite non-python language trick?

2005-06-24 Thread Doug Schwarz
> dash. This is much nicer than in C or Python having to get rid of """ or > > /* and */. Of course, the IDE can compensate. But it's still neat :) > > python: > > """ > print 10 > """ > > and > > #"

CGI File Uploads and Progress Bars

2005-09-07 Thread Doug Helm
e: Does anyone know how to get the size of the incoming file data without reading the whole thing into a string? Can I do something with content_header? Thanks much for any insight that you might have. Doug -- http://mail.python.org/mailman/listinfo/python-list

Re: programmatically calling a function

2005-03-05 Thread Doug Schwarz
nt 'bar' > > > i'd really appreciate any help the 'group' has to offer. > > > thanks > dave Dave, I think eval might be what you're looking for: f = eval('len') length = f([1,2,3]) By the way, are you the Dave Ekhaus I used to work with at Kodak? -- Doug Schwarz dmschwarz&urgrad,rochester,edu Make obvious changes to get real email address. -- http://mail.python.org/mailman/listinfo/python-list

Re: programmatically calling a function

2005-03-05 Thread Doug Schwarz
In article <[EMAIL PROTECTED]>, Reinhold Birkenfeld <[EMAIL PROTECTED]> wrote: > Doug Schwarz wrote: > > > Dave, > > > > I think eval might be what you're looking for: > > > > f = eval('len') > > length = f([1,2,3]) >

Module list generation

2004-12-03 Thread Doug Kearns
Is this the best/simplest way to generate a module list? python -c 'from pydoc import help; help("modules")' Thanks, Doug -- http://mail.python.org/mailman/listinfo/python-list

Re: Module list generation

2004-12-05 Thread Doug Kearns
In article <[EMAIL PROTECTED]>, Scott David Daniels wrote: > Doug Kearns wrote: >> Is this the best/simplest way to generate a module list? >> >> python -c 'from pydoc import help; help("modules")' >> >> Thanks, >> Doug > I am

Re: Seeking Python + Subversion hosting.

2004-12-05 Thread Doug Holton
Tom Locke wrote: Hi, Anyone know of a good hosting company that offers both server-side Python and a subversion repository? With user-mode linux hosting you can have your own virtual root system with which you can run whatever python stuff you want as well as subversion or other server processes

Re: Time for : comp.lang.python.newbies ??

2004-12-05 Thread Doug Holton
gmduncan wrote: Maybe a time for a new discussion group along that suggested by the Subject line ? http://mail.python.org/mailman/listinfo/tutor Or is their increasing presence here a price we must pay for their belated recognition of this wonderful language ? Don't forget the price we pay for not

Re: collaborative editing

2004-12-10 Thread Doug Holton
Michele Simionato wrote: Suppose I want to write a book with many authors via the Web. The book has a hierarchical structure with chapter, sections, subsections, subsubsections, etc. At each moment it must be possible to print the current version of the book in PDF format. There must be automati

Re: how can I import a module without using pythonpath?

2004-12-13 Thread Doug Holton
Phd wrote: Hi, I'm using python 2.2, I want to import a module by referring to its relative location. The reason for this is that there is another module with the same name that's already in pythonpath( not my decision, but I got to work around it, bummer). So is there any easy way to do it? imp

Re: Is Python good for graphics?

2004-12-15 Thread Doug Holton
Esmail Bonakdarian wrote: First of all, I *really* like Python ;-) I need some help with the graphical side of things. I would like to do some basic graphics with Python, but I am not sure what the best/most effective way for me to do what I want. Basically, I would like to be able to create some b

Re: BASIC vs Python

2004-12-16 Thread Doug Holton
abisofile wrote: hi I'm new to programming.I've try a little BASIC so I want ask since Python is also interpreted lang if it's similar to BASIC. Which BASIC did you try? Realbasic? Visual Basic? You should check out some of these beginner's python tutorials: http://www.honors.montana.edu/~jjc/e

Re: Suggestion for "syntax error": ++i, --i

2004-12-14 Thread Doug Holton
Petr Prikryl wrote: Hi, Summary: In my opinion, the C-like prefix increment and decrement operators (++i and --i) should be marked as "syntax error". We have a patch for increment and decrement operators in boo ( http://boo.codehaus.org/ ), along with an operator overloading syntax like below. S

Re: Python 3.0

2004-12-14 Thread Doug Holton
Chris wrote: Okay, color me stupid, but what is everyone referencing when they mention Python 3.0? I didn't see any mention of it on the Python site. http://www.python.org/moin/Python3.0 has more information than the PEP 3000, plus you can contribute to the page. -- http://mail.python.org/mailman

Re: better lambda support in the future?

2004-12-18 Thread Doug Holton
Jason Zheng wrote: I'm wondering why python still has limited lambda support. What's stopping the developers of python to support more lisp-like lambda function? See boo and its support for closures: http://boo.codehaus.org/ http://boo.codehaus.org/Closures It works with "def" or "do", or single-

Re: How about "pure virtual methods"?

2004-12-19 Thread Doug Holton
Noam Raphael wrote: even in the best solution that I know of, there's now way to check if a subclass has implemented all the required methods without running it and testing if it works. I think there are some solutions like PyProtocols, see section 2.2 on this page: http://www.python.org/cgi-b

Re: How about "pure virtual methods"?

2004-12-19 Thread Doug Holton
Fredrik Lundh trolled: (I think you could create some kind of drinking game based on the number of ...times the nasty trolls pounce on this list? No, I think the idea is to actually address the content of someone's question, politely and in the *holiday spirit*, not spirits. -- http://mail.python.

Re: input record seperator (equivalent of "$|" of perl)

2004-12-19 Thread Doug Holton
[EMAIL PROTECTED] wrote: Hi, I know that i can do readline() from a file object. However, how can I read till a specific seperator? for exmple, if my files are name profession id # name2 profession3 id2 I would like to read this file as a record. I can do this in perl by defining a record seperator

Re: newbie question

2004-12-19 Thread Doug Holton
David Wurmfeld wrote: I am new to python; any insight on the following would be appreciated, even if it is the admonition to RTFM (as long as you can direct me to a relevant FM) Is there a standard approach to enumerated types? I could create a dictionary with a linear set of keys, but isn't th

Re: atmosphere on c.l.py (WAS: How about "pure virtual methods"?)

2004-12-19 Thread Doug Holton
Fredrik Lundh wrote: If you find a good solution to this problem, please let me know. well, since I'm not in the ego-stroking business, what if I promise never to reply to posts by you, robert, and alex? That's not fair to the rest of us though :) -- http://mail.python.org/mailman/listinfo/python

Re: Easy "here documents" ??

2004-12-19 Thread Doug Holton
Jim Hill wrote: Is there a way to produce a very long multiline string of output with variables' values inserted without having to resort to this wacky """v = %s"""%(variable) No, not without the god-awful hacks you've already seen. But it is possible in boo: : http://boo.codehaus.org/ See http://b

Re: Web forum (made by python)

2004-12-19 Thread Doug Holton
Gezer Punta wrote: hi all I am looking for a forum which was produced by python If you want Zope-based, try Plone. But probably you don't. I am not aware of any standard python CGI-based forum software, but I am sure you could find one if you search sourceforge or google. I am surprised no one e

Re: Web forum (made by python)

2004-12-19 Thread Doug Holton
Jp Calderone wrote: Part of fostering a friendly environment on python-list is not making comments like these. Another part is actually answering the content of a person's question like I did, instead of trolling and flaming, like Fredrik and others here are want to do. -- http://mail.python.

Re: Boo who? (was Re: newbie question)

2004-12-19 Thread Doug Holton
Peter Hansen wrote: Why? If it's virtually identical, why would anyone bother even visiting that site? ;-) But I suspect you mean that the syntax of the language is virtually identical, while probably there are some significant differences. Maybe in the richness of its standard library? Or the s

Re: atmosphere on c.l.py (WAS: How about "pure virtual methods"?)

2004-12-19 Thread Doug Holton
Steven Bethard wrote: I don't really have a good solution; despite the unnecessarily vicious comments, I don't feel like I can set my newsreader to ignore messages from, for example, Fredrik, because his answers, when not attacks, are often very insightful. If you find a good solution to this p

Re: Boo who? (was Re: newbie question)

2004-12-19 Thread Doug Holton
Peter Hansen wrote: "Virtually identical" indeed. :-) As noted on the website that I've pointed out to you multiple times now, the syntax of boo is indeed virtually identical to python. The functionality however, is more like C#. -- http://mail.python.org/mailman/listinfo/python-list

Re: Web forum (made by python)

2004-12-19 Thread Doug Holton
Peter Hansen wrote: None of which in any way invalidates Jp's point... Neither does it invalidate mine. What is up with the trollers today? They are out in force now that the holidays are here. -- http://mail.python.org/mailman/listinfo/python-list

ANN: Python Multimedia Computing book and software

2004-12-19 Thread Doug Holton
This book is due to be published any day now: "Introduction to computing and programming with Python: A Multimedia Approach" by Mark Guzdial, a CS professor at Georgia Tech. It uses the Jython Environment for Students (JES). It is completely free and open source. You can use it for example to

Re: atmosphere on c.l.py (WAS: How about "pure virtual methods"?)

2004-12-19 Thread Doug Holton
Steven Bethard wrote: Doug Holton wrote: Fredrik Lundh wrote: well, since I'm not in the ego-stroking business, what if I promise never to reply to posts by you, robert, and alex? That's not fair to the rest of us though :) That's not even fair to the non-rest of us. =) A

Re: Boo who? (was Re: newbie question)

2004-12-20 Thread Doug Holton
Peter Hansen wrote: Doug Holton wrote: Peter Hansen wrote: "Virtually identical" indeed. :-) As noted on the website that I've pointed out to you multiple times now, the syntax of boo is indeed virtually identical to python. The functionality however, is more like C#. Sadly y

Re: Web forum (made by python)

2004-12-20 Thread Doug Holton
Fredrik Lundh wrote: ask yourself if that thing you read really was a vicious attack by bunch of nasty trolls, or if, perhaps, you missed the point. You still do not even acknowledge your behavior then? If it is your wish that I never mention boo again, then I will not, even though you and not

Re: Boo who? (was Re: newbie question)

2004-12-20 Thread Doug Holton
Istvan Albert wrote: Doug Holton wrote: the syntax of boo is indeed virtually identical to python. All that boo does is borrows a few syntactical constructs from python. Calling it virtually identical is *very* misleading. The syntax is indeed virtually identical to python. You are yet another

Re: Suggestion for "syntax error": ++i, --i

2004-12-20 Thread Doug Holton
Petr Prikryl wrote: Hi, Summary: In my opinion, the C-like prefix increment and decrement operators (++i and --i) should be marked as "syntax error". Let me rephrase my answer. This is a good sugestion for Python 3.0, a.k.a. Python 3000: http://www.python.org/cgi-bin/moinmoin/Python3.0 In the fut

Re: newbie question

2004-12-20 Thread Doug Holton
David Wurmfeld wrote: I am new to python; any insight on the following would be appreciated, even if it is the admonition to RTFM (as long as you can direct me to a relevant FM) Is there a standard approach to enumerated types? I could create a dictionary with a linear set of keys, but isn't t

Re: How about "pure virtual methods"?

2004-12-20 Thread Doug Holton
Doug Holton wrote: Noam Raphael wrote: even in the best solution that I know of, there's now way to check if a subclass has implemented all the required methods without running it and testing if it works. I think there are some solutions like PyProtocols, see section 2.2 on this page:

Re: atmosphere on c.l.py (WAS: How about "pure virtual methods"?)

2004-12-20 Thread Doug Holton
Doug Holton wrote: Steven Bethard wrote: I don't really have a good solution; despite the unnecessarily vicious comments, I don't feel like I can set my newsreader to ignore messages from, for example, Fredrik, because his answers, when not attacks, are often very insightful. If

Re: Boo who? (was Re: newbie question)

2004-12-20 Thread Doug Holton
Hans Nowak wrote: Regardless of the merits of Boo, this is comp.lang.python, not comp.lang.boo. The language may *look* like Python, but its inner workings are nothing like Python, as several people have correctly pointed out now. (Just like Java's syntax may look like C or C++ in some areas,

Re: Easy "here documents" ??

2004-12-20 Thread Doug Holton
Jim Hill wrote: Is there a way to produce a very long multiline string of output with variables' values inserted without having to resort to this wacky """v = %s"""%(variable) No, it is currently not possible in Python without the hacks you have seen already. Python is long overdue for simpler st

Re: Easy "here documents" ??

2004-12-20 Thread Doug Holton
Bengt Richter wrote: variable1 = 1 variable2 = 2 s = """ v = ${variable1} v2's value is: ${variable2} """ However, Python 3.0 is likely years away. If you want to know how to run code like this today, consult Fredrik Lundh. Or replace ${...} with equally simple %(...)s in the above and be ha

Re: BASIC vs Python

2004-12-20 Thread Doug Holton
Michael Hoffman wrote: Gregor Horvath wrote: > Or make any given standard python object accessible from MS Excel in 2 > minutes. from win32com.client import Dispatch xlApp = Dispatch("Excel.Application") xlApp.Visible = 1 xlApp.Workbooks.Add() xlApp.ActiveSheet.Cells(1,1).Value = 'Python Rules!'

Re: expression form of one-to-many dict?

2004-12-20 Thread Doug Holton
Mike Meyer wrote: Personally, I'd love a language feature that let you create a function that didn't evaluate arguments until they were actually used - lazy evaluation. That lets you write the C ?: operator as a function, for a start. Hmmm. No, iterators can't be used to fake it. Oh well. That is a

Re: BASIC vs Python

2004-12-20 Thread Doug Holton
Mike Meyer wrote: Logo (my pick) has been called "Lisp without the parenthesis". It has the advantage of using standard algebraic notation for formulas, instead of operator post or pre. This is comp.lang.python, not comp.lang.logo. Please refrain from discussing topics not related to CPyt

What is on-topic for the python list [was "Re: BASIC vs Python"]

2004-12-21 Thread Doug Holton
Steve Holden wrote: 'Scuse me? This group has a long history of off-topic posting, and anyway who decided that CPython should be the exclusive focus? Even on-topic we can talk about Jython and PyPy as well as CPython. I agree with your point, although Hans Nowak and others may not. Anything rela

Re: What is on-topic for the python list [was "Re: BASIC vs Python"]

2004-12-21 Thread Doug Holton
Nick Vargish wrote: Doug Holton <[EMAIL PROTECTED]> writes: If you can't accept free speech and different perspectives, you're going to be disappointed. But please do not react by trying to intimidate and troll others here. Weren't you the one telling the rest of us what&#

Re: newbie question

2004-12-21 Thread Doug Holton
Fredrik Lundh wrote: "have you harrassed a Pythoneer today?" Yes, you have. I'll ask again that you stop. Just because you make a living in part off of a CPython module, doesn't mean we cannot discuss python-related things on this list, or discuss things from the perspective of a python user

Re: What is on-topic for the python list [was "Re: BASIC vs Python"]

2004-12-21 Thread Doug Holton
Hans Nowak wrote: Now you're trying to make it seem like I am against free speech on this list, and against people's rights to discuss whatever they want. I never said that, and I in fact enjoy the fact that c.l.py posters are an eclectic bunch who have knowledge of, and like to talk about, a g

Re: What is on-topic for the python list [was "Re: BASIC vs Python"]

2004-12-21 Thread Doug Holton
Hans Nowak wrote: You said that boo should not be mentioned on this newsgroup. Please point me to the post where I said that. Since everything is stored in Google Groups, it should be easy for you to come up with an URL... if such a post existed. Quote: "this is comp.lang.python, not comp.lan

Re: What is on-topic for the python list [was "Re: BASIC vs Python"]

2004-12-21 Thread Doug Holton
Hans Nowak wrote: Quote: "this is comp.lang.python, not comp.lang.boo." Which is obviously not the same as "Boo should not be mentioned on this newsgroup". I used the exact same phrase in another note except using the term "logo" instead of "boo", and that is the exact interpretation I immedi

Re: What is on-topic for the python list [was "Re: BASIC vs Python"]

2004-12-21 Thread Doug Holton
Hans Nowak wrote: > The discussion with Logo and other languages in it was off-topic too, > but it wasn't offensive to anyone. I'm not going to dignify that or the rest of your note with a response. No, by all means, let's ignore any pieces of a post that might lead to constructive discussion.

  1   2   >