Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-18 Thread Javier Bezos
<@yahoo.com> escribió: >> > 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

Re: Python compared to other language

2007-05-18 Thread walterbyrd
On May 18, 10:24 pm, [EMAIL PROTECTED] (Alex Martelli) wrote: > > I think that Ruby, which roughly speaking sits somewhere between Python > and Perl, is closer to Python than Perl is. I don't know much about Ruby, but it does not seem to be commonly used for anything other than web-development. I

Re: Python compared to other language

2007-05-18 Thread walterbyrd
On May 18, 8:28 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > Surely the fact that Python is available on so many platforms implies > that C is a fairly portable language. Unless it's the same C code, I don't see how that means anything. If I write an app on Windows with C, and I rewrite the same

Re: which is the comprehencive module for postgresql?

2007-05-18 Thread Gabriel Genellina
En Sat, 19 May 2007 02:25:11 -0300, krishnakant Mane <[EMAIL PROTECTED]> escribió: > some times having many choices often confuses the users. > can some one plese tell me which is the most comprehencive, well > documented and widely used and tested module to connect from python to > postgresql d

* Sizzling Boobies all new pics and Vidz

2007-05-18 Thread Goofy . throat6
http://nudepicks.blogspot.com/ - Download them often and get them all! -- http://mail.python.org/mailman/listinfo/python-list

Re: Trying to choose between python and java

2007-05-18 Thread Paddy
On May 16, 2:21 am, Anthony Irwin <[EMAIL PROTECTED]> wrote: > Hi All, > > Thanks to all that replied. > > I saw on the python site a slide from 1999 that said that python was > slower then java but faster to develop with is python still slower > then java? Short answer: It might be. Long answer:

Re: python shell

2007-05-18 Thread Paddy
On May 16, 6:38 pm, Krypto <[EMAIL PROTECTED]> wrote: > I have been using python shell to test small parts of the big program. > What other ways can I use the shell effectively. My mentor told me > that you can virtually do anything from testing your program to > anything in the shell. Any incite w

Re: Typed named groups in regular expression

2007-05-18 Thread Paddy
On May 16, 6:58 pm, "Hugo Ferreira" <[EMAIL PROTECTED]> wrote: > Hi! > > Is it possible to "automagically" coerce the named groups to python types? > e.g.: > > >>> type(re.match('(?P\d*)', '123').groupdict()['x']) > > > > But what I'm looking forward is for the type to be 'int'. > > Cheers! > > H

which is the comprehencive module for postgresql?

2007-05-18 Thread krishnakant Mane
hello all, some times having many choices often confuses the users. can some one plese tell me which is the most comprehencive, well documented and widely used and tested module to connect from python to postgresql database? I looked around PYPgsql but there seams to be very little documentation.

Re: [dfwPython] A Few More Forrester Survey Questions

2007-05-18 Thread Brad Allen
At 10:22 AM -0500 5/18/07, Jeff Rush wrote: >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,

Re: converting strings to most their efficient types '1' --> 1, 'A' ---> 'A', '1.2'---> 1.2

2007-05-18 Thread Paddy
On May 19, 12:07 am, py_genetic <[EMAIL PROTECTED]> wrote: > Hello, > > I'm importing large text files of data using csv. I would like to add > some more auto sensing abilities. I'm considing sampling the data > file and doing some fuzzy logic scoring on the attributes (colls in a > data base/ cs

Re: List Moderator

2007-05-18 Thread Kay Schluehr
On May 19, 3:51 am, Beliavsky <[EMAIL PROTECTED]> wrote: > 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 le

Re: A Few More Forrester Survey Questions

2007-05-18 Thread Alex Martelli
Terry Reedy <[EMAIL PROTECTED]> wrote: > | 1) What -existing- examples of the use of Python to create social > | web applications are there? These include chat, collaboration, > | forum boards, and editable content pages, RSS feeds. > | > | I know I use a lot of these, but under pressure I'

Re: Python compared to other language

2007-05-18 Thread Alex Martelli
walterbyrd <[EMAIL PROTECTED]> wrote: > - IMO: the most comparable language to Python, is Perl. Both are > scripting languages. Both are free, multi-platform, and multi-purpose. > Both are also very popular. I think that Ruby, which roughly speaking sits somewhere between Python and Perl, is clos

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-18 Thread Gregor Horvath
[EMAIL PROTECTED] schrieb: > opposed. But dismissing the fact that Outlook and other quite common > tools may have severe problems with code seems naive (or disingenuous, > but I don't think that's the case here). Of course there is broken software out there. There are even editors that mix tab

Re: converting strings to most their efficient types '1' --> 1, 'A' ---> 'A', '1.2'---> 1.2

2007-05-18 Thread John Machin
On 19/05/2007 10:04 AM, James Stroud wrote: > py_genetic wrote: >> Hello, >> >> I'm importing large text files of data using csv. I would like to add >> some more auto sensing abilities. I'm considing sampling the data >> file and doing some fuzzy logic scoring on the attributes (colls in a >> da

Re: Python compared to other language

2007-05-18 Thread Steve Holden
walterbyrd wrote: > On May 18, 2:17 pm, Larry Bates <[EMAIL PROTECTED]> wrote: > >> Python is Portable - C is probably the only more portable language > > Small quibble: IMO, although C runs on many platforms, I don't think C > code is typically portable between platorms. Unless you are doing > s

Re: A Few More Forrester Survey Questions

2007-05-18 Thread Terry Reedy
"Jeff Rush" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | 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. You are really into this free work for paid products thing. I should think of such a sch

Re: Python compared to other language

2007-05-18 Thread walterbyrd
On May 18, 2:17 pm, Larry Bates <[EMAIL PROTECTED]> wrote: > Python is Portable - C is probably the only more portable language Small quibble: IMO, although C runs on many platforms, I don't think C code is typically portable between platorms. Unless you are doing something very simple. If you wr

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

2007-05-18 Thread Ben Finney
Wildemar Wildenburger <[EMAIL PROTECTED]> writes: > I think what most people think of when they hear "plugin" is: An > Application that can be extended. > An RCP provides no more than the next step: No monolithic app, just > plugins (which can have plugins themselves (which can have plugins > them

Re: How to stop a scheduler stated using

2007-05-18 Thread Gabriel Genellina
En Fri, 18 May 2007 04:00:57 -0300, Nagendra Kumar <[EMAIL PROTECTED]> escribió: > 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.schedule

Re: namespace question

2007-05-18 Thread Jordan Greenberg
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: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-18 Thread John Roth
On May 13, 9:44 am, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > PEP 1 specifies that PEP authors need to collect feedback from the > community. As the author of PEP 3131, I'd like to encourage comments > to the PEP included below, either here (comp.lang.python), or to > [EMAIL PROTECTED] > > In

No Python for Blackberry?

2007-05-18 Thread walterbyrd
I could not find a version of Python that runs on a Blackberrry. I'm just amazed. A fairly popular platform, and no Python implementation? -- http://mail.python.org/mailman/listinfo/python-list

wxpython - button question

2007-05-18 Thread Sick Monkey
I have the following code which will basically take an image file and create a bitmap image. I am having one problem though in that there is a white border around the image. Does anyone know how to take that off? imageFile2 = "image.png" image2 = wx.Image(imageFile2, wx.BITMAP_TY

Re: pyodbc data corruption problem

2007-05-18 Thread Joe Salmeri
Thank you for your response but this is not an Access problem. The exact same code using mx.ODBC or using the old odbc.py that comes with the win32 files works fine. It only fails with pyodbc. <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On May 18, 6:46 pm, "Joe Salmeri" <[EMA

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

2007-05-18 Thread Josiah Carlson
John Nagle wrote: >Many of the basic libraries for web related functions do have > problems. Even standard modules like "urllib" and "SSL" are buggy, > and have been for years. Outside the standard modules, it gets > worse, especially for ones with C components. Version incompatibility > for

Re: Generate report containing pdf or ps figures?

2007-05-18 Thread Grant Edwards
On 2007-04-23, Grant Edwards <[EMAIL PROTECTED]> wrote: > I need to be able to generate a PDF report which consists > mostly of vector images (which I can generate as encapsulated > Postscript, PDF, or SVG). [...] > Is there a PDF generation library that can place EPS or PDF > figures on a page?

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

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

Re: pyodbc data corruption problem

2007-05-18 Thread [EMAIL PROTECTED]
On May 18, 6:46 pm, "Joe Salmeri" <[EMAIL PROTECTED]> wrote: > I have found a data corruption problem with pyodbc. > > OS = Windows XP SP2 > DB = Microsoft Access XP > > PROBLEM: > > When selecting columns from a table that are of type Memo the value > returned is padded with a bunch of null charac

Re: converting strings to most their efficient types '1' --> 1, 'A' ---> 'A', '1.2'---> 1.2

2007-05-18 Thread James Stroud
py_genetic wrote: > Hello, > > I'm importing large text files of data using csv. I would like to add > some more auto sensing abilities. I'm considing sampling the data > file and doing some fuzzy logic scoring on the attributes (colls in a > data base/ csv file, eg. height weight income etc.) t

cgi.py bug submitted to source_forge - Martin v. L�wis

2007-05-18 Thread Joe Salmeri
I submitted a patch quite a while back for a bug in cgi.py (see source forge 1159139) Martin, I posted this here, hoping you would see the message. Back in March 2007 you were looking at this bug and updated the item on source forge looking for more details. I have documented the bug further f

Re: unittest for threading function always failed...

2007-05-18 Thread i3dmaster
On May 18, 4:13 pm, i3dmaster <[EMAIL PROTECTED]> wrote: > I am having a little difficulty to figure out why this unittest for a > Thread subclass always fails... > > # unittest code: > > class SPThreadUnitTest(unittest.TestCase): > > def testgetresult(self): > from random import randint >

pyodbc.Error Crash

2007-05-18 Thread Joe Salmeri
I believe this bug is also related to the other problem I just reported. OS = Windows XP SP2 DB = Microsoft Access XP PROBLEM: When you use + (or &) to concatenation columns together and the columns are of type text and the combined length exceed 255 this causes pyodbc to fail and python to cras

pyodbc data corruption problem

2007-05-18 Thread Joe Salmeri
I have found a data corruption problem with pyodbc. OS = Windows XP SP2 DB = Microsoft Access XP PROBLEM: When selecting columns from a table that are of type Memo the value returned is padded with a bunch of null characters at the end. The problems does not seem to occur until the length of th

Re: Compiling Python code within a module

2007-05-18 Thread Mitko Haralanov
On 18 May 2007 15:51:40 -0700 ici <[EMAIL PROTECTED]> wrote: > exec it :) Thank you! That works when I compile/exec it in the main body of the program. However, when I try to do that in a separate module it doesn't. For example: Module Foo: import compiler class Foo: def __init__ (self)

Re: converting strings to most their efficient types '1' --> 1, 'A' ---> 'A', '1.2'---> 1.2

2007-05-18 Thread Dustan
On May 18, 6:07 pm, py_genetic <[EMAIL PROTECTED]> wrote: > Hello, > > I'm importing large text files of data using csv. I would like to add > some more auto sensing abilities. I'm considing sampling the data > file and doing some fuzzy logic scoring on the attributes (colls in a > data base/ csv

Re: Anti-Aliasing in wxPython?

2007-05-18 Thread [EMAIL PROTECTED]
On May 18, 1:20 pm, Alexander Dünisch <[EMAIL PROTECTED]> wrote: > 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, > RenderingH

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

2007-05-18 Thread Jorge Godoy
John Nagle <[EMAIL PROTECTED]> writes: >As a direct result of this, neither the Linux distro builders like > Red Hat nor major hosting providers provide Python environments that > just work. That's reality. Try SuSE, OpenSUSE, Ubuntu... They "just work". I've never had any problem installi

RFC - n-puzzle.py

2007-05-18 Thread Phoe6
Hi All, I would like to request a code and design review of one of my program. n-puzzle.py http://sarovar.org/snippet/detail.php?type=snippet&id=83 Its a N-puzzle problem solver ( Wikipedia page and http://norvig.com/ltd/test/n-puzzle.lisp ) I have used OO Python for the above program and would l

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-18 Thread Neil Hodgson
Istvan Albert: > But you're making a strawman argument by using extended ASCII > characters that would work anyhow. How about debugging this (I wonder > will it even make it through?) : > > class 6자회담관련론조 >6자회 = 0 >6자회담관련 고귀 명=10 That would be invalid syntax since the third line is a

unittest for threading function always failed...

2007-05-18 Thread i3dmaster
I am having a little difficulty to figure out why this unittest for a Thread subclass always fails... # unittest code: class SPThreadUnitTest(unittest.TestCase): def testgetresult(self): from random import randint self.i = randint(1,10) def p(n): return n self.t = spthread.SPT

Re: Anyone use PyPar (Python MPI implementation) recently?

2007-05-18 Thread Tim Churches
Ole Nielsen wrote: > Cheers and thanks Now that it is possible to purchase servers from tier-1 manufacturers with dual quad-core processes (8 CPUs) for under $10k, complete with discs and lots of RAM - that is, no tedious-to-set-up, space-occupying, power-hungry and high-maintenance Beowulf-style

converting strings to most their efficient types '1' --> 1, 'A' ---> 'A', '1.2'---> 1.2

2007-05-18 Thread py_genetic
Hello, I'm importing large text files of data using csv. I would like to add some more auto sensing abilities. I'm considing sampling the data file and doing some fuzzy logic scoring on the attributes (colls in a data base/ csv file, eg. height weight income etc.) to determine the most efficient

Re: Compiling Python code within a module

2007-05-18 Thread ici
On May 19, 12:52 am, Mitko Haralanov <[EMAIL PROTECTED]> wrote: > For various reason, what I need to do is be able to send some Python > code (mostly entire functions in the form of a string) to a remote > server (written in Python), have that server compile the code and > insert it in the local na

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

2007-05-18 Thread Jarek Zgoda
Stef Mientki napisał(a): > I took a look at some of the examples build with eclipse, > and I might be wrong, but it's just another IDE, > (like Delphi, Lazarus, Visual Basic, Kylix, Pida, Envisage, VisualWX, > wxGlade, ...) > what am I missing ? I think you miss the difference between Eclipse IDE

Compiling Python code within a module

2007-05-18 Thread Mitko Haralanov
For various reason, what I need to do is be able to send some Python code (mostly entire functions in the form of a string) to a remote server (written in Python), have that server compile the code and insert it in the local namespace so it is available to be called at a later time. I have gotten

Re: Random selection

2007-05-18 Thread Roger Miller
On May 17, 10:39 pm, Tartifola <[EMAIL PROTECTED]> wrote: > 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 h

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-18 Thread Paul Boddie
Gregor Horvath wrote: > 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 cu

Re: Python compared to other language

2007-05-18 Thread scott
Thank you everyone for your help. I will make sure to check the archives, something I should have done first :) -- Your friend, Scott Sent to you from a 100% Linux computer using Kubuntu Version 7.04 (Feisty Fawn) -- http://mail.python.org/mailman/listinfo/python-list

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

2007-05-18 Thread Stef Mientki
Wildemar Wildenburger wrote: > 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 t

Re: Python compared to other language

2007-05-18 Thread Stef Mientki
scott 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 me the benefits and weaknesses of using Pyth

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-18 Thread [EMAIL PROTECTED]
On May 18, 1:47 pm, "Javier Bezos" <[EMAIL PROTECTED]> wrote: > >> 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 Gr

Re: Python compared to other language

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

Re: namespace question

2007-05-18 Thread Steve Holden
T. Crane wrote: > "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 >

Re: How to convert a number to binary?

2007-05-18 Thread Steve Holden
Lyosha wrote: > 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:

Re: Python compared to other language

2007-05-18 Thread Larry Bates
scott 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 me the benefits and weaknesses of using Python

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

2007-05-18 Thread Peter Wang
On May 18, 1:10 pm, Wildemar Wildenburger <[EMAIL PROTECTED]> wrote: > I'm not sure, but you guys seem a bit Windows-centric. I have yet to > find out if the egg-approach actually works for Linux (and Mac, though I > don't use it) as well. It does. We have several linux and mac-based developers h

Re: alternative to eclipse [ python ide AND cvs ]

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

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: > >> 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? Everything works as it should, except f

Re: namespace question

2007-05-18 Thread 7stud
On May 18, 12:29 pm, "T. Crane" <[EMAIL PROTECTED]> wrote: > If you put them at the top level, and suppose you saved it all in a file > called test.py, then when you type > > ln [1]: from test import myClass > > does it still load a,b,c and numpy into the namespace? > Yep. Easy to test: toBeImpo

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

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

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

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

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

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

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

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

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

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

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

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

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

  1   2   >