Re: 'isa' keyword

2005-09-03 Thread Steve Holden
phil hunt wrote: > On Sat, 03 Sep 2005 00:45:19 -0500, Steve Holden <[EMAIL PROTECTED]> wrote: > >>>I'm not talking about a change in *paradigm* merely a change in >>>*syntax*; this: >>> >>> receiver selector argu

Re: Managing events

2005-09-03 Thread Steve Holden
amDialog(frame) d1.Show() d2.Show() d3.Show() return True if __name__ == '__main__': app = MyApp(0) app.MainLoop() regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: os.system(r"ls") prints to screen??

2005-09-03 Thread Steve Holden
is the screen. The sub-process forked by os.system inherits stdin stdout and stderr from the invoking process. This is all pretty basic stuff. Perhaps you should stop your verbal assault on the computer science community and start to learn the principles of what you are doing. regards Steve -- Ste

Re: how to do this?

2005-09-03 Thread Steve Holden
t='Quit', command=ROOT.quit) qBut.grid(row=1, column=2, pady=2, padx=2, sticky=E) iLab = Label(ROOT, textvariable=infVar, width=21, relief=SUNKEN, anchor=W) iLab.grid(row=2, column=0, columnspan=3) set_info(None) # example to show what will be displayed. ROOT.mainloop() End Example regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: os.system(r"ls") prints to screen??

2005-09-04 Thread Steve Holden
Xah Lee wrote: > Steve Holden wrote: > >>This is all pretty basic stuff. Perhaps you should stop your verbal >>assault on the computer science community and start to learn the >>principles of what you are doing. > > > is this a supressed behavior that a human a

Re: OpenSource documentation problems

2005-09-04 Thread Steve Holden
Aahz wrote: > In article <[EMAIL PROTECTED]>, > Steve Holden <[EMAIL PROTECTED]> wrote: > >>Bear in mind that the PSF made its very first grants last year. The >>reason none of those grants was awarded to a documentation project was >>that the (volunte

Re: mod_python: what's going on here?

2005-09-04 Thread Steve Holden
ing sensible error messages. One further possibility is that Apache is using an older Python by default: byte codes vary from version to version, so something horrible might be happening as mod_python tries to execute, but that seems a bit far-fetched when you've got so far. I seem to remembe

Re: pain

2005-09-05 Thread Steve Holden
Peter Hansen wrote: > Steve Holden wrote: > >>and the day managers stop being ignorant we'll all be able to fly around >>on pigs. Not wishing to offend the pigs, of course. >> >>still-working-for-myself-ly y'rs - steve > > > What Steve mea

Re: Possible improvement to slice opperations.

2005-09-05 Thread Steve Holden
r deal with the Python that exists now than wrap my head around this particular suggestion. > > Actually, a[1 : -1] is how you get to drop the first and > last characters today. I suspect you knew this and were > just a bit in a hurry criticizing a lame-brained scheme. > Y

Re: Getting the bytes or percent uploaded/downloaded through FTP?

2005-09-05 Thread Steve Holden
ectory (standard on Windows, with source on other platforms) you can take a look at the ftpmirror script - a fairly recent version can be seen at http://weblog.cs.uiowa.edu/python-2.3.1/Tools/scripts/ftpmirror.py regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web L

Re: newbie Q: mouse clicks don't seem to get trapped

2005-09-05 Thread Steve Holden
eftClick) Panel=wx.Panel(self) to Panel=wx.Panel(self) Panel.Bind(wx.EVT_LEFT_DOWN, self.OnLeftClick) Panel.Bind(wx.EVT_LEFT_UP, self.OnLeftClick) regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Possible improvement to slice opperations.

2005-09-05 Thread Steve Holden
y should. > > 2. Using base one negative index's and picking item from the right > of negative index's instead of the right. > > > They don't both need to implemented, Item 1 could be fixed in 2.5. > Given that Python has a 1's-complemen

Re: Possible improvement to slice opperations.

2005-09-05 Thread Steve Holden
Paul Rubin wrote: > Steve Holden <[EMAIL PROTECTED]> writes: > >>Given that Python has a 1's-complement operator already I don;t see >>why you can't just leave Python alone and use it, > > > What's the meaning of the 1's complement operator

Re: Possible improvement to slice opperations.

2005-09-05 Thread Steve Holden
Ron Adam wrote: > Steve Holden wrote: > > >>It's a common misconception that all ideas should be explainable simply. >>This is not necessarily the case, of course. When a subject is difficult >>then all sorts of people bring their specific misconceptions to t

Re: Python executable

2005-09-05 Thread Steve Holden
;) is on your path (which you can see with the command echo $PATH in your command shell). > Thanks a lot. I hope this post isn't too hard to follow; I know I'm > asking a lot. > It's clear you're new to comp.lang.python - this is a perfectly acceptable request. Hope this answer helps. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: assign dict by value to list

2005-09-06 Thread Steve Holden
re creating a new one. Python only *ever* uses references, so why not just use rec = {} instead of rec.clear()? regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: anaconda.real in RH7.1

2005-09-07 Thread Steve Holden
SIGINT is defined in the signal module so you probably want signal.signal(signal.SIGINT, signal.SIG_DFL) > The file anaconda.real doesn't explicitly execute > import signal > but it still somehow knows what signal means (my example session above shows > that it stops

Re: Question about concatenation error

2005-09-07 Thread Steve Holden
or pointers. >> >>Thanks. > > > > Okay. It works if I change: > > fullink = reg4.search(str(cleanlink)) > if fullink: > linkArray.append(cleanlink) > else: > cleanlink2 = str(web

Re: encryption with python

2005-09-07 Thread Steve Holden
rary numbers that aren't algorithmically related to any > sensitive data. Answers involving encryption will need to use either > large ID numbers or secret keys, both of which will cause hassles. This is indubitably true. There's absolutely no excuse for making the primary key a

Re: launching adobe reader with arguments from os.system call

2005-09-08 Thread Steve Holden
r more quickly. If you want fast document startup you could consider using the win32all extensions to create an AcroReader application process in advance of opening any documents. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Inconsistent reaction to extend

2005-09-09 Thread Steve Holden
hat you may think from reading certain slicing threads, > this mailing list is not an argument clinic. > Yes it is :) then-there's-the-£10-argument-next-door-ly y'rs - steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Question about consistency in python language

2005-09-10 Thread Steve Holden
o add the abstract class, how do you make my example >>work without explictly converting the iterator to a list type? > > > I don't know how sorted() is implemented? A naive implementation would > in fact be nothing else then: > > def sorted(iter): > l = list(iter) &g

Re: re module help

2005-09-10 Thread Steve Holden
eb.archive.org/web/20001119074200/www.python.org/doc/howto/regex-to-re/regex-to-re.html regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Why do Pythoneers reinvent the wheel?

2005-09-10 Thread Steve Holden
ere should be one (and preferably only one) obvious way to do it" philosophy, we often end up with many "competing" solutions to a given problem. While this can sometimes be tedious, it's probably an overall indication of Python's health. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: getting words from readline

2005-09-10 Thread Steve Holden
x27;t need any complicated modules for this fairly simple requirement. If you are wanting to match the words against each other, or against some pre-exisitng list, you might want to reduce the input to lower-case first. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: which is more 'pythonic' / 'better' ?

2005-09-12 Thread Steve Holden
ne is a list of lines, since it seems improbable that absence of a character should cause a value of "nothing" to be required. so-i-say-po-tay-to-ly y'rs - steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Launching Python programs from Linux shell script

2005-09-12 Thread Steve Holden
obvious substitution of the correct path. Interestingly I couldn't quickly formulate a Google search specifically containing Python, but a search for unix add to path gives the quite helpful http://www.ee.surrey.ac.uk/Teaching/Unix/unix8.html as its first result. regards Stev

Re: defining __repr__

2005-09-12 Thread Steve Holden
then\n<__main__.C object at 0x4e0b6c>' >>> Not immediately clear how to extend that to old-style objects since they aren't as cooperative in making their superclass as readily available. Unless your needs are specifically for old-style classes I'd suggest

Re: First release of Shed Skin, a Python-to-C++ compiler.

2005-09-13 Thread Steve Holden
return value. So basically exceptions allow simplification of program structure with more effective and simpler error handling. If you read through (for example) the code you'll find in the standard library and you'll get a better feel for the usefulness of exceptions. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Unexpected Behavior Iterating over a Mutating Object

2005-09-13 Thread Steve Holden
;cat', 'window', 'defenestrate'] > > > Tim Delaney I should have thought nowadays for x in tuple(a): ... would have been slightly more acceptable, but I'm not the ultimate arbiter of style. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: retrieve data using FTP in Python

2005-09-13 Thread Steve Holden
x27;, '__module__', '__repr__', 'close', 'fileno', 'fp', 'geturl', 'headers', 'info', 'next', 'read', 'readline', 'readlines', 'ur l'] >>> print f.read() ...

Re: An interesting python problem

2005-09-14 Thread Steve Holden
tries to resolve a name. But the data objects that the names point to live in what I like to think of as "object space", and in the CPython implementation are garbage collected when the last pointer to them is deleted (or, equivalently, goes out of scope). regards Steve -- Steve Hol

Re: Windows Python 2.4: Unbuffered flag causes SyntaxError oninteractive sessions?

2005-09-15 Thread Steve Holden
to treat carriage returns as whitespace during its tokenizations. The only area I would anticipate problems would be string literals containing end-of-line sequences embedded within triple-quotes. It would seem to make sense to program the compiler defensively to ignore embedded "\r"

Oh Yes, They Are [was: Re: Software bugs aren't inevitable]

2005-09-15 Thread Steve Holden
on at PyCon, whose Call for Proposals recently came out. Yes folks, next time around it's PyCon TX 2006, see http://www.python.org/pycon/2006/cfp regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.pycon.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Question about smtplib, and mail servers in general.

2005-09-20 Thread Steve Holden
n't be putting a "drain" on the > server. > > -Peter To add one final note, if the "fromaddress" belongs to a domain that's properly handled by the SMTP server then you aren't relaying (since you are a legitimate domain user) so the mails sh

Re: Python Doc Problem Example: os.path.split

2005-09-20 Thread Steve Holden
close to being on-topic I fear you are being far more charitable than is justified here. But I *am* getting a bit fucking tired of his rather limited style of discourse. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.ho

Re: are variables local only to try/except blocks?

2005-09-20 Thread Steve Holden
> Pls "CC" replies to [EMAIL PROTECTED] (as well as newsgroup) > Barry Searle,[EMAIL PROTECTED] > Your approach to exception handling is a little simplistic, resulting on code that reads about as well as a plate of spaghetti. What are you actually tr

Re: win32 service and time.sleep()

2005-09-20 Thread Steve Holden
be to maintain a Queue.Queue containing the messages that need to be sent and, rather than sleeping to retry just retrying when enough time has elapsed. That way you can keep pumping messages and so on to your heart's content, though you will have to keep track of the messages still to be sent.

Re: vendor-packages directory

2005-09-20 Thread Steve Holden
question shouldn't make sure (probably by the addition of a .pth file) that the required directory is added to the search path. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006

Re: are variables local only to try/except blocks?

2005-09-20 Thread Steve Holden
[EMAIL PROTECTED], 905-413-4020 (TL:969-4020) > Barry Searle/Toronto/[EMAIL PROTECTED] (D3/639/8200/MKM) > "Architect, WebSphere Tools for WsAdmin Scripting and Automated Build " > > > > *Steve Holden <[EMAIL PROTECTED]>* > > 20/09/2005 11:55 A

Re: Best Encryption for Python Client/Server

2005-09-20 Thread Steve Holden
think I'd rather use the already-engineered ssh solution, relying as it does on well-thought-out asymmetric encryption. You might want to look at http://www.ssh.com/support/documentation/online/ssh/winhelp/32/Tunneling_Explained.html regards Steve [or possibly http://www.googleityoumoron.

Re: are variables local only to try/except blocks?

2005-09-20 Thread Steve Holden
ere isn't a simpler way to do what you appear to want to do. Since you are talking about machine-generated code we can agree not to care about ugly in terms of source, but I think we should be careful no to throw the baby out with the bath water here. Rather than casting yo

Re: Getting tired with py2exe

2005-09-20 Thread Steve Holden
hard work on py2exe over the years, which has benefited the Windows Python community immeasurably. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.pycon.org -- http://mail.python.org/mailman/listinfo/python-list

Re: MySQL & Python

2005-09-20 Thread Steve Holden
http://www.dbtools.com.br/ The free version is quite acceptable. Then there's SQLManager, at http://www.sqlmanager.net/ which is also goos for visual database work on MySQL databases. Hope this helps. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC

Re: ddd or eclipse with mod_python

2005-09-20 Thread Steve Holden
vestate.com/Komodo/Trial > > Cheers, > Trent > > (*) Disclaimer: I work on Komodo. > > WingWare's Wing IDE can also debug mod_python code. See http://www.wingware.com/ regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC

Re: Question about smtplib, and mail servers in general.

2005-09-20 Thread Steve Holden
Peter Hansen wrote: > Steve Holden wrote: > >>Peter Hansen wrote: >> >>>In any case, unless the mail server will allow "relaying", which most >>>don't these days (to prevent spamming), then it won't work the way you >>&g

Re: Free seminar on domain-specific modeling

2005-09-21 Thread Steve Holden
et to you, but others have seen similar claims come and go without major changes in software methodology. You might also like to look up "flowchart" in your dictionary ;-) regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.pycon.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Would you pls tell me a tool to step debug python program?

2005-09-21 Thread Steve Holden
ne-month evaluation, as with many similar products. http://www.wingware.com/ regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.pycon.org -- http://mail.python.org/mailman/listinfo/python-list

Re: How to copy a file from one machine to another machine

2005-09-21 Thread Steve Holden
the share from the Windows machine. There are many other file sharing solutions, and you can of course also consider using FTP to send the file to the Linux server. Some ideas to start with, anyway. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC

Re: Free seminar on domain-specific modeling

2005-09-21 Thread Steve Holden
7;s primary feature was the introduction of interactive execution modes and immediate edit/run cycling. The addition of compilation to machine code is a relatively recent phenomenon for (only some) BASICs, unlike other high-level languages. regards Steve -- Steve Holden +44 150 684 7255

Re: Perl's documentation come of age

2005-09-21 Thread Steve Holden
1. Do not feed the trolls. 2. I offered $100 for a rewrite of the "re" documentation if he could persuade 5 regular readers of c.l.py to tell me his version was superior. Emails received: 0. 'Nuff said :-) regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119

Re: C#3.0 and lambdas

2005-09-21 Thread Steve Holden
very > ugly code. In which case perhaps you should actually try the code. Then once you realise it works you can start to figure out why :-). Hint: f(*p1) appears as len(p1) separate arguments to the called function. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holde

Re: C#3.0 and lambdas

2005-09-21 Thread Steve Holden
Christophe wrote: > Steve Holden a écrit : > >>Christophe wrote: >> >> >>>Serhiy Storchaka a écrit : >>> >>> >>>>Roel Schroeven wrote: >> >>[...] >> >> >>>>>or >>>>> >>>&

Re: Finding where to store application data portably

2005-09-21 Thread Steve Holden
the ~/.ssh directory for a long time to avoid the need for lots of little dot files, and this works quite well. Good luck in your campaign! regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.pycon.org -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython Notebook crash when pressing alt key

2005-09-21 Thread Steve Holden
am doing wrong? > > Thanks > > - Kreedz > This code works fine for me (once I add an "import wx" at the top). Python 2.4.1, wxPython 2..5.3.1 regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.pycon.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Perl's documentation come of age

2005-09-21 Thread Steve Holden
s a brilliant way to show off what modules can do. As for "Why not foo and bar rather than spam and eggs?", all I can think of to say is "Get over it". regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.pycon.org -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython Notebook crash when pressing alt key

2005-09-21 Thread Steve Holden
need to report a bug to the wxPython folks. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.pycon.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Question About Logic In Python

2005-09-22 Thread Steve Holden
age this little change you'd find so convenient would cause. > On one hand these seem like little things, but little things is > sometimes what will bite you the hardest as they are more likely to get > by your guard. > Kindly think again about the vast number of times that Pytho

Re: wxPython Notebook crash when pressing alt key

2005-09-22 Thread Steve Holden
Kreedz wrote: > Did it freeze for you too with the alt+f while focus on the tab? > No, the program appears to work perfectly normally. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon T

Re: Finding where to store application data portably

2005-09-22 Thread Steve Holden
t; > import os > > parent = os.path.split(os.path.abspath(os.sys.argv[0]))[0] > file = parent + os.sep + '.bombz' > > Cheers, > Ron > Since you've gone to the trouble to use os.path functions why not use file = os.path.join(parent, 'bombz') re

Re: need to divide a date

2005-09-22 Thread Steve Holden
00:00:00.00 2000-01-13 00:00:00.00 2000-01-14 00:00:00.00 2000-01-15 00:00:00.00 2000-01-16 00:00:00.00 2000-01-17 00:00:00.00 2000-01-18 00:00:00.00 2000-01-19 00:00:00.00 2000-01-20 00:00:00.00 >>> Does this help? regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.pycon.org -- http://mail.python.org/mailman/listinfo/python-list

Re: OT: why are LAMP sites slow?

2005-02-06 Thread Steve Holden
. Isn't there a saying like ... those who create file-based databases are destined to re-create a relational database management system poorly? ;o) regards Steve -- Meet the Python developers and your c.l.py favorites March 23-25 Come to PyCon DC 2005 http://www.py

Re: [noob] Questions about mathematical signs...

2005-02-06 Thread Steve Holden
your c.l.py favorites March 23-25 Come to PyCon DC 2005 http://www.pycon.org/ Steve Holden http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: def __init__ question in a class definition

2005-02-07 Thread Steve Holden
ong-side-of-bed-ly y'rs - steve -- Meet the Python developers and your c.l.py favorites March 23-25 Come to PyCon DC 2005 http://www.pycon.org/ Steve Holden http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Big development in the GUI realm

2005-02-07 Thread Steve Holden
let. regards Steve -- Meet the Python developers and your c.l.py favorites March 23-25 Come to PyCon DC 2005 http://www.pycon.org/ Steve Holden http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: variable declaration

2005-02-07 Thread Steve Holden
hon and this newsgroup. Instead, ask yourself why your remarks engender such a response from a pillar of the Python community. What are your credentials? regards Steve -- Meet the Python developers and your c.l.py favorites March 23-25 Come to PyCon DC 2005 http://www.pycon.org/ Steve Holden http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: def __init__ question in a class definition

2005-02-08 Thread Steve Holden
M.E.Farmer wrote: Steve Holden wrote: M.E.Farmer wrote: Jeffrey Borkent Systems Specialist Information Technology Services With that kind of credentials, and the fact that you claim you are a system specialists I don't know you have me worried already. I guess for you I just say RTFM. I

Re: python code with indention

2005-02-08 Thread Steve Holden
Timo Virkkala wrote: Xah Lee wrote: is it possible to write python code without any indentation? 1) Why in the name of Xah Lee would you even want to? 2) If you need to ask questions this simple, are you sure you are the right person to write tutorials? 3) Do you even read the replies you get? S

Re: Python and version control

2005-02-09 Thread Steve Holden
Carl wrote: Dear friends, What is the ultimate version control tool for Python if you are working in a Windows environment? When you work on a Visual C++ project then it's easy, use Visual Source Safe for your source code! But when it comes to large Python projects and no universal Python IDE wit

Re: [EVALUATION] - E01: The Java Failure - May Python Helps?

2005-02-12 Thread Steve Holden
http://www.pycon.org/ Steve Holden http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: keeping a COM server alive

2005-02-15 Thread Steve Holden
Do Re Mi chel La Si Do wrote: Hi ! I had also make a Python-COM-server. But, when I launch several clients, I obtain several instances of my COM-server. Finally, there are advantages and disadvantages in this established fact. But I can't use this way for to exchange data between several clients. F

Re: display VARCHAR(mysql) and special chars in html

2005-02-22 Thread Steve Holden
Jonas Meurer wrote: On 22/02/2005 Radovan Garabik wrote: i could write a function to parse the comment and substitute special chars with the relevant html code, but maybe this already exists in some module? just make the page in utf-8, and you'll save you a lot of troubles ok, how do i do this? si

Re: Source Encoding GBK/GB2312

2005-02-23 Thread Steve Holden
[EMAIL PROTECTED] wrote: When I specify an source encoding such as: # -*- coding: GBK -*- or # -*- coding: GB2312 -*- as the first line of source, I got the following error: SyntaxError: 'unknown encoding: GBK' Does this mean Python does not support GBK/GB2312? What do I do? Well, *your* Python mi

Re: Trouble with mysql-python 1.2.0 on Solaris 8 sparc

2005-02-24 Thread Steve Holden
Alec Wysoker wrote: Hi Andy, Thanks for your message. It turned out that I had installed 64-bit mySql on a 32-bit machine. I'm amazed it worked at all. Anyway, I finally got mysql-python built, but I'm unable to connect to a machine on a remote host. The problem doesn't seem to be with the pyth

Re: Shift Confusion

2005-02-24 Thread Steve Holden
Dennis Lee Bieber wrote: On Thu, 24 Feb 2005 14:22:59 -, "Richard Brodie" <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: "John Machin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Essentially, it should be possible to use a 'packed string' format in Python, wh

Re: Trouble with mysql-python 1.2.0 on Solaris 8 sparc

2005-02-24 Thread Steve Holden
6 to server version: 4.1.10-standard One would assume that 4.1.0 and 4.1.10 are compatible, no? Indeed. Sorry I couldn't be of more assistance. I suspected that the MySQLdb driver was somehow compiled with 4.0-or-earlier client software - is this possible? regards Steve -- Steve Holden

Re: xhtml-print parser

2005-02-25 Thread Steve Holden
Michael Hoffman wrote: [EMAIL PROTECTED] wrote: my question is i have parsed the xhtml data stream using c That's not a question. And this is a language for discussing Python, not C. Whoa, there! Ease off that trigger-finger, pardner ... i need to diplay the content present in the command prompt a

Re: xhtml-print parser

2005-02-25 Thread Steve Holden
Michael Hoffman wrote: Steve Holden wrote: Consider that the OP might want to pass the C parser output to a Python web-content generator, which would make a deal of sense. You're welcome to guess what the OP wants to do, but I'm not going to. If he or she asks a coherent questi

Re: Text To Speech with pyTTS

2005-02-28 Thread Steve Holden
in2K SP4, Python 2.4 plus win32 extentions). regards Steve -- Meet the Python developers and your c.l.py favorites March 23-25 Come to PyCon DC 2005 http://www.pycon.org/ Steve Holden http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: TKinter

2005-02-28 Thread Steve Holden
for displaying your ignorance. that's-my-kind-of-pub-ly y'rs - steve -- Meet the Python developers and your c.l.py favorites March 23-25 Come to PyCon DC 2005 http://www.pycon.org/ Steve Holden http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: bsddb for k, v in db.items(): do order the numbers ?

2005-02-28 Thread Steve Holden
ython developers and your c.l.py favorites March 23-25 Come to PyCon DC 2005 http://www.pycon.org/ Steve Holden http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: cannot open file in write mode, no such file or directory

2005-02-28 Thread Steve Holden
Kartic wrote: I'm having a problem where when trying to open a file in write mode, I get an IOError stating no such file or directory. I'm calling an external program which takes an input file and produces an output file repeatedly, simulating the input file separately for each replicate. The erro

Re: closing tabs in wxpython

2005-03-01 Thread Steve Holden
Raghul wrote: I think this need some more explanation.Pls help me to understand this by giving an example. Thanks in advance Raghul: I've seen several (hundred ;-) posts of yours in the past couple of weeks. It's obvious you are looking for help, but it also seems obvious that your level of prog

Re: TKinter

2005-03-01 Thread Steve Holden
anthonyberet wrote: Steve Holden wrote: anthonyberet wrote: So, is it pronounced 'Tee-Kinter', or 'Tee-Kay-Inter'? I don't want to appear as a dork down the pub. If anyone down your pub knows enough about Python to understand what TKinter is I very much doubt they'l

Re: best XSLT processor?

2005-03-01 Thread Steve Holden
[EMAIL PROTECTED] wrote: This is a good way to kick off a tussle among interested parties, but hinestly, at this point, most packages work fine. In my opinion your rade-off right now is raw speed (e.g. libxslt) versus flexibility (e.g. 4Suite). All are bug-free enough that you'd have to be doing

Re: Why do descriptors (and thus properties) only work on attributes.

2005-03-01 Thread Steve Holden
Steven Bethard wrote: Antoon Pardon wrote: Can anyone explain why descriptors only work when they are an attribute to an object or class. I think a lot of interesting things one can do with descriptors would be just as interesting if the object stood on itself instead of being an attribute to an o

Re: Scoping issue with import

2005-03-01 Thread Steve Holden
James Stroud wrote: Say I have a module, we'll call it "my_imported_mod". It contains a function in it that calls another function, "myfun". The "myfun" function is in the module "my_main_mod", that imports "my_imported_mod". The code of "my_main_mod" might look like this: == from my

Re: yield_all needed in Python

2005-03-01 Thread Steve Holden
Terry Reedy wrote: "Douglas Alan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] We can shorten the code--and make it run in O(N) time--by adding a new keyword to replace the "for v in ...: yield v" pattern: Maybe. Until you define the semantics of yield_all and at least out

Re: accessor/mutator functions

2005-03-01 Thread Steve Holden
Andrew Dalke wrote: Me: What's wrong with the use of attributes in this case and how would you write your interface? Dan Sommers: I think I'd add a change_temperature_to method that accepts the target temperature and some sort of timing information, depending on how the rest of the program and/or

Re: accessor/mutator functions

2005-03-01 Thread Steve Holden
Carl Banks wrote: [EMAIL PROTECTED] wrote: [...] My questions are: a) Are the three things above considered pythonic? No. It's not good programming practice in C++, either. If you have a class that's nothing but a big data structure, you ought to use it as a data structure. Writing accessor and

Re: python-dev Summary for 2005-01-16 through 2005-01-31

2005-03-01 Thread Steve Holden
at least as good as me (I thought he was better), and life carried on. If you were to ask a member of the Sun UK User Group now the name of their second chairman I'd be very surprised if they had any idea who the hell Steve Holden was. (Historical note: the first chairman was Chris Brown,

Re: Faster way to do this...

2005-03-01 Thread Steve Holden
Harlin Seritt wrote: I've got the following code: nums = range(0) for a in range(100): nums.append(a) Is there a better way to have num initialized to a list of 100 consecutive int values? Why not the simplest solution? a = range(100) regards Steve -- http://mail.python.org/mailman/listinfo/p

Re: windows bat file question

2005-03-01 Thread Steve Holden
e Python developers and your c.l.py favorites March 23-25 Come to PyCon DC 2005 http://www.pycon.org/ Steve Holden http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Initializing subclasses of tuple

2005-03-01 Thread Steve Holden
built-in types. regards Steve -- Meet the Python developers and your c.l.py favorites March 23-25 Come to PyCon DC 2005 http://www.pycon.org/ Steve Holden http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Why do descriptors (and thus properties) only work on attributes.

2005-03-01 Thread Steve Holden
Steven Bethard wrote: Steve Holden wrote: Steven Bethard wrote: Antoon Pardon wrote: Can anyone explain why descriptors only work when they are an attribute to an object or class. I think a lot of interesting things one can do with descriptors would be just as interesting if the object stood on

Re: Why does interpreter flub

2005-03-01 Thread Steve Holden
name does not cause two names to be associated wight the same binding. It copies the current binding from one namespace into the importing namespace. The two bindings are thereafter independent, so changing the binding of testPython.x makes no difference to __main__.x. regards Steve -- Meet

Re: reuse validation logic with descriptors

2005-03-01 Thread Steve Holden
o the other useful things I can do with a proper class, like provide an __init__, __str__, or __repr__. That will depend on the value returned by property access, surely? I suspect you are a little confused about properties and descriptors. regards Steve -- Meet the Python developers an

Re: Noob can't make threads work

2005-03-01 Thread Steve Holden
your c.l.py favorites March 23-25 Come to PyCon DC 2005 http://www.pycon.org/ Steve Holden http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: What's the cost of using hundreds of threads?

2005-03-01 Thread Steve Holden
on developers and your c.l.py favorites March 23-25 Come to PyCon DC 2005 http://www.pycon.org/ Steve Holden http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Need help

2005-03-01 Thread Steve Holden
o PyCon DC 2005 http://www.pycon.org/ Steve Holden http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

<    3   4   5   6   7   8   9   10   11   12   >