Re: newbie pipe question

2006-09-05 Thread Steve Holden
[EMAIL PROTECTED] wrote: > Hi > > I want to write a python script that accepts input ( a single line of > text) from another program (squid proxy) and sends back output ( a > single line of text). I am not sure how to go about this > Traditionally one of the popenN() functions would have been the

=?iso-8859-1?q?How_to_allow_special_character's_like_=EF, =F9, acute_e_etc...?=

2006-09-05 Thread sonald
Dear All, I am working on a module that validates the provided CSV data in a text format, which must be in a predefined format. We check for the : 1. Number of fields provided in the text file, 2. Text checks for max. length of the field & whether the field is mandatory or optional Example:

Re: py2exe and libxml

2006-09-05 Thread Laszlo Nagy
Amaury Forgeot d'Arc írta: > Laszlo Nagy a écrit : > >> I wrote a little win32 console application that uses libxml2. It is >> working fine. If I create an .exe version, I get this error when I try >> to start the program: >> >> Traceback (most recent call last): >> File "MyProgram.py", line

Add NTLM proxy authentication to urllib2

2006-09-05 Thread looping
Hi, I have to make internet connections through an ISA proxy server that use NTLM or Kerberos authorization method. I've found a program in python called ntlmaps that act like a proxy and could make the NTLM authentication, but you have to run it and make all your connection through it, not an opti

Re: testing for valid reference: obj vs. None!=obs vs. obj is not None

2006-09-05 Thread Bruno Desthuilliers
Carl Banks wrote: > Bruno Desthuilliers wrote: >> In python, assignement is a statement, not an expression, so there's no >> way you could write 'if obj = None' by mistake (-> syntax error). So >> this style is unpythonic. Also, None is a singleton, and identity test >> is way faster than equality

Re: threading support in python

2006-09-05 Thread Paul Rubin
Steve Holden <[EMAIL PROTECTED]> writes: > You write as though the GIL was invented to get in the programmer's > way, which is quite wrong. It's there to avoid deep problems with > thread interaction. Languages that haven't bitten that bullet can bite > you in quite nasty ways when you write thread

Re: Is it just me, or is Sqlite3 goofy?

2006-09-05 Thread Bruno Desthuilliers
[EMAIL PROTECTED] wrote: > Probably just me. I've only been using Access and SQL Server > for 12 years, so I'm sure my opinions don't count for anything. > SQLite never pretended to be a full-blown RDBMS - just a lightweight simple embedded database as SQL-compliant as possible. In it's category,

Re: why have to "from compiler import *"

2006-09-05 Thread Bruno Desthuilliers
[EMAIL PROTECTED] wrote: > Hi, why does > import compiler compileFile("foo.py") > > complain name 'compileFile' not defined. Probably because it's not ? import imports the name in the current namespace. Then let you access all the names defined in namespace. So in you're case,

Re: Using "Content-Disposition" in HTTP download

2006-09-05 Thread Justin Ezequiel
[EMAIL PROTECTED] wrote: > What is the correct way to download a file through HTTP and save it to > the file name suggested by "Content-Disposition"? > Perhaps something along the lines of the following? >>> url = >>> r'http://www.4so9.com/cauca/files/ban-doc/francois/stingray/198%20lb%20stingra

Re: newbie pipe question

2006-09-05 Thread Tal Einat
[EMAIL PROTECTED] wrote: > Hi > > I want to write a python script that accepts input ( a single line of > text) from another program (squid proxy) and sends back output ( a > single line of text). I am not sure how to go about this > > cheers David If you want the script to recieve this line in s

Re: threading support in python

2006-09-05 Thread Felipe Almeida Lessa
4 Sep 2006 19:19:24 -0700, Sandra-24 <[EMAIL PROTECTED]>: > If there was a mod_dotnet I wouldn't be using > CPython anymore. I guess you won't be using then: http://www.mono-project.com/Mod_mono -- Felipe. -- http://mail.python.org/mailman/listinfo/python-list

Minidom XML output - attributes in wrong order ?

2006-09-05 Thread Peter M�llerud
I'm very new to Python, so consider this a silly newbie question... Anyway, I'm building a small application to generate a XML. Using document from minidom, I'm doing something like : from xml.dom.minidom import Document doc = Document() c = doc.createElement("sometest") doc.appendChild(c) tmp

Check XML Without any DTD or schema.

2006-09-05 Thread gajewski . konrad
Hi All. I'm newbee. I try to check syntax any XML file. I don't have any dtd or shema file to this xml. Is this possible that I check syntax in any xml file in python. Regards, Dreamen -- http://mail.python.org/mailman/listinfo/python-list

Re: Syntax suggestion.

2006-09-05 Thread samir
Saluton! Alex Martelli wrote: > GVIM (and the normal Python interpreter) work better for me: to perform > such a task, I would always write (and run) a script, of course (the > purpose of the chroot step is somewhat mysterious here, btw). If I have > to perform a strange and complex task once, it

[ANN] RuPy 2007 - Python & Ruby Conference

2006-09-05 Thread Jakub Piotr Nowak
RuPy 2007 Python & Ruby Conference Poznan, Poland April 7-8, 2007 RuPy is a Python & Ruby conference. It will be held at Adam Mickiewicz University, in Poznan, Poland, so it is relatively accessible from both the East and the West of Europe. The philosophy of RuPy is to put together Python & Rub

Higher-level OpenGL modules

2006-09-05 Thread Leon
Greetings, Does anybody know of or is working on any python modules that allow for a direct but higher-level interface to OpenGL? For example, quick functions to draw lines, curves, and basic shapes; define hsb color mode; fill and stroke operations; easy loading of images, svg files, etc (much li

Re: why have to "from compiler import *"

2006-09-05 Thread Paddy
[EMAIL PROTECTED] wrote: > Hi, why does > > >>> import compiler > >>> compileFile("foo.py") > > complain name 'compileFile' not defined. But > > >>>from compiler import * > > works. Why? (I did read the tutorial, it seems to say "import module" > should work. > > Thank you, Mark I did some as

Re: Check XML Without any DTD or schema.

2006-09-05 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > I'm newbee. I try to check syntax any XML file. I don't have any dtd or > shema file to this xml. > Is this possible that I check syntax in any xml file in python. There are two forms of checking xml-documents: - well-formedness, which means that the document adheres t

Re: Higher-level OpenGL modules

2006-09-05 Thread Wolfgang Draxinger
Leon wrote: > http://www.processing.org/reference/index.html). The closest > thing I could find was devachan - Hava a look at Amanith http://www.amanith.org OpenGL is that "low" level by design. Everything beyond is to be packed into other libraries. Wolfgang Draxinger -- E-Mail address works,

Re: why have to "from compiler import *"

2006-09-05 Thread Duncan Booth
"Paddy" <[EMAIL PROTECTED]> wrote: > > import module1 > # namespace becomes: >\-/ > |module1.moduleFunc1 | > |module1.moduleClass1: | > | class1Method1 | > | class1Method2 | > |module1.moduleFunc2 | > |module1.moduleVar1 |

Re: Access elements from nested tuples

2006-09-05 Thread Georg Sauthoff
On 2006-09-04, Tim Chase <[EMAIL PROTECTED]> wrote: Hi, [nested tuples] thanks - I should not post before 8 am or 10 pm ... Regards Georg Sauthoff -- http://mail.python.org/mailman/listinfo/python-list

Testing a website with HTTPS login and cookies

2006-09-05 Thread Hari Sekhon
Hi everyone, I want to create a test that will do a proper login test to a web site but I need some pointers. I need to login to the website by accessing an https url and posting to that, which should return a very small 302 reply with the address of the internal page. I need to take that page

HTTP Server Root Folder

2006-09-05 Thread placid
Hi All, I have this BaseHTTPServer.HTTPServer that is located at C:\ (im on Windows XP), when i run the program (httpserver.pyw) from the Run Dialog as "C:\httpserver.pyw" the root folder ("\") for http server is C:\, but when i add an entry to Registry Run so that it runs at boot time, the root f

Re: Minidom XML output - attributes in wrong order ?

2006-09-05 Thread Maxim Sloyko
> So it seems the dom module sorts the attributes alphabetically. Is there any > way I can prevent it from doing that ? What I want is to list them out in > the same order as they are added in the code... I don't know how to do what you ask, I'm just here to warn you that you shouldn't rely on th

Re: CONSTRUCT -

2006-09-05 Thread lazaridis_com
Georg Brandl wrote: > lazaridis_com wrote: > > Georg Brandl wrote: > >> lazaridis_com wrote: > >> > I would like to fulfill the following task: > >> > > >> > The construct: > >> > > >> > if __name__ == '__main__': > >> > > >> > should be changed to something like: > >> > > >> > if identifier.name =

Re: SQLObject or SQLAlchemy?

2006-09-05 Thread lazaridis_com
Bruno Desthuilliers wrote: > lazaridis_com wrote: > > Ο/Η Bruno Desthuilliers έγραψε: > >> lazaridis_com wrote: > >>> John Salerno wrote: > Are there any major differences between these two? It seems they can > both be used with TurboGears, and SQLAlchemy with Django. I'm just > wond

Re: CONSTRUCT -

2006-09-05 Thread Steve Holden
lazaridis_com wrote: > Georg Brandl wrote: > >>lazaridis_com wrote: >> >>>Georg Brandl wrote: >>> lazaridis_com wrote: >I would like to fulfill the following task: > >The construct: > >if __name__ == '__main__': > >should be changed to something like: > >>>

Re: HTTP Server Root Folder

2006-09-05 Thread Steve Holden
placid wrote: > Hi All, > > I have this BaseHTTPServer.HTTPServer that is located at C:\ (im on > Windows XP), when i run the program (httpserver.pyw) from the Run > Dialog as "C:\httpserver.pyw" the root folder ("\") for http server is > C:\, but when i add an entry to Registry Run so that it run

Finding name of variable?

2006-09-05 Thread Gardner Pomper
Hi,I am writing a specialized xml serialization function, and I would like to be able to serialize the value of a simple object with the object name as the tag. For example:   first_name = 'Fred'  sXML = my_xml_serializer(first_name) should result in sXML = 'Fred'I can get class and field names, bu

Re: Testing a website with HTTPS login and cookies

2006-09-05 Thread Sandra-24
Hari Sekhon wrote: > If anybody knows how to do this could they please give me a quick > pointer and tell me what libraries I need to go read up on? > One word. Selenium. -Sandra -- http://mail.python.org/mailman/listinfo/python-list

Re: Finding name of variable?

2006-09-05 Thread Gonzalo HIGUERA DÍAZ
2006-09-05 15:49 +0200, Gardner Pomper <[EMAIL PROTECTED]>: > Hi, > > I am writing a specialized xml serialization function, and I would like to > be able to serialize the value of a simple object with the object name as > the tag. For example: > >first_name = 'Fred' > > sXML = my_xml_seriali

Re: Test for number?

2006-09-05 Thread Neil Cerutti
On 2006-09-04, George Sakkis <[EMAIL PROTECTED]> wrote: > Dr. Pastor wrote: >> In the following code I would like to ascertain that x has/is >> a number. What the simplest TEST should be? (Could not find >> good example yet.) >> --- >> x=raw_input('\nType a number from 1 to 20') >> if TEST : >>

Re: threading support in python

2006-09-05 Thread Sandra-24
Steve Holden wrote: > Quite right too. You haven't even sacrificed a chicken yet ... Hopefully we don't get to that point. > You write as though the GIL was invented to get in the programmer's way, > which is quite wrong. It's there to avoid deep problems with thread > interaction. Languages tha

Re: OS X and Python - wxPython has forced a rehash of my approach

2006-09-05 Thread Kevin Walzer
hiaips wrote: > > Outdated??? It's Python 2.4.3 (and they already have a build for > 2.5rc1), so I'm not sure what you mean. > There have been a couple of releases of Python 2.4.3 "universal" on OS X.The first one was quietly posted for download from one of the developers' .Mac account, and an

Re: OS X and Python - wxPython has forced a rehash of my approach

2006-09-05 Thread Kevin Walzer
hiaips wrote: > > Outdated??? It's Python 2.4.3 (and they already have a build for > 2.5rc1), so I'm not sure what you mean. > Also, for what it's worth, I strongly recommend the packages hosted at pythonmac.org; these are built and tested by the core MacPython developers. -- Kevin Walzer Poe

Re: threading support in python

2006-09-05 Thread Bryan Olson
bayerj wrote: > Then you can use POSH [1] to share data and objects. Do you use POSH? How well does it work with current Python? Any major gotchas? I think POSH looks like a great thing to have, but the latest version is an alpha from over three years ago. Also, it only runs on *nix systems. -

Re: are there any lib for receive hotmail ?

2006-09-05 Thread 叮叮当当
poplib cannot receive hotmail. Paul McGuire wrote: > "" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > thanks. > > > > poplib -- http://mail.python.org/mailman/listinfo/python-list

Re: threading support in python

2006-09-05 Thread skip
Sandra> However, I don't expect that the GIL can be safely removed from Sandra> CPython. It was removed at one point in the dim, dark past (circa Python 1.4) on an experimental basis. Aside from the huge amount of work, it resulted in significantly lower performance for single-threaded a

Re: threading support in python

2006-09-05 Thread Sandra-24
Felipe Almeida Lessa wrote: > 4 Sep 2006 19:19:24 -0700, Sandra-24 <[EMAIL PROTECTED]>: > > If there was a mod_dotnet I wouldn't be using > > CPython anymore. > > I guess you won't be using then: http://www.mono-project.com/Mod_mono > Oh I'm aware of that, but it's not what I'm looking for. Mod_mon

Re: threading support in python

2006-09-05 Thread km
Hi all, > And yet, Java programmers manage to write threaded applications all > day long without getting bitten (once they're used to the issues), > despite usually being less skilled than Python programmers ;-). > These days, even semi-entry-level consumer laptop computers have dual > core CPU's,

Re: threading support in python

2006-09-05 Thread [EMAIL PROTECTED]
Sandra-24 wrote: > > You seem to be confused about the nature of multiple-process > > programming. > > > > If you're on a modern Unix/Linux platform and you have static read-only > > data, you can just read it in before forking and it'll be shared > > between the processes.. > > Not familiar with *

Re: threading support in python

2006-09-05 Thread Bryan Olson
Paul Rubin wrote: > "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: >> If it's read/write data or you're not on a Unix platform, you can use >> shared memory to shared it between many processes. >> >> Threads are way overused in modern multiexecution programming. The >> decision on whether to use

Re: threading support in python

2006-09-05 Thread Richard Brodie
"km" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I know many of my friends who did not choose python for obvious reasons > of the nature of thread execution in the presence of GIL which means > that one is wasting sophisticated hardware resources. It would probably be easier

Re: threading support in python

2006-09-05 Thread km
True, since smartness is a comparison, my friends who have chosen java over python for considerations of a true threading support in a language are smarter, which makes me a dumbo ! :-) KM On 9/5/06, Richard Brodie <[EMAIL PROTECTED]> wrote: > > "km" <[EMAIL PROTECTED]> wrote in message > news:[

Re: are there any lib for receive hotmail ?

2006-09-05 Thread Diez B. Roggisch
叮叮当当 wrote: > poplib cannot receive hotmail. Not true: http://www.macworld.com/news/2002/06/18/hotmail/index.php You need to pay for that, but they do offer pop. And receiving hotmail (or any outher webmail) using scraping techniques is a daunting task, to say the least - you should forget abo

Re: are there any lib for receive hotmail ?

2006-09-05 Thread Tim Chase
> And receiving hotmail (or any outher webmail) using scraping > techniques is a daunting task, to say the least - you should > forget about that IMHO. There's a perl project called "gotmail" that will do the scraping to dump in a local mailbox file (I don't remember whether it's MH or mbox form

Re: threading support in python

2006-09-05 Thread Richard Brodie
"km" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > True, since smartness is a comparison, my friends who have chosen java > over python for considerations of a true threading support in a > language are smarter, which makes me a dumbo ! :-) No, but I think you making unwise assu

Re: newbe question about removing items from one file to another file

2006-09-05 Thread Anthra Norell
You don't need the setup command. Just place SE.py and SEL.py into a path where the import can find it. Also make sure SE.py and SEL.py are spelled exactly like this. Linux requires the extension to be lower case, as I was myself made aware of by an alert person who was also experiencing import p

Re: are there any lib for receive hotmail ?

2006-09-05 Thread Hari Sekhon
Tim Chase wrote: And receiving hotmail (or any outher webmail) using scraping techniques is a daunting task, to say the least - you should forget about that IMHO. There's a perl project called "gotmail" that will do the scraping to dump in a local mailbox file (I don't remem

Re: threading support in python

2006-09-05 Thread Steve Holden
[EMAIL PROTECTED] wrote: > Sandra> However, I don't expect that the GIL can be safely removed from > Sandra> CPython. > > It was removed at one point in the dim, dark past (circa Python 1.4) on an > experimental basis. Aside from the huge amount of work, it resulted in > significantly low

Re: threading support in python

2006-09-05 Thread skip
Steve> Given the effort that GIL-removal would take, I'm beginning to Steve> wonder if PyPy doesn't offer a better way forward than CPython, Steve> in terms of execution speed improvements returned per Steve> developer-hour. How about execution speed improvements per hour of discu

Re: threading support in python

2006-09-05 Thread skip
Richard> It would probably be easier to find smarter friends than to Richard> remove the GIL from Python. And if the friends you find are smart enough, they can remove the GIL for you! Skip -- http://mail.python.org/mailman/listinfo/python-list

Re: How ahead are you guys in the (Python) real world?

2006-09-05 Thread skip
(ack! forgot to push the send button several days ago - hopefully this isn't woefully out-of-date now...) neil> Based on the number of people still using 2.3, it looks to me like neil> there would be interest. aahz> Yes; the real question is whether there is enough labor available

Re: threading support in python

2006-09-05 Thread [EMAIL PROTECTED]
Bryan Olson wrote: > I think it's even worse. The standard Python library offers > shared memory, but not cross-process locks. File locks are supported by the standard library (at least on Unix, I've not tried on Windows). They work cross-process and are a normal method of interprocess locking ev

Re: threading support in python

2006-09-05 Thread Andre Meyer
This seems to be an important issue and fit for discussion in the context of Py3k. What is Guido's opinion?As a developer of a multi-threaded system I would like to know more about these issues, so it's no time wasted for me... ;-) regardsAndreOn 9/5/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Re: Is it just me, or is Sqlite3 goofy?

2006-09-05 Thread [EMAIL PROTECTED]
Marc 'BlackJack' Rintsch wrote: > In <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] wrote: > > > But watch this: being clueless (but not stupid) is a gift I have > > for troubleshooting. I tried (incorrectly) to insert another record: > > > > cur.execute("insert into book(title, author, published) value

Re: why have to "from compiler import *"

2006-09-05 Thread Paddy
Duncan Booth wrote: > "Paddy" <[EMAIL PROTECTED]> wrote: > > > > > import module1 > > # namespace becomes: > >\-/ > > |module1.moduleFunc1 | > > |module1.moduleClass1: | > > | class1Method1 | > > | class1Method2 | > > |module1.moduleFu

Re: threading support in python

2006-09-05 Thread Lawrence Oluyede
Sandra-24 <[EMAIL PROTECTED]> wrote: > Oh I'm aware of that, but it's not what I'm looking for. Mod_mono just > lets you run ASP.NET on Apache. I'd much rather use Python :) Now if > there was a way to run IronPython on Apache I'd be interested. Take a look here: http://lists.ironpython.com/piper

Re: code for the graphics window?

2006-09-05 Thread [EMAIL PROTECTED]
On Saturday 02 September 2006 11:41, you wrote: > [EMAIL PROTECTED] wrote: > > Hi. I'm new to Python . . .very new. I was just wondering, once I've > > written a program that opens the graphics window and I've got some > > things going on in the grahics window, how do I display text in the > > gra

Re: threading support in python

2006-09-05 Thread Lawrence Oluyede
Lawrence Oluyede <[EMAIL PROTECTED]> wrote: > Take a look here: > http://lists.ironpython.com/pipermail/users-ironpython.com/2006-March/00 > 2049.html > and this thread: > http://www.mail-archive.com/[email protected]/msg01826.html Also this: http://www.codeproject.com/useritems/ipaspnet

Re: threading support in python

2006-09-05 Thread skip
Andre> This seems to be an important issue and fit for discussion in the Andre> context of Py3k. What is Guido's opinion? Dunno. I've never tried channeling Guido before. You'd have to ask him. Well, maybe Tim Peters will know. He channels Guido on a fairly regular basis. Skip -- htt

Re: Test for number?

2006-09-05 Thread George Sakkis
Neil Cerutti wrote: > On 2006-09-04, George Sakkis <[EMAIL PROTECTED]> wrote: > > x=raw_input('\nType a number from 1 to 20') > > try: > > x = int(x) > > if x<1 or x>20: raise ValueError() > > except ValueError: > > Do_B > > else: > > Do_A > > > > If you want to distinguish between

Re: Is it just me, or is Sqlite3 goofy?

2006-09-05 Thread skip
>> I think your whole experience is based on it. >> But shouldn't a significant feature like that be explained in the >> Python manuals? Why should I go dig up Sqlite FAQs to learn what >> should have been in the manuals? I don't know, but I will take a stab at a plausible explan

accepting cStringIO in an extension

2006-09-05 Thread garyjefferson123
I want to accept a cStringIO object in a function in a python extension module. How do I do this? e.g., static PyObject *myfunc(PyObject *self, PyObject *args) { PyObject *cstringio; if (!PyArg_ParseTuple(args, "O:cStringIO", &cstringio)) { PyErr_SetString(PyExc_ValueError,

Programming isn't dangerous...

2006-09-05 Thread Aahz
http://www.sfgate.com/cgi-bin/article.cgi?file=/news/archive/2006/09/05/national/a082618D20.DTL -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ I support the RKAB -- http://mail.python.org/mailman/listinfo/python-list

New 2.5 release date: September 19

2006-09-05 Thread John Salerno
Just in case you didn't notice. -- http://mail.python.org/mailman/listinfo/python-list

threading

2006-09-05 Thread matt westerburg
From what I understand in order to guarantee thread safety Python implements an Global Interpreter Lock. Which removes the concurrency, but provides thread safety. Is Python 2.4 still like this and if I used Python to handle rpc requests and responses would it be efficient in a multithreaded sense.

Re: Programming isn't dangerous...

2006-09-05 Thread tjreedy
"Aahz" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > http://www.sfgate.com/cgi-bin/article.cgi?file=/news/archive/2006/09/05/national/a082618D20.DTL He should have been practicing pair pet care ;-) tjr -- http://mail.python.org/mailman/listinfo/python-list

a Pywin Outlook adress Book Question

2006-09-05 Thread Kai Mayfarth
Hello Ist there a way to search a Adressbook over Python for a special contact. I know how i read and write a contact, but know i have to search over Python for some contacts, because the adress book has know over 1700 entrys, and it tooks a long time to get them all over the Com object to pyth

Off topic

2006-09-05 Thread tjaybowles
- Make Up to $50K - This was my ad a month ago. I didn't make $50k, but I made $14,565, that's $14,555, more than I invested into this little game. I can't believe it. I'm still running the ads and sending emails so maybe next month I will make $50,000. This is so much fun!!! My wife thou

Getting text into the copy-paste buffer...

2006-09-05 Thread David Hirschfield
Strange request, but is there any way to get text into the linux copy-paste buffer from a python script ? I know the standard python libraries won't have that functionality (except as a side-effect, perhaps?), but is there a simple trick that would do it on linux? A command line to get text int

Re: Test for number?

2006-09-05 Thread Neil Cerutti
On 2006-09-05, George Sakkis <[EMAIL PROTECTED]> wrote: > Neil Cerutti wrote: > >> On 2006-09-04, George Sakkis <[EMAIL PROTECTED]> wrote: >> > x=raw_input('\nType a number from 1 to 20') >> > try: >> > x = int(x) >> > if x<1 or x>20: raise ValueError() >> > except ValueError: >> > Do_B

Re: Programming isn't dangerous...

2006-09-05 Thread utabintarbo
Darwinism in action! :-P -- http://mail.python.org/mailman/listinfo/python-list

Re: threading

2006-09-05 Thread skip
matt> From what I understand in order to guarantee thread safety Python matt> implements an Global Interpreter Lock. Which removes the matt> concurrency, but provides thread safety. Is Python 2.4 still like matt> this and if I used Python to handle rpc requests and responses ma

Re: threading support in python

2006-09-05 Thread Sandra-24
[EMAIL PROTECTED] wrote: > You can do the same on Windows if you use CreateProcessEx to create the > new processes and pass a NULL SectionHandle. I don't think this helps > in your case, but I was correcting your impression that "you'd have to > physically double the computer's memory for a dual c

Re: Add NTLM proxy authentication to urllib2

2006-09-05 Thread Jarek Zgoda
looping napisał(a): > I have to make internet connections through an ISA proxy server that > use NTLM or Kerberos authorization method. > I've found a program in python called ntlmaps that act like a proxy and > could make the NTLM authentication, but you have to run it and make all > your connect

Re: Getting text into the copy-paste buffer...

2006-09-05 Thread kdart
David Hirschfield wrote: > Strange request, but is there any way to get text into the linux > copy-paste buffer from a python script ? > > I know the standard python libraries won't have that functionality > (except as a side-effect, perhaps?), but is there a simple trick that > would do it on lin

Re: Is it just me, or is Sqlite3 goofy?

2006-09-05 Thread [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote: > >> I think your whole experience is based on it. > > >> But shouldn't a significant feature like that be explained in the > >> Python manuals? Why should I go dig up Sqlite FAQs to learn what > >> should have been in the manuals? > > I don't know, but I will

Looking for CGI program to browse/manage/process files thru the web

2006-09-05 Thread vbfoobar
Hello, I am looking for Python code no other language wanted) that I couls use/reuse/adapt to implement (via CGI, no specific app server wanted) a web-based app that would offer the following functionality: - browse a file hierarchy perhaps dealing with access rights check - classical file manag

Re: threading support in python

2006-09-05 Thread Paul Rubin
[EMAIL PROTECTED] writes: > It was removed at one point in the dim, dark past (circa Python 1.4) on an > experimental basis. Aside from the huge amount of work, it resulted in > significantly lower performance for single-threaded apps (that is, the > common case). That's probably because they had

Re: Is it just me, or is Sqlite3 goofy?

2006-09-05 Thread skip
>> What I'll do is re-format my rant, suggest how *I* would do the >> documentation, fix the errors I found in the examples and send it off >> to the Python bug tracking as suggested in the manuals. >> How's that as a plan? That's fine. Reformat your rant as a documentation bug

Re: Better way to replace/remove characters in a list of strings.

2006-09-05 Thread Chris Brat
Hi Wouldn't this only cause problems with large lists - for once off scripts with small lists it doesn't seem like a big issue to me. Regards, Chris Bruno Desthuilliers wrote: > Chris Brat a écrit : > > Thanks, thats exactly what I was looking for - very neat. > > > Just note that both solutions

[ANN] IronPython 1.0 released today!

2006-09-05 Thread Jim Hugunin
I'm extremely happy to announce that we have released IronPython 1.0 today! http://www.codeplex.com/IronPython I started work on IronPython almost 3 years ago. My initial motivation for the project was to understand all of the reports that I read on the web claiming that the Common Language Ru

Re: Getting text into the copy-paste buffer...

2006-09-05 Thread David Hirschfield
This is good info...but I'm looking for the opposite direction: I want to place some arbitrary command output text into the clipboard, not get the current selection out of the clipboard. Any help on that end? -Dave kdart wrote: David Hirschfield wrote: Strange request, but is the

Re: Getting text into the copy-paste buffer...

2006-09-05 Thread David Hirschfield
Ah, indeed it does...my distro didn't have it, but a quick download and compile and there it is. Thanks a bunch, -Dave Keith Dart wrote: On 9/5/06, David Hirschfield <[EMAIL PROTECTED]> wrote: This is good info...but I'm looking for the opposite direction: I want to place so

Removing from a List in Place

2006-09-05 Thread Gregory Piñero
I'm going to assume that it's supposed to work like this, but could someone tell me the reasoning behind it? I.E. why is 3 skipped? >>> alist=[1,2,3] >>> for item in alist: ... print item ... if item==2: ... alist.remove(item) ... 1 2 >>> Bonus Question: Can we m

Re: threading support in python

2006-09-05 Thread Jean-Paul Calderone
On 05 Sep 2006 13:19:03 -0700, Paul Rubin <"http://phr.cx"@nospam.invalid> wrote: >[EMAIL PROTECTED] writes: >> It was removed at one point in the dim, dark past (circa Python 1.4) on an >> experimental basis. Aside from the huge amount of work, it resulted in >> significantly lower performance f

Re: [IronPython] [ANN] IronPython 1.0 released today!

2006-09-05 Thread M. David Peterson
Congratulations, Jim!  Truly and amazing vision you and your development staff have brought into fruition :)From my recent post to the O'Reilly Windows DevCenter,ref: http://www.oreillynet.com/windows/blog/2006/09/jim_huguninmsft_announce_ironp.html Congratulations are in order to Jim Hugunin, Din

Re: Removing from a List in Place

2006-09-05 Thread Tim Williams
On 05/09/06, Gregory Piñero <[EMAIL PROTECTED]> wrote:> I'm going to assume that it's supposed to work like this, but could > someone tell me the reasoning behind it? I.E. why is 3 skipped? > > >>> alist=[1,2,3] > >>> for item in alist: > print item > if item==2: >

Re: Removing from a List in Place

2006-09-05 Thread Tim Williams
On 05/09/06, Tim Williams <[EMAIL PROTECTED]> wrote: > On 05/09/06, Gregory Piñero <[EMAIL PROTECTED]> wrote:> I'm going > to assume that it's supposed to work like this, but could > > someone tell me the reasoning behind it? I.E. why is 3 skipped? > > > > >>> alist=[1,2,3] > > >>> for item in ali

Re: [ANN] IronPython 1.0 released today!

2006-09-05 Thread M�ta-MCI
Félicitations. Et chapeau pour votre travail. Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

any portable way to print? (and i mean on a printer)

2006-09-05 Thread Liquid Snake
I think my question is clear.., is there any way to print any text on a portable way?..., and actually, i don't know how to print at all.., just give me some pointers, name a module, and i can investigate for myself.. sorry for my english, thanks in advance.. ps: i prefer a Standard Library module

Re: Higher-level OpenGL modules

2006-09-05 Thread [EMAIL PROTECTED]
http://pyopengl.sourceforge.net/ I wouldn't begin to tell you how to install this.. Looks like russian roulette with virus since the .dll's are not available and are not linked from the site but are available from lots of places in the google search. Looks like there is a copyright that might pre

Re: Removing from a List in Place

2006-09-05 Thread Gregory Piñero
On 9/5/06, Tim Williams <[EMAIL PROTECTED]> wrote: > > It does already, you just haven't grasped list fully yet :):) > > > > when you remove 2 from alist, the list becomes length 2, there is no > > longer a 3rd item in the list to iterate over. > > > > Try this > > > > > >>> alist=[1 ,2 ,3, 4] >

Re: Better way to replace/remove characters in a list of strings.

2006-09-05 Thread George Sakkis
Chris Brat wrote: > Hi > > Wouldn't this only cause problems with large lists - for once off > scripts with small lists it doesn't seem like a big issue to me. > > Regards, > Chris > > Bruno Desthuilliers wrote: > > Chris Brat a écrit : > > > Thanks, thats exactly what I was looking for - very nea

Re: Removing from a List in Place

2006-09-05 Thread Tim Williams
On 05/09/06, Gregory Piñero <[EMAIL PROTECTED]> wrote: > On 9/5/06, Tim Williams <[EMAIL PROTECTED]> wrote: > > > It does already, you just haven't grasped list fully yet :):) > > > > > > when you remove 2 from alist, the list becomes length 2, there is no > > > longer a 3rd item in the list to i

Re: Removing from a List in Place

2006-09-05 Thread bayerj
> I'm going to assume that it's supposed to work like this, but could > someone tell me the reasoning behind it? I.E. why is 3 skipped? Because: >>> alist[2] 3 You are removing the third item, not the second. -- http://mail.python.org/mailman/listinfo/python-list

=?iso-8859-1?q?Re:_How_to_allow_special_character's_like_=EF, =F9, acute_e_etc...?=

2006-09-05 Thread John Machin
sonald wrote: > Dear All, > I am working on a module that validates the provided CSV data in a text > format, which must be in a predefined format. > We check for the : > [snip] > > 3. valid-text expressions, > Example: > ValidText('Minor', '[yYnN]') > > Parameters: >

Re: Removing from a List in Place

2006-09-05 Thread Tim Williams
On 5 Sep 2006 16:05:36 -0700, bayerj <[EMAIL PROTECTED]> wrote: > > I'm going to assume that it's supposed to work like this, but could > > someone tell me the reasoning behind it? I.E. why is 3 skipped? > > Because: > > >>> alist[2] > 3 > > You are removing the third item, not the second. > Actu

[Article] OpenOffice.org and Python

2006-09-05 Thread Sybren Stuvel
Hi folks! The two small snippets I wrote two days ago were well received. With the danger of being called a hero I proceded and wrote a proper article about OpenOffice.org and Python. It contains the following sections: * Preparation * Gaining access to a document * Getting to the d

  1   2   >