Re: Deprecation in String.joinfields()

2006-09-25 Thread Fredrik Lundh
"Anoop" wrote: > I am getting the following error while trying to use deprecation deprecation ? li = ["a", "b", "mpilgrim", "z", "example"] newname = string.joinfields (li[:-1], ".") newname > 'a.b.mpilgrim.z' newname = li[:-1].joinfields(".") > Traceback (most recent call la

Re: Deprecation in String.joinfields()

2006-09-25 Thread John Machin
Anoop wrote: > Hi All, > > I am getting the following error while trying to use deprecation > > Please help > > >>> li = ["a", "b", "mpilgrim", "z", "example"] > >>> newname = string.joinfields (li[:-1], ".") > >>> newname > 'a.b.mpilgrim.z' > >>> newname = li[:-1].joinfields(".") > Traceback (mos

Re: A critique of cgi.escape

2006-09-25 Thread Duncan Booth
Jon Ribbens <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, Duncan Booth > wrote: >> It is generally a principle of Python that new releases maintain >> backward compatability. An incompatible change such proposed here >> would probably break many tests for a large number of people.

http://www.simplyspeaking.com/

2006-09-25 Thread SimplySpeaking's items
Simply Speaking is a high tech Voice recognition and Text to speech software program that allows you to dictate into any Windows program. You speak and Simply Speaking will convert your voice into typewritten text. Simply Speaking can also read back to you any highlighted text from any Windows appl

Re: Verify an e-mail-adress - syntax and dns

2006-09-25 Thread Georg Brandl
Christophe wrote: > Steven D'Aprano a écrit : >> By memory, in an thread about the same topic just a few days ago, Fredrik >> Lundh posted a link to Perl's FAQs that suggests a method for "validating" >> email addresses: treat it like a password and ask the user to type it >> twice. That will prote

Re: Python API to OS X Address Book?

2006-09-25 Thread Diez B. Roggisch
Brendon Towle wrote: > Essentially, I'm looking for a Python equivalent to the ObjectiveC stuff > that can be found at: > > http://developer.apple.com/documentation/UserExperience/Conceptual/AddressBook/index.html > > Google got me that far, but was not particularly helpful past that. > > Any

RE: RE: installation of python-dev

2006-09-25 Thread Dominik Müller
Yes, I should have included some more info from the start, sorry...I'm running Suse 10.1. Python I installed from rpm, downloaded from python.org.-- Forwarded message -- From: Fredrik Lundh <[EMAIL PROTECTED]>Date: 25.09.2006 15:37Subject: Re: installation of python-dev To: python-l

Re: unicode, bytes redux

2006-09-25 Thread Fredrik Lundh
John Machin wrote: >> > So all he needs is a boolean result: u.willitfit(encoding, width) >> >> at what point in the program would that method be used ? > > Never, I hope. Were you taking that as a serious suggestion? Fredrik, > perhaps your irony detector needs a little preventative maintenance :-

Re: Talking to marketing people about Python

2006-09-25 Thread rdsteph
Fredrik Lundh wrote: > I think the use of "applications" here implies "new applications", not > "applications > still in use somewhere". Good point, Fredrik. I do recall that, a few years ago, I graphed the *growth rate* of new Sourceforge projects written in Python vs. the same for Perl, and i

Re: Deprecation in String.joinfields()

2006-09-25 Thread Benjamin Niemann
Hello, Anoop wrote: > I am getting the following error while trying to use deprecation > > Please help > li = ["a", "b", "mpilgrim", "z", "example"] newname = string.joinfields (li[:-1], ".") newname > 'a.b.mpilgrim.z' newname = li[:-1].joinfields(".") > Traceback (most rece

Re: Leave the putdowns in the Perl community, the Python world does not need them

2006-09-25 Thread Steve Holden
Steven Bethard wrote: > metaperl wrote: > >>I was shocked to see the personal insults hurled in this thread: >>http://groups.google.com/group/comp.lang.python/browse_thread/thread/d0758cb9545cad4b > > > I see that this is a Fredrik Lundh thread. I've felt the same way > before, but Fredrik has

Re: Deprecation in String.joinfields()

2006-09-25 Thread Larry Bates
Anoop wrote: > Hi All, > > I am getting the following error while trying to use deprecation > > Please help > li = ["a", "b", "mpilgrim", "z", "example"] newname = string.joinfields (li[:-1], ".") newname > 'a.b.mpilgrim.z' newname = li[:-1].joinfields(".") > Traceback (most

Re: Leave the putdowns in the Perl community, the Python world does not need them

2006-09-25 Thread John Machin
Steven Bethard wrote: > metaperl wrote: > > I was shocked to see the personal insults hurled in this thread: > > http://groups.google.com/group/comp.lang.python/browse_thread/thread/d0758cb9545cad4b > > I see that this is a Fredrik Lundh thread. I've felt the same way > before, but Fredrik has be

Re: Leave the putdowns in the Perl community, the Python world does not need them

2006-09-25 Thread rdsteph
Metaperl, Steve makes a good point. Fredrik is one of the most important contributors of Python code, tools, etc and as far as I am concerned, that is so important that it gives him the right to be cranky from tiem to time. If somebody like me were to get cranky and negative, on the other hand, t

Re: A critique of cgi.escape

2006-09-25 Thread Jon Ribbens
In article <[EMAIL PROTECTED]>, Georg Brandl wrote: >> I'm sorry, that's not good enough. How, precisely, would it break >> "existing code"? Can you come up with an example, or even an >> explanation of how it *could* break existing code? > > Is that so hard to see? If cgi.escape replaced "'" with

Help with Tkinter and stdin input event binding

2006-09-25 Thread Diogo Bastos
Hello, I'm fairly used to working with Python but it's the first time I'm trying to use Tkinter so I'm running into a problem. I'm using three python scripts with Tkinter GUIs and a fourth script that basically opens communication pipes with the three others. The idea is that the fourth script

Re: A critique of cgi.escape

2006-09-25 Thread Max M
Jon Ribbens skrev: > In article <[EMAIL PROTECTED]>, Fredrik Lundh wrote: >>> There's nothing to say that cgi.escape should take them both into account >>> in the one function >> so what exactly are you using cgi.escape for in your code ? > > To escape characters so that they will be treated as ch

Re: A critique of cgi.escape

2006-09-25 Thread Jon Ribbens
In article <[EMAIL PROTECTED]>, Duncan Booth wrote: > I guess you've never seen anyone write tests which retrieve some generated > html and compare it against the expected value. If the page contains any > unescaped quotes then this change would break it. You're right - I've never seen anyone do

Re: Verify an e-mail-adress - syntax and dns

2006-09-25 Thread Christophe
Georg Brandl a écrit : > Christophe wrote: >> Steven D'Aprano a écrit : >>> By memory, in an thread about the same topic just a few days ago, >>> Fredrik >>> Lundh posted a link to Perl's FAQs that suggests a method for >>> "validating" >>> email addresses: treat it like a password and ask the us

Re: Verify an e-mail-adress - syntax and dns

2006-09-25 Thread Christophe
Steve Holden a écrit : > Christophe wrote: >> Steven D'Aprano a écrit : >> >>> By memory, in an thread about the same topic just a few days ago, >>> Fredrik >>> Lundh posted a link to Perl's FAQs that suggests a method for >>> "validating" >>> email addresses: treat it like a password and ask the

Re: A critique of cgi.escape

2006-09-25 Thread Max M
Jon Ribbens skrev: > In article <[EMAIL PROTECTED]>, Georg Brandl wrote: >>> I'm sorry, that's not good enough. How, precisely, would it break >>> "existing code"? Can you come up with an example, or even an >>> explanation of how it *could* break existing code? >> Is that so hard to see? If cgi.es

Re: A critique of cgi.escape

2006-09-25 Thread Jon Ribbens
In article <[EMAIL PROTECTED]>, Max M wrote: >> I'm sorry, that's not good enough. How, precisely, would it break >> "existing code"? Can you come up with an example, or even an >> explanation of how it *could* break existing code? > > Some examples are: > > - Possibly any code that tests for str

Re: A critique of cgi.escape

2006-09-25 Thread and-google
Jon Ribbens wrote: > I'm sorry, that's not good enough. How, precisely, would it break > "existing code"? ('owdo Mr. Ribbens!) It's possible there could be software that relies on ' not being escaped, for example: # Auto-markup links to O'Reilly, everyone's favourite # example name with

Re: Verify an e-mail-adress - syntax and dns

2006-09-25 Thread Fredrik Lundh
Frithiof Andreas Jensen wrote: > For those kind of sites demanding registration for trivial usage (i.e. most > sites do) I use my own domain controlled by myself - the adress is valid for > the > confirmation mail then, after I got what I came for (or after I found out that > this site was a wast

Re: A critique of cgi.escape

2006-09-25 Thread Jon Ribbens
In article <[EMAIL PROTECTED]>, Max M wrote: > Oh ... because you cannot see a use case for that *documented* > behaviour, it must certainly be wrong? No, but if nobody else can find one either, that's a clue that maybe it's safe to change. Here's a point for you - the documentation for cgi.esca

ANN: Templayer 1.4 - HTML templating library

2006-09-25 Thread Ian Ward
Announcing Templayer 1.4 Templayer home page: http://excess.org/templayer/ Tarball: http://excess.org/templayer/templayer-1.4.tar.gz About this release: === This release improves integration with the Django web framework by reducing the amount of

Re: A critique of cgi.escape

2006-09-25 Thread Duncan Booth
Jon Ribbens <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, Georg Brandl wrote: >>> I'm sorry, that's not good enough. How, precisely, would it break >>> "existing code"? Can you come up with an example, or even an >>> explanation of how it *could* break existing code? >> >> Is that

Re: Newbie question: PyQt & Form::init() SOLVED

2006-09-25 Thread Sven Ehret
Diez B. Roggisch wrote: > Sven Ehret wrote: > >> Diez B. Roggisch wrote: >> >>> Sven Ehret wrote: >>> Hello List, I am trying to learn Python and followed the tutorial at http://www.cs.usfca.edu/~afedosov/qttut/. Being happy that it works, I am now trying to do my own

Re: A critique of cgi.escape

2006-09-25 Thread Fredrik Lundh
Jon Ribbens wrote: > Sorry, that's still not good enough. that's not up to you to decide, though. -- http://mail.python.org/mailman/listinfo/python-list

Re: A critique of cgi.escape

2006-09-25 Thread Jon Ribbens
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: >> I'm sorry, that's not good enough. How, precisely, would it break >> "existing code"? > > ('owdo Mr. Ribbens!) Good afternoon Mr Glover ;-) > URI= 'http://www.oreilly.com/' > html= cgi.escape(text) > html= html.replace('O\'R

Re: A critique of cgi.escape

2006-09-25 Thread Filip Salomonsson
On 25 Sep 2006 15:13:30 GMT, Jon Ribbens <[EMAIL PROTECTED]> wrote: > > Here's a point for you - the documentation for cgi.escape says that > the characters "&", "<" and ">" are converted, but not what they are > converted to. If the documentation isn't clear enough, that means the documentation s

Re: A critique of cgi.escape

2006-09-25 Thread Jon Ribbens
In article <[EMAIL PROTECTED]>, Fredrik Lundh wrote: >> Sorry, that's still not good enough. > > that's not up to you to decide, though. It's up to me to decide whether or not an argument is good enough to convince me, thank you very much. -- http://mail.python.org/mailman/listinfo/python-list

Re: A critique of cgi.escape

2006-09-25 Thread Jon Ribbens
In article <[EMAIL PROTECTED]>, Filip Salomonsson wrote: >> Here's a point for you - the documentation for cgi.escape says that >> the characters "&", "<" and ">" are converted, but not what they are >> converted to. > > If the documentation isn't clear enough, that means the documentation > shoul

Re: Talking to marketing people about Python

2006-09-25 Thread John Salerno
Roy Smith wrote: > Can anybody suggest some good material I can give to him which will help > explain what Python is and why it's a good thing, in a way that a > marketing/product management person will understand? You might want to take a look at Chapter 1 of "Programming Python" (3rd edition

Re: A critique of cgi.escape

2006-09-25 Thread Fredrik Lundh
Jon Ribbens wrote: > It's up to me to decide whether or not an argument is good enough to > convince me, thank you very much. not if you expect anyone to take anything you say seriously. -- http://mail.python.org/mailman/listinfo/python-list

Advice for a novice on making ambitious cross-platform GUI app

2006-09-25 Thread Chelonian
I'm considering trying to learn Python for a specific reason, and hoped the group might help me get a sense for whether it would be worth my time. The situation... Me: total beginner w/ a sense of programming basics and 1 week familiarizing myself with Python world. Use WinXP. Got Python 2.5.

Re: A critique of cgi.escape

2006-09-25 Thread Jon Ribbens
In article <[EMAIL PROTECTED]>, Fredrik Lundh wrote: >> It's up to me to decide whether or not an argument is good enough to >> convince me, thank you very much. > > not if you expect anyone to take anything you say seriously. Now you're just being ridiculous. In this thread you have been rude, e

Remap Mysql tuple to dictionary

2006-09-25 Thread Pom
Hello I want to convert a Mysql resulset to a dictionary. I made some code myself, and want to ask you if I do this the right way. def remapmysql(a): return (a[0], (a[1:])) def test_map(): count = 10 # count of simulated records l1 = range(0, count) l2 = range(count , 2

Re: what is the best practice to separate Pygtk and long running thread code

2006-09-25 Thread [EMAIL PROTECTED]
seb wrote: > Hi, > > I am running on WinXP so that is not so convenient to communicate > between separate processes. Can you elaborate? Windows offers plenty of IPC possibilities, including interprocess mutexes and semaphores. See for instance: http://www.codeproject.com/threads/Win32IPC.asp In

Re: Remap Mysql tuple to dictionary

2006-09-25 Thread Fredrik Lundh
Pom wrote: > I want to convert a Mysql resulset to a dictionary. that is, you want to convert an array of (key, value, ...) tuples to a dictionary containing key: (value, ...) pairs, right ? > I made some code myself, and want to ask you if I do this the right way. > > def remapmysql(a): >

Re: Remap Mysql tuple to dictionary

2006-09-25 Thread Tim Chase
> def remapmysql(a): > return (a[0], (a[1:])) > > def test_map(): > count = 10 # count of simulated records > l1 = range(0, count) > l2 = range(count , 2 * count ) > l3 = range(2 * count, 3 * count ) > z1 = zip(l1, l2, l3) # simulate a mysql resultset > > d1

Re: unicode, bytes redux

2006-09-25 Thread Walter Dörwald
Steven D'Aprano wrote: > On Mon, 25 Sep 2006 00:45:29 -0700, Paul Rubin wrote: > >> willie <[EMAIL PROTECTED]> writes: >>> # U+270C >>> # 11100010 10011100 10001100 >>> buf = "\xE2\x9C\x8C" >>> u = buf.decode('UTF-8') >>> # ... later ... >>> u.bytes() -> 3 >>> >>> (goes through each code point and

Re: How to close the DOS Shell when starting a python script

2006-09-25 Thread m . errami
Wildemar Wildenburger wrote: > Paddy wrote: > > Rename the .py file with extension .pyw. > > - Paddy. > > > To elaborate: This works because, by default, .py files are associated > with python.exe and .pyw files are associated with pythonw.exe, the > latter not opening a console window. > You can

Emphasizing a gtk.Label

2006-09-25 Thread ravenheart
I want to give some emphasis to a Label from gtk, without breaking gnome theme (i.e. not changing colors, etc) I think bolding it would be a good option (could be also underscoring but don't like it at all). What would be the best solution? How to do it? I have found how to change colors and und

Re: A critique of cgi.escape

2006-09-25 Thread Brian Quinlan
Jon Ribbens wrote: > In article <[EMAIL PROTECTED]>, Fredrik Lundh wrote: >>> It's up to me to decide whether or not an argument is good enough to >>> convince me, thank you very much. >> not if you expect anyone to take anything you say seriously. > > Now you're just being ridiculous. In this thr

Re: A critique of cgi.escape

2006-09-25 Thread Jon Ribbens
In article <[EMAIL PROTECTED]>, Brian Quinlan wrote: >> Now you're just being ridiculous. In this thread you have been rude, >> evasive, insulting, vague, hypocritical, and have failed to answer >> substantive points in favour of sarcastic and erroneous sniping - I'd >> suggest it's you that needs

python interpreter on solaris 10

2006-09-25 Thread sam
dear all, having spent the last couple of weeks getting to grips with python on windows, i am in the position of trying to make the transition to my newly arrived ultra 20. however, although there are plenty of files with idle somewhere in the title, idle.py (which i assume is the interpreter) wi

Re: Remap Mysql tuple to dictionary

2006-09-25 Thread Pom
Fredrik Lundh wrote: > if you care about performance, and is using a recent Python, you could yes i do ;-) > try doing > >d1 = dict((row[0], row[1:]) for row in z1) > > instead, and see if that runs faster (this uses a generator expression > instead of a callback and a full list). > > >

Re: gtk.Entry Colors

2006-09-25 Thread MonkeeSage
Tuomas wrote: > Yes, I read the reference before posting here. I tried something like: Hi Tuomas, I didn't mean to say that you hadn't read the docs (I had a hard time finding the right methods in the docs too, even though I know the methods); I just wanted to give you the references so you could

Re: Remap Mysql tuple to dictionary

2006-09-25 Thread Pom
Tim Chase wrote: >> def remapmysql(a): >> return (a[0], (a[1:])) >> >> def test_map(): >> count = 10 # count of simulated records >> l1 = range(0, count) >> l2 = range(count , 2 * count ) >> l3 = range(2 * count, 3 * count ) >> z1 = zip(l1, l2, l3) # simulate a mys

Re: I need some help with a regexp please

2006-09-25 Thread codefire
Yes, I didn't make it clear in my original post - the purpose of the code was to learn something about regexps (I only started coding Python last week). In terms of learning "a little more" the example was successful. However, creating a full email validator is way beyond me - the rules are far too

Re: python interpreter on solaris 10

2006-09-25 Thread sam
to update: i think i've tracked down the equivalent files on my pc. one opens the interpreter in a white-backed text editor, the other at the black-backed command prompt. i have equivalent files of the same size on the workstation, which must be the same. does anyone know why i'm getting 'there is

Re: Job offer python programmer

2006-09-25 Thread johannes
Paul Rubin wrote: > [EMAIL PROTECTED] writes: > > We're looking for a software developer Python/PHP/Ajax/MySQL for web > > applications (full time job). Maybe someone in this group might be > > interested in this job. > > Further information can be found here: > > About the job: http://www.Axandra.

Re: Emphasizing a gtk.Label

2006-09-25 Thread Maciej Dziardziel
ravenheart wrote: > I want to give some emphasis to a Label from gtk, without breaking gnome > theme (i.e. not changing colors, etc) > I think bolding it would be a good option (could be also underscoring > but don't like it at all). > What would be the best solution? How to do it? I have found ho

Re: Emphasizing a gtk.Label

2006-09-25 Thread MonkeeSage
ravenheart wrote: > What would be the best solution? How to do it? I have found how to > change colors and underscoring but nothing else. I don't know about the best, but I would use: label = gtk.Label() # Pango markup should be on by default, if not use this line #label.set_use_markup(True) labe

Re: Talking to marketing people about Python

2006-09-25 Thread codefire
Might be handy to point out that the Python version will be easier (and therefore cheaper) to maintain compared to the Perl version. As someone said there are numerous success stories at python.org. You could also point him at : http://www.tiobe.com/tpci.htm Although Perl is higher than Python (

Re: Emphasizing a gtk.Label

2006-09-25 Thread skip
>> I want to give some emphasis to a Label from gtk, without breaking >> gnome theme... What would be the best solution? Maybe: mylabel.set_markup("""My Label""") ? For more details, check out the PyGTK docs for the Label widget: http://www.moeraki.com/pygtkreference/pygtk2ref

Re: Talking to marketing people about Python

2006-09-25 Thread Fredrik Lundh
codefire wrote: > I think Google also gives a pretty big endorsement of Python (as you > wanted the marketing angle). or, depending on what part of the IT ecosystem you spend most of your time in, Microsoft (IronPython). -- http://mail.python.org/mailman/listinfo/python-list

Re: python interpreter on solaris 10

2006-09-25 Thread skip
sam> does anyone know why i'm getting 'there is no installed viewer sam> capable of displaying the document'? You probably need to associate files having .py file extensions with the Python interpreter. You've given no indication of the environment you're using other than "Solaris 10".

How to save High Quality JPG image by setting Image module from PIL

2006-09-25 Thread Daniel Mark
hello all: I am using Image module from PIL to save created image as JPG format. Is there any option I could set for function Image.save so that the stored image will have the highest quality. Thank you -Daniel -- http://mail.python.org/mailman/listinfo/python-list

Re: QuoteSQL

2006-09-25 Thread Sybren Stuvel
Lawrence D'Oliveiro enlightened us with: >> An escaping function should be small and not do all kinds of >> escaping for different situations at once. > > Even when the two situations are related? Yup, even then. Different situations need different escaping functions. Sybren -- Sybren Stüvel St

Re: python interpreter on solaris 10

2006-09-25 Thread casevh
> i think i've tracked down the equivalent files on my pc. one opens the > interpreter in a white-backed text editor, the other at the > black-backed command prompt. i have equivalent files of the same size > on the workstation, which must be the same. does anyone know why i'm > getting 'there is n

Re: Reverse a String?

2006-09-25 Thread p . lavarre
> http://pyfaq.infogami.com/suggest > is the "right" place to submit new entries. Thanks for sharing the secret. Now there I have added: "Q: How can I reverse a string, an array, a list, etc." And to share our secret with future newbies, to http://pyfaq.infogami.com/ I've added the suggestion:

Re: unicode, bytes redux

2006-09-25 Thread Fredrik Lundh
willie wrote: > Is it too ridiculous to suggest that it'd be nice > if the unicode object were to remember the > encoding of the string it was decoded from? > So that it's feasible to calculate the number > of bytes that make up the unicode code points. > > # U+270C > # 11100010 10011100 10001100

Re: How to save High Quality JPG image by setting Image module from PIL

2006-09-25 Thread Fredrik Lundh
Daniel Mark wrote: > I am using Image module from PIL to save created image as JPG format. > > Is there any option I could set for function Image.save so that the > stored image will have the highest quality. something like im.save(filename, quality=90) should do the trick. if you want t

Re: A critique of cgi.escape

2006-09-25 Thread Georg Brandl
Jon Ribbens wrote: > In article <[EMAIL PROTECTED]>, Max M wrote: >> Oh ... because you cannot see a use case for that *documented* >> behaviour, it must certainly be wrong? > > No, but if nobody else can find one either, that's a clue that maybe > it's safe to change. > > Here's a point for you

Re: Reverse a String?

2006-09-25 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > Thanks for sharing the secret. Now there I have added: "Q: How can I > reverse a string, an array, a list, etc." thanks! I'll take another look at the texts and the site settings when I find the time (still waiting for the infogami folks to get back to me about the

SQLObject 0.7.1 final release

2006-09-25 Thread Oleg Broytmann
Hello! I'm pleased to announce the 0.7.1 release of SQLObject. What is SQLObject = SQLObject is an object-relational mapper. Your database tables are described as classes, and rows are instances of those classes. SQLObject is meant to be easy to use and quick to get started wi

Re: Verify an e-mail-adress - syntax and dns

2006-09-25 Thread Georg Brandl
Christophe wrote: > Georg Brandl a écrit : >> Christophe wrote: >>> Steven D'Aprano a écrit : By memory, in an thread about the same topic just a few days ago, Fredrik Lundh posted a link to Perl's FAQs that suggests a method for "validating" email addresses: treat it lik

Re: Emphasizing a gtk.Label

2006-09-25 Thread ravenheart
Very useful. Thanks a lot -- http://mail.python.org/mailman/listinfo/python-list

SimpleXMLRPCServer and socket

2006-09-25 Thread Juju
Hi, First, sorry for my poor English ! I used the SimpleXMLRPCServer facility of Python to develop a multithread-server, here's part of my code : -- class TotoSimpleXMLRPCServer(SocketServer.ThreadingMixIn, SimpleXMLRPCServer.SimpleXMLRPCServer): def __init__(self, addr): SimpleXMLRPCServ

Re: A critique of cgi.escape

2006-09-25 Thread Dan Bishop
Fredrik Lundh wrote: > Jon Ribbens wrote: > > > Making cgi.escape always escape the '"' character would not break > > anything, and would probably fix a few bugs in existing code. Yes, > > those bugs are not cgi.escape's fault, but that's no reason not to > > be helpful. It's a minor improvement wi

Re: gtk.Entry Colors

2006-09-25 Thread Tuomas
MonkeeSage wrote: > Tuomas wrote: > >>Yes, I read the reference before posting here. I tried something like: > > > Hi Tuomas, > > I didn't mean to say that you hadn't read the docs (I had a hard time > finding the right methods in the docs too, even though I know the > methods); I just wanted t

python gtk based file manager

2006-09-25 Thread Fabian Braennstroem
Hi, I am looking for a file manager based on pygtk. It seems that there does not exist any!? Maybe, someone has a hint or already some starting code lines for such a 'thing'!? Greetings! Fabian -- http://mail.python.org/mailman/listinfo/python-list

SSL certificate meta data

2006-09-25 Thread Bernd Will
Hello everybody,   please help me with this topic:   Working at a big company (+100.000 employees worldwide), we have an amount of data centers and shared services where our webservers, backend server etc. are located. Now it happens from time to time, that certificates are expired and

Re: Newbie RE question

2006-09-25 Thread Tim Chase
1) Please don't top-post...it makes it hard to reply in context 2) You may want to "reply to all" so that the mailing list gets CC'd...there are lots of smart folks on the list, and by replying only to me, you limit your options to the meager extents of my knowledge. >>> I would like to search

Re: python interpreter on solaris 10

2006-09-25 Thread sam
[EMAIL PROTECTED] wrote: > > i think i've tracked down the equivalent files on my pc. one opens the > > interpreter in a white-backed text editor, the other at the > > black-backed command prompt. i have equivalent files of the same size > > on the workstation, which must be the same. does anyone k

Re: SimpleXMLRPCServer and socket

2006-09-25 Thread Fredrik Lundh
Juju wrote: > The problem I have, is I don't know how to get the port used by the > remote host ? just curious, but why do you need the *port* number used by the remote host ? -- http://mail.python.org/mailman/listinfo/python-list

Is there a regular expression for finding email address ?

2006-09-25 Thread Lad
Did anyone try to find out a regular expression for finding an email address in a text? Thank you for the reply L. -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a regular expression for finding email address ?

2006-09-25 Thread Diez B. Roggisch
Lad schrieb: > Did anyone try to find out a regular expression for finding an email > address in a text? > Thank you for the reply Entering your subject line into google as it is, using the first result found, you can get one. Diez -- http://mail.python.org/mailman/listinfo/python-list

2.5 updates for syntax file

2006-09-25 Thread John Salerno
Hi everyone. I'm updating my UltraEdit syntax file for Python 2.5 and was wondering if anyone knew of other additions to make besides these. I found all of these in the What's New document, but wasn't sure if there were other important things to add for highlight. "Reserved Words" with "__Meth

SSL meta data

2006-09-25 Thread BerndWill
Hello everybody, please help me with this topic: Working at a big company (+100.000 employees worldwide), we have an amount of data centers and shared services where our webservers, backend server etc. are located. Now it happens from time to time, that certificates are expired and instead

R.S.I. solutions?

2006-09-25 Thread Paddy
All this keyboarding has finally caught up with me and I'm getting aches in my fingers. last weekend I did the round of the usual UK High Street shops - PC World, Currys and Comet. I finally got a new Microsoft 4000 ergonomic keyboard, but all the ergonomic Mice and trackballs were gone!. I've fin

Re: Talking to marketing people about Python

2006-09-25 Thread Carl Banks
[EMAIL PROTECTED] wrote: > As a sometimes marketing droid on my day job (please don't tell > anyone!) I think you should point out that, while 5-10 years ago Perl > was more popular and widely used than Python, Python has been growing > at a much higher rate, and by many (most?) measurements, Pytho

Re: Re: Leave the putdowns in the Perl community, the Python world does not need them

2006-09-25 Thread Timothy Grant
On 25 Sep 2006 07:35:45 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Metaperl, > > Steve makes a good point. Fredrik is one of the most important > contributors of Python code, tools, etc and as far as I am concerned, > that is so important that it gives him the right to be cranky from tie

Embed Python in HTML?

2006-09-25 Thread Sean Hammond
Forgive my ignorance, but I sometimes write custom dynamic web-pages using PHP, by simply embedding PHP in HTML with tags, and renaming for example index.html to index.php and making it executable. I only use this for very minor things like calling a script, and don't really want to learn any more

Re: SSL meta data

2006-09-25 Thread Paul Rubin
"BerndWill" <[EMAIL PROTECTED]> writes: > I would love to read programmatically some information out of the > certificates itself (who signed it and what is the validation period, i.e. > meta data). > > Can someone please help me out here !? This is very cheesy but I sometimes I've just run th

Re: ruby %w equivalent

2006-09-25 Thread hg
Antoine De Groote wrote: > Hi everybody, > > is there a python equivalent for the ruby %w operator? > %w{a b c} creates an array with strings "a", "b", and "c" in ruby... > > Thanks a lot > Regards, > antoine Why would they want to make such an obscure API ? ... didn't they have Python to learn

Re: Talking to marketing people about Python

2006-09-25 Thread Carl Banks
Roy Smith wrote: > I'm working on a product which for a long time has had a Perl binding for > our remote access API. A while ago, I wrote a Python binding on my own, > chatted it up a bit internally, and recently had a (large) customer enquire > about getting access to it. > > I asked for permis

Re: Embed Python in HTML?

2006-09-25 Thread Ramon Diaz-Uriarte
On 9/25/06, Sean Hammond <[EMAIL PROTECTED]> wrote: > Forgive my ignorance, but I sometimes write custom dynamic web-pages > using PHP, by simply embedding PHP in HTML with tags, and > renaming for example index.html to index.php and making it executable. I > only use this for very minor things li

Re: Embed Python in HTML?

2006-09-25 Thread Fredrik Lundh
Sean Hammond wrote: > Forgive my ignorance, but I sometimes write custom dynamic web-pages > using PHP, by simply embedding PHP in HTML with tags, and > renaming for example index.html to index.php and making it executable. I > only use this for very minor things like calling a script, and don't

Re: python interpreter on solaris 10

2006-09-25 Thread casevh
> > /usr/bin/python > not found > > /usr/lib/python2.4/idlelib/idle.py > /usr/sfw/python2.3/idlelib/idle.py gives > > 'there is no action associated with "idle.py"' > configure gnome to associate application? > > click yes: > edit file type window pops up. > program to run menu is empty. > browse i

ANN: dmath 0.9 - Math routines for the Decimal type

2006-09-25 Thread Brian Beck
Hi all, I'm pleased to announce the first release of my new library, dmath. It is available under the MIT/X11 license. Download Cheese Shop: http://cheeseshop.python.org/pypi/dmath/0.9 Google Code: http://code.google.com/p/dmath/ What is dmath? == dmath provides the standa

Re: SSL meta data

2006-09-25 Thread Jan Dries
Paul Rubin wrote: > "BerndWill" <[EMAIL PROTECTED]> writes: >> I would love to read programmatically some information out of the >> certificates itself (who signed it and what is the validation period, i.e. >> meta data). >> >> Can someone please help me out here !? > > This is very cheesy but

Re: ANN: dmath 0.9 - Math routines for the Decimal type

2006-09-25 Thread Brian Beck
Brian Beck wrote: > What is dmath? > == > dmath provides the standard math routines for Python's arbitrary-precision > Decimal type. These include acos, asin, atan, atan2, ceil, cos, cosh, > degrees, e, exp, floor, golden_ratio, hypot, log, log10, pi, pow, radians, > sign, sin, sinh, sq

Re: SSL meta data

2006-09-25 Thread Paul Rubin
Jan Dries <[EMAIL PROTECTED]> writes: > C:\> curl -v https://www.paypal.com > > I'm sure that by using the cURL API directly, you can obtain the > certificate information in a more direct way without having to rely on > parsing the above output with regexps. Doing so might also be more > complex t

Re: ruby %w equivalent

2006-09-25 Thread MonkeeSage
hg wrote: > Why would they want to make such an obscure API ? ... didn't they have > Python to learn from (I am truly amazed - nothing cynical ...just ... > why ?) In ruby there are several special literal notations, just like python. In ruby it goes like this: %{blah} / %Q{blah} # same as "b

Re: ANN: dmath 0.9 - Math routines for the Decimal type

2006-09-25 Thread km
and how different is MIT licence to GPL ? could u elaborate on that ? regards, KM On 9/26/06, Brian Beck <[EMAIL PROTECTED]> wrote: > Brian Beck wrote: > > What is dmath? > > == > > dmath provides the standard math routines for Python's arbitrary-precision > > Decimal type. These inclu

Re: Leave the putdowns in the Perl community, the Python world does not need them

2006-09-25 Thread John Salerno
Steven Bethard wrote: > [1] He's the author of Python's unicode support and Python 2.5's > elementtree module. Is that all? ;) He also implemented the partition string method, which for some reason I think is the coolest thing since sliced lists. :) -- http://mail.python.org/mailman/listinfo/

Re: python interpreter on solaris 10

2006-09-25 Thread sam
> I would try to use the python executable located in /usr/bin if it is > exists, otherwise use the python executable in /usr/sfw/bin. > > casevh lordy lord, is that where it was. i just found it now. i had been thinking that idle was the name of the python interpreter, not just the IDE, hence m

<    1   2   3   4   >