Re: PEP 338: Executing modules inside packages with '-m'

2004-12-11 Thread Nick Coghlan
[EMAIL PROTECTED] wrote: A useful feature that is a logical extension of current '-m' behaviour. (I'm actually surprised it was left out in the first place) That seems to be a common reaction :) It was dropped for 2.4 because I wasn't sure exactly how it should work, and 2.4 was already in beta at

Re: Error in msvc in building inheritance.obj to build hello.pyd

2004-12-11 Thread AIM
Donne Leen, Thanks, thats a very good solution. I am glad to hear that the later solution works for you. I will try to get the 1.32.0 source Monday. I will try to compile again next week. Andre Mikulec AIM -- http://mail.python.org/mailman/listinfo/python-list

Re: Error in msvc in building inheritance.obj to build hello.pyd

2004-12-11 Thread Donnie Leen
I use msvc 6.0 too, but my boost.python version is 1.32.0 , and i didn't get error to compile the hello.pyd with the msvc6 IDE, the hello demo from boost.python is compile with jam. would you try to use boost.python 1.32.0 if no compatible problem -- http://mail.python.org/mailman/listinfo/pyt

Re: PEP 338: Executing modules inside packages with '-m'

2004-12-11 Thread alia_khouri
A useful feature that is a logical extension of current '-m' behaviour. (I'm actually surprised it was left out in the first place) This will definitely allow me and other python programmers to package our scripts better Sounds Good to me. (-; Thank you for the PEP AK -- http://mail.python.or

problem with embbed boost.python in multi-interpreter and multi-thread HELP please

2004-12-11 Thread Donnie Leen
I wrote a program embbed boost.python, each thread running a sub-interpreter, i made a module implement by boost.python, and i wish this module imported in each sub-interpreter, i find that the module could initialize only once, otherwise the boost.python will throw a exception said that somethi

Error in msvc in building inheritance.obj to build hello.pyd

2004-12-11 Thread AIM
Error in msvc in building inheritance.obj to build hello.pyd Hello, I am trying to build the boost 1.31.0 sample extension hello.cpp. I can not compile the file inheritance.cpp because the two files containing some templates: adjacency_list.hpp and mem_fn.hpp can not compile. Does anyone have an

Re: Upgrade woes: Numeric, gnuplot, and Python 2.4

2004-12-11 Thread John Machin
Jive wrote: > "John Machin" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Why do you want to "upgrade to 2.4"? What do you mean by "upgrade to 2.4"? > > Well, for one thing, when I previously installed and then uninstalled 2.4, > pythonwin broke, and neither I nor the win32 gur

Re: Upgrade woes: Numeric, gnuplot, and Python 2.4

2004-12-11 Thread Nick Coghlan
Jive wrote: "John Machin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Why do you want to "upgrade to 2.4"? What do you mean by "upgrade to 2.4"? Well, for one thing, when I previously installed and then uninstalled 2.4, pythonwin broke, and neither I nor the win32 gurus can figure

Re: uptime for Win XP?

2004-12-11 Thread Nick Coghlan
Esmail Bonakdarian wrote: Hi, Is there a way to display how long a Win XP system has been up? Somewhat analogous to the *nix uptime command. Thanks, Esmail It's included in the output of the 'systeminfo' command. That command is fairly slow, though (since it displays a lot more than just the up ti

remove child in DOM??

2004-12-11 Thread Juliano Freitas
Hello!! how can i remove a child in DOM ? for example, i have thi xml below: juliano and i want to remove the element: how can i do this?? Juliano Freitas -- http://mail.python.org/mailman/listinfo/python-list

Upgrade woes: Numeric, gnuplot, and Python 2.4

2004-12-11 Thread Jive
Here's my sitch: I use gnuplot.py at work, platform Win32. I want to upgrade to Python 2.4. Gnuplot.py uses extension module Numeric. Numeric is now "unsupported." The documentation says "If you are new to Numerical Python, please use Numarray.". It's not that easy, dangit. The download page f

Re: Upgrade woes: Numeric, gnuplot, and Python 2.4

2004-12-11 Thread Robert Kern
Jive wrote: Here's my sitch: I use gnuplot.py at work, platform Win32. I want to upgrade to Python 2.4. Gnuplot.py uses extension module Numeric. Numeric is now "unsupported." The documentation says "If you are new to Numerical Python, please use Numarray.". It's not that easy, dangit. The down

Re: Upgrade woes: Numeric, gnuplot, and Python 2.4

2004-12-11 Thread Jive
"John Machin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Why do you want to "upgrade to 2.4"? What do you mean by "upgrade to 2.4"? Well, for one thing, when I previously installed and then uninstalled 2.4, pythonwin broke, and neither I nor the win32 gurus can figure out what

Re: GUIs: wxPython vs. Tkinter (and others)

2004-12-11 Thread Mike Meyer
"Fredrik Lundh" <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >> It also has a widget for creating Windows "wizards" for walking >> through a set of options. > Besides the fact that wizards isn't really that great (read Cooper), if your > toolkit doesn't let you create a dialogue with a couple o

Re: uptime for Win XP?

2004-12-11 Thread Jonel Rienton
IIRC, i think it's part of the powertools or IT Toolkit Peter Hansen said: > Tom Wesley wrote: >> Esmail Bonakdarian wrote: >> >>> Is there a way to display how long a Win XP system has been up? >>> Somewhat analogous to the *nix uptime command. >> >> I believe that "uptime" works from the console

Re: Upgrade woes: Numeric, gnuplot, and Python 2.4

2004-12-11 Thread John Machin
Jive wrote: > Here's my sitch: > > I use gnuplot.py at work, platform Win32. I want to upgrade to Python 2.4. > Gnuplot.py uses extension module Numeric. Numeric is now "unsupported." > The documentation says "If you are new to Numerical Python, please use > Numarray.". It's not that easy, dang

Re: Upgrading Python Article

2004-12-11 Thread Tim Roberts
JanC <[EMAIL PROTECTED]> wrote: >Fuzzyman schreef: > >> On the other hand the microsoft >> compiler is *better* than gcc anyway :-) > >It's better at optimising, but it doesn't support standard C & C++. ;-) I don't think that's fair. Visual C++ 7.1 is signficantly better at compliance than thei

Re: Upgrade woes: Numeric, gnuplot, and Python 2.4

2004-12-11 Thread Nick Coghlan
Giovanni Bajo wrote: Jive wrote: 4) Buy a copy of the VC++ 7.1 and port Numeric myself. (I still don't know what to buy from Mr. Gates -- VC++ .net Standard?) The cheapest version should be fine (Python doesn't rely on anything fancy - the command line tools are the main things it needs). VC++ 7

PEP 338: Executing modules inside packages with '-m'

2004-12-11 Thread Nick Coghlan
Python 2.4's -m command line switch only works for modules directly on sys.path. Trying to use it with modules inside packages will fail with a "Module not found" error. This PEP aims to fix that for Python 2.5. Previously, posting of a draft version of the PEP to python-dev and python-list did

Re: Upgrade woes: Numeric, gnuplot, and Python 2.4

2004-12-11 Thread Giovanni Bajo
Jive wrote: > 4) Buy a copy of the VC++ 7.1 and port Numeric myself. (I still don't > know what to buy from Mr. Gates -- VC++ .net Standard?) VC++ 7.1, the compiler/linker, is a free download. Google for "VC toolkit". You won't get the fancy IDE and stuff, but you have everything you need to bui

Re: Hashes

2004-12-11 Thread Michael McGarry
Peter Hansen wrote: Michael McGarry wrote: Are there hashes in Python? Define hash. Or look at Python's 'dict' type, or the hash() function and decide for yourself if that's what you meant. -Peter Yes, I guess the dict type is what I am looking for. Thank you, Michael -- http://mail.python.org/ma

Re: building python extensions with .net sdk compiler?

2004-12-11 Thread Grumman
Mike C. Fletcher wrote: Grumman wrote: Of course it'd be nice if msvccompiler.py just fell back to looking for the toolkit/sdk default dirs (or looked them up via environment vars, since the toolkit does include a vcvars32.bat that sets appropriate ones) if the VS lookup failed. Which is what t

Re: Hashes

2004-12-11 Thread Peter Hansen
Michael McGarry wrote: Are there hashes in Python? Define hash. Or look at Python's 'dict' type, or the hash() function and decide for yourself if that's what you meant. -Peter -- http://mail.python.org/mailman/listinfo/python-list

Re: uptime for Win XP?

2004-12-11 Thread Peter Hansen
Tom Wesley wrote: Esmail Bonakdarian wrote: Is there a way to display how long a Win XP system has been up? Somewhat analogous to the *nix uptime command. I believe that "uptime" works from the console, but don't have a machine to check it with... Microsoft Windows XP [Version 5.1.2600] (C) Copyri

Hashes

2004-12-11 Thread Michael McGarry
Hi, Are there hashes in Python? Michael -- http://mail.python.org/mailman/listinfo/python-list

Re: from vb6 to Python

2004-12-11 Thread Martijn Faassen
Luis M. Gonzalez wrote: MarcoL wrote: Hello, I am a VB6 programmer and I would like to learn a new high level language (instead of restarting from scratch with .NET... I'd like to add that by going with Python, you'll also be able to develop for .NET. Check this out: www.ironpython.com . S

character encoding conversion

2004-12-11 Thread Dylan
Here's what I'm trying to do: - scrape some html content from various sources The issue I'm running to: - some of the sources have incorrectly encoded characters... for example, cp1252 curly quotes that were likely the result of the author copying and pasting content from Word I've searched an

Re: Overriding properties

2004-12-11 Thread Leif K-Brooks
Nick Patavalis wrote: Why does the following print "0 0" instead of "0 1"? What is the canonical way to rewrite it in order to get what I obviously expect? class C(object): value = property(get_value, set_value) class CC(C): def set_value(self, val): c.value = -1 cc.value =

Re: thread/queue bug

2004-12-11 Thread Tim Peters
[Peter Otten] > What I believe to be a minimal example: > > > import Queue > import threading > import time > > q = Queue.Queue(4) > > def proc(): >while True: >q.get(1) >Queue.Queue() >print "YADDA" > > threading.Thread(target=proc).start() > > while True: >pri

Re: from vb6 to Python

2004-12-11 Thread Luis M. Gonzalez
MarcoL wrote: > Hello, > I am a VB6 programmer and I would like to learn a new high level > language (instead of restarting from scratch with .NET... I'd like to add that by going with Python, you'll also be able to develop for .NET. Check this out: www.ironpython.com . Since the developmen

Overriding properties

2004-12-11 Thread Nick Patavalis
Why does the following print "0 0" instead of "0 1"? What is the canonical way to rewrite it in order to get what I obviously expect? class C(object): __val = 0 def set_value(self, val): if val < 0 : self.__val = 0 else : self.__val = val def get_value(self)

Re: building python extensions with .net sdk compiler?

2004-12-11 Thread Nick Coghlan
Mike C. Fletcher wrote: Which is what the patch here: http://www.vrplumber.com/programming/mstoolkit/ does. Has that patch been posted to Python's SourceForge patch tracker? I think the distutils folks will be interested. Cheers, Nick. -- Nick Coghlan | [EMAIL PROTECTED] | Brisbane, Au

[jobs] Python web programmer needed (Los Angeles)

2004-12-11 Thread Ron Garret
Python programmer needed to do web development for an early-stage entertainment industry startup company. We prefer someone in the northern LA area (the company offices are in Altadena), but will consider telecommuters. Please email resumes to me at ron at flownet.com. rg -- http://mail.py

Re: from vb6 to Python

2004-12-11 Thread houbahop
Hi, I have used VB6 a lot too and Python appears to me as a good alternative to .net too, but the thing that will do the difference is the GUI... I hope the ones for Python are beautifull enough as appearence is an important thing to me in softwares. D. "MarcoL" <[EMAIL PROTECTED]> a écrit dans

Re: newbie questions

2004-12-11 Thread houbahop
"Dennis Lee Bieber" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > On Sat, 11 Dec 2004 12:43:01 GMT, "houbahop" me)@chello.fr> declaimed the following in comp.lang.python: > >> Thank you everyone, but I still not understand why such a comon feature >> like >> passing p

Re: uptime for Win XP?

2004-12-11 Thread Greg Krohn
Tom Wesley wrote: Esmail Bonakdarian wrote: Hi, Is there a way to display how long a Win XP system has been up? Somewhat analogous to the *nix uptime command. Thanks, Esmail I believe that "uptime" works from the console, but don't have a machine to check it with... Doesn't work for me, but if yo

handy stacktrace class

2004-12-11 Thread Will Ware
I was fooling with some Python code, and starting to miss the Exception.printStackTrace() feature in Java. Here is a stab at something roughly analogous, which puts together a stacktrace as an XML document. import xml.dom.minidom class Stacktrace(xml.dom.minidom.Document): def __init__(self):

Re: Tibia 0.1 DOM-based website editor

2004-12-11 Thread Fuzzyman
Robert Brewer wrote: > Fuzzyman wrote: > > Interesting. > > > > I couldn't get the demo to work either by the way. A 404 error on the > > tba file. > > Bah. You must've looked after I switched fom .tba to .py > Try http://www.aminus.org/rbre/tibia/demo/tibia.py > Yup - after the change and before

Re: a newbie question

2004-12-11 Thread chris
Thank you. That's exactly what I needed. -- http://mail.python.org/mailman/listinfo/python-list

Re: Fun with Outlook and MAPI

2004-12-11 Thread Roger Binns
"Larry Bates" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > At the risk of beating a dead horse, but you really should consider > using SMTP instead if you are really going to be sending a lot > of messages. The problem is that doesn't work in more complicated configurations such

Re: thread/queue bug

2004-12-11 Thread Peter Otten
phil wrote: > And sorry I got ticked, frustrating week > > >And I could help more, being fairly experienced with > >threading issues and race conditions and such, but > >as I tried to indicate in the first place, you've > >provided next to no useful (IMHO) information to > >let anyone help y

ANN: xsdb does XML, SQL is dead as disco :)

2004-12-11 Thread aaronwmail-usenet
  The xsdbXML framework provides a flexible and well defined infrastructure to allow tabular data to be published, retrieved, and combined over the Internet. It's a little bit like the daughter of the Gadfly SQL engine in the buff, on steroids.  This is a major departure from the previous releases

Re: uptime for Win XP?

2004-12-11 Thread Tom Wesley
Esmail Bonakdarian wrote: Hi, Is there a way to display how long a Win XP system has been up? Somewhat analogous to the *nix uptime command. Thanks, Esmail I believe that "uptime" works from the console, but don't have a machine to check it with... -- http://mail.python.org/mailman/listinfo/python

Re: Python vs. Perl

2004-12-11 Thread Michael McGarry
[EMAIL PROTECTED] wrote: Christopher De Vries wrote: Roy Smith already touched on regular expressions, but as far as features go, I would say that the real difference between python and perl is not in the features, but in the philosophy. To help aid in this discussion, the following Python and Per

Re: How to remove packages - wxPython

2004-12-11 Thread Peter
Peter Hansen wrote: > Peter wrote: >> Linux kernel 2.6.9 >> Slackware 10 >> Python version 2.3.4 >> wxPython version 2.4.2.4 >> >> I compiled and installed wxPython. >> >> There is no uninstall script that I can find for the py components. The >> library component has a make uninstall. >> >> Wh

Re: Fun with Outlook and MAPI

2004-12-11 Thread Roger Binns
"Chris" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > My only problem is that when I call Resolve() and Send(), I get confirmation > dialogs. I will be sending out quite a few e-mails > at a time, and would rather not have the user have to click yes for every > single one. He

uptime for Win XP?

2004-12-11 Thread Esmail Bonakdarian
Hi, Is there a way to display how long a Win XP system has been up? Somewhat analogous to the *nix uptime command. Thanks, Esmail -- http://mail.python.org/mailman/listinfo/python-list

Re: newbie questions

2004-12-11 Thread John Machin
Steven Bethard wrote: > > Of course, in this simple case, I wouldn't be likely to write the clear > function since the inline code is simpler and has less overhead: > > def main() > var1 = [] > var1.append('a') > var1[:] = [] Even less overhead: del var1[:] -- http://mail.python.

Re: MP3 - VBR - Frame length in time

2004-12-11 Thread Florian Schulze
On Sat, 11 Dec 2004 20:32:30 +0100, Ivo Woltring <[EMAIL PROTECTED]> wrote: mmpython will help but not always. Lets put it this way. I will ALWAYS read through the whole file. In that order I don't mind evaluating each frame. The thing I don't seem to be able to find is the timelength-constants

Re: Python vs. Perl

2004-12-11 Thread loritsch
Christopher De Vries wrote: > Roy Smith already touched on regular expressions, but as far as > features go, I would say that the real difference between python and > perl is not in the features, but in the philosophy. To help aid in this discussion, the following Python and Perl philosophy links

ANN: PSF Licensing FAQ

2004-12-11 Thread Stephan Deibel
Hi, The Python Software Foundation (PSF) board recently wrote up a licensing FAQ that we hope will help to clear up some of the confusion that has surrounded the PSF License. There are quite a few projects out there (on Source Forge and otherwise) that misuse this license in ways potentially detr

Re: How to remove packages - wxPython

2004-12-11 Thread Peter Hansen
Peter wrote: Linux kernel 2.6.9 Slackware 10 Python version 2.3.4 wxPython version 2.4.2.4 I compiled and installed wxPython. There is no uninstall script that I can find for the py components. The library component has a make uninstall. What is the proper way to uninstall packages? I searched ever

Re: newbie questions

2004-12-11 Thread houbahop
Thank you Steven, The funny thing is that I have taken a look at wikipedia just before to be sure that I wasn't wrong :D I agree with you about not making a clear function to just put what I've put in my sample, but this sample was more simple that what I really need for explaining purpose. In r

Re: New versions breaking extensions, etc.

2004-12-11 Thread Jeremy Bowers
On Sat, 11 Dec 2004 01:28:45 -0600, Mike Meyer wrote: > Actually, there's a problem on Unix that may not exist on > Windows. Python is installed in /lib/python/. This > lets us have multiple versions of Python installed at the same time, > which is a good thing. > ... > The real solution is... Int

Re: thread/queue bug

2004-12-11 Thread Bengt Richter
On Fri, 10 Dec 2004 16:18:51 -0600, phil <[EMAIL PROTECTED]> wrote: >And sorry I got ticked, frustrating week > threading problems can do that ;-) You are obviusly deeper into this than I can get from a cursory scan, but I'll make some general debugging comments ;-) > >And I could help more, bei

Re: newbie questions

2004-12-11 Thread Steven Bethard
houbahop wrote: Hello again everyone , var2[:]=[] has solved my problem, and I don't understand why it is programming by side effect. I don't think it's bad, look at this, it's what I've done : def Clear(lvar) lvar[:]=[] def main (starting class) var1=[] var1.append('a') Clear(var1)

Re: New versions breaking extensions, etc.

2004-12-11 Thread Steven Bethard
It's me wrote: My answer is simple: If there are more then 24 hours to a day, I definitely would... Can we get a patch in for this? >>> datetime.timedelta(hours=24) + datetime.timedelta(hours=1) datetime.timedelta(1) would be much preferable to the current: >>> datetime.timedelta(hours=24) + dateti

Re: MP3 - VBR - Frame length in time

2004-12-11 Thread Ivo Woltring
"JanC" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Dmitry Borisov schreef: > > > It has something to deal with the VBR tags( XING header ). > > *If* there is a VBR tag (it's a custom extension) and *if* that VBR tag > contains a correct value. > > > -- > JanC > > "Be strict when

Re: newbie questions

2004-12-11 Thread Steven Bethard
houbahop wrote: Passing a pointer by value appears to me as passing a var by reference. Well, at least in the PL literature, there's a subtle difference. If Python supported pass-by-reference, you could do something like: >>> def clear(byref lst): ... lst = [] ... >>> x = [pow(x, 11, 17) for

Re: newbie questions

2004-12-11 Thread houbahop
Hello again everyone , var2[:]=[] has solved my problem, and I don't understand why it is programming by side effect. I don't think it's bad, look at this, it's what I've done : def Clear(lvar) lvar[:]=[] def main (starting class) var1=[] var1.append('a') Clear(var1) var1 can only

Re: newbie questions

2004-12-11 Thread Diez B. Roggisch
> Thanks I will try all of that, but what does really means mutating in > python? It's the first time I hear this word in programming :)) An object is called mutable if you can alter it - immutable otherwise. In java and python e.g. strings are immutable. In python, tuples are immutable: >>> a =

Re: building python extensions with .net sdk compiler?

2004-12-11 Thread Mike C. Fletcher
Grumman wrote: David Fraser wrote: So using MinGW seems like the better option ... is it working for Python 2.4? ... Of course it'd be nice if msvccompiler.py just fell back to looking for the toolkit/sdk default dirs (or looked them up via environment vars, since the toolkit does include a vcv

Re: newbie questions

2004-12-11 Thread houbahop
Hi, "Steven Bethard" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > houbahop wrote: >> Thank you everyone, but I still not understand why such a comon feature >> like passing parameters byref that is present in most serious programming >> languages is not possible in a

Re: GUIs: wxPython vs. Tkinter (and others)

2004-12-11 Thread Peter Hansen
Jarek Zgoda wrote: Fredrik Lundh wrote: I don't know about wxPython, but PyQt includes it's own threading facility, plus hooks to talk to databases. That would of course be a great argument if Python didn't already have a threading facility, and a standard API for talking to databases with implemen

Re: swig & Python question

2004-12-11 Thread It's me
Whether SWIG will work in a "no brainer" way or not depends on the original code, I think. If the original code uses a very convoluted design, of course things will get hairy. If the package uses a very clean structure, I think you will find SWIG works out very nicely. The intriguing things is,

Re: New versions breaking extensions, etc.

2004-12-11 Thread It's me
On the other hand, it can be annoying. I can't use Python 2.4 right now because NumPy won't run. So, I need to wait for NumPy to get updated. Of course, one would say: but NumPy is open source, go build it yourself. My answer is simple: If there are more then 24 hours to a day, I definitely wou

RE: Tibia 0.1 DOM-based website editor

2004-12-11 Thread Robert Brewer
Fuzzyman wrote: > Interesting. > > I couldn't get the demo to work either by the way. A 404 error on the > tba file. Bah. You must've looked after I switched fom .tba to .py Try http://www.aminus.org/rbre/tibia/demo/tibia.py > This is *similar* t oa project I'm about to release, Jalopy. Jalopy i

Re: Python vs. Perl

2004-12-11 Thread Christopher De Vries
Roy Smith already touched on regular expressions, but as far as features go, I would say that the real difference between python and perl is not in the features, but in the philosophy. It seems to me that any program you can write in python could also be written in perl. What it comes down to for m

Re: building python extensions with .net sdk compiler?

2004-12-11 Thread Grumman
David Fraser wrote: So using MinGW seems like the better option ... is it working for Python 2.4? Yes it does. :) I haven't tried it, but probably. The problem with the toolkit is that mscvccompiler.py in distutils is expecting VisualStudio to be installed, not the toolkit. So when it goes to l

Re: your favorite quick reference? (was Python Docs. Hardcopy 2.4 Library Reference, interested?)

2004-12-11 Thread beliavsky
O'Reilly has CD bookshelves http://cdbookshelves.oreilly.com/ , combining their books on a topic into a CD, for various subjects, including Perl, but not yet for Python. I own the paper copies of several of their Python books. A single CD containing their books Jython Essentials Learning Python, 2

Re: Python vs. Perl

2004-12-11 Thread Roy Smith
Michael McGarry <[EMAIL PROTECTED]> wrote: > I am just starting to use Python. Does Python have all the regular > expression features of Perl? I can't vouch for "all", but the Python reference manual for the "re" module (http://docs.python.org/lib/module-re.html) says, "This module provides reg

SocketServer class examples

2004-12-11 Thread Adil Hasan
Hello Fred, I just ran across your question. I think that the following code will work: - SERVER CODE -- import SocketServer import time class GreetingHandler(SocketServer.BaseRequestHandler): '''Class to handle sending a greeting to a client ''' def handle(self):

Python vs. Perl

2004-12-11 Thread Michael McGarry
Hi, I am just starting to use Python. Does Python have all the regular expression features of Perl? Is Python missing any features available in Perl? Thanks, Michael -- http://mail.python.org/mailman/listinfo/python-list

Re: Tibia 0.1 DOM-based website editor

2004-12-11 Thread Fuzzyman
Interesting. I couldn't get the demo to work either by the way. A 404 error on the tba file. This is *similar* t oa project I'm about to release, Jalopy. Jalopy is a collaborative website tool - allowing a team of people to work on a website together. It uses Kupu as an online WYSIWYG HTML editor

Re: Fun with Outlook and MAPI

2004-12-11 Thread Larry Bates
At the risk of beating a dead horse, but you really should consider using SMTP instead if you are really going to be sending a lot of messages. I think you will find it more reliable and much faster. It also eliminates the need for ANY email client to be on the machine that is sending the messages

os.system() inside a thread problem

2004-12-11 Thread Daniel Bernhardt
Hello, my thread calls a program with os.system(). > os.system("/usr/bin/wine /path/to/ultima/online.exe") Ultima Online is starting and i can enter commands and navigate through the game with my keyboard. If I move the mouse over the Ultima Online window Ultima Online crashes. (the mouse just ne

your favorite quick reference? (was Python Docs. Hardcopy 2.4 Library Reference, interested?)

2004-12-11 Thread Esmail Bonakdarian
somewhat related .. is there a good quick reference for python? o'reilly has a quick ref guide 2nd ed is a few years old, and the ones i have found on-line seem a bit big. I am looking for something relatively concise that I can carry with me ... not sure such a thing exists? thanks. -- http://mail

Re: os.system() inside a thread problem

2004-12-11 Thread Daniel Bernhardt
Fredrik Lundh wrote: > in the example you included, you use execv. which one is it? it should be system(). I just played a bit and forgot to change it back. > > just curious: do you really have to use a thread? why not just do > >os.system(command + "&") > No, i don't need to use a th

Re: os.system() inside a thread problem

2004-12-11 Thread Fredrik Lundh
Daniel Bernhardt wrote: > my thread calls a program with os.system(). >> os.system("/usr/bin/wine /path/to/ultima/online.exe") in the example you included, you use execv. which one is it? > Ultima Online is starting and i can enter commands and navigate through the > game with my keyboard. If I

Re: thread/queue bug

2004-12-11 Thread Peter Hansen
phil wrote: Well its an anomaly. I sent to bug list. Probably never see it again. I think some sort of semaphore thingy, which I know nothing about, is sneaking in under unreproducible conditions. I'm moving on. If you want to try one more thing, try mucking with a call to sys.setcheckinterval().

Re: from vb6 to Python

2004-12-11 Thread Martijn Faassen
Gerhard Häring wrote: MarcoL wrote: I am a VB6 programmer and I would like to learn a new high level language (instead of restarting from scratch with .NET), wich is opensource and cross-platform, in order to develop cross-platform business applications Good for you! And Python is a good cho

Re: ElementTree and XPATH

2004-12-11 Thread Martijn Faassen
Istvan Albert wrote: [EMAIL PROTECTED] wrote: it seems to be invalid syntax if I give "/a/b[0]" to the findall() method. Does anyone know the correct syntax? I think the proper mindset going in should be that elementtree does not support xpath but that there are some handy constructs that resemble

Re: Clarification of two concepts (or maybe one?)

2004-12-11 Thread Larry Bates
What you are looking for are 2 apps: 1) Something to freeze your application into something that resembles an installation like what comes on commercial applications. On Windows a popular choice is py2exe. All dependent .py, .pyd, etc. files can be included in the distribution. It also includes

Re: UrlLib2 Proxy and Https

2004-12-11 Thread Sandeep
Check out the following link. It helped me achieve the same thing (access a HTTPS site via a proxy). http://groups.yahoo.com/group/linux-bangalore-programming/message/4208 Cheers, Sandeep http://sandeep.weblogs.us/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Raw Sockets vs. What?

2004-12-11 Thread Fredrik Lundh
"Matt" wrote: > So, the question: How to communicate between two instances of the > python interpreter? Specifically, I need to pass the api and objects > from bdb, the base class for the debugger. One interpreter runs the > ide, the other the debugger and client code. We were talking and just > o

Re: newbie questions

2004-12-11 Thread Mel Wilson
In article <[EMAIL PROTECTED]>, "houbahop" wrote: >Thank you everyone, but I still not understand why such a comon feature like >passing parameters byref that is present in most serious programming >languages is not possible in a clean way,here in python. > >I have the habit to never use globals a

Re: newbie questions

2004-12-11 Thread Steven Bethard
houbahop wrote: Thank you everyone, but I still not understand why such a comon feature like passing parameters byref that is present in most serious programming languages is not possible in a clean way,here in python. I understand from this statement that Java is not a serious programming langua

Re: New versions breaking extensions, etc.

2004-12-11 Thread John Machin
Jive wrote: > "Martin v. Löwis" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > OTOH, people who only have VC6 just need to buy VS.NET 2003, > > which is still available. > > I don't even know how to do that! :-) What's the difference between VC++ > .net Standard and Visual Studi

How to remove packages - wxPython

2004-12-11 Thread Peter
Linux kernel 2.6.9 Slackware 10 Python version 2.3.4 wxPython version 2.4.2.4 I compiled and installed wxPython. There is no uninstall script that I can find for the py components. The library component has a make uninstall. What is the proper way to uninstall packages? I searched everywhere, bu

Re: newbie questions

2004-12-11 Thread houbahop
Thank you everyone, but I still not understand why such a comon feature like passing parameters byref that is present in most serious programming languages is not possible in a clean way,here in python. I have the habit to never use globals as far as possible and this involve that my main functi

Re: Raw Sockets vs. What?

2004-12-11 Thread Diez B. Roggisch
> So, the question: How to communicate between two instances of the > python interpreter? Specifically, I need to pass the api and objects > from bdb, the base class for the debugger. One interpreter runs the > ide, the other the debugger and client code. We were talking and just > opening a socke

Re: newbie questions

2004-12-11 Thread Roel Schroeven
houbahop wrote: def RAZVarAnimesDuJour(self,oSortiesAnimeTitreLabel): for i in xrange(len(oSortiesAnimeTitreLabel)): del oSortiesAnimeTitreLabel[i] it doesn't emty my var (i don't want to destroy the var, just make it like if it just have been created Other posts are miss

Re: Civilization IV uses Python for scripting

2004-12-11 Thread Tim Jarman
In article <[EMAIL PROTECTED]>, "Carl Banks" <[EMAIL PROTECTED]> wrote: > > Advancement: PYTHON > Requires: Computers, Mythology > Effect: > * Increases revenue generated by capitalization by 300% > * Makes two unhappy citizens happy > * Renders all Wonders of the World in all other countries co

Re: Python Docs. Hardcopy 2.4 Library Reference, interested?

2004-12-11 Thread Brian Gough
Richie Hindle <[EMAIL PROTECTED]> writes: > I'd be interested to know how many of these manuals you sell...? This is > only idle curiosity, and if you don't want to say then that's no problem. > (I'd briefly considered doing this myself, until I found your site.) I sell about 10 python manuals p

Re: swig & Python question

2004-12-11 Thread Keith Dart
It's me wrote: "It's me" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I am playing around with SWING building a Python module using the no brainer example in http://www.swig.org/tutorial.html. With that first example, Oops! Soapy fingers. "SWIG" - not "SWING". -- It's me. I hav

Re: Zip with a list comprehension

2004-12-11 Thread Raymond Hettinger
> This is probably so easy that I'll be embarrassed by the answer. While > enhancing and refactoring some old code, I was just changing some map()s to > list comprehensions, but I couldn't see any easy way to change a zip() to a > list comprehension.Should I just let those sleeping dogs lie?

Re: High level SNMP

2004-12-11 Thread Keith Dart
Jeremy Sanders wrote: Hi - I'd like to write a program which basically does a few snmpgets. I haven't been able to find a python package which gives you a nice high-level and simple way of doing this (like PHP has). Everything appears to be extremely low level. All I need is SNMPv1. Does anyone kno

Raw Sockets vs. What?

2004-12-11 Thread Matt
Hi, I'm new to Python (1 week), but I'm writing an out-of-process debugger for a Python ide. I tried execFile first, but stuff leaked over from the wx libraries we are using. And, anyway, the next code set is PHP so this has to be tackled anyway. So, the question: How to communicate between two i

Re: collaborative editing

2004-12-11 Thread Nick Craig-Wood
Nick Craig-Wood <[EMAIL PROTECTED]> wrote: > Robert Kern <[EMAIL PROTECTED]> wrote: > > Personally, I loathe writing at any length inside a Web browser and > > prefer to use a real editor at all times. > > Me too! You need mozex... > >http://mozex.mozdev.org/ Here is a good page about

Re: building python extensions with .net sdk compiler?

2004-12-11 Thread David Fraser
Grumman wrote: I got this insane message, how did you solve this "problem" ? running install running build running build_py running build_ext error: The .NET Framework SDK needs to be installed before building extensions for Python. - Or does anyone know why i get this me

  1   2   >