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

2006-09-05 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, George Sakkis wrote: > Chris Brat wrote: > >> 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. > > The extra memory to allocate the new list is usually a minor issue; the > important one i

Re: Dice gen and analyser script for RPGs: comments sought

2006-09-05 Thread Paul Rubin
Richard Buckle <[EMAIL PROTECTED]> writes: > Comments, insights and overall evaluations are especially welcomed re: > * Cleanliness of design > * Pythonicity of design > * Pythonicity of code > * Efficiency of code > * Quality of docstrings > * Conformance with modern docstring standards > * Confor

Re: IDE

2006-09-05 Thread kishimo
I recommend you Stani's Python Editor (SPE) which is available for Windows, Linux and Mac. http://www.stani.be/python/spe A short tutorial about SPE can be found at: http://www.serpia.org/spe good luck -- http://mail.python.org/mailman/listinfo/python-list

Re: How to get all the file of a oppoint directory from a FTP

2006-09-05 Thread snowf
John Machin wrote: > snowf wrote: > > There are no such a method using to download a whole directory in the > > lib of ' ftplib '. > > thanks for anybody's help! > > So you'll have to lash one up: > > (untested) > > Firstly, > alist = [] > ftpobj.retrlines('list', alist.append) > should

IDE

2006-09-05 Thread Aravind
hi, i am a newbie to python but used with some developement in c++ and VB. Can anyone suggest me a good IDE for python for developing apps...? i've seen Qt designer.. some of my friends said it can be used for python also but they r not sure. pls help... thanks in advance -- http://mail.p

Re: How to get all the file of a oppoint directory from a FTP

2006-09-05 Thread John Machin
snowf wrote: > There are no such a method using to download a whole directory in the > lib of ' ftplib '. > thanks for anybody's help! So you'll have to lash one up: (untested) Firstly, alist = [] ftpobj.retrlines('list', alist.append) should get you a list of filenames. Secondly,

Re: IronPython on Mono howto

2006-09-05 Thread alex23
[EMAIL PROTECTED] wrote: > Okay, here we go: > 1. Download IronPython Kudos for taking the time! -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode string handling problem

2006-09-05 Thread John Machin
Richard Schulman wrote: [big snip] > > The BOM is little-endian, I believe. Correct. > >in_file = codecs.open(filepath, mode, encoding="utf16???") > > Right you are. Here is the output produced by so doing: You don't say which encoding you used, but I guess that you used utf_16_le. > > > u'

How to get all the file of a oppoint directory from a FTP

2006-09-05 Thread snowf
There are no such a method using to download a whole directory in the lib of ' ftplib '. thanks for anybody's help! -- http://mail.python.org/mailman/listinfo/python-list

Re: [Article] OpenOffice.org and Python

2006-09-05 Thread MC
Thanks! But: - and Python 2.4.x? - I have Python 2.4 and then "embbed Python 2.3 of OOo" ; how install some things in this last Python? I dream to call Pywin32 from OOo... - when I drive OOo from Python, via COM/Ole-automation, many things not run (getStruct...); no solution? -- @-salut

Re: Question about urllib and posting to an external script

2006-09-05 Thread alex23
[EMAIL PROTECTED] wrote: > all i want to do is post this form: > HTML Code: > > action='http://login.myspace.com/index.cfm?fuseaction=login.process&'> > name="password" > Heya, It might help to use one of the higher-level abstractions for dealing with the web. twill (http://twill.idyll.org/)

Re: unit testing failure makes no sense

2006-09-05 Thread Fernando Perez
[EMAIL PROTECTED] wrote: > I have some unit testing code in one of my modules that appears to > run without an error, but the unit test fails anyhow. Have a look at > the output below -- the TestResult seems to have no errors and no > failures, yet I get a system exit. unittest.main() ALWAYS rais

Re: SQLObject or SQLAlchemy?

2006-09-05 Thread alex23
lazaridis_com wrote: > The "persist case" evaluates python persistency systems (or > mechanisms), and will show my personal preference: Do you feel that evaluating-for-evaluation's-sake produces a more measured understanding of the value of a product than that taken from its use in, say, actual de

Re: Unicode string handling problem

2006-09-05 Thread Richard Schulman
On Wed, 06 Sep 2006 03:55:18 GMT, Richard Schulman <[EMAIL PROTECTED]> wrote: >...I'm now using the codec with >improved results, but am still puzzled as to how to handle the row >termination of \n\n, which is being interpreted as two rows instead of >one. Of course, I could do a double read on e

Re: Unicode string handling problem

2006-09-05 Thread Richard Schulman
On 5 Sep 2006 19:50:27 -0700, "John Roth" <[EMAIL PROTECTED]> wrote: >> [T]he file I actually want to process is Unicode (utf-16 encoding). >>... >> in_file = open("c:\\pythonapps\\in-graf1.my","rU") >>... John Roth: >You're not detecting the file encoding and then >using it in the open statement

Re: CONSTRUCT -

2006-09-05 Thread Simon Forman
Fredrik Lundh wrote: > Simon Forman wrote: > > > I'm sorry, your post makes very little sense. > > you're somewhat new here, right ? ;-) > > Yah, I've been posting here about three months now. Why, did I miss something? :-) Peace, ~Simon -- http://mail.python.org/mailman/listinfo/python-li

Re: Unicode string handling problem

2006-09-05 Thread Richard Schulman
Thanks for your excellent debugging suggestions, John. See below for my follow-up: Richard Schulman: >> The following program fragment works correctly with an ascii input >> file. >> >> But the file I actually want to process is Unicode (utf-16 encoding). >> The file must be Unicode rather than AS

Re: EVIDENCE: 911 was CONTROLLED DEMOLITION to make muslims 2nd class

2006-09-05 Thread Blair P. Houghton
>thermate So the guy found burned aluminum on iron. That doesn't mean there were military-grade incendiary devices anywhere near the WTC. You idiot. --Blair -- http://mail.python.org/mailman/listinfo/python-list

Re: EVIDENCE: 911 was CONTROLLED DEMOLITION to make muslims 2nd class

2006-09-05 Thread CloudStrife
Thanks thermate but i guess this is a wrong place to post this. this is a emacs help community and this by no means wat so ever is related to emcas for that matter gnu. The post is good but would be more appreciated if it was in the correct place. Cloud [EMAIL PROTECTED] wrote: > EVIDENCE: 911 was

Re: IronPython 1.0 released today!

2006-09-05 Thread sanxiyn
[EMAIL PROTECTED] wrote: > > For those of us who have never used IronPython or Mono, is there a quick > start document laying about somewhere? It wasn't clear to me where to even > look. For example, is Mono == DotGnu? I scribbled a rough howto. Hope it help. Mono and DotGNU are two different p

IronPython on Mono howto

2006-09-05 Thread sanxiyn
Skip wrote: For those of us who have never used IronPython or Mono, is there a quick start document laying about somewhere? It wasn't clear to me where to even look. Okay, here we go: 1. Download IronPython Go to http://www.codeplex.com/IronPython. Click Releases tab. Click IronPython-1.0-Bin.z

Re: Unicode string handling problem

2006-09-05 Thread John Roth
Richard Schulman wrote: > The following program fragment works correctly with an ascii input > file. > > But the file I actually want to process is Unicode (utf-16 encoding). > The file must be Unicode rather than ASCII or Latin-1 because it > contains mixed Chinese and English characters. > > Whe

Question about urllib and posting to an external script

2006-09-05 Thread evanpmeth
I have tried multiple ways of posting information to a website and have failed. I have seen this problem on other forums can someone explain or point me to information on how POST works through urllib an different broweser (what is the difference). my first attempt was out of the docs: Code: imp

Re: threading support in python

2006-09-05 Thread Paul Rubin
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > > 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 n

Re: Using "Content-Disposition" in HTTP download

2006-09-05 Thread dclist
Justin Ezequiel wrote: > [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? Thank you kindly. -- http://mail.python.org/mailman/lis

Re: IronPython 1.0 released today!

2006-09-05 Thread Ray
Jim Hugunin wrote: > I'm extremely happy to announce that we have released IronPython 1.0 today! > http://www.codeplex.com/IronPython > Thanks - Jim Hugunin (for the IronPython Team) Congratulations I've been following IronPython too since you announced it years back--it's really exciting

Re: IronPython 1.0 released today!

2006-09-05 Thread skip
sanxiyn> Yes, it will run with Mono 1.1.17 or later out of the box with sanxiyn> zero problems. For those of us who have never used IronPython or Mono, is there a quick start document laying about somewhere? It wasn't clear to me where to even look. For example, is Mono == DotGnu? (I'm

Searching for python eng for Mobile Gaming: Limbo41414

2006-09-05 Thread [EMAIL PROTECTED]
Hi Group! Jessie here, Head of People for Limbo Mobile (www.41414.com); mobile gaming company based in Burlingame, Ca. We are looking for a python developer full-time to add to our team. Our perfect dev has a couple of years experience, and is interested in working within a small team. Our staff

Re: IronPython 1.0 released today!

2006-09-05 Thread sanxiyn
Neal Becker wrote: > Will it run with mono? Yes, it will run with Mono 1.1.17 or later out of the box with zero problems. -- http://mail.python.org/mailman/listinfo/python-list

Re: threading support in python

2006-09-05 Thread Paul Rubin
Jean-Paul Calderone <[EMAIL PROTECTED]> writes: > >which more explicitly shows the semantics actually desired. Not that > >"huge" a benefit as far as I can tell. Lisp programmers have gotten > >along fine without it for 40+ years... > > Uh yea. No lisp programmer has ever written a with-* funct

Re: Unicode string handling problem (revised)

2006-09-05 Thread John Machin
Richard Schulman wrote: [snip] > in_line = in_file.readline() [snip] We'd already deduced that that line was incorrectly published. Please don't start new threads like this; if you want to make a correction, do a couple-of-lines reply to your original message. Now please leave this new thread

Unicode string handling problem (revised)

2006-09-05 Thread Richard Schulman
The appended program fragment works correctly with an ascii input file. But the file I actually want to process is Unicode (utf-16 encoding). This file must be Unicode rather than ASCII or Latin-1 because it contains mixed Chinese and English characters. When I run the program I get an attribute_c

Re: Unicode string handling problem

2006-09-05 Thread John Machin
Richard Schulman wrote: > The following program fragment works correctly with an ascii input > file. > > But the file I actually want to process is Unicode (utf-16 encoding). > The file must be Unicode rather than ASCII or Latin-1 because it > contains mixed Chinese and English characters. > > When

Re: threading support in python

2006-09-05 Thread Jean-Paul Calderone
On 05 Sep 2006 17:31:11 -0700, Paul Rubin <"http://phr.cx"@nospam.invalid> wrote: > > def func(filename): > with open(filename) as f: >do_something_with(f) > # f definitely gets closed when the "with" block exits > >which more explicitly shows the semantics actually desired. Not

nose, doctest, and module names in subpackages

2006-09-05 Thread davidlmontgomery
I'm trying to use both nosetests and doctest with the tests pulled out into a separate file. My problem is that it seems that I need to use different import statements depending on from where I run the tests. Here's my directory structure: /dir __init__.py /sub __init__.py

Re: [ANN] IronPython 1.0 released today!

2006-09-05 Thread Neal Becker
Will it run with mono? -- http://mail.python.org/mailman/listinfo/python-list

Re: Higher-level OpenGL modules

2006-09-05 Thread Felipe Almeida Lessa
5 Sep 2006 03:44:47 -0700, Leon <[EMAIL PROTECTED]>: > 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 st

Re: threading support in python

2006-09-05 Thread Paul Rubin
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > Having memory protection is superior to not having it--OS designers > spent years implementing it, why would you toss out a fair chunk of it? > Being explicit about what you're sharing is generally better than not. Part of the win of programming i

EVIDENCE: 911 was CONTROLLED DEMOLITION to make muslims 2nd class

2006-09-05 Thread thermate
EVIDENCE: 911 was CONTROLLED DEMOLITION to make muslims 2nd class We have now video evidence that 911 was an INSIDE JOB like the USS Liberty by ELEMENTS OF US GOVERNMENT. Dont trust me Go and watch the videos on youtube.com and video.google.com .. THEY ARE ... MY GOD ... GREAT VIDEOS

Unicode string handling problem

2006-09-05 Thread Richard Schulman
The following program fragment works correctly with an ascii input file. But the file I actually want to process is Unicode (utf-16 encoding). The file must be Unicode rather than ASCII or Latin-1 because it contains mixed Chinese and English characters. When I run the program below I get an attr

Re: newbie pipe question

2006-09-05 Thread Michael
[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 With a squid redirector (which is presumably what you mean) the

Re: replace deepest level of nested list

2006-09-05 Thread Michael Spencer
David Isaac wrote: > Thanks to both Roberto and George. > I had considered the recursive solution > but was worried about its efficiency. > I had not seen how to implement the numpy > solution, which looks pretty nice. > > Thanks! > Alan > > You could also use pyarray, which mimics numpy's index

Re: Removing from a List in Place

2006-09-05 Thread bearophileHUGS
Tim Williams: > You could also use a list comprehension for your case > >>> alist = [1 ,2 ,3] > >>> alist = [x for x in alist if x != 2] > >>> alist > [1, 3] The list comprehension filtering is the simpler and often the best solution. For memory-conscious people this is another possible (un-python

Re: Higher-level OpenGL modules

2006-09-05 Thread Leon
Thanks guys!, Ill look into your suggestions. I'm actually currently working directly with pyOpenGL, but hopefully Ill find something that would make me more efficient. I might end up writing a library myself. -- http://mail.python.org/mailman/listinfo/python-list

Re: Removing from a List in Place

2006-09-05 Thread John Machin
bayerj 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. This is incorrect. You may need to remind yourself that

Re: [ANN] IronPython 1.0 released today!

2006-09-05 Thread Sybren Stuvel
Jim Hugunin enlightened us with: > I'm extremely happy to announce that we have released IronPython 1.0 > today! http://www.codeplex.com/IronPython Congratulations! > We were also able to release IronPython publicly from Microsoft with > a BSD-style license. [...] Without the drive and input of

[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

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

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

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

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

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

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

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

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

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

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

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: 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: 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: 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: Programming isn't dangerous...

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

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

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

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

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

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

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.

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

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

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,

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

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

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

  1   2   >