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 mean

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

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 http://ubuntuguide.org/wiki/Ubuntu_Edgy#How_to_install_Java_Integra

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, obj.scheduleAbuse

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

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

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. > > > > I think Camero

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 Engli

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

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 porta

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 ), I'd suggest Vim. The IDE which embeds Vim is PIDA: http://www.pida.co.uk/. Looks pr

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 simpl

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: u"Hollo", 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 ba

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

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

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

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 expec

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:") i

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 m

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

2007-05-18 Thread Robert Rawlins - Think Blue
Hello Guys, I've got an application that seems to leave 'sh ' 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 commands. An

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

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 -- http://mail.python.org/mailma

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

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 sens

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: . > > How do you explain these, then: > > http://www.youtube.com/results.xxx > http://www.youtube.com/results.php > http://w

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 compre

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

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 awe

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

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 t

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

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 (non-pros

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

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 ran

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. <> 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 -- http://mail.python.org/mailman/listinfo/pytho

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 an

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

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 ' 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 ’ 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 al

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

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: u"Hollo", 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

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

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

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 f

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

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 comp

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 t

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: . > > > > How do you explain these, then: > > > > http://www.youtube.com/res

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 r

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

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 F:\Softwa

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: . > > > > > > How do you explain these, then: > > > > > > http://www.youtube.com/results.xxx > > > http://www.youtube.com/results.php > > > http:/

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

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 cont

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

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

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 f

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: > > > import lib.lib > > def main(): > """ > __doc__ > """ > lib.lib.test() > > > # > if __name

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.

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'

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 seve

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

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

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

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 so

Re: List Moderator

2007-05-18 Thread Beliavsky
On May 18, 9:22 am, [EMAIL PROTECTED] wrote: > 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 w

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

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: . > > > > > > How do you explain these, then: > > > > > > http://www.youtube.com/results.xxx > > > http://www.youtube.com/results.php > > > http:/

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

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.

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 t

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

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 n

Re: Regexes: How to handle escaped characters

2007-05-18 Thread Torsten Bronger
Hallöchen! Charles Sanders writes: > Torsten Bronger wrote: > > [...] > Example string: u"Hollo", 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,

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: . >>> >>>How do you explain these, then: >>> >>>h

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 > >onclick="_hbLink('LogIn','UtilityLinks');">Log In > > So there's definitely PHP inside Yo

Re: emacs python debugging: pydb or pdb fringe interaction

2007-05-18 Thread Rob Wolfe
Paul Rudin <[EMAIL PROTECTED]> writes: > 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? It works for me on Debian Etch and GNU Emacs 21.4.1. I'm using this settings: (setq pdb-path '/usr/lib/python2

Re: namespace question

2007-05-18 Thread T. Crane
"Robert Kern" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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) >>

Re: pyhdf

2007-05-18 Thread Joshua J. Kugler
On Wednesday 16 May 2007 09:36, [EMAIL PROTECTED] wrote: > Has anyone had success installing the pyhdf library with python 2.4 > under linux 2.6.18 (debian)? I have installed the HDF library and > development package from apt and have downloaded the pyhdf > installation files. I've had success wi

Re: emacs python debugging: pydb or pdb fringe interaction

2007-05-18 Thread Paul Rudin
Rob Wolfe <[EMAIL PROTECTED]> writes: > Paul Rudin <[EMAIL PROTECTED]> writes: > >> 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? > > It works for me on Debian Etch and GNU Emacs 21.4.1. > I'm usin

Python compared to other language

2007-05-18 Thread scott
Hi all, I have been looking at the various programming languages available. I have programed in Basic since I was a teenager and I also have a basic understanding of C, but I want something better. Can anybody tell me the benefits and weaknesses of using Python? -- Your frien

Re: emacs python debugging: pydb or pdb fringe interaction

2007-05-18 Thread Rob Wolfe
Paul Rudin <[EMAIL PROTECTED]> writes: > Unfortunately this doesn't make any difference for me, with either > emacs 22 or 21. I guess I'll just have to dig deeper into the code. So what happens after M-x pdb? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python compared to other language

2007-05-18 Thread Beliavsky
On May 18, 3:04 pm, scott <[EMAIL PROTECTED]> wrote: > Hi all, > > I have been looking at the various programming languages available. I > have programed in Basic since I was a teenager and I also have a basic > understanding of C, but I want something better. > > Can anybody tell

Re: Python compared to other language

2007-05-18 Thread Michael Bentley
On May 18, 2007, at 2:04 PM, scott wrote: > > I have been looking at the various programming languages > available. I > have programed in Basic since I was a teenager and I also have a basic > understanding of C, but I want something better. > > Can anybody tell me the benefits and

PAMELA DAVID

2007-05-18 Thread g - a - l - l - e - r - y
PAMELA DAVID www.alphasearch.gr -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >