ANN: SkipoleMonitor0.2 released

2007-05-18 Thread Bernie
SkipoleMonitor is available at http://code.google.com/p/skipole-monitor/ Version 0.2 now released, this version adds the option to automatically send email alerts should the status of any monitored host change. What is SkipoleMonitor? = SkipoleMonitor is a free network monitor

MailingLogger 3.1.0 Released!

2007-05-18 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

Re: omissions in python docs?

2007-05-18 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 to correct

Re: How to convert a number to binary?

2007-05-18 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) '0144' hex(100) '0x64' Is there an *easy*

Re: Interesting list Validity (True/False)

2007-05-18 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 either

Re: How to convert a number to binary?

2007-05-18 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, Michael That's

Re: A new project.

2007-05-18 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: alternative to eclipse [ python ide AND cvs ]

2007-05-18 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: alternative to eclipse [ python ide AND cvs ]

2007-05-18 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 plugins IMO.

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-18 Thread Paul Rubin
Martin v. Löwis [EMAIL PROTECTED] writes: Now I understand it is meaning 12 in Merriam-Webster's dictionary, a) to decline to bid, double, or redouble in a card game, or b) to let something go by without accepting or taking advantage of it. I never thought of it as having that meaning. I

Re: Unusual i/o problems

2007-05-18 Thread saif . shakeel
On May 16, 7:55 pm, Peter Otten [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: output_file = open(test_file,w) ... input_xml_sec = open(output_file,'r') Can you spot the problem now? To prevent it, use a naming convention that allows you to distinguish between file /names/ and file

Re: alternative to eclipse [ python ide AND cvs ]

2007-05-18 Thread Nathan Harmston
I have had very few problems with eclipse on ubuntu with pydev installed. Is it still running under the gnu jvm, not the sun one? It was crashing on me until I changed them around, detials about changing it around on ubuntu anyway

How to stop a scheduler stated using

2007-05-18 Thread Nagendra Kumar
Hello ALL, I am trying to schdule some of my class methods using sched module of python import sched, time s=sched.scheduler(time.time, time.sleep) event1=s.enter(60, 1, obj.scheduleAbuseAssignment1, ()) event2=s.enter(60, 1, obj.scheduleAbuseAssignment2, ()) event3=s.enter(60,

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-18 Thread Paul Rubin
Martin v. Löwis [EMAIL PROTECTED] writes: Integration with existing tools *is* something that a PEP should consider. This one does not do that sufficiently, IMO. What specific tools should be discussed, and what specific problems do you expect? Emacs, whose unicode support is still pretty

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-18 Thread Hendrik van Rooyen
Hendrik van Rooyen [EMAIL PROTECTED] wrote: Now look me in the eye and tell me that you find the mix of proper German and English keywords beautiful. I can't admit that, but I find that using German class and method names is beautiful. The rest around it (keywords and names

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

2007-05-18 Thread Hendrik van Rooyen
Beliavsky [EMAIL PROTECTED] 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. rest snipped I think Cameron Laird

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-18 Thread Hendrik van Rooyen
Sion Arrowsmith [EMAIL PROTECTED] wrote: Hvr: Would not like it at all, for the same reason I don't like re's - It looks like random samples out of alphabet soup to me. What I meant was, would the use of foreign identifiers look so horrible to you if the core language had fewer English keywords?

Re: tkinter button state = DISABLED

2007-05-18 Thread Eric Brunel
On Thu, 17 May 2007 09:30:57 +0200, Hendrik van Rooyen [EMAIL PROTECTED] wrote: Gabriel Genellina [EMAIL PROTECTED] wrote: En Wed, 16 May 2007 03:22:17 -0300, Hendrik van Rooyen I have never seen this working in Tkinter, unless the button was pressed on the widget in question - and

Re: Execute commands from file

2007-05-18 Thread Douglas Woodrow
On Fri, 18 May 2007 04:45:30, Dennis Lee Bieber [EMAIL PROTECTED] wrote On 17 May 2007 13:12:10 -0700, i3dmaster [EMAIL PROTECTED] declaimed the following in comp.lang.python: 'b' is generally useful on systems that don't treat binary and text files differently. It will improve portability.

Re: alternative to eclipse [ python ide AND cvs ]

2007-05-18 Thread Jarek Zgoda
Stargaming napisał(a): Well, basically any editor that features plugins IMO. Although this sounds much like a which editor is the best? question (what will enrage us even more than non-ASCII identifiers wink), I'd suggest Vim. The IDE which embeds Vim is PIDA: http://www.pida.co.uk/. Looks

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

2007-05-18 Thread Jarek Zgoda
Wildemar Wildenburger napisał(a): To make it short: Is there something like this already? 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

Re: Regexes: How to handle escaped characters

2007-05-18 Thread Torsten Bronger
Hallöchen! John Machin writes: On May 18, 6:00 am, Torsten Bronger [EMAIL PROTECTED] wrote: [...] Example string: uHollo, escaped positions: [4]. Thus, the second o is escaped and must not be found be the regexp searches. Instead of re.search, I call the function

Re: How to convert a number to binary?

2007-05-18 Thread Lyosha
On May 17, 11:04 pm, Stargaming [EMAIL PROTECTED] wrote: [...] Is there an *easy* way to convert a number to binary? [...] Wrote this a few moons ago:: dec2bin = lambda x: (dec2bin(x/2) + str(x%2)) if x else '' This is awesome. Exactly what I was looking for. Works for other bases too.

Re: alternative to eclipse [ python ide AND cvs ]

2007-05-18 Thread Steven Howe
Stargaming wrote: 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 Fond of Komodo. Seems to run most

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

2007-05-18 Thread Wildemar Wildenburger
Jarek Zgoda wrote: There are few GUI frameworks building on various toolkits. I used to use Kiwi for PyGTK, it's mature and stable, although the approach is not the same as, for example, Delphi Thanks for the effort, but I think I'm not well understood. I'm not looking for a GUI framework

Re: How to convert a number to binary?

2007-05-18 Thread Lyosha
On May 17, 11:10 pm, Ben Finney [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? You put in a module so you don't *have* to remember it. Then, you use it in this one-liner: foo = to_base(15, 2)

Re: Sending a JavaScript array to Python script?

2007-05-18 Thread Bruno Desthuilliers
placid a écrit : Hi All, Just wondering if there is any way of sending a JavaScript array to a Python cgi script? A quick Google search didn't turn up anything useful. Look for json. -- http://mail.python.org/mailman/listinfo/python-list

Re: Unusual i/o problems

2007-05-18 Thread Peter Otten
[EMAIL PROTECTED] wrote: I am running the exe from command prompt,but i am not able to see the error as it goes off very quickly. http://effbot.org/pyfaq/how-do-i-run-a-python-program-under-windows.htm How do i capture the error (traceback).I tried putting an input prompt after the expected

Anyone use PyPar (Python MPI implementation) recently?

2007-05-18 Thread Ole Nielsen
Cheers and thanks Ole -- http://mail.python.org/mailman/listinfo/python-list

i/o prob revisited

2007-05-18 Thread saif . shakeel
Hi, I am parsing an xml file ,before that i have replaced a string in the original xml file with another and made a new xml file which will now be parsed.I am also opening some more files for output.The following code shows some i/o commands. file_input = raw_input(Enter The ODX File Path:)

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-18 Thread Paul Rubin
Martin v. Löwis [EMAIL PROTECTED] writes: If you doubt the claim, please indicate which of these three aspects you doubt: 1. there are programmers which desire to defined classes and functions with names in their native language. 2. those developers find the code clearer and more

emacs python debugging: pydb or pdb fringe interaction

2007-05-18 Thread Paul Rudin
I can't get the gdb fringe interaction functionality to work with either pdb or pydb. Any hints as to versions or incantations I should try? I have the emacs22 from debian unstable emacs-snapshot-gtk package fwiw. -- http://mail.python.org/mailman/listinfo/python-list

App Leaving 'sh defunct' Everywhere

2007-05-18 Thread Robert Rawlins - Think Blue
Hello Guys, I've got an application that seems to leave 'sh defunct' in my os processes list. I'm running it on Debian, albeit a stripped down embedded version. I'm not sure what the cause of this is, My application starts several threads and also uses popen2.popen3() to run a few CMD

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

2007-05-18 Thread Jarek Zgoda
Wildemar Wildenburger napisał(a): There are few GUI frameworks building on various toolkits. I used to use Kiwi for PyGTK, it's mature and stable, although the approach is not the same as, for example, Delphi Thanks for the effort, but I think I'm not well understood. I'm not looking for a

Random selection

2007-05-18 Thread Tartifola
Hi, I have a list with probabilities as elements [p1,p2,p3] with of course p1+p2+p3=1. I'd like to draw a random element from this list, based on the probabilities contained in the list itself, and return its index. Any help on the best way to do that? Thanks --

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-18 Thread Torsten Bronger
Hallöchen! Martin v. Löwis writes: In [EMAIL PROTECTED], Nick Craig-Wood wrote: My initial reaction is that it would be cool to use all those great symbols. A variable called OHM etc! This is a nice candidate for homoglyph confusion. There's the Greek letter omega (U+03A9) Ω and the

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-18 Thread Thomas Bellman
=?UTF-8?B?Ik1hcnRpbiB2LiBMw7Z3aXMi?= [EMAIL PROTECTED] wrote: 3) Is or will there be a definitive and exhaustive listing (with bitmap representations of the glyphs to avoid the font issues) of the glyphs that the PEP 3131 would allow in identifiers? (Does this question even make sense?) As

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

2007-05-18 Thread Jarek Zgoda
Daniel Nogradi napisał(a): For example, it HAS been published elsewhere that YouTube uses lighttpd, not Apache: http://trac.lighttpd.net/trac/wiki/PoweredByLighttpd. How do you explain these, then: http://www.youtube.com/results.xxx http://www.youtube.com/results.php

Re: An expression that rebinds a variable?

2007-05-18 Thread Thomas Bellman
GreenH [EMAIL PROTECTED] writes: 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 namespace, where 'expr' is the expression List

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

2007-05-18 Thread Daniel Nogradi
For example, it HAS been published elsewhere that YouTube uses lighttpd, not Apache: http://trac.lighttpd.net/trac/wiki/PoweredByLighttpd. How do you explain these, then: http://www.youtube.com/results.xxx http://www.youtube.com/results.php http://www.youtube.com/results.py Just wondering,

Re: i/o prob revisited

2007-05-18 Thread half . italian
On May 18, 12:06 am, [EMAIL PROTECTED] wrote: Hi, I am parsing an xml file ,before that i have replaced a string in the original xml file with another and made a new xml file which will now be parsed.I am also opening some more files for output.The following code shows some i/o commands.

Re: How to convert a number to binary?

2007-05-18 Thread Nick Craig-Wood
Lyosha [EMAIL PROTECTED] wrote: On May 17, 11:04 pm, Stargaming [EMAIL PROTECTED] wrote: [...] Is there an *easy* way to convert a number to binary? [...] Wrote this a few moons ago:: dec2bin = lambda x: (dec2bin(x/2) + str(x%2)) if x else '' This is awesome. Exactly what I

Re: i/o prob revisited

2007-05-18 Thread saif . shakeel
On May 18, 1:50 pm, [EMAIL PROTECTED] wrote: On May 18, 12:06 am, [EMAIL PROTECTED] wrote: Hi, I am parsing an xml file ,before that i have replaced a string in the original xml file with another and made a new xml file which will now be parsed.I am also opening some more files

Re: Unusual i/o problems

2007-05-18 Thread saif . shakeel
On May 18, 1:01 pm, Peter Otten [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: I am running the exe from command prompt,but i am not able to see the error as it goes off very quickly. http://effbot.org/pyfaq/how-do-i-run-a-python-program-under-windows.htm How do i capture the error

Re: Unusual i/o problems

2007-05-18 Thread Peter Otten
[EMAIL PROTECTED] wrote: On May 18, 1:01 pm, Peter Otten [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: I am running the exe from command prompt,but i am not able to see the error as it goes off very quickly. http://effbot.org/pyfaq/how-do-i-run-a-python-program-under-windows.htm

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-18 Thread Laurent Pointal
Long and interresting discussion with different point of view. Personnaly, even if the PEP goes (and its accepted), I'll continue to use identifiers as currently. But I understand those who wants to be able to use chars in their own language. * for people which are not expert developers

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-18 Thread Torsten Bronger
Hallöchen! Laurent Pointal writes: [...] Personnaly, even if the PEP goes (and its accepted), I'll continue to use identifiers as currently. [...] Me too (mostly), although I do like the PEP. While many people have pointed out possible issues of the PEP, only few have tried to estimate its

Re: Random selection

2007-05-18 Thread Peter Otten
Tartifola wrote: I have a list with probabilities as elements [p1,p2,p3] with of course p1+p2+p3=1. I'd like to draw a random element from this list, based on the probabilities contained in the list itself, and return its index. Any help on the best way to do that? import random

Cannot parse simple entity references using xml.sax

2007-05-18 Thread Debajit Adhikary
I'm writing a SAX parser using Python and need to parse XML with entity references. taglt;gt;/tag Only the last entity reference gets parsed. Why are startEntity() and endEntity() never called? I'm using the following code: http://pastie.textmate.org/62610 --

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

2007-05-18 Thread Jarek Zgoda
Ben Finney napisał(a): Thanks for the effort, but I think I'm not well understood. I'm not looking for a GUI framework (which, by the way, is most likely to be wxPython), but for a pure plugin architecture. A rich-client-platform, as it is sometimes called. Nothing specific about anythin in

Re: zipfile stupidly broken

2007-05-18 Thread Nick Craig-Wood
Martin Maney [EMAIL PROTECTED] wrote: To quote from zipfile.py (2.4 library): # Search the last END_BLOCK bytes of the file for the record signature. # The comment is appended to the ZIP file and has a 16 bit length. # So the comment may be up to 64K long. We limit the

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

2007-05-18 Thread Ben Finney
Wildemar Wildenburger [EMAIL PROTECTED] writes: Thanks for the effort, but I think I'm not well understood. I'm not looking for a GUI framework (which, by the way, is most likely to be wxPython), but for a pure plugin architecture. A rich-client-platform, as it is sometimes called. Nothing

Re: pyhdf

2007-05-18 Thread [EMAIL PROTECTED]
Hi, I can't help here, just a recommendation: I am using pytables (http://www.pytables.org) build upon hdf5. If you're not bound to hdf4, go and try pytables instead of pyhdf. Bernhard -- http://mail.python.org/mailman/listinfo/python-list

Re: App Leaving 'sh defunct' Everywhere

2007-05-18 Thread Michael Bentley
On May 18, 2007, at 3:49 AM, Robert Rawlins - Think Blue wrote: I’ve got an application that seems to leave ‘sh defunct’ in my os processes list. I’m running it on Debian, albeit a stripped down embedded version. I’m not sure what the cause of this is, My application starts several

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-18 Thread Gregor Horvath
Hendrik van Rooyen schrieb: I suppose that this one language track - mindedness of mine is why I find the mix of keywords and German or Afrikaans so abhorrent - I cannot really help it, it feels as if I am eating a sandwich, and that I bite on a stone in the bread. - It just jars. Please

A best approach to a creating specified http post body

2007-05-18 Thread dzawer
Hi all, I'm rather new to python but not exaclty without programming experience and not quite get best pyhton practices. I have a following problem that it seems I cannot find a way to solve correctly. I need to build a special http post body that consists of : name=value +\r\n strings. Problem

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

2007-05-18 Thread stefaan
To make it short: Is there something like this already? To keep it short: yes. To make it longer: not sure about its status... i've never tried it myself. To make it short again: http://code.enthought.com/ets/ I also know some people are trying to create something called pyxides, but also there

Re: Regexes: How to handle escaped characters

2007-05-18 Thread Charles Sanders
Torsten Bronger wrote: Hallöchen! [...] Example string: uHollo, escaped positions: [4]. Thus, the second o is escaped and must not be found be the regexp searches. Instead of re.search, I call the function guarded_search(pattern, text, offset) which takes care of escaped caracters. Thus,

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

2007-05-18 Thread Bruno Desthuilliers
John Nagle a écrit : Victor Kryukov wrote: Hello list, our team is going to rewrite our existing web-site, which has a lot of dynamic content and was quickly prototyped some time ago. ... Our main requirement for tools we're going to use is rock-solid stability. As one of our team-members

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

2007-05-18 Thread Bruno Desthuilliers
Istvan Albert a écrit : On May 16, 5:04 pm, Victor Kryukov [EMAIL PROTECTED] wrote: Our main requirement for tools we're going to use is rock-solid stability. As one of our team-members puts it, We want to use tools that are stable, has many developer-years and thousands of user-years

Re: How to convert a number to binary?

2007-05-18 Thread Sion Arrowsmith
Lyosha [EMAIL PROTECTED] wrote: On May 17, 11:04 pm, Stargaming [EMAIL PROTECTED] wrote: dec2bin = lambda x: (dec2bin(x/2) + str(x%2)) if x else '' [ ... ] I guess the reason I couldn't come up with something like this was being brainwashed that lambda is a no-no. And python2.5 funky ?:

Re: List Moderator

2007-05-18 Thread kyosohma
On May 18, 12:36 am, Steve Holden [EMAIL PROTECTED] wrote: 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

Re: Multi-Page login WITH Cookies (POST Data)

2007-05-18 Thread Dave Borne
After we are able to get a succussful login, i need a way that i can browse my site always including this cookie, like if i went to open up a page, it would use the cookie we got from logging in. You need something like this: import cookielib,urllib2 cookiejar = cookielib.CookieJar() opener =

Re: A best approach to a creating specified http post body

2007-05-18 Thread Dave Borne
I need to build a special http post body that consists of : name=value +\r\n strings. Problem is that depending on operations the number of name,value pairs can increase and decrease. Values need to be initialized at runtime, so storing premade text files is not possible. I'm not

Greg Miller/NexPress is out of the office.

2007-05-18 Thread gregory . miller
I will be out of the office starting 05/17/2007 and will not return until 05/21/2007. -- http://mail.python.org/mailman/listinfo/python-list

Re: A best approach to a creating specified http post body

2007-05-18 Thread Shane Geiger
Why not use scotch.recorder? Dave Borne wrote: I need to build a special http post body that consists of : name=value +\r\n strings. Problem is that depending on operations the number of name,value pairs can increase and decrease. Values need to be initialized at runtime, so storing premade

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

2007-05-18 Thread Alex Martelli
Jarek Zgoda [EMAIL PROTECTED] wrote: Daniel Nogradi napisa?(a): For example, it HAS been published elsewhere that YouTube uses lighttpd, not Apache: http://trac.lighttpd.net/trac/wiki/PoweredByLighttpd. How do you explain these, then: http://www.youtube.com/results.xxx

Re: A best approach to a creating specified http post body

2007-05-18 Thread dzawer
On May 18, 4:57 pm, Dave Borne [EMAIL PROTECTED] wrote: I need to build a special http post body that consists of : name=value +\r\n strings. Problem is that depending on operations the number of name,value pairs can increase and decrease. Values need to be initialized at runtime, so

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

2007-05-18 Thread Wildemar Wildenburger
Jarek Zgoda wrote: I've never used Eclipse (beyond proving that it runs on various computers). Can you please describe what behaviour you're looking for? The key is not Eclipse itself, but the whole Eclipse Platform. See http://wiki.eclipse.org/index.php/Rich_Client_Platform Thank

Python for Smartcards on Windows XP (Python 2.4)

2007-05-18 Thread Thin Myrna
Dear all I headed for for a Smartcard lib for Python and found PyCSC. The zipped sources do not build [1] and the installer (exe file) wants to see a Python 2.5 installation. Does anyone know of an installer for Python 2.4? Kind regards Thin Myrna [1] python setup.py install yields

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

2007-05-18 Thread Daniel Nogradi
For example, it HAS been published elsewhere that YouTube uses lighttpd, not Apache: http://trac.lighttpd.net/trac/wiki/PoweredByLighttpd. How do you explain these, then: http://www.youtube.com/results.xxx http://www.youtube.com/results.php http://www.youtube.com/results.py

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

2007-05-18 Thread Wildemar Wildenburger
stefaan wrote: To make it short: Is there something like this already? To make it short again: http://code.enthought.com/ets/ Nice, seems very interesting. Bit of a bitch to set up, as it appears from scanning the site, but that might be it. Thanks :) Now for the everlasting circle of

A Few More Forrester Survey Questions

2007-05-18 Thread Jeff Rush
I'm down to the wire here on answering the Forrester survey but am stumped on a few questions I hope someone can help me out with. 1) What -existing- examples of the use of Python to create social web applications are there? These include chat, collaboration, forum boards, and editable

Why canNOT import from a local directory ?

2007-05-18 Thread Jia Lu
Hi all I created a folder named *lib* and put a py file *lib.py* in it. In the upper folder I created a py file as: CODE import lib.lib def main(): __doc__ lib.lib.test() # if __name__ == __main__: main() But I got an error :

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

2007-05-18 Thread Peter Wang
On May 18, 10:15 am, Wildemar Wildenburger [EMAIL PROTECTED] wrote: stefaan wrote: To make it short again:http://code.enthought.com/ets/ Nice, seems very interesting. Bit of a bitch to set up, as it appears from scanning the site, but that might be it. Actually, just this week, we completed

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-18 Thread Istvan Albert
On May 17, 2:30 pm, Gregor Horvath [EMAIL PROTECTED] wrote: Is there any difference for you in debugging this code snippets? class Türstock(object): Of course there is, how do I type the ü ? (I can copy/paste for example, but that gets old quick). But you're making a strawman argument by

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

2007-05-18 Thread Stef Mientki
Wildemar Wildenburger wrote: Jarek Zgoda wrote: There are few GUI frameworks building on various toolkits. I used to use Kiwi for PyGTK, it's mature and stable, although the approach is not the same as, for example, Delphi Thanks for the effort, but I think I'm not well understood. I'm not

Re: progress indicator in a mod_python script

2007-05-18 Thread Larry Bates
Rajarshi wrote: Hi, I have a web application built using mod_python.Currently it behaves like a standard CGI - gets data from a form, performs a query on a backend database and presents a HTML page. However the query can sometimes take a bit of time and I'd like to show the user some form

Re: Why canNOT import from a local directory ?

2007-05-18 Thread Thin Myrna
Jia Lu wrote: Hi all I created a folder named *lib* and put a py file *lib.py* in it. In the upper folder I created a py file as: CODE import lib.lib def main(): __doc__ lib.lib.test() # if __name__ == __main__:

Re: Why canNOT import from a local directory ?

2007-05-18 Thread Jia Lu
You need to define a file __init__.py in your newly created lib directory. Thank you very much :) -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-18 Thread Javier Bezos
Istvan Albert [EMAIL PROTECTED] escribió: How about debugging this (I wonder will it even make it through?) : class 6??? 6?? = 0 6? ?? ?=10 This question is more or less what a Korean who doesn't speak English would ask if he had to debug a program written in English. (I

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-18 Thread Paul Boddie
On 18 Mai, 18:42, Javier Bezos [EMAIL PROTECTED] wrote: Istvan Albert [EMAIL PROTECTED] escribió: How about debugging this (I wonder will it even make it through?) : class 6??? 6?? = 0 6? ?? ?=10 This question is more or less what a Korean who doesn't speak English

namespace question

2007-05-18 Thread T. Crane
Hi, If I define a class like so: class myClass: import numpy a = 1 b = 2 c = 3 def myFun(self): print a,b,c return numpy.sin(a) I get the error that the global names a,b,c,numpy are not defined. Fairly straightforward. But if I am going to be writing

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

2007-05-18 Thread Cameron Laird
In article [EMAIL PROTECTED], Steve Holden [EMAIL PROTECTED] wrote: 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,

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-18 Thread Gregor Horvath
Istvan Albert schrieb: On May 17, 2:30 pm, Gregor Horvath [EMAIL PROTECTED] wrote: Is there any difference for you in debugging this code snippets? class Türstock(object): Of course there is, how do I type the ü ? (I can copy/paste for example, but that gets old quick). I doubt that

Re: A best approach to a creating specified http post body

2007-05-18 Thread Facundo Batista
[EMAIL PROTECTED] wrote: Hmm, I guess I meant something different by using body- I meant request data part and not the thing sent in ulr string. You should specify better what you need yes. See, to send POST information in an http request, you can do the following... urllib2.urlopen(myurl,

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

2007-05-18 Thread Kirk Job Sluder
Stef Mientki [EMAIL PROTECTED] writes: I took a look at Eclipse page you mentioned but after reading the first page I still don't understand what you mean (and I never read beyond the first page ;-). With a plugin system, I can think of a complete operating system, or I can think of

Re: List Moderator

2007-05-18 Thread Beliavsky
On May 18, 9:22 am, [EMAIL PROTECTED] wrote: snip You're probably right, but this week has been pretty bad. Every few posts there's another porn or boob related link. Sheesh! Mike I wish Google Groups were enhanced to let users block messages according to (1) keywords (2) average ranking

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

2007-05-18 Thread Michele Simionato
On May 16, 11:04 pm, Victor Kryukov [EMAIL PROTECTED] wrote: Our main requirement for tools we're going to use is rock-solid stability. As one of our team-members puts it, We want to use tools that are stable, has many developer-years and thousands of user-years behind them, and that we

Re: namespace question

2007-05-18 Thread Robert Kern
T. Crane wrote: Hi, If I define a class like so: class myClass: import numpy a = 1 b = 2 c = 3 def myFun(self): print a,b,c return numpy.sin(a) I get the error that the global names a,b,c,numpy are not defined. Fairly straightforward.

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

2007-05-18 Thread Daniel Nogradi
For example, it HAS been published elsewhere that YouTube uses lighttpd, not Apache: http://trac.lighttpd.net/trac/wiki/PoweredByLighttpd. How do you explain these, then: http://www.youtube.com/results.xxx http://www.youtube.com/results.php http://www.youtube.com/results.py

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

2007-05-18 Thread Wildemar Wildenburger
Stef Mientki wrote: I took a look at Eclipse page you mentioned but after reading the first page I still don't understand what you mean (and I never read beyond the first page ;-). Well, what can I say ... ;) With a plugin system, I can think of a complete operating system, or I can

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-18 Thread Gregor Horvath
Paul Boddie schrieb: Perhaps, but the treatment by your mail/news software plus the delightful Google Groups of the original text (which seemed intact in the original, although I don't have the fonts for the content) would suggest that not just social or cultural issues would be involved. I

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

2007-05-18 Thread John Nagle
Bruno Desthuilliers wrote: John Nagle a écrit : Victor Kryukov wrote: Hello list, our team is going to rewrite our existing web-site, which has a lot of dynamic content and was quickly prototyped some time ago. ... Our main requirement for tools we're going to use is rock-solid

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-18 Thread Javier Bezos
This question is more or less what a Korean who doesn't speak English would ask if he had to debug a program written in English. Perhaps, but the treatment by your mail/news software plus the delightful Google Groups of the original text (which seemed intact in the original, although I

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

2007-05-18 Thread Wildemar Wildenburger
Peter Wang wrote: Actually, just this week, we completed a major SVN reorganization and from this point forward, all of the libraries in ETS will be released as eggs. In fact, eggs have been available for a long time for python 2.4, and now we have them for python 2.5 as well. I'm not

Re: Regexes: How to handle escaped characters

2007-05-18 Thread Torsten Bronger
Hallöchen! Charles Sanders writes: Torsten Bronger wrote: [...] Example string: uHollo, escaped positions: [4]. Thus, the second o is escaped and must not be found be the regexp searches. Instead of re.search, I call the function guarded_search(pattern, text, offset) which takes care

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

2007-05-18 Thread John Nagle
Alex Martelli wrote: Jarek Zgoda [EMAIL PROTECTED] wrote: Daniel Nogradi napisa?(a): For example, it HAS been published elsewhere that YouTube uses lighttpd, not Apache: http://trac.lighttpd.net/trac/wiki/PoweredByLighttpd. How do you explain these, then:

Anti-Aliasing in wxPython?

2007-05-18 Thread Alexander D�nisch
Hi everybody i'm wondering if there's a way to enable Anti-Aliasing for the Graphics Object in wxPython. in Java i do this: ((Graphics2D)g).setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); i haven't found anything like this in wxPython yet.

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

2007-05-18 Thread John Nagle
John Nagle wrote: YouTube's home page is PHP. Try www.youtube.com/index.php. That works, while the obvious alternatives don't. If you look at the page HTML, you'll see things like a href=/login?next=/index.php onclick=_hbLink('LogIn','UtilityLinks');Log In/a So there's

  1   2   >