Re: Using command line args on Windows

2005-10-05 Thread k8
Thank you thank you thank you- The windows command line sol worked. -k8 -- http://mail.python.org/mailman/listinfo/python-list

Re: dictionary interface

2005-10-05 Thread Tom Anderson
On Tue, 4 Oct 2005, Robert Kern wrote: > Tom Anderson wrote: >> On Tue, 4 Oct 2005, Robert Kern wrote: >> >>> Antoon Pardon wrote: >>> Anyone a reference? >>> >>> The function dict_compare in dictobject.c . >> >> Well there's a really helpful answer. > > Well, *I* thought it was. And indeed

Re: replacments for stdio?

2005-10-05 Thread Martin Miller
Ido, I tried Bryan Olson's code [on Windows] from his last post to the "Catching stderr output from graphical apps" thread http://groups.google.com/group/comp.lang.python/msg/d61f1d5e02d84178>, and it seemed to work for stdout as well as stderr output. To enable its use with stdout, all I had to

Re: Replacing utf-8 characters

2005-10-05 Thread David Bolen
Mike <[EMAIL PROTECTED]> writes: > What you and I typed was ascii. The value of link came from importing > that utf-8 web page into that variable. That is why I think it is not > working. But not sure what the solution is. Are you sure you're asking what you think you are asking? Both the ampe

Re: check html file size

2005-10-05 Thread Ulrich Hobelmann
Richard Gration wrote: > Are you fucking seriously fucking expecting some fucking moron to > translate your tech geeking fucking code moronicity? Fucking try writing > it fucking properly in fucking Perl first. Fucking excuse me? Fucking maybe you should fucking go fucking fuck your fucking self.

[Tutor] New Python book

2005-10-05 Thread Dick Moores
Magnus Lie Hetland's new book, _Beginning Python: From Novice to Professional_ was published by Apress on Sept. 26 (in the U.S.). My copy arrived in the mail a couple of days ago. Very much worth a look, IMHO. But what do the experts here think?

New Python book

2005-10-05 Thread Dick Moores
(Sorry, my previous post should not have had "Tutor" in the subject header.) Magnus Lie Hetland's new book, _Beginning Python: From Novice to Professional_ was published by Apress on Sept. 26 (in the U.S.). My copy arrived in the mail a couple of days ago. Very much worth a look, IMHO. But what do

Re: Replacing utf-8 characters

2005-10-05 Thread Martin v. Löwis
Mike wrote: > So it seems link.replace() function reads whether the first option is > utf-8 and converts the second option automatically to utf-8? How do I > prevent that? Not sure what an option is... if you are talking about parameters, rest assured that .replace does not know or care whether

Re: Build spoofed IP packets

2005-10-05 Thread Eric Nieuwland
billie wrote: > Traceback (most recent call last): > File "C:\test\client.py", line 156, in ? > send_pkt() > File "C:\test\client.py", line 96, in send_pkt > s.sendto(ip.get_packet(), (dst, 0)) # send packet to server > socket.error: (10004, 'Interrupted system call') > > Note: this onl

Re: How to prevent logging warning?

2005-10-05 Thread Vinay Sajip
Thomas Heller wrote: > I get the behaviour that I want when I add a 'NULL' handler in the > library, but is this really how logging is intended to be used? > The reason for the one-off message is that without it, a misconfiguration or a failure to configure any handlers is notified to a user (wh

Re: Excel library with unicode support

2005-10-05 Thread Mike Tammerman
Thanks, a lot. It helped me so much. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: How to prevent logging warning?

2005-10-05 Thread Vinay Sajip
s/without/with/ -- http://mail.python.org/mailman/listinfo/python-list

Python eats gator.

2005-10-05 Thread Sam
http://www.wnbc.com/family/5060215/detail.html I know there's an on-topic joke in here somewhere, but I'm having some problem finding it, at the moment. You may take a crack at it, if you'd like… pgpWkRit76A0o.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-l

Re: Extending Python

2005-10-05 Thread Brandon K
I own Python in a Nutshell, as one person pointed out. Alex Martelli does a great job of introducing the concepts, as long as your'e familiar with C. Additionally he covers wrapping (which is sounds like you're trying to do) with SWIG, Pyrex, and a few other options. It's a great book, I hav

Can't get pylibpcap extension to build under 2.4

2005-10-05 Thread Grant Edwards
I've been using the pylibpcap extension module for several years, but I can't get it to build under 2.4: $ python setup.py build /usr/lib/python2.4/distutils/dist.py:222: UserWarning: 'licence' distribution option is deprecated; use 'license' warnings.warn(msg) running build runn

Re: Can't get pylibpcap extension to build under 2.4

2005-10-05 Thread Grant Edwards
On 2005-10-05, Grant Edwards <[EMAIL PROTECTED]> wrote: > I've been using the pylibpcap extension module for several > years, but I can't get it to build under 2.4: It turns out the .tar.gz file being distributed is missing the file doc.i and the entire build-tools subdirectory. If you grab the

Re: New Python book

2005-10-05 Thread Jeremy Jones
Dick Moores wrote: >(Sorry, my previous post should not have had "Tutor" in the subject header.) > >Magnus Lie Hetland's new book, _Beginning Python: From Novice to >Professional_ was published by Apress on Sept. 26 (in the U.S.). My copy >arrived in the mail a couple of days ago. Very much worth

Python 2.4.2 HPUX-PARISC compile issues

2005-10-05 Thread brian . toal
When compiling HPUX for PARISC with the following environemnt variables I get the following errors. CFLAGS=+DD64 -fast CC=aCC LDFLAGS=+DD64 $ make aCC -Ae -DD64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o Modules/python.o Modules/python.c Error 119: "./Include/pyport.h", line 612 # #erro

catching all tracebacks

2005-10-05 Thread Timothy Smith
iw ant to use a singel try except statment with my main app loop in the middle and catch all tracebacks and email them to myself as a bug report. however it seems a little more tricky then i thought try: Main.Main() except Exception, err_o: print err_o.__class__.__name__, '//', err_o, '/

Re: catching all tracebacks

2005-10-05 Thread Timothy Smith
Timothy Smith wrote: >iw ant to use a singel try except statment with my main app loop in the >middle and catch all tracebacks and email them to myself as a bug >report. however it seems a little more tricky then i thought > >try: >Main.Main() >except Exception, err_o: >print err_o.__cla

Re: check html file size

2005-10-05 Thread Sherm Pendley
Ulrich Hobelmann <[EMAIL PROTECTED]> writes: > Richard Gration wrote: >> Are you fucking seriously fucking expecting some fucking moron to >> translate your tech geeking fucking code moronicity? Fucking try writing >> it fucking properly in fucking Perl first. > > Fucking excuse me? > > Fucking ma

Re: check html file size

2005-10-05 Thread Sherm Pendley
Richard Gration <[EMAIL PROTECTED]> writes: > Are you fucking seriously fucking expecting some fucking moron to > translate your tech geeking fucking code moronicity? Fucking try writing > it fucking properly in fucking Perl first. Good fucking job! That's the funniest fucking response I've ever

Re: What documentation "standard" to use

2005-10-05 Thread Kenneth McDonald
This is, as far as I'm concerned, one of the great weaknesses of Python. (One of a relatively few, to be honest--I'm still an enthusiast after all!) There are numerous docstring-oriented tools; in my opinion, none of them are satisfactory, because docstrings only apply to certain entities, and

return struct in ctypes

2005-10-05 Thread James Hu
hi,   I need to use ctypes to call the API function like   fun1(&list, listLen)  //here  list is struct { long id; long type; long isOpen;}  ListItem;   so I define class LIST_ITEM(Structure):    _fields_ = [("Id", c_ulong),    ("Type",c_ulong ),        (

Re: Python eats gator.

2005-10-05 Thread Leif K-Brooks
Sam wrote: > http://www.wnbc.com/family/5060215/detail.html > > I know there's an on-topic joke in here somewhere, but I'm having some > problem finding it, at the moment. > > You may take a crack at it, if you'd like… Hmm... has anyone ever written a spyware removal tool in Python? -- http://m

Re: New Python book

2005-10-05 Thread hrh1818
Dick Moores wrote: > Magnus Lie Hetland's new book, _Beginning Python: From Novice to > Professional_ was published by Apress on Sept. 26 (in the U.S.). My copy > arrived in the mail a couple of days ago. Very much worth a look, IMHO. > But what do the experts here think? > >

Re: question about smtplib

2005-10-05 Thread Tim Roberts
Piet van Oostrum <[EMAIL PROTECTED]> wrote: >> Tim Roberts <[EMAIL PROTECTED]> (TR) wrote: > >>TR> [EMAIL PROTECTED] wrote: cool. so this line server = smtplib.SMTP(localhost) is when i connect ? > >>TR> Use the source, Luke. Source code for every standard module is included >

Re: Perl's documentation come of age

2005-10-05 Thread Mahesh Padmanabhan
In article <[EMAIL PROTECTED]>, "Xah Lee" <[EMAIL PROTECTED]> wrote: While I don't like to feed the trolls, I do find his posts amusing. He is like a spoilt child seeking attention. -- http://mail.python.org/mailman/listinfo/python-list

Re: Using Asyncore/chat for game server question.

2005-10-05 Thread Jos
Thanks to Matt Hammond and Jonathan LaCour for getting back to me! Jonathan sent me some code which took me several days to figure out, but does _exactly_ what i wanted. You can find the code he sent (dug out of the medusa distro) here: http://www.thethirdplace.org/grabbag/pyasynccpl/select_trigg

Re: Thread's, async_chat and asyncore

2005-10-05 Thread Jos
I will take a look at it, thanks! jos -- http://mail.python.org/mailman/listinfo/python-list

Re: check html file size

2005-10-05 Thread Ray Dillinger
Richard Gration wrote: > ... fucking ... fucking ... fucking ... fucking ... Fucking ... fucking > ... fucking My friend, you can learn to use a far richer vocabulary of obscenities. If your creative flow is blocked by the fear that you can't spell more dirty words correctly, you can dispel th

Can Python replace TCL/Expect

2005-10-05 Thread [EMAIL PROTECTED]
Hi I'm learning Python. I don't know whether Python can do something like Expect can do. If yes, please show me how to do it. I want to do something automatically: open connection to a ftp server, get the welcome message on the screen (not in the packet). I can do it easily with Expect but I still

Re: "no variable or argument declarations are necessary."

2005-10-05 Thread Bengt Richter
On 5 Oct 2005 09:27:04 GMT, Duncan Booth <[EMAIL PROTECTED]> wrote: >Antoon Pardon wrote: > >> It also is one possibility to implement writable closures. >> >> One could for instace have a 'declare' have the effect that >> if on a more inner scope such a declared variable is (re)bound it >> will

Re: Can Python replace TCL/Expect

2005-10-05 Thread Robert Kern
[EMAIL PROTECTED] wrote: > Hi > > I'm learning Python. I don't know whether Python can do something like > Expect can do. If yes, please show me how to do it. > I want to do something automatically: open connection to a ftp server, > get the welcome message on the screen (not in the packet). I can

_BLOCK_TYPE_IS_VALID error in MSVC 7.1 with Boost and Python

2005-10-05 Thread matt . keyes
Hey all, i'm trying to create an application that both embeds and extends python through boost. i've got a rough framework up and running, but now that i'm finally to the python part i'm having troubles. Here's a rough run-down of my code: Base class (pure): template InputHandler { public: /

Re: updating local()

2005-10-05 Thread Sybren Stuvel
Jp Calderone enlightened us with: > If I can call functions in your process space, I've already taken > over your whole program. That's true for standalone programs, but not for things like web applications, RPC calls etc. Sybren -- The problem with the world is stupidity. Not saying there shoul

Re: Python 2.4.2 HPUX-PARISC compile issues

2005-10-05 Thread Neal Norwitz
[EMAIL PROTECTED] wrote: > When compiling HPUX for PARISC with the following environemnt variables > I get the following errors. > > CFLAGS=+DD64 -fast > CC=aCC > LDFLAGS=+DD64 > > What do I need to do in order to get this to compile? This info should be in the README file for 2.4.2: + To b

Re: What encoding is used when initializing sys.argv?

2005-10-05 Thread Petr Prikryl
Thanks, Martin v. Löwis, Neil Hodgson, and Tim Roberts. I really appreciate your valuable comments. It simply works. Thanks again, Petr "Neil Hodgson" wrote... > Petr Prikryl: > > > I do not understand what encoding should be used > > to convert the sys.argv into unicode. > > Martin mentioned

RE: Simple prototype text editor in python

2005-10-05 Thread Letezo
Hello, > If anyone is interested in the > code or in giving some ideas or indeed has done something > similar I would love to heard from you. I'm interested in your code, since I'm going to learn ncurses. Please upload your code to a WEB page and post the link to python-announce (if you like you

Re: "no variable or argument declarations are necessary."

2005-10-05 Thread Antoon Pardon
Op 2005-10-06, Bengt Richter schreef <[EMAIL PROTECTED]>: > On 5 Oct 2005 09:27:04 GMT, Duncan Booth <[EMAIL PROTECTED]> wrote: > >>Antoon Pardon wrote: >> >>> It also is one possibility to implement writable closures. >>> >>> One could for instace have a 'declare' have the effect that >>> if on a

Re: "no variable or argument declarations are necessary."

2005-10-05 Thread Antoon Pardon
Op 2005-10-05, Brian Quinlan schreef <[EMAIL PROTECTED]>: > Paul Rubin wrote: >> Brian Quinlan <[EMAIL PROTECTED]> writes: >> >>>Have those of you who think that the lack of required declarations in >>>Python is a huge weakness given any thought to the impact that adding >>>them would have on the

Re: bug or feature?

2005-10-05 Thread Fredrik Lundh
Steven D'Aprano wrote: > I suppose someone might be able to come up with code that deliberately > uses this feature for good use argument binding is commonly used for optimization, and to give simple functions persistent storage (e.g. memoization caches). more importantly, it's the standard pydi

<    1   2   3