Re: alternative to eclipse [ python ide AND cvs ]

2007-05-17 Thread Stargaming
yomgui schrieb: > Hi, > > Eclipse is just not really working on linux 64 bit > (I tried ubuntu and centos, it is freesing and crashing > and extremly slow) > > I use eclipse for python and cvs, what is "the" good alternative ? > > thanks > > yomgui Well, basically any editor that features plug

Re: alternative to eclipse [ python ide AND cvs ]

2007-05-17 Thread ZeD
yomgui wrote: > I use eclipse for python and cvs, what is "the" good alternative ? "the" good alternative, I dont know. But a good solution is eric3 (http://www.die-offenbachs.de/detlev/eric.html) -- Under construction -- http://mail.python.org/mailman/listinfo/python-list

Re: A new project.

2007-05-17 Thread Stargaming
[EMAIL PROTECTED] schrieb: > I am interested in organizing and taking part in a project that would > create a virtual world much like the one described in Neal > Stephenson's 'Snow Crash'. I'm not necessarily talking about > something 3d and I'm not talking about a game either. Like a MOO, > only

Re: How to convert a number to binary?

2007-05-17 Thread Ben Finney
Lyosha <[EMAIL PROTECTED]> writes: > On May 17, 4:40 pm, Michael Bentley <[EMAIL PROTECTED]> wrote: > > On May 17, 2007, at 6:33 PM, Lyosha wrote: > > > Is there an *easy* way to convert a number to binary? > > > > def to_base(number, base): > >[function definition] > > > > Hope this helps, >

Re: Interesting list Validity (True/False)

2007-05-17 Thread Gabriel Genellina
En Fri, 18 May 2007 01:48:29 -0300, Alex Martelli <[EMAIL PROTECTED]> escribió: > The gmpy designer, writer and maintainer (all in the singular -- that's > me) has NOT chosen anything of the sort. gmpy.mpz does implement > __int__ and __long__ -- but '%d'%somempzinstance chooses not to call > eit

Re: How to convert a number to binary?

2007-05-17 Thread Stargaming
Lyosha schrieb: > On May 17, 4:40 pm, Michael Bentley <[EMAIL PROTECTED]> wrote: > >>On May 17, 2007, at 6:33 PM, Lyosha wrote: >> >> >>>Converting binary to base 10 is easy: >>> >>int('', 2) >>> >>>255 >> >>>Converting base 10 number to hex or octal is easy: >>> >>oct(100) >>> >>>

Re: omissions in python docs?

2007-05-17 Thread Stargaming
Anthony Irwin wrote: > 7stud wrote: > >> On May 17, 7:23 pm, 7stud <[EMAIL PROTECTED]> wrote: >> >> By the way, have the python doc keepers ever visited the php docs? In >> my opinion, they are the best docs of any language I've encountered >> because users can add posts to any page in the docs t

Re: trouble with pyvtk

2007-05-17 Thread obaudys
On May 18, 2:22 pm, LokiDawg <[EMAIL PROTECTED]> wrote: > All is well until the last line (writing the file), after which the > following error occurs: > File "/usr/lib/python2.4/site-packages/pyvtk/common.py", line 140, > in get_datatype > if is_int(obj): return self.default_int > Runt

Re: List Moderator

2007-05-17 Thread Steve Holden
Dotan Cohen wrote: > Is this list not moderated? I'm really not interested in Britney > Spears boobs. All the spam on this list is from the same place, it > should be very easy to filter. > Is it a list, is it a newsgroup? No, it's c.l.py! In fact you could be reading this in a number of differen

Re: Lindsay Lohans TITS OOPSIE!!!

2007-05-17 Thread rishi pathak
Is there not a way to block these kind of mails Their quantity is increasing day by day On 17 May 2007 22:25:25 -0700, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: Download http://scargo.in Lindsay Lohans Tits free tits and videos! MUST CLICK! I mean see... . -- http://mail.python.org/mailma

Support you the best free forum!

2007-05-17 Thread forumgogo
also ,its a spam.but if you need,come on .thank you . support you the best free forum .www.forumgogo.com Free Unlimited Storage Free Unlimited Bandwidth Free Free Subdomain Free More Skins Free No annoying pop-ups Free 99% Uptime Free Daily Backups Free Fast, Friendly Tech Support So,what's that?

Lindsay Lohans TITS OOPSIE!!!

2007-05-17 Thread Goofy . throat2
Download http://scargo.in Lindsay Lohans Tits free tits and videos! MUST CLICK! I mean see... . -- http://mail.python.org/mailman/listinfo/python-list

List Moderator

2007-05-17 Thread Dotan Cohen
Is this list not moderated? I'm really not interested in Britney Spears boobs. All the spam on this list is from the same place, it should be very easy to filter. Dotan Cohen http://lyricslist.com/ http://what-is-what.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Interesting list Validity (True/False)

2007-05-17 Thread Alex Martelli
Gabriel Genellina <[EMAIL PROTECTED]> wrote: > import gmpy > a = 2**177149-1 > b = gmpy.mpz(2**177149-1) > a==b > > True > print '%d' % (b) > > > > Traceback (most recent call last): > > File "", line 1, in > > print '%d' % (b) > > TypeError: int argument required >

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread Martin v. Löwis
> Possibly. One Java program I remember had Japanese comments encoded > in Shift-JIS. Will Python be better here? Will it support the source > code encodings that programmers around the world expect? It's not a question of "will it". It does today, starting from Python 2.3. >> Another possible

Re: omissions in python docs?

2007-05-17 Thread Terry Reedy
"Anthony Irwin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | 7stud wrote: | > On May 17, 7:23 pm, 7stud <[EMAIL PROTECTED]> wrote: | > | > By the way, have the python doc keepers ever visited the php docs? In | > my opinion, they are the best docs of any language I've encountere

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread Martin v. Löwis
> Currently, in Python 2.5, identifiers are specified as starting with > an upper- or lowercase letter or underscore ('_') with the following > "characters" of the identifier also optionally being a numerical digit > ("0"..."9"). > > This current state seems easy to remember even if felt restricti

trouble with pyvtk

2007-05-17 Thread LokiDawg
Am trying to stumble through the demos for mayavi, after having set up PyVTK-0.4.74 (together with numpy, scipy, vtk, and mayavi. I'm trying to use pyvtk to generate a vtk dataset with the following: >> from Numeric import * >>> import scipy >>> import scipy.special >>> x = (arange(50.0)-25)/2.0 >

Re: Python Web Programming - looking for examples of solid high-traffic sites

2007-05-17 Thread Alex Martelli
Victor Kryukov <[EMAIL PROTECTED]> wrote: ... > And although http://www.python.org/about/quotes/ lists many big names > and wonderful examples, be want more details. E.g. our understanding > is that Google uses python mostly for internal web-sites, and > performance is far from perfect their. Yo

Re: omissions in python docs?

2007-05-17 Thread Anthony Irwin
7stud wrote: > On May 17, 7:23 pm, 7stud <[EMAIL PROTECTED]> wrote: > > By the way, have the python doc keepers ever visited the php docs? In > my opinion, they are the best docs of any language I've encountered > because users can add posts to any page in the docs to correct them or > post code

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread Gregor Horvath
[EMAIL PROTECTED] schrieb: > With the second one, all my standard tools would work fine. My user's > setups will work with it. And there's a much higher chance that all > the intervening systems will work with it. > Please fix your setup. This is the 21st Century. Unicode is the default in Pyt

Re: Python Newbie Suggestions

2007-05-17 Thread Gabriel Genellina
En Thu, 17 May 2007 22:21:05 -0300, Stephen Lewitowski <[EMAIL PROTECTED]> escribió: > Michael Tobis wrote: >> I think >> >> http://www.diveintopython.org/ >> >> would be very suitable for you. >> > > I disagree here. The site was last updated in 2004; its out of date. For > a newbie any materia

Re: omissions in python docs?

2007-05-17 Thread Gabriel Genellina
En Thu, 17 May 2007 21:13:49 -0300, John Machin <[EMAIL PROTECTED]> escribió: > On May 18, 9:24 am, "Gabriel Genellina" <[EMAIL PROTECTED]> > wrote: >> En Thu, 17 May 2007 13:39:43 -0300, 7stud <[EMAIL PROTECTED]> >> escribió: >> >> > 2) The fnmatch module does not even mention translate(). >> >

Re: Python-URL! - weekly Python news and links (May 16)

2007-05-17 Thread Steve Holden
Steve Holden wrote: > Beliavsky wrote: >> On May 16, 2:45 pm, "Cameron Laird" <[EMAIL PROTECTED]> wrote: >>> QOTW: "Sometimes you just have to take the path of least distaste". - Grant >>> Edwards >>> >>> "I want to choose my words carefully here, so I'm not misunderstood. >> >> >> I think Came

Re: omissions in python docs?

2007-05-17 Thread 7stud
On May 17, 7:23 pm, 7stud <[EMAIL PROTECTED]> wrote: > On May 17, 5:24 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> > wrote: > > > At least for 2) you're late. It's already documented on > > 2.5.1:http://sourceforge.net/tracker/index.php?func=detail&aid=1630844&grou... > > Darn. I could have been

Re: newbie question: retrieving values of variables through C API

2007-05-17 Thread Gabriel Genellina
En Thu, 17 May 2007 16:37:53 -0300, <[EMAIL PROTECTED]> escribió: > I've got an application that embeds the Python interpreter. I have the > following command in my code: > >PyRun_SimpleString("a = \"hello\""); > > My question is, what is the C API function call for retrieving the > value of t

Re: Creating a Python Type in C - tp_init and tp_new

2007-05-17 Thread Gabriel Genellina
En Thu, 17 May 2007 16:10:54 -0300, <[EMAIL PROTECTED]> escribió: > I'm creating a type in a C function as follows: > > static PyObject *Receive(PyObject *self, PyObject *args) { > pyMessageObject *msgobj = PyObject_New(pyMessageObject, > &pyMessageType); > return (PyObject *)msgobj; > } > > I

Re: omissions in python docs?

2007-05-17 Thread 7stud
On May 17, 5:24 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > At least for 2) you're late. It's already documented on > 2.5.1:http://sourceforge.net/tracker/index.php?func=detail&aid=1630844&grou... > Darn. I could have been somebody! >Nit-pickingly yours, >John No so. I checked the dow

Re: Python Newbie Suggestions

2007-05-17 Thread Stephen Lewitowski
Michael Tobis wrote: > I think > > http://www.diveintopython.org/ > > would be very suitable for you. > > mt > > > > I disagree here. The site was last updated in 2004; its out of date. For a newbie any material referenced should be current and include what is available in Python 2.5. --

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread Ross Ridge
=?ISO-8859-15?Q?=22Martin_v=2E_L=F6wis=22?= <[EMAIL PROTECTED]> wrote: >One possible reason is that the tools processing the program would not >know correctly what encoding the source file is in, and would fail >when they guessed the encoding incorrectly. For comments, that is not >a problem, as a

Re: Python-URL! - weekly Python news and links (May 16)

2007-05-17 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: >> PythonWare complements the digest you're reading with the >> marvelous daily python url >> http://www.pythonware.com/daily > >Ha, ha, ha... > >That is a good joke! > > > 'Wasn't meant that way. While he doesn't make i

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread Steve Holden
Martin v. Löwis wrote: > Neil Hodgson schrieb: >> Martin v. Löwis: >> >>> ... regardless of whether this PEP gets accepted >>> or not (which it just did). >>Which version can we expect this to be implemented in? > > The PEP says 3.0, and the planned implementation also targets > that release.

Re: Error on FTP Upload .. No such file or directory

2007-05-17 Thread Steve Holden
Tarun Kapoor wrote: > By the way... > > test.txt does exist > > Disclaimer > > This e-mail and any attachments is confidential and intended solely for the > use of the individual(s) to whom it is addressed. Any views or opinions > presented are solely those of the author and do not necessarily

Re: Regexes: How to handle escaped characters

2007-05-17 Thread John Machin
On May 18, 9:46 am, Paul McGuire <[EMAIL PROTECTED]> wrote: > On May 17, 6:12 pm, John Machin <[EMAIL PROTECTED]> wrote: > > > Note: "must not be *part of* any match" [my emphasis] > > > > While we're waiting for clarification from the OP, there's a chicken- > > and-egg thought that's been nagging

Re: problem with import in python 2.2.3

2007-05-17 Thread Anthony Irwin
Hi Guys, Thanks for the replies I ended up rewriting my code to use the time.strftime() library but unfortunately the MySQLdb module I use needs python 2.3 or higher so it looks like I have to update python on the older system anyway. -- Kind Regards, Anthony Irwin http://www.irwinresources.

Re: How to convert a number to binary?

2007-05-17 Thread Paul McGuire
"".join([('0','1')[bool(n & 2**i)] for i in range(20) if n>2**i] [::-1]) Still only valid up to 2**20, though. -- Paul -- http://mail.python.org/mailman/listinfo/python-list

Re: omissions in python docs?

2007-05-17 Thread John Machin
On May 18, 9:24 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Thu, 17 May 2007 13:39:43 -0300, 7stud <[EMAIL PROTECTED]> > escribió: > > > 2) The fnmatch module does not even mention translate(). > > > I have a hard time believing I am the first one to notice those > > omissions. > > At l

Re: How to convert a number to binary?

2007-05-17 Thread Paul McGuire
On May 17, 6:45 pm, Lyosha <[EMAIL PROTECTED]> wrote: > That's way too complicated... Is there any way to convert it to a one- > liner so that I can remember it? Mine is quite ugly: > "".join(str((n/base**i) % base) for i in range(20) if > n>=base**i)[::-1].zfill(1) > Howzis? "".join(map(s

Re: How to convert a number to binary?

2007-05-17 Thread Paul McGuire
On May 17, 6:45 pm, Lyosha <[EMAIL PROTECTED]> wrote: > That's way too complicated... Is there any way to convert it to a one- > liner so that I can remember it? Mine is quite ugly: > "".join(str((n/base**i) % base) for i in range(20) if > n>=base**i)[::-1].zfill(1) > Howzis? "".join(map(s

Re: How to convert a number to binary?

2007-05-17 Thread [EMAIL PROTECTED]
On May 17, 6:45 pm, Lyosha <[EMAIL PROTECTED]> wrote: > On May 17, 4:40 pm, Michael Bentley <[EMAIL PROTECTED]> wrote: > > > > > > > On May 17, 2007, at 6:33 PM, Lyosha wrote: > > > > Converting binary to base 10 is easy: > > int('', 2) > > > 255 > > > > Converting base 10 number to he

Re: How to convert a number to binary?

2007-05-17 Thread Michael Bentley
On May 17, 2007, at 6:45 PM, Lyosha wrote: > On May 17, 4:40 pm, Michael Bentley <[EMAIL PROTECTED]> wrote: >> On May 17, 2007, at 6:33 PM, Lyosha wrote: >> >>> Converting binary to base 10 is easy: >> int('', 2) >>> 255 >> >>> Converting base 10 number to hex or octal is easy: >>

Re: Regexes: How to handle escaped characters

2007-05-17 Thread Paul McGuire
On May 17, 6:12 pm, John Machin <[EMAIL PROTECTED]> wrote: > > Note: "must not be *part of* any match" [my emphasis] > Ooops, my bad. See this version: from pyparsing import Regex,ParseException,col,lineno,getTokensEndLoc # fake (and inefficient) version of any if not yet upgraded to Py2.5 any =

Re: How to convert a number to binary?

2007-05-17 Thread Lyosha
On May 17, 4:40 pm, Michael Bentley <[EMAIL PROTECTED]> wrote: > On May 17, 2007, at 6:33 PM, Lyosha wrote: > > > Converting binary to base 10 is easy: > int('', 2) > > 255 > > > Converting base 10 number to hex or octal is easy: > oct(100) > > '0144' > hex(100) > > '0x64' >

Re: An expression that rebinds a variable?

2007-05-17 Thread Gabriel Genellina
En Thu, 17 May 2007 18:29:35 -0300, GreenH <[EMAIL PROTECTED]> escribió: > Thanks, But, my interest is actually in finding the cases in which > eval(expr) would throw surprises at me by bringing changes in > namespace(s), just because I haven't given a namespace for that eval() > i.e., where wou

MailingLogger 3.1.0 Released!

2007-05-17 Thread Chris Withers
Hot on the heals of the 3.0.0 release, this 3.1.0 release offers support for SMTP hosts that require authentication in order to send mail... Mailinglogger enables log entries to be emailed either as the entries are logged or as a summary at the end of the running process. This pair of enhanced e

Re: How to convert a number to binary?

2007-05-17 Thread Michael Bentley
On May 17, 2007, at 6:33 PM, Lyosha wrote: > Converting binary to base 10 is easy: int('', 2) > 255 > > Converting base 10 number to hex or octal is easy: oct(100) > '0144' hex(100) > '0x64' > > Is there an *easy* way to convert a number to binary? def to_base(number, bas

Multi-Page login WITH Cookies (POST Data)

2007-05-17 Thread Pyro
Before i go into some detail i would like to start off by saying that this is NOT an advertising bot or anything like that. I am a web programmer designing a website in PHP and it requires users to login. I am building a program that will login as the administrator and browse the forums looking f

Re: progress indicator in a mod_python script

2007-05-17 Thread Josh Bloom
Hi Rajarshi, What you probably want to do is break this into multiple parts. When a request comes in to perform a query consider this a new job, give it an ID and set it off and running. Then return an HTML page that knows to keep checking a status URL (based on the ID) every few seconds to see

How to convert a number to binary?

2007-05-17 Thread Lyosha
Converting binary to base 10 is easy: >>> int('', 2) 255 Converting base 10 number to hex or octal is easy: >>> oct(100) '0144' >>> hex(100) '0x64' Is there an *easy* way to convert a number to binary? -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread [EMAIL PROTECTED]
On May 16, 6:38 pm, [EMAIL PROTECTED] wrote: > On May 16, 11:41 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > Christophe wrote: > snip... > > > Who displays stack frames? Your code. Whose code includes unicode > > > identifiers? Your code. Whose fault is it to create a stack trace

Re: omissions in python docs?

2007-05-17 Thread Gabriel Genellina
En Thu, 17 May 2007 13:39:43 -0300, 7stud <[EMAIL PROTECTED]> escribió: > 2) The fnmatch module does not even mention translate(). > > I have a hard time believing I am the first one to notice those > omissions. At least for 2) you're late. It's already documented on 2.5.1: http://sourceforge.n

Re: Is wsgi ready for prime time?

2007-05-17 Thread Graham Dumpleton
On May 18, 5:31 am, Stefan Sonnenberg-Carstens <[EMAIL PROTECTED]> wrote: > IMHO WSGI is _only_ a new way of talking to webservers, like apache. > It is as low-level as (f)cgi, so don't expect too much support at this > stage - > indeed a module like the cgi one in the std lib would be nice. > As g

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread Richard Hanson
On Sun, 13 May 2007 17:44:39 +0200, Martin v. Löwis wrote: > The syntax of identifiers in Python will be based on the Unicode > standard annex UAX-31 [1]_, with elaboration and changes as defined > below. > > Within the ASCII range (U+0001..U+007F), the valid characters for > identifiers are the s

Re: Regexes: How to handle escaped characters

2007-05-17 Thread John Machin
On May 18, 8:16 am, Paul McGuire <[EMAIL PROTECTED]> wrote: > On May 17, 4:06 pm, John Machin <[EMAIL PROTECTED]> wrote: > > > > > On May 18, 6:00 am, Torsten Bronger <[EMAIL PROTECTED]> > > wrote: > > > > Hallöchen! > > > > James Stroud writes: > > > > Torsten Bronger wrote: > > > > >> I need some

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread [EMAIL PROTECTED]
On May 16, 6:38 pm, [EMAIL PROTECTED] wrote: > On May 16, 11:41 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > Christophe wrote: > snip... > > > Who displays stack frames? Your code. Whose code includes unicode > > > identifiers? Your code. Whose fault is it to create a stack trace

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread Martin v. Löwis
Neil Hodgson schrieb: > Martin v. Löwis: > >> ... regardless of whether this PEP gets accepted >> or not (which it just did). > >Which version can we expect this to be implemented in? The PEP says 3.0, and the planned implementation also targets that release. Regards, Martin -- http://mail

Re: Is wsgi ready for prime time?

2007-05-17 Thread Graham Dumpleton
On May 18, 5:31 am, Stefan Sonnenberg-Carstens <[EMAIL PROTECTED]> wrote: > IMHO WSGI is _only_ a new way of talking to webservers, like apache. > It is as low-level as (f)cgi, so don't expect too much support at this > stage - > indeed a module like the cgi one in the std lib would be nice. > As g

alternative to eclipse [ python ide AND cvs ]

2007-05-17 Thread yomgui
Hi, Eclipse is just not really working on linux 64 bit (I tried ubuntu and centos, it is freesing and crashing and extremly slow) I use eclipse for python and cvs, what is "the" good alternative ? thanks yomgui -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread Neil Hodgson
Martin v. Löwis: > ... regardless of whether this PEP gets accepted > or not (which it just did). Which version can we expect this to be implemented in? Neil -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread [EMAIL PROTECTED]
On May 17, 2:30 pm, Gregor Horvath <[EMAIL PROTECTED]> wrote: > Istvan Albert schrieb: > > > > > After the first time that your programmer friends need fix a trivial > > bug in a piece of code that does not display correctly in the terminal > > I can assure you that their mellow acceptance will tur

Re: FreeType

2007-05-17 Thread Robert Kern
Steve Holden wrote: > Alternatively use the Python Imaging Library (PIL), which I believe > includes freetype support. The OP seems to be trying to build matplotlib, which actually does require the FreeType library. The PIL, lovely though it is, is not a substitute. -- Robert Kern "I have com

Re: Regexes: How to handle escaped characters

2007-05-17 Thread Paul McGuire
On May 17, 4:06 pm, John Machin <[EMAIL PROTECTED]> wrote: > On May 18, 6:00 am, Torsten Bronger <[EMAIL PROTECTED]> > wrote: > > > > > > > Hallöchen! > > > James Stroud writes: > > > Torsten Bronger wrote: > > > >> I need some help with finding matches in a string that has some > > >> characters w

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread Martin v. Löwis
>> At the same time it takes some mental effort to analyze and understand >> all the implications of a feature, and without taking that effort >> "something" will always beat "nothing". >> > Indeed. For example, getattr() and friends now have to accept Unicode > arguments, and presumably to canonic

Error on FTP Upload .. No such file or directory

2007-05-17 Thread Tarun Kapoor
By the way... test.txt does exist Disclaimer This e-mail and any attachments is confidential and intended solely for the use of the individual(s) to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of Waterstone Capita

Re: remove all elements in a list with a particular value

2007-05-17 Thread Steven Howe
MRAB wrote: On May 16, 4:21 pm, Lisa <[EMAIL PROTECTED]> wrote: I am reading in data from a text file. I want to enter each value on the line into a list and retain the order of the elements. The number of elements and spacing between them varies, but a typical line looks like: ' SRCPARA

Re: ~!~ Britneys New BOOBS

2007-05-17 Thread STEPHEN
netto 24 bottles 33l 9.99 grolch <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > http://scargo.in - Download pics and videos of Britneys new Boob job > see her new tits naked! > -- http://mail.python.org/mailman/listinfo/python-list

Re: FreeType

2007-05-17 Thread Steve Holden
Michael Bentley wrote: > On May 17, 2007, at 2:47 PM, Glich wrote: > >> I've been there. All the code is in C/C++, don't I need it in python? >> I will explore the software. I dismissed this because there was no >> python. I am knew to all of this. Thanks for your reply. > > The c stuff (freetype

Re: Execute commands from file

2007-05-17 Thread Steve Holden
Martin Blume wrote: > "Steve Holden" schrieb Try it on a file that reads something like xxx = 42 print xxx and you will see NameError raised because the assignment hasn't affected the environment for the print statement. >>> [...] >>> >> No, because there i

Re: omissions in python docs?

2007-05-17 Thread Steve Holden
Martin v. Löwis wrote: > 7stud schrieb: >> I have a hard time believing I am the first one to notice those >> omissions. Are the docs just old and poorly maintained? Or, is there >> some reason those methods were omitted? > > You are likely the first one to notice, and then talk about that. > >

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread Steve Holden
Gregor Horvath wrote: > Istvan Albert schrieb: >> After the first time that your programmer friends need fix a trivial >> bug in a piece of code that does not display correctly in the terminal >> I can assure you that their mellow acceptance will turn to something >> entirely different. >> > > Is

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread Steve Holden
Istvan Albert wrote: > On May 17, 9:07 am, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > >> up. I interviewed about 20 programmers (none of them Python users), and >> most took the position "I might not use it myself, but it surely >> can't hurt having it, and there surely are people who would us

Re: An expression that rebinds a variable?

2007-05-17 Thread GreenH
On May 17, 9:15 am, Maric Michaud <[EMAIL PROTECTED]> wrote: > GreenH a écrit : > > > Can I know what kind of expressions rebind variables, of course unlike > > in C, assignments are not expressions (for a good reason) > > So, eval(expr) should bring about a change in either my global or > > local

Re: Regexes: How to handle escaped characters

2007-05-17 Thread John Machin
On May 18, 6:50 am, James Stroud <[EMAIL PROTECTED]> wrote: > def guarded_search(rgx, astring, escaped): >m = re.search(rgx, astring) >if m: > s = m.start() > e = m.end() > for i in escaped: >if s <= i <= e: Did you mean to write if s <= i < e: ? > m =

Re: Regexes: How to handle escaped characters

2007-05-17 Thread John Machin
On May 18, 6:00 am, Torsten Bronger <[EMAIL PROTECTED]> wrote: > Hallöchen! > > James Stroud writes: > > Torsten Bronger wrote: > > >> I need some help with finding matches in a string that has some > >> characters which are marked as escaped (in a separate list of > >> indices). Escaped means tha

Re: remove all elements in a list with a particular value

2007-05-17 Thread MRAB
On May 16, 4:21 pm, Lisa <[EMAIL PROTECTED]> wrote: > I am reading in data from a text file. I want to enter each value on > the line into a list and retain the order of the elements. The number > of elements and spacing between them varies, but a typical line looks > like: > > ' SRCPARAM 1 6

Re: Regexes: How to handle escaped characters

2007-05-17 Thread James Stroud
Torsten Bronger wrote: > Hallöchen! > > James Stroud writes: > > >>Torsten Bronger wrote: >> >> >>>I need some help with finding matches in a string that has some >>>characters which are marked as escaped (in a separate list of >>>indices). Escaped means that they must not be part of any match.

Error on FTP Upload .. No such file or directory

2007-05-17 Thread Tarun Kapoor
--- Code -- remotepath = "/incoming" f = FTP(host) f.login(username,password) f.cwd(remotepath) localfile ="C:\\test.txt" fd = open(localfile,'rb') path,filename = os.path.split(localfile) f.storbinary('STOR %s' % filename,fd) fd.close() f.quit

Re: FreeType

2007-05-17 Thread Michael Bentley
On May 17, 2007, at 2:47 PM, Glich wrote: > I've been there. All the code is in C/C++, don't I need it in python? > I will explore the software. I dismissed this because there was no > python. I am knew to all of this. Thanks for your reply. The c stuff (freetype) is what you need (it gets insta

Re: Execute commands from file

2007-05-17 Thread i3dmaster
On May 17, 3:02 am, Douglas Woodrow <[EMAIL PROTECTED]> wrote: > On Thu, 17 May 2007 00:30:23, i3dmaster <[EMAIL PROTECTED]> wrote > > >f = open(file,'rb') > >for i in f: > >exec i > > Why are you opening the file in binary mode? > > -- > Doug Woodrow 'b' is generally useful on systems tha

Re: Regexes: How to handle escaped characters

2007-05-17 Thread Torsten Bronger
Hallöchen! James Stroud writes: > Torsten Bronger wrote: > >> I need some help with finding matches in a string that has some >> characters which are marked as escaped (in a separate list of >> indices). Escaped means that they must not be part of any match. >> >> [...] > > You should probably p

Re: FreeType

2007-05-17 Thread Robert Kern
Glich wrote: > I've been there. All the code is in C/C++, don't I need it in python? > I will explore the software. I dismissed this because there was no > python. I am knew to all of this. Thanks for your reply. matplotlib has extension modules that wrap the C library. You will need to install li

Re: Is wsgi ready for prime time?

2007-05-17 Thread Josiah Carlson
Ron Garret wrote: wsgiref.util > Traceback (most recent call last): > File "", line 1, in > AttributeError: 'module' object has no attribute 'util' wsgiref.headers > Traceback (most recent call last): > File "", line 1, in > AttributeError: 'module' object has no attribute 'headers

Re: Is wsgi ready for prime time?

2007-05-17 Thread Rob Williscroft
Ron Garret wrote in news:rNOSPAMon-B77D6B.12263417052007 @news.gha.chartermi.net in comp.lang.python: >> PACKAGE CONTENTS >> handlers >> headers >> simple_server >> util >> validate >> >> Reading the documentation can be useful sometimes. Recommending >> http://docs.pyth

Re: FreeType

2007-05-17 Thread Glich
I've been there. All the code is in C/C++, don't I need it in python? I will explore the software. I dismissed this because there was no python. I am knew to all of this. Thanks for your reply. -- http://mail.python.org/mailman/listinfo/python-list

newbie question: retrieving values of variables through C API

2007-05-17 Thread joshusdog
I've got an application that embeds the Python interpreter. I have the following command in my code: PyRun_SimpleString("a = \"hello\""); My question is, what is the C API function call for retrieving the value of the variable "a"? -- http://mail.python.org/mailman/listinfo/python-list

Re: (Modular-)Application Framework / Rich-Client-Platform in Python

2007-05-17 Thread Wildemar Wildenburger
[EMAIL PROTECTED] wrote: >> There seem to loads of python frameworks for Web-Apps, but I have a hard >> time finding one for desktop-apps. >> I imagine it wouldn't be too hard (if still time consuming) whipping up >> something simple myself, but I thought, I'd ask here before diving into it. >>

Re: Is wsgi ready for prime time?

2007-05-17 Thread Stefan Sonnenberg-Carstens
Michele Simionato schrieb: > On May 17, 8:09 pm, Ron Garret <[EMAIL PROTECTED]> wrote: > >> The wsgiref module in Python 2.5 seems to be empty: >> >> [EMAIL PROTECTED]:~/Sites/modpy]$ python >> Python 2.5 (r25:51908, Mar 1 2007, 10:09:05) >> [GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darw

Re: Is wsgi ready for prime time?

2007-05-17 Thread Ron Garret
In article <[EMAIL PROTECTED]>, Stargaming <[EMAIL PROTECTED]> wrote: > Ron Garret wrote: > > The wsgiref module in Python 2.5 seems to be empty: > > > > [EMAIL PROTECTED]:~/Sites/modpy]$ python > > Python 2.5 (r25:51908, Mar 1 2007, 10:09:05) > > [GCC 4.0.1 (Apple Computer, Inc. build 5367)]

Re: Regexes: How to handle escaped characters

2007-05-17 Thread James Stroud
Torsten Bronger wrote: > Hallöchen! > > I need some help with finding matches in a string that has some > characters which are marked as escaped (in a separate list of > indices). Escaped means that they must not be part of any match. > > My current approach is to look for matches in substrings

Creating a Python Type in C - tp_init and tp_new

2007-05-17 Thread ajayre
I'm creating a type in a C function as follows: static PyObject *Receive(PyObject *self, PyObject *args) { pyMessageObject *msgobj = PyObject_New(pyMessageObject, &pyMessageType); return (PyObject *)msgobj; } I have (some lines omitted): static PyTypeObject pyMessageType = { PyObject_HEAD_

Re: omissions in python docs?

2007-05-17 Thread Martin v. Löwis
[EMAIL PROTECTED] schrieb: >> It often happened in the past that patches were admitted which don't >> simultaneously update the documentation, hence they diverge. These >> days, patches are regularly rejected for not providing proper >> documentation changes. > > Nevertheless, the docs *ARE* old a

Regexes: How to handle escaped characters

2007-05-17 Thread Torsten Bronger
Hallöchen! I need some help with finding matches in a string that has some characters which are marked as escaped (in a separate list of indices). Escaped means that they must not be part of any match. My current approach is to look for matches in substrings with the escaped characters as bounda

^% Britney Spears Tits Explode!!!!!

2007-05-17 Thread Goofy . throat6
http://scargo.in/ - Download britneys pics and videos for free! -- http://mail.python.org/mailman/listinfo/python-list

Re: Python-URL! - weekly Python news and links (May 16)

2007-05-17 Thread memracom
> PythonWare complements the digest you're reading with the > marvelous daily python url > http://www.pythonware.com/daily Ha, ha, ha... That is a good joke! -- http://mail.python.org/mailman/listinfo/python-list

Re: omissions in python docs?

2007-05-17 Thread memracom
> It often happened in the past that patches were admitted which don't > simultaneously update the documentation, hence they diverge. These > days, patches are regularly rejected for not providing proper > documentation changes. Nevertheless, the docs *ARE* old and poorly maintained. Sometimes yo

Re: (Modular-)Application Framework / Rich-Client-Platform in Python

2007-05-17 Thread memracom
> There seem to loads of python frameworks for Web-Apps, but I have a hard > time finding one for desktop-apps. > I imagine it wouldn't be too hard (if still time consuming) whipping up > something simple myself, but I thought, I'd ask here before diving into it. Sounds like you should look at DAB

Re: Is wsgi ready for prime time?

2007-05-17 Thread Michele Simionato
On May 17, 8:09 pm, Ron Garret <[EMAIL PROTECTED]> wrote: > The wsgiref module in Python 2.5 seems to be empty: > > [EMAIL PROTECTED]:~/Sites/modpy]$ python > Python 2.5 (r25:51908, Mar 1 2007, 10:09:05) > [GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin > Type "help", "copyright", "credits

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread Gregor Horvath
Istvan Albert schrieb: > > After the first time that your programmer friends need fix a trivial > bug in a piece of code that does not display correctly in the terminal > I can assure you that their mellow acceptance will turn to something > entirely different. > Is there any difference for you

Re: Is wsgi ready for prime time?

2007-05-17 Thread Stargaming
Ron Garret wrote: > The wsgiref module in Python 2.5 seems to be empty: > > [EMAIL PROTECTED]:~/Sites/modpy]$ python > Python 2.5 (r25:51908, Mar 1 2007, 10:09:05) > [GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin > Type "help", "copyright", "credits" or "license" for more information. >

Is wsgi ready for prime time?

2007-05-17 Thread Ron Garret
The wsgiref module in Python 2.5 seems to be empty: [EMAIL PROTECTED]:~/Sites/modpy]$ python Python 2.5 (r25:51908, Mar 1 2007, 10:09:05) [GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import wsgiref >>> dir(wsgi

  1   2   >