Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Hendrik van Rooyen
"Bruno Desthuilliers" <[EMAIL PROTECTED]> wrote: >Martin v. Löwis a écrit : >> So, please provide feedback, e.g. perhaps by answering these >> questions: >> - should non-ASCII identifiers be supported? > >No. Agreed - I also do not think it is a good idea > >> why? > >Because it will definitiv

Jessica Simpson Sports new "Boob Job"!!!@

2007-05-14 Thread ready . or . special2
http://jessicasboobs.blogspot.com/2007/05/jessica-simpson-furious-after-john.html - Have a look and see what I mean its a boob job you just can't afFORD to miss out on!! -- http://mail.python.org/mailman/listinfo/python-list

Re: Interesting list Validity (True/False)

2007-05-14 Thread Gabriel Genellina
En Sun, 13 May 2007 23:45:22 -0300, [EMAIL PROTECTED] <[EMAIL PROTECTED]> escribió: > On May 13, 2:09?pm, Carsten Haese <[EMAIL PROTECTED]> wrote: >> There are no exceptions. > "...and when I say none, I mean there is a certain amount." One of the beautiful things about Python that I like, is h

Re: Removing part of string

2007-05-14 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, saif.shakeel wrote: > Hi, > I am parsing an xml file ,and one part of structure looks > something like this: > > - PhysicalLink="Infotainment_Control_Bus_CAN"> > Infotainment_Control_Bus_CAN_TIMEOUT_AX > Timeout N_As/N_Ar > Time from transmit request until a CAN

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Jarek Zgoda
Alexander Schmolck napisał(a): >>> So, please provide feedback, e.g. perhaps by answering these >>> questions: >>> - should non-ASCII identifiers be supported? why? >> No, because "programs must be written for people to read, and only >> incidentally for machines to execute". Using anything other

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Paul Rubin wrote: > Alexander Schmolck <[EMAIL PROTECTED]> writes: >> Plenty of programming languages already support unicode identifiers, > > Could you name a few? Thanks. Haskell. AFAIK the Haskell Report says so but the compilers don't supported it last time I tried

Re: Basic question

2007-05-14 Thread Gabriel Genellina
En Mon, 14 May 2007 02:05:47 -0300, Alex Martelli <[EMAIL PROTECTED]> escribió: > Gabriel Genellina <[EMAIL PROTECTED]> wrote: >> But that's not the same as requested - you get a plain list, and the >> original was a list of lists: > Are we talking about the same code?! What I saw at the root of

Re: Removing part of string

2007-05-14 Thread half . italian
On May 13, 10:56 pm, [EMAIL PROTECTED] wrote: > Hi, > I am parsing an xml file ,and one part of structure looks > something like this: > > - PhysicalLink="Infotainment_Control_Bus_CAN"> > Infotainment_Control_Bus_CAN_TIMEOUT_AX > Timeout N_As/N_Ar > Time from transmit request until a CAN

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Neil Hodgson
Martin v. Löwis: > This PEP suggests to support non-ASCII letters (such as accented > characters, Cyrillic, Greek, Kanji, etc.) in Python identifiers. I support this to ease integration with other languages and platforms that allow non-ASCII letters to be used in identifiers. Python has a s

Re: How to do basic CRUD apps with Python

2007-05-14 Thread g_teodorescu
walterbyrd a scris: > With PHP, libraries, apps, etc. to do basic CRUD are everywhere. Ajax > and non-Ajax solutions abound. > > With Python, finding such library, or apps. seems to be much more > difficult to find. > > I thought django might be a good way, but I can not seem to get an > answer on

Re: How to do basic CRUD apps with Python

2007-05-14 Thread g_teodorescu
walterbyrd a scris: > With PHP, libraries, apps, etc. to do basic CRUD are everywhere. Ajax > and non-Ajax solutions abound. > > With Python, finding such library, or apps. seems to be much more > difficult to find. > > I thought django might be a good way, but I can not seem to get an > answer on

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Eric Brunel
On Sun, 13 May 2007 21:10:46 +0200, Stefan Behnel <[EMAIL PROTECTED]> wrote: [snip] > Now, I am not a strong supporter (most public code will use English > identifiers anyway) How will you guarantee that? I'm quite convinced that most of the public code today started its life as private code e

Re: How to do basic CRUD apps with Python

2007-05-14 Thread g_teodorescu
walterbyrd a scris: > With PHP, libraries, apps, etc. to do basic CRUD are everywhere. Ajax > and non-Ajax solutions abound. > > With Python, finding such library, or apps. seems to be much more > difficult to find. > > I thought django might be a good way, but I can not seem to get an > answer on

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Eric Brunel
On Sun, 13 May 2007 23:55:11 +0200, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > Martin v. Löwis a écrit : >> 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 (

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Stefan Behnel
Eric Brunel wrote: > Even when writing code that appears to be "private" at some > time, one *never* knows what will become of it in the future. If it ever > goes public, its chances to evolve - or just to be maintained - are far > bigger if it's written all in english. > > --python -c "print ''.jo

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Stefan Behnel
Eric Brunel wrote: > On Sun, 13 May 2007 21:10:46 +0200, Stefan Behnel > <[EMAIL PROTECTED]> wrote: > [snip] >> Now, I am not a strong supporter (most public code will use English >> identifiers anyway) > > How will you guarantee that? I'm quite convinced that most of the public > code today start

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Stefan Behnel
Alex Martelli schrieb: > Aldo Cortesi <[EMAIL PROTECTED]> wrote: > >> Thus spake Steven D'Aprano ([EMAIL PROTECTED]): >> >>> If you're relying on cursory visual inspection to recognize harmful code, >>> you're already vulnerable to trojans. >> What a daft thing to say. How do YOU recognize harmful

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Stefan Behnel
Bruno Desthuilliers wrote: > but CS is english-speaking, period. That's a wrong assumption. I understand that people can have this impression when they deal a lot with Open Source code, but I've seen a lot of places where code was produced that was not written to become publicly available (and bel

Re: Asyncore Help?

2007-05-14 Thread Daniel Nogradi
> I am working on the networking code for a small Multiplayer RPG I'm > working on. I currently have some basic code using threads, but it > seems like asyncore would be far better suited for my needs. However, > I have trouble finding a solid example for what I need. Python.org and > other sites p

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Anton Vredegoor
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Martin v. Löwis: > > > This PEP suggests to support non-ASCII letters (such as accented > > characters, Cyrillic, Greek, Kanji, etc.) in Python identifiers. > > I support this to ease integration with other languages and > platform

Re: Asyncore Help?

2007-05-14 Thread Nick Craig-Wood
Erik Max Francis <[EMAIL PROTECTED]> wrote: > Paul Kozik wrote: > > > While basic socket work was rather easy to deal with, this has proved > > significantly more difficult. Are there any good free sources for > > information on Asyncore, and dealing with TCP? > > You haven't said specifically

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Nick Craig-Wood
Martin v. Löwis <[EMAIL PROTECTED]> wrote: > So, please provide feedback, e.g. perhaps by answering these > questions: Firstly on the PEP itself: It defines characters that would be allowed. However not being up to speed on unicode jargon I don't have a clear idea about which characters those

Re: Asyncore Help?

2007-05-14 Thread Michael Bentley
On May 14, 2007, at 4:30 AM, Nick Craig-Wood wrote: > The learning curve of twisted is rather brutal :-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Asyncore Help?

2007-05-14 Thread Jarek Zgoda
Daniel Nogradi napisał(a): > The twisted project might also be a good place for anything related to > python and networking: http://twistedmatrix.com/trac/ Twisted eats babies for breakfast, although it also kills all known germs(TM). ;) -- Jarek Zgoda "We read Knuth so you don't have to." --

multi threaded SimpleXMLRPCServer

2007-05-14 Thread Vyacheslav Maslov
Hi, all! I need multi threaded version of SimpleXMLRPCServer. Does python library already have implementation of this one? Or i need to implement multi threading by myself? Which way is the simpliest? -- http://mail.python.org/mailman/listinfo/python-list

Re: Removing part of string

2007-05-14 Thread saif . shakeel
On May 14, 1:04 pm, [EMAIL PROTECTED] wrote: > On May 13, 10:56 pm, [EMAIL PROTECTED] wrote: > > > > > > > Hi, > > I am parsing an xml file ,and one part of structure looks > > something like this: > > > - > PhysicalLink="Infotainment_Control_Bus_CAN"> > > Infotainment_Control_Bus_CAN_TIMEOU

Element tree errors

2007-05-14 Thread saif . shakeel
HI, The following code is for replacing the strings localid with "datapackageid" in an xml document.: from xml.etree.ElementTree import ElementTree as et file_input = raw_input("Enter The ODX File Path:") (shortname,ext)=os.path.splitext(file_input) test_file=shortname+"testxml.xml" input

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Eric Brunel
On Mon, 14 May 2007 11:00:29 +0200, Stefan Behnel <[EMAIL PROTECTED]> wrote: > Eric Brunel wrote: >> On Sun, 13 May 2007 21:10:46 +0200, Stefan Behnel >> <[EMAIL PROTECTED]> wrote: >> [snip] >>> Now, I am not a strong supporter (most public code will use English >>> identifiers anyway) >> >> How

A Call for Professional Trainers of Python

2007-05-14 Thread Jeff Rush
I am seeking to organize the list of those, both individuals and companies, who offer training on Python and related frameworks and technologies. This is for those who provide this, typically to businesses, as part of their professional offerings, in order to provide an answer to Forrester Researc

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Stefan Behnel
Eric Brunel wrote: > On Mon, 14 May 2007 11:00:29 +0200, Stefan Behnel >> Any chance there are still kanji-enabled programmes around that were >> not hit >> by the bomb in this scenario? They might still be able to help you get >> the >> code "public". > > Contrarily to what one might think seeing

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Neil Hodgson
Anton Vredegoor: > Ouch! Now I seem to be disagreeing with the one who writes my editor. > What will become of me now? It should be OK. I try to keep my anger under control and not cut off the pixel supply at the first stirrings of dissent. It may be an idea to provide some more help f

Re: Element tree errors

2007-05-14 Thread John Machin
On May 14, 7:56 pm, [EMAIL PROTECTED] wrote: > HI, >The following code is for replacing the strings localid with > "datapackageid" in an xml document.: > > from xml.etree.ElementTree import ElementTree as et Note there are *two* occurrences of ElementTree in what you have above. The first

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Nick Craig-Wood wrote: > My initial reaction is that it would be cool to use all those great > symbols. A variable called OHM etc! This is a nice candidate for homoglyph confusion. There's the Greek letter omega (U+03A9) Ω and the SI unit symbol (U+2126) Ω, and I think s

Seeking Four Code Samples for Forrester Research Survey

2007-05-14 Thread Jeff Rush
In working up a response to the survey being conducted by Forrester Research on dynamic languages, there is a section wherein they want to see code samples. The samples must include all code written for the example, and URLs to any frameworks or modules used. Their objective is to see how efficie

Re: How to do basic CRUD apps with Python

2007-05-14 Thread Bruno Desthuilliers
walterbyrd a écrit : > With PHP, libraries, apps, etc. to do basic CRUD are everywhere. Ajax > and non-Ajax solutions abound. > > With Python, finding such library, or apps. seems to be much more > difficult to find. > > I thought django might be a good way, but I can not seem to get an > answer

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Marco Colombo
I suggest we keep focused on the main issue here, which is "shoud non- ascii identifiers be allowed, given that we already allow non-ascii strings literals and comments?" Most arguments against this proposal really fall into the category "ascii-only source files". If you want to promote code-shari

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Alexander Schmolck
Neil Hodgson <[EMAIL PROTECTED]> writes: > Paul Rubin wrote: >>> Plenty of programming languages already support unicode identifiers, >> >> Could you name a few? Thanks. > >C#, Java, Ecmascript, Visual Basic. (i.e. everything that isn't a legacy or niche language) scheme (major implementat

Re: __dict__ for instances?

2007-05-14 Thread Bruno Desthuilliers
Ivan Voras a écrit : > Bruno Desthuilliers wrote: > >>> "WARNING: "on_button_clicked" not callable or a tuple" >> Please post the relevant code and the full traceback. > > The code: > > Class W: > def __init__(self): > self.xml = gtk.glade.XML("glade/mainwin.glade") > self.window = se

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Laurent Pointal
Martin v. Löwis a écrit : > 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 summary, this PEP proposes to allow no

Re: Path python versions and Macosx

2007-05-14 Thread andrea
On 12 Mag, 01:09, [EMAIL PROTECTED] wrote: > On May 11, 1:36 pm, andrea <[EMAIL PROTECTED]> wrote: > > > > > Hi everyone, > > I use python on macosx with textmate as editor (great program). > > > I also use macport to install unix programs from the command line and > > I find it great too. > > Well

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Stefan Behnel
Marco Colombo wrote: > I suggest we keep focused on the main issue here, which is "shoud non- > ascii identifiers be allowed, given that we already allow non-ascii > strings literals and comments?" > > Most arguments against this proposal really fall into the category > "ascii-only source files".

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Duncan Booth
Alexander Schmolck <[EMAIL PROTECTED]> wrote: > scheme (major implementations such as PLT and the upcoming standard), > the most popular common lisp implementations, haskell[1], fortress[2], > perl 6 and I should imagine (but haven't checked) all new java or .NET > based languages (F#, IronPython,

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Stefan Behnel
Duncan Booth wrote: > Alexander Schmolck <[EMAIL PROTECTED]> wrote: > >> scheme (major implementations such as PLT and the upcoming standard), >> the most popular common lisp implementations, haskell[1], fortress[2], >> perl 6 and I should imagine (but haven't checked) all new java or .NET >> base

Re: GUI tutorial

2007-05-14 Thread David Boddie
On May 14, 2:57 am, BartlebyScrivener <[EMAIL PROTECTED]> wrote: > On May 13, 12:51 pm, John K Masters <[EMAIL PROTECTED]> > wrote: > > > Can someone point me in the direction of a good tutorial on programming > > python with a GUI? > > Alan Gauld added a gui programming tutorial to his main course

Re: multi threaded SimpleXMLRPCServer

2007-05-14 Thread Facundo Batista
Vyacheslav Maslov wrote: > I need multi threaded version of SimpleXMLRPCServer. Does python library > already have implementation of this one? Or i need to implement multi > threading by myself? Don't know, but maybe this helps. Here's a framework I implemented, where you have a job with multi

Re: multi threaded SimpleXMLRPCServer

2007-05-14 Thread Stefan Behnel
Vyacheslav Maslov wrote: > I need multi threaded version of SimpleXMLRPCServer. Does python library > already have implementation of this one? Or i need to implement multi > threading by myself? > > Which way is the simpliest? Twisted has XML-RPC support: http://twistedmatrix.com/trac/ Stefan -

Re: GUI tutorial

2007-05-14 Thread Jarek Zgoda
BartlebyScrivener napisał(a): >> Can someone point me in the direction of a good tutorial on programming >> python with a GUI? > > Alan Gauld added a gui programming tutorial to his main course. > > http://www.freenetpages.co.uk/hp/alan.gauld/ > > It's a frame page so I can't link directly, but

Re: GUI tutorial

2007-05-14 Thread Jarek Zgoda
John K Masters napisał(a): > Can someone point me in the direction of a good tutorial on programming > python with a GUI? I'm just starting out with python and have written a > few scripts successfully but would like to add a graphical front end to > them to make it easier for my work colleagues,

Beginner question: module organisation

2007-05-14 Thread Mail . To . Nathaniel
Hello :) I am new to python and I don't have much expirience in object-oriented technologies neither. The problem is the following: I have to create a simple python template script that will always follow the same algorithm, let's say: - read a mesh - transform the mesh (let's say, refine) The l

Yet Another Software Challenge

2007-05-14 Thread Thierry
For those interested in programming riddles, I would like to announce a new programming challenge I'm just launching at http://software.challenge.googlepages.com This challenge is in its early stage and thus set to be continuously improved. I would be especially interested in your comments and fe

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Paul McGuire
On May 14, 4:30 am, Nick Craig-Wood <[EMAIL PROTECTED]> wrote: > > A variable called OHM etc! > -- > Nick Craig-Wood <[EMAIL PROTECTED]> --http://www.craig-wood.com/nick Then can 'lambda' -> 'λ' be far behind? (I know this is a keyword issue, not covered by this PEP, but I also sense that the 'la

Re: Basic question

2007-05-14 Thread Max M
Dmitry Dzhus skrev: >> Actually I'm trying to convert a string to a list of float numbers: >> str = '53,20,4,2' to L = [53.0, 20.0, 4.0, 2.0] > > str="53,20,4,2" > map(lambda s: float(s), str.split(',')) > > Last expression returns: [53.0, 20.0, 4.0, 2.0] The lambda is not needed there, as float

Re: Yet Another Software Challenge

2007-05-14 Thread Paul McGuire
On May 14, 8:14 am, Thierry <[EMAIL PROTECTED]> wrote: > For those interested in programming riddles, I would like to > announce a new programming challenge I'm just launching > athttp://software.challenge.googlepages.com > > This challenge is in its early stage and thus set to be continuously > i

Re: Yet Another Software Challenge

2007-05-14 Thread Paul McGuire
On May 14, 8:14 am, Thierry <[EMAIL PROTECTED]> wrote: > For those interested in programming riddles, I would like to > announce a new programming challenge I'm just launching > athttp://software.challenge.googlepages.com > > This challenge is in its early stage and thus set to be continuously > i

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Duncan Booth
Stefan Behnel <[EMAIL PROTECTED]> wrote: >> Just to confirm that: IronPython does accept non-ascii identifiers. >> From "Differences between IronPython and CPython": >> >>> IronPython will compile files whose identifiers use non-ASCII >>> characters if the file has an encoding comment such as "#

Re: multi threaded SimpleXMLRPCServer

2007-05-14 Thread c james
I use a variation of the following. Clean and straight forward. http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/425043 Vyacheslav Maslov wrote: > Hi, all! > > I need multi threaded version of SimpleXMLRPCServer. Does python library > already have implementation of this one? Or i need

Re: Time

2007-05-14 Thread HMS Surprise
Thanks for posting. I sure am sorry that I wasted your time. I should have started the post stating I am using jython 2.2.3 and apparently it has no datetime module. But I will keep datetime in mind for future reference. Since I had no datetime I cobbled out the following. Seems to work thus far.

Re: Time

2007-05-14 Thread kyosohma
On May 14, 9:00 am, HMS Surprise <[EMAIL PROTECTED]> wrote: > Thanks for posting. I sure am sorry that I wasted your time. I should > have started the post stating I am using jython 2.2.3 and apparently > it has no datetime module. But I will keep datetime in mind for future > reference. > > Since

Re: Time

2007-05-14 Thread HMS Surprise
> if t[2] == 'PM': > hrMn[0] = int(hrMn[0]) + 12 > Oops, should be: hrMn[0] = int(hrMn[0] if t[2] == 'PM': hrMn[0] += 12 -- http://mail.python.org/mailman/listinfo/python-list

Re: Time

2007-05-14 Thread HMS Surprise
On May 14, 9:09 am, [EMAIL PROTECTED] wrote: > On May 14, 9:00 am, HMS Surprise <[EMAIL PROTECTED]> wrote: > > > > > Thanks for posting. I sure am sorry that I wasted your time. I should > > have started the post stating I am using jython 2.2.3 and apparently > > it has no datetime module. But I wi

Re: Time

2007-05-14 Thread HMS Surprise
On May 14, 9:22 am, HMS Surprise <[EMAIL PROTECTED]> wrote: > > if t[2] == 'PM': > > hrMn[0] = int(hrMn[0]) + 12 > > Oops, should be: > hrMn[0] = int(hrMn[0] > if t[2] == 'PM': > hrMn[0] += 12 Oops +=1, should be: hrMn[0] = int(hrMn[0] if t[2] == 'PM': hrMn[0] += 12 Need more s

deployment scripts

2007-05-14 Thread Erin
Does anyone have experience developing deployment scripts with Jython? -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread gatti
On May 13, 5:44 pm, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > In summary, this PEP proposes to allow non-ASCII letters as > identifiers in Python. If the PEP is accepted, the following > identifiers would also become valid as class, function, or > variable names: Löffelstiel, changé, ошибка,

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Bruno Desthuilliers
Stefan Behnel a écrit : > Eric Brunel wrote: >> On Mon, 14 May 2007 11:00:29 +0200, Stefan Behnel >>> Any chance there are still kanji-enabled programmes around that were >>> not hit >>> by the bomb in this scenario? They might still be able to help you get >>> the >>> code "public". >> Contrarily

Re: A newbie question about FileDialog in wxPython

2007-05-14 Thread kyosohma
On May 11, 1:24 pm, "OhKyu Yoon" <[EMAIL PROTECTED]> wrote: > Hi! > I am opening files using the wx.FileDialog in wxPython. > I want to modify the FileDialog such that some information about a > highlighted file is displayed before I decide to open the file. > This is what I tried: > > class Modifi

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Bruno Desthuilliers
Stefan Behnel a écrit : > Bruno Desthuilliers wrote: >> but CS is english-speaking, period. > > That's a wrong assumption. I've never met anyone *serious* about programming and yet unable to read and write CS-oriented technical English. > I understand that people can have this impression > whe

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Eric Brunel
On Mon, 14 May 2007 12:17:36 +0200, Stefan Behnel <[EMAIL PROTECTED]> wrote: > Eric Brunel wrote: >> On Mon, 14 May 2007 11:00:29 +0200, Stefan Behnel >>> Any chance there are still kanji-enabled programmes around that were >>> not hit >>> by the bomb in this scenario? They might still be able to

Re: Recursion limit problems

2007-05-14 Thread elventear
On May 11, 11:54 pm, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > > Without seeing the full code and the exception traceback, my guess is that > your __hash__ somehow calls itself due to a refence loop in your object. A > simple example of a loop: > a = []; a.append(a) > Now, list objects are not ha

Re: Recursion limit problems

2007-05-14 Thread elventear
On May 12, 12:25 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Fri, 11 May 2007 19:17:57 -0300, elventear <[EMAIL PROTECTED]> > escribió: > "The only required property is that objects which compare equal have the > same hash value; it is advised to somehow mix together (e.g., using

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Michel Claveau
Hi ! > - should non-ASCII identifiers be supported? why? > - would you use them if it was possible to do so? in what cases? Yes. And, more: yes yes yes Because: 1) when I connect Python to j(ava)Script, if the pages "connected" contains objects with non-ascii characters, I can't use it ; snif.

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Anders J. Munch
Eric Brunel wrote: > You could tell that the rule should be that if the project has the > slightest chance of becoming open-source, or shared with people not > speaking the same language as the original coders, one should not use > non-ASCII identifiers. I'm personnally convinced that *any* indu

Sorting troubles

2007-05-14 Thread seyensubs
I have the following implementations of quicksort and insertion sort: def qSort(List): if List == []: return [] return qSort([x for x in List[1:] if x< List[0]]) + List[0:1] + \ qSort([x for x in List[1:] if x>=List[0]]) def insertSort(List): for i in range(1,len(List)):

Re: Beginner question: module organisation

2007-05-14 Thread Nick Vatamaniuc
On May 14, 9:09 am, [EMAIL PROTECTED] wrote: > Hello :) > > I am new to python and I don't have much expirience in object-oriented > technologies neither. > > The problem is the following: I have to create a simple python > template script that will always follow the same algorithm, let's say: > -

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Anders J. Munch
Hendrik van Rooyen wrote: > And we have been through the Macro thingy here, and the consensus > seemed to be that we don't want people to write their own dialects. Macros create dialects that are understood only by the three people in your project group. It's unreasonable to compare that to a "d

Re: which is more pythonic/faster append or +=[]

2007-05-14 Thread 7stud
On May 10, 2:39 pm, Steven Bethard <[EMAIL PROTECTED]> wrote: > 7studwrote: > >> Is there any documentation for the syntax you used with timeit? > > > This is the syntax the docs describe: > [snip > > python timeit.py [-n N] [-r N] [-s S] [-t] [-c] [-h] [statement ...] > [snip] > > Then in the exam

Re: Asyncore Help?

2007-05-14 Thread Bjoern Schliessmann
Nick Craig-Wood wrote: > http://twistedmatrix.com/trac/ > > The learning curve of twisted is rather brutal, NACK, the tutorial is -- IMHO -- rather easy if you are used to writing Python code and doing asynchronous programming.

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread rurpy
On May 14, 9:53 am, Michel Claveau <[EMAIL PROTECTED]> wrote: > > - should non-ASCII identifiers be supported? why? > > - would you use them if it was possible to do so? in what cases? > > Yes. > And, more: yes yes yes > > Because: > > 1) when I connect Python to j(ava)Script, if the pages "connect

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Stefan Behnel
Jarek Zgoda schrieb: > Stefan Behnel napisał(a): > >>> While I can read the code with Hebrew, Russian or Greek names >>> transliterated to ASCII, I would not be able to read such code in native. >> Then maybe it was code that was not meant to be read by you? > > OK, then. As a code obfuscation me

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Jakub Stolarski
On May 13, 5:44 pm, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > - should non-ASCII identifiers be supported? why? No. It's good convention to stick with english. And if we stick with english, why we should need non-ASCII characters? Any non-ASCII character makes code less readable. We never know

Re: Sorting troubles

2007-05-14 Thread Thomas Nelson
On May 14, 11:05 am, [EMAIL PROTECTED] wrote: > I have the following implementations of quicksort and insertion sort: > > def qSort(List): > if List == []: return [] > return qSort([x for x in List[1:] if x< List[0]]) + List[0:1] + \ >qSort([x for x in List[1:] if x>=List[0]]) >

PEP 3131: Ascii-English is like coca-cola!

2007-05-14 Thread Pierre Hanser
This pep is not technical, or at least not only. It has larger implications about society model we want. Let me explain with an analogy: let's compare 'ascii english' to coca-cola. It's available nearly everywhere. It does not taste good at first try, and is especially repulsive to young childre

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Anton Vredegoor
Neil Hodgson wrote: > Anton Vredegoor: > >> Ouch! Now I seem to be disagreeing with the one who writes my editor. >> What will become of me now? > > It should be OK. I try to keep my anger under control and not cut > off the pixel supply at the first stirrings of dissent. Thanks! I guess I

Re: Sorting troubles

2007-05-14 Thread Nick Vatamaniuc
On May 14, 12:05 pm, [EMAIL PROTECTED] wrote: > I have the following implementations of quicksort and insertion sort: > > def qSort(List): > if List == []: return [] > return qSort([x for x in List[1:] if x< List[0]]) + List[0:1] + \ >qSort([x for x in List[1:] if x>=List[0]]) >

Re: deployment scripts

2007-05-14 Thread kyosohma
On May 14, 9:32 am, Erin <[EMAIL PROTECTED]> wrote: > Does anyone have experience developing deployment scripts with Jython? What do you mean by "deployment scripts"? What do you want to deploy? Jython? A different program from Jython? Or do you mean packaging a Jython program you wrote? We need

Re: GUI tutorial

2007-05-14 Thread John K Masters
On 15:03 Mon 14 May , Jarek Zgoda wrote: > John K Masters napisał(a): > > > Can someone point me in the direction of a good tutorial on programming > > python with a GUI? I'm just starting out with python and have written a > > few scripts successfully but would like to add a graphical front e

tkinter button state = DISABLED

2007-05-14 Thread rahulnag22
I have created a button widget with a button click binding. The button initially has a state=disabled. I can see the greyed out version of the button in the GUI. But If I click on the button it still invokes the callback/binding function. Any suggestions as to why the callback is being invoked eve

Re: Sorting troubles

2007-05-14 Thread seyensubs
I see. I figured that list comprehensions made another list(duh), but I thought I could relink the object(List) to the new list and keep it once the function ended. Is it possible to pass a reference(to an object.. Like 'List', basically) to a function and change the reference to point to somethin

Re: Jessica Simpson Sports new "Boob Job"!!!@

2007-05-14 Thread wb
On May 14, 2:09 am, [EMAIL PROTECTED] wrote: If her boobs getting any bigger she won't be able to stand up. -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Terry Reedy
"Stefan Behnel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Sounds like CPython would better follow IronPython here. One could also turn the argument around and say that there is no need to follow IronPython; people who want non-ASCII identifiers can just juse IronPython.

Re: tkinter button state = DISABLED

2007-05-14 Thread Peter Otten
[EMAIL PROTECTED] wrote: > I have created a button widget with a button click binding. The button > initially has a state=disabled. I can see the greyed out version of > the button in the GUI. But If I click on the button it still invokes > the callback/binding function. > > Any suggestions as to

=// Homeland Security on High Alert!!

2007-05-14 Thread ready . or . special3
http://freewindowsvista.blogspot.com/ - With a class action lawsuit looming, three politicians question the head of the Department of Homeland Security about the lost hard drive. The laptop was never found... -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Michel Claveau
And Il1 O0 ? -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Recursion limit problems

2007-05-14 Thread Terry Reedy
"elventear" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] On May 12, 12:25 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Fri, 11 May 2007 19:17:57 -0300, elventear <[EMAIL PROTECTED]> > escribió: > "The only required property is that objects which compare equal have the >

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Michel Claveau wrote: > And Il1 O0 ? Hm, we should ban digits from identifier names. :-) Ciao, Marc 'BlackJack' Rintsch -- http://mail.python.org/mailman/listinfo/python-list

Re: Sorting troubles

2007-05-14 Thread Terry Reedy
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] |I have the following implementations of quicksort and insertion sort: | | def qSort(List): |if List == []: return [] |return qSort([x for x in List[1:] if x< List[0]]) + List[0:1] + \ | qSort([x for x in List[1:] if x>

Re: Time

2007-05-14 Thread Gabriel Genellina
En Mon, 14 May 2007 11:27:35 -0300, HMS Surprise <[EMAIL PROTECTED]> escribió: > On May 14, 9:22 am, HMS Surprise <[EMAIL PROTECTED]> wrote: > > Oops +=1, should be: > hrMn[0] = int(hrMn[0] > if t[2] == 'PM': > hrMn[0] += 12 > > Need more starter fluid, coffee please!!! Still won't work

Re: Interesting list Validity (True/False)

2007-05-14 Thread [EMAIL PROTECTED]
On May 13, 8:24 am, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Sat, 12 May 2007 21:50:12 -0700, [EMAIL PROTECTED] wrote: I intended to reply to this yesterday, but circumstances (see timeit results) prevented it. > >> > Actually, it's this statement that's non-sensical. > > >> > > >> > "if

track cpu usage of linux application

2007-05-14 Thread Fabian Braennstroem
Hi, I would like to track the cpu usage of a couple of programs using python. Maybe it works somehow with piping 'top' to python read the cpu load for a greped application and clocking the the first and last appearence. Is that a good approach or does anyone have a more ele

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Stefan Behnel
Marc 'BlackJack' Rintsch schrieb: > In <[EMAIL PROTECTED]>, Michel Claveau > wrote: > >> And Il1 O0 ? > > Hm, we should ban digits from identifier names. :-) Ah, good idea - and capital letters also. After all, they are rare enough in English to just plain ignore their existance. Stefan :) --

RE: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Michael Yanowitz
Let me guess - the next step will be to restrict the identifiers to be at most 6 characters long. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Stefan Behnel Sent: Monday, May 14, 2007 2:53 PM To: python-list@python.org Subject: Re: PEP 3131: Supporting Non

  1   2   >