[pygtk] ANNOUNCE: PyGTK 2.10.0

2006-09-05 Thread Johan Dahlin
I am pleased to announce version 2.10.0 of the Python bindings for GTK. The new release is available from ftp.gnome.org and its mirrors as soon as its synced correctly: http://ftp.gnome.org/pub/GNOME/sources/pygtk/2.10/ This is an unstable release and should be used with caution. Blurb:

ANNOUNCE: PyGObject 2.12.0

2006-09-05 Thread Johan Dahlin
I am pleased to announce version 2.12.0 of the Python bindings for GObject. The new release is available from ftp.gnome.org as and its mirrors as soon as its synced correctly: http://download.gnome.org/sources/pygobject/2.12/ What's new since PyGObject 2.11.3: - Install the html files even

Reminder: Michigan Python Users Group meeting on Thursday

2006-09-05 Thread Kevin Dangoor
This is a reminder of the upcoming michipug meeting. This is the first anniversary meeting of the Michigan Python Users Group! Thursday, September 7th at 7PM Our topics for this month include an SQLAlchemy Introduction by Mark Ramm and Steve Kryskalla talking about two of the new Python 2.5

itools 0.14.2 released

2006-09-05 Thread J. David Ibáñez
itools is a Python library, it groups a number of packages into a single meta-package for easier development and deployment: itools.catalogitools.http itools.uri itools.cmsitools.i18n itools.vfs itools.csvitools.ical

pyPgSQL / trac issues

2006-09-05 Thread Eric
Hey guys, Has anyone seen this error when installing trac? The problem seems related to pyPgSQL, which is installed. (Although I had to go in and add some headers to make it work) Templates directory [/usr/local/share/trac/templates] Creating and Initializing Project Failed to create

Re: What are super()'s semantics?

2006-09-05 Thread Mike Krell
Michele Simionato [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: Anyway, the MRO concept is documented here: http://www.python.org/download/releases/2.3/mro/ A very edifying document. Indeed, in Nutshell Alex M. mentions your paper at the end of his high-level explanation of the MRO.

Re: What are super()'s semantics?

2006-09-05 Thread Steve Holden
Maric Michaud wrote: Le lundi 04 septembre 2006 22:29, Carl Banks a écrit : BTW, __class__ is available to instances. (Were you thinking of __bases__?) hmmm, I guess they're not the same, are they ? but you're right, __bases__ and some others are class attributes not available in

Re: threading support in python

2006-09-05 Thread Steve Holden
Sandra-24 wrote: [Sandra understands shared memory] I would find an easier time, I think, porting mod_python to .net and leaving that GIL behind forever. Thankfully, I'm not considering such drastic measures - yet. Quite right too. You haven't even sacrificed a chicken yet ... Why on

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

2006-09-05 Thread Steve Holden
[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. [...] Ok, next issue, what the fuck are [varchar] and [decimal]? [..] It's still fuckin' goofy. Language ... regards Steve -- Steve

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 way

=?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 3, in ? File

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

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 test.

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 threaded

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 modulename imports the name modulename in the current namespace. Then modulename let you access all the names defined in modulename

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 =

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 stdin

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's

[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 Ruby

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

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 ascii art to show what

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 to

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

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

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 the

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 == '__main__': The term identifier

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 wondering what everyone's

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: if identifier.name == '__main__': The term identifier should

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 runs at boot

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 = 'first_nameFred/first_name'I can get class

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 =

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 : Do_A

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 that

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

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 Poetic

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

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_mono just

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, and

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 *nix

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 processes or

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 to

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:[EMAIL

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

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 format).

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

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

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

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 lower

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

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

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) values ('Dirk

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.moduleFunc2 |

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:

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 grahics

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/users@lists.ironpython.com/msg01826.html Also this: http://www.codeproject.com/useritems/ipaspnet.asp

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 --

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 x1 or x20: raise ValueError() except ValueError: Do_B else: Do_A If you want to distinguish between the two error cases

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 explanation.

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

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

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

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

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 x1 or x20: raise ValueError() except ValueError: Do_B else: Do_A If

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 matt

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 core,

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 connection

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 linux? A

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 take a stab at

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

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 to

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 report

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

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

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

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 make this

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 for

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,

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 alist: print

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

  1   2   >