Re: Execute commands from file

2007-05-17 Thread i3dmaster
On May 16, 1:05 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > Martin Blume wrote: > > "tmp123" schrieb > > >> We have very big files with python commands > >> (more or less, 50 commands each file). > > >> It is possible to execute them command by command, > > > inp = open(cmd_file) > > for line

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread Hendrik van Rooyen
"Sion Arrowsmith" <[EMAIL PROTECTED]> wrote: >Hendrik van Rooyen wrote: > >>I still don't like the thought of the horrible mix of "foreign" >>identifiers and English keywords, coupled with the English >>sentence construction. > >How do you think you'd feel if Python had less in the way of >(con

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread Hendrik van Rooyen
"Gregor Horvath" <[EMAIL PROTECTED]> wrote: > Hendrik van Rooyen schrieb: > > > It is not so much for technical reasons as for aesthetic > > ones - I find reading a mix of languages horrible, and I am > > kind of surprised by the strength of my own reaction. > > This is a matter of taste. I

Re: tkinter button state = DISABLED

2007-05-17 Thread Hendrik van Rooyen
"Gabriel Genellina" <[EMAIL PROTECTED]> wrote: >En Wed, 16 May 2007 03:22:17 -0300, Hendrik van Rooyen ><[EMAIL PROTECTED]> escribió: > >> "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: >> >>> Maybe there is a confusion here. You code above means that, when the >>> event >>> "The leftmost MOUSE

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread Duncan Booth
"Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > - Someone proposed using escape sequences of some kind, supported by > editor plugins, so there is no need to modify the parser. I'm not sure whether my suggestion below is the same as or a variation on this. > > - Refactoring tools should let

Problem with socket.recv()

2007-05-17 Thread xreload
Hello ! I have some class for getting html documents : """ Wrapper for Python sockets lib """ import socket import urlparse import random import io import re import sys # socket wrapper class class sock: def __init__(self,url): parse = urlparse.urlparse(url) self.req = [

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread Gregor Horvath
Hendrik van Rooyen schrieb: > I can sympathise a little bit with a customer who tries to read code. > Why that should be necessary, I cannot understand - does the stuff > not work to the extent that the customer feels he has to help you? > You do not talk as if you are incompetent, so I see no rea

Watch Television online for free.

2007-05-17 Thread shane . buggins41
Watch television online now for free. Includes television channels from all over the world and sport events from all over the world including, NBA, Soccer, Motor Racing and much more. http://homepage.ntlworld.com/louise.randall41 -- http://mail.python.org/mailman/listinfo/python-list

Re: removing common elemets in a list

2007-05-17 Thread janislaw
On May 16, 8:17 am, [EMAIL PROTECTED] wrote: > Hi, > Suppose i have a list v which collects some numbers,how do i > remove the common elements from it ,without using the set() opeartor. > Thanks There was a similar thread on polish python

PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread Andrea Gavana
Hi All, In summary, this PEP proposes to allow non-ASCII letters as identifiers in Python. In primis, I would like to congratulate with Martin to have started one of the most active threads (flame wars? :- D ) in the python-list history. By scanning the list from January 2000 to now, this is t

Seeking author of script which generated HTML pages from pictures of them

2007-05-17 Thread metaperl
On reddit.com, many moons ago, I downloaded some code which generated a page using HTML tables from a picture of the page you wanted. However, I dont have any author information in the code and wanted to stay in touch which she/he... does anyone know who wrote this code below? # Box geometry. cla

Code Explanation

2007-05-17 Thread Robert Rawlins - Think Blue
Hello Guys, I'm currently working on a non-python project, and I'm trying to overcome a task of parsing a text file into a database and/or xml file. I've managed to find a parser example written in python, and I'm hoping to deconstruct the code methodology a bit so I can write it in another lan

Re: Code Explanation

2007-05-17 Thread rishi pathak
On 5/17/07, Robert Rawlins - Think Blue <[EMAIL PROTECTED]> wrote: Hello Guys, I'm currently working on a non-python project, and I'm trying to overcome a task of parsing a text file into a database and/or xml file. I've managed to find a parser example written in python, and I'm hoping to d

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread Martin v. Löwis
>PEP 3131 uses a similar definition to C# except that PEP 3131 > disallows formatting characters (category Cf). See section 9.4.2 of > http://www.ecma-international.org/publications/standards/Ecma-334.htm UAX#31 discusses formatting characters in 2.2, and recognizes that there might be good re

Newbie: Joining Lists

2007-05-17 Thread mosscliffe
I have been playing with GLOB and OS.PATH and it all works, but is there a better way of getting GLOB to recognise, multiple patterns at one call (ONE). Also is it possible to join lists, without the horrid concatenation code I have (TWO). I tried list.append(glob.glob(pattern)) but it error'd ---

Re: Execute commands from file

2007-05-17 Thread Douglas Woodrow
On Thu, 17 May 2007 00:30:23, i3dmaster <[EMAIL PROTECTED]> wrote >f = open(file,'rb') >for i in f: >exec i Why are you opening the file in binary mode? -- Doug Woodrow -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem with socket.recv()

2007-05-17 Thread Irmen de Jong
xreload wrote: > Hello ! > > So, lets do : > sock.py "http://forums.childrenwithdiabetes.com/showthread.php?t=5030"; > - it not ok , only some part of document. > wget "http://forums.childrenwithdiabetes.com/showthread.php?t=5030"; - > it ok ! > sock.py "http://www.google.com/"; - it ok ! > > Wh

Personal Computers (PC's) contains a lot of info

2007-05-17 Thread [EMAIL PROTECTED]
Personal Computers (PC's) contains a lot of info that the average user doesn't usually know. At http://PCTermDefinitions.com there is extensive infomation related to this topic (all free). Along with a link portal to other PC computer related sites. -- http://mail.python.org/mailman/listinfo/pyth

Re: Newbie: Joining Lists

2007-05-17 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, mosscliffe wrote: > --- CODE -- > import os > import glob > > filenames = [] > patterns = ('.\\t*.py', '.\\*.c??', '.\\*.txt') # Can these patterns > for glob processing be specified in the glob call *ONE > for pattern in pa

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread Martin v. Löwis
> 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 from the standard library) are not English - they are Python.

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread Martin v. Löwis
> A possible modification to the PEP would be to permit identifiers to > also include \u and \U escape sequences (as some other > languages already do). Several languages do that (e.g. C and C++), but I deliberately left this out, as I cannot see this work in a practical way. Also, it

Re: Get a control over a window

2007-05-17 Thread Tom Gur
Thanks guys, especially Duncan ! That's what I'm using now: import sys from win32gui import GetWindowText, EnumWindows, ShowWindow from win32con import SW_MINIMIZE def listWindowsHandles(): res = [] def callback(hwnd, arg): res.append(hwnd) EnumWindows(callback, 0) return

Re: Get a control over a window

2007-05-17 Thread Tom Gur
Thanks guys, especially Duncan ! That's what I'm using now: import sys from win32gui import GetWindowText, EnumWindows, ShowWindow from win32con import SW_MINIMIZE def listWindowsHandles(): res = [] def callback(hwnd, arg): res.append(hwnd) EnumWindows(callback, 0) retur

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread Bjoern Schliessmann
"Martin v. Löwis" wrote: > I can't admit that, but I find that using German > class and method names is beautiful. The rest around > it (keywords and names from the standard library) > are not English - they are Python. > > (look me in the eye and tell me that "def" is > an English word, or that "

Re: A bug in cPickle?

2007-05-17 Thread Nick Craig-Wood
Victor Kryukov <[EMAIL PROTECTED]> wrote: > The following behavior is completely unexpected. Is it a bug or a by- > design feature? > > from pickle import dumps > from cPickle import dumps as cdumps > > print dumps('1001799')==dumps(str(1001799)) > print cdumps('1001799')==cdumps(str(100179

Re: Code Explanation

2007-05-17 Thread Michael Bentley
On May 17, 2007, at 4:12 AM, Robert Rawlins - Think Blue wrote: I’m currently working on a non-python project, and I’m trying to overcome a task of parsing a text file into a database and/or xml file. I’ve managed to find a parser example written in python, and I’m hoping to deconstruct the

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread Martin v. Löwis
> Consequently, Python's keywords and even the standard library can > exist with names being "just symbols" for many people. I already told that on the py3k list: Until a week ago, I didn't know why "pass" was chosen for the "no action" statement - with all my English knowledge, I still could not

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread Martin v. Löwis
> IMO, the burden of proof is on you. If this PEP has the potential to > introduce another hindrance for code-sharing, the supporters of this PEP > should be required to provide a "damn good reason" for doing so. So far, > you have failed to do that, in my opinion. All you have presented are > vagu

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread Martin v. Löwis
> You could say the same about Python standard library and keywords then. > Shouldn't these also have to be translated? One can even push things a > little further: I don't know about the languages used in the countries > you mention, but for example, a simple construction like 'if > ' will look w

Re: problem with import in python 2.2.3

2007-05-17 Thread Simon Brunning
On 5/17/07, Anthony Irwin <[EMAIL PROTECTED]> wrote: > Does anyone know why the datetime module is not being found in python > 2.2.3 and how I can make the script work in the older version of python? The datetime modules was added in Python 2.3 - that's why you aren't finding it. This might help

Sending a JavaScript array to Python script?

2007-05-17 Thread placid
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. Any help appreciated. Cheers -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread Hendrik van Rooyen
> > 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 from the standard library) > are not English

Re: how do I count spaces at the beginning of a string?

2007-05-17 Thread Paul McGuire
On May 16, 9:02 pm, walterbyrd <[EMAIL PROTECTED]> wrote: > The strings start with whitespace, and have a '*' or an alphanumeric > character. I need to know how many whitespace characters exist at the > beginning of the string. aaand what have you tried so far? This really is a pretty bas

Re: A bug in cPickle?

2007-05-17 Thread Facundo Batista
Victor Kryukov wrote: > The following behavior is completely unexpected. Is it a bug or a by- > design feature? > > ... > > from pickle import dumps > from cPickle import dumps as cdumps > > print dumps('1001799')==dumps(str(1001799)) > print cdumps('1001799')==cdumps(str(1001799)) It's a featur

Re: Sending a JavaScript array to Python script?

2007-05-17 Thread Simon Brunning
On 17 May 2007 05:34:55 -0700, placid <[EMAIL PROTECTED]> wrote: > 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. JSON might be worth a look: http://www.json.org/ -- Cheers, Simon B. [EMAIL PROTEC

Re: Sending a JavaScript array to Python script?

2007-05-17 Thread Daniel Nogradi
> 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. Simplejson is what you want: http://cheeseshop.python.org/pypi/simplejson HTH, Daniel -- http://mail.python.org/mailman/listinfo/python-list

Re: Sending a JavaScript array to Python script?

2007-05-17 Thread Gregor Horvath
placid schrieb: > 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. http://mochikit.com/doc/html/MochiKit/Base.html#json-serialization http://svn.red-bean.com/bob/simplejson/tags/simplejson-1.3/docs/i

Re: try

2007-05-17 Thread Dustan
On May 16, 4:22 pm, Robert Kern <[EMAIL PROTECTED]> wrote: > HMS Surprise wrote: > > I read in the ref man that try-except-finally did not work in earlier > > versions, I am using jython 2.2. Does this imply that try-except > > without finally does not work either? I get a syntax error on the else

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread Sion Arrowsmith
Hendrik van Rooyen <[EMAIL PROTECTED]> wrote: >"Sion Arrowsmith" <[EMAIL PROTECTED]> wrote: >>Hendrik van Rooyen wrote: >>>I still don't like the thought of the horrible mix of "foreign" >>>identifiers and English keywords, coupled with the English >>>sentence construction. >>How do you think you'

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread Martin v. Löwis
>> So, please provide feedback, e.g. perhaps by answering these >> questions: >> - should non-ASCII identifiers be supported? why? > > I think the biggest argument against this PEP is how little similar > features are used in other languages and how poorly they are supported > by third party utili

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread Martin v. Löwis
René Fleschenberg schrieb: > Stefan Behnel schrieb: >> Then get tools that match your working environment. > > 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 probl

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread Martin v. Löwis
> In the code I was looking at identifiers were allowed to use non-ASCII > characters. For whatever reason, the programmers choose not use non-ASCII > indentifiers even though they had no problem using non-ASCII characters > in commonets. One possible reason is that the tools processing the progr

Re: Declaring variables

2007-05-17 Thread HMS Surprise
On May 16, 6:48 pm, Matimus <[EMAIL PROTECTED]> wrote: > On May 16, 9:57 am, HMS Surprise <[EMAIL PROTECTED]> wrote: > > > I looked in the language but did not find a switch for requiring > > variables to be declared before use. > > > Is such an option available? > > > Thanks, > > > jvh > > You do

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread Martin v. Löwis
> After 175 replies (and counting), the only thing that is clear is the > controversy around this PEP. Most people are very strong for or > against it, with little middle ground in between. I'm not saying that > every change must meet 100% acceptance, but here there is definitely a > strong opposit

Re: Sending a JavaScript array to Python script?

2007-05-17 Thread MC
Hi! Which context? I know to do interact Python <=> Jscript, with Internet-Explorer+COM ; but I don't know with others environment. -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread Martin v. Löwis
> However, what I want to see is how people deal with such issues when > sharing their code: what are their experiences and what measures do > they mandate to make it all work properly? You can see some > discussions about various IDEs mandating UTF-8 as the default > encoding, along with UTF-8 bei

Re: Declaring variables

2007-05-17 Thread Gregor Horvath
HMS Surprise schrieb: > > #~~ > createdIncidentId = 0 > . > . > . > #attempt to change varialbe > createdIncidentID = 1 > . > . > . > if createdIncidentId == 1: >... > test.py is your code above $ pychecker -v test.py Processing test... Warnings... test.py:7: Variable

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread Martin v. Löwis
> I claim that this is *completely unrealistic*. When learning Python, you > *do* learn the actual meanings of English terms like "open", > "exception", "if" and so on if you did not know them before. It would be > extremely foolish not to do so. Having taught students for many years now, I can re

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

2007-05-17 Thread Beliavsky
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 Cameron Laird does a good job with the Python digest but blun

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread Gregor Horvath
Martin v. Löwis schrieb: > I've reported this before, but happily do it again: I have lived many > years without knowing what a "hub" is, and what "to pass" means if > it's not the opposite of "to fail". Yet, I have used their technical > meanings correctly all these years. That's not only true f

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread rurpy
On May 16, 8:49 pm, Gregor Horvath <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] schrieb: > >> 2) Create a way to internationalize the standard library (and possibly > >> the language keywords, too). Ideally, create a general standardized way > >> to internationalize code, possibly similiar to how

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

2007-05-17 Thread Istvan Albert
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 > behind them, and that we

An expression that rebinds a variable?

2007-05-17 Thread GreenH
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 -- http://mail.python.org/mailman/listinfo/python-list

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

2007-05-17 Thread Jarek Zgoda
Victor Kryukov napisał(a): > 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 shouldn't worry about their _versio

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

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

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread Istvan Albert
On May 16, 11:09 pm, Gregor Horvath <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] schrieb: > > > On May 16, 12:54 pm, Gregor Horvath <[EMAIL PROTECTED]> wrote: > >> Istvan Albert schrieb: > > >> So the solution is to forbid Chinese XP ? Who said anything like that? It's just an example of surpris

Re: Declaring variables

2007-05-17 Thread Grant Edwards
On 2007-05-16, HMS Surprise <[EMAIL PROTECTED]> wrote: > No haven't had to endure Pascal. Mostly C/C++, Tcl, and assembler. I must have you mixed up with somebody else who recently mentioned having Pascal as their first real language. -- Grant Edwards grante Yow! I

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

2007-05-17 Thread Steve Holden
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. > And has stayed around to dog the developers, as so many quick fixes do ... > Today, as we get better idea of what we need,

Re: In a text file: how do I tell the EOF, from a blank line?

2007-05-17 Thread walterbyrd
On May 16, 10:12 pm, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2007-05-17, walterbyrd <[EMAIL PROTECTED]> wrote: > > This has already been explained to you by at least 5 different > people -- complete with examples. Sorry about dual posting. I am using google groups. Usually, after I submit

Re: Trying to choose between python and java

2007-05-17 Thread Steve Holden
[EMAIL PROTECTED] wrote: > Cameron Laird wrote: >> In article <[EMAIL PROTECTED]>, >> Terry Reedy <[EMAIL PROTECTED]> wrote: >>> "Anthony Irwin" <[EMAIL PROTECTED]> wrote in message >>> news:[EMAIL PROTECTED] >> . >> . >> . >>> | #5 som

progress indicator in a mod_python script

2007-05-17 Thread Rajarshi
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 of indeterminate progres

Re: Execute commands from file

2007-05-17 Thread Steve Holden
i3dmaster wrote: > On May 16, 1:05 pm, Steve Holden <[EMAIL PROTECTED]> wrote: >> Martin Blume wrote: >>> "tmp123" schrieb > We have very big files with python commands (more or less, 50 commands each file). It is possible to execute them command by command, >>> inp = open(cmd_fi

Re: tkFileDialog.askopenfilename()

2007-05-17 Thread rahulnag22
On May 16, 6:21 am, "Hamilton, William " <[EMAIL PROTECTED]> wrote: > > From: [EMAIL PROTECTED] > > > Hi, > > When I call tkFileDialog.askopenfilename() , the dialog box opens with > > the current directory as the default directory. Is it possible to open > > the dialog box with a directory other t

Re: how do I count spaces at the beginning of a string?

2007-05-17 Thread Steven Howe
Paul McGuire wrote: On May 16, 9:02 pm, walterbyrd <[EMAIL PROTECTED]> wrote: The strings start with whitespace, and have a '*' or an alphanumeric character. I need to know how many whitespace characters exist at the beginning of the string. using buitlin function len() and lstrip() a

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread Martin v. Löwis
> I'd suggest restricting identifiers under the rules of UTS-39, > profile 2, "Highly Restrictive". This limits mixing of scripts > in a single identifier; you can't mix Hebrew and ASCII, for example, > which prevents problems with mixing right to left and left to right > scripts. Domain name

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

2007-05-17 Thread Paul Boddie
John Nagle wrote: > Victor Kryukov 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 shouldn't

Re: searching algorithm

2007-05-17 Thread Neil Cerutti
On 2007-05-11, Terry Reedy <[EMAIL PROTECTED]> wrote: > > "Neil Cerutti" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >| Every node is a tuple of its letter, a list of its children, and >| a list of its words. So the two 'pelin' nodes would be (with 'e' >| referenced in the 'h' no

Re: Newbie: Joining Lists

2007-05-17 Thread Matimus
One: Not that I know of Two: You could use list comprehension... --- CODE -- import os import glob patterns = ('.\\t*.py', '.\\*.c??', '.\\*.txt') filenames = [glob.glob(pat) for pat in patterns] # Or as a one liner... filenames = [glob.glob(pat) for pat

Re: Execute commands from file

2007-05-17 Thread Maric Michaud
Steve Holden a écrit : > i3dmaster wrote: >> On May 16, 1:05 pm, Steve Holden <[EMAIL PROTECTED]> wrote: >>> Martin Blume wrote: "tmp123" schrieb > > We have very big files with python commands > (more or less, 50 commands each file). > It is possible to execute them command by

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

2007-05-17 Thread Chris Cioffi
I think the first question I would have is what kind of dynamic content are you talking about? Is this a web app kind of thing, or just a content pushing site? While Django might not be v1.0 yet, it seems very solid and stable, and perfect for quickly building powerful content based dynamic sites

Re: Execute commands from file

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

Re: An expression that rebinds a variable?

2007-05-17 Thread Maric Michaud
GreenH a écrit : > Can I know what kind of expressions rebind variables, of course unlike > in C, assignments are not expressions (for a good reason) > So, eval(expr) should bring about a change in either my global or > local namespace, where 'expr' is the expression > For global scope you could

Re: Newbie: Joining Lists

2007-05-17 Thread 7stud
On May 17, 3:49 am, mosscliffe <[EMAIL PROTECTED]> wrote: > I have been playing with GLOB and OS.PATH and it all works, but is > there a better way of getting GLOB to recognise, multiple patterns at > one call (ONE). > A better way? You haven't posted a way to do that. And a quick perusal of the

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

2007-05-17 Thread John Nagle
Jarek Zgoda wrote: > Victor Kryukov napisał(a): > > >>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 shouldn't

omissions in python docs?

2007-05-17 Thread 7stud
Hi, 1) The shelve module doesn't list close() as a method. 2) The fnmatch module does not even mention translate(). I have a hard time believing I am the first one to notice those omissions. Are the docs just old and poorly maintained? Or, is there some reason those methods were omitted? -- h

Re: A bug in cPickle?

2007-05-17 Thread Martin v. Löwis
> This does seem odd, at the very least. The differences between the pn codes comes from this comment in cPickle.c: /* Make sure memo keys are positive! */ /* XXX Why? * XXX And does "positive" really mean non-negative? * XXX pickle.py starts with PUT index 0, no

Re: omissions in python docs?

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

FreeType

2007-05-17 Thread Glich
Hi, where can I download freetype (>= 2.1.7)? I need it to use matplotlib. I have search a lot but still can not find it. Thanks! -- http://mail.python.org/mailman/listinfo/python-list

[ANN] markup.py 1.7

2007-05-17 Thread Daniel Nogradi
A new release is available for markup.py, a module for generating HTML/XML output painlessly and practically without any learning curve. The goal of markup.py is to be able to quickly put together documents in an ad hoc basis so if you need anything for production look for something else, e.g. Elem

Re: Declaring variables

2007-05-17 Thread HMS Surprise
On May 17, 9:34 am, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2007-05-16, HMS Surprise <[EMAIL PROTECTED]> wrote: > > > No haven't had to endure Pascal. Mostly C/C++, Tcl, and assembler. > > I must have you mixed up with somebody else who recently > mentioned having Pascal as their first real l

Re: try

2007-05-17 Thread HMS Surprise
On May 17, 7:51 am, Dustan <[EMAIL PROTECTED]> wrote: > On May 16, 4:22 pm, Robert Kern <[EMAIL PROTECTED]> wrote: > > > > > HMS Surprise wrote: > > > I read in the ref man that try-except-finally did not work in earlier > > > versions, I am using jython 2.2. Does this imply that try-except > > > w

Re: PEP 3131: Supporting Non-ASCII Identifiers

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

Re: FreeType

2007-05-17 Thread Michael Bentley
On May 17, 2007, at 12:29 PM, Glich wrote: > Hi, where can I download freetype (>= 2.1.7)? I need it to use > matplotlib. I have search a lot but still can not find it. Thanks! Type 'freetype' in the google search form, and click the "I'm Feeling Lucky" button. If that doesn't work for some r

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread rurpy
On May 17, 4:56 am, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: ... > (look me in the eye and tell me that "def" is > an English word, or that "getattr" is one) That's not quite fair. They are not english words but they are derived from english and have a memonic value to english speakers that t

Re: Asyncore Help?

2007-05-17 Thread billiejoex
On 14 Mag, 06:51, "Paul Kozik" <[EMAIL PROTECTED]> wrote: > I have trouble finding a solid example for what I need. Python.org and > other sites provide simple examples, but they appear more intended for > servers that simply send one peice of data to the client. Not a big deal. asynchat / asyncor

Re: Asyncore Help?

2007-05-17 Thread billiejoex
On 14 Mag, 06:51, "Paul Kozik" <[EMAIL PROTECTED]> wrote: > I have trouble finding a solid example for what I need. Python.org and > other sites provide simple examples, but they appear more intended for > servers that simply send one peice of data to the client. Not a big deal. asynchat / asyncor

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

2007-05-17 Thread Wildemar Wildenburger
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 myself, but I thought, I'd ask here before

Is wsgi ready for prime time?

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

Re: Is wsgi ready for prime time?

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

Re: PEP 3131: Supporting Non-ASCII Identifiers

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

Re: Is wsgi ready for prime time?

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

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

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

Re: omissions in python docs?

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

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

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

^% Britney Spears Tits Explode!!!!!

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

Regexes: How to handle escaped characters

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

Re: omissions in python docs?

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

Creating a Python Type in C - tp_init and tp_new

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

Re: Regexes: How to handle escaped characters

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

Re: Is wsgi ready for prime time?

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

  1   2   >