Re: pre-PEP: Suite-Based Keywords - syntax proposal

2005-04-16 Thread Kay Schluehr
Robert Brewer wrote: > Bengt Richter wrote: > > The '::' unary suite operator should return an ordered dict > > subtype representing the bindings > > Why ordered? Because You can't otherwise guarantee to feed optional argument parameters in a correct way. Example: x = property(*seq) where:

Re: pre-PEP: Simple Thunks

2005-04-16 Thread Ron_Adam
On Sat, 16 Apr 2005 17:25:00 -0700, Brian Sabbey <[EMAIL PROTECTED]> wrote: >> You can already do this, this way. >> > def f(thunk): >> ... before() >> ... thunk() >> ... after() >> ... > def before(): >> ... print 'before' >> ... > def after(): >> ... print 'after'

Decorator Syntax For Recursive Properties

2005-04-16 Thread Jeffrey Froman
Consider the following class: class Node(object): def __init__(self, name, parent=None): self.name = name self.parent = parent def _ancestors(self, ants=None): if ants is None: ants = [] else: ants.insert(0, self.name) if sel

Re: pre-PEP: Suite-Based Keywords

2005-04-16 Thread Oren Tirosh
Take a look at Nick Coglan's "with" proposal: http://groups.google.co.uk/groups?selm=mailman.403.1105274631.22381.python-list%40python.org It addresses many of the same issues (e.g. easy definition of properties). It is more general, though: while your proposal only applies to keyword arguments i

RE: pre-PEP: Suite-Based Keywords - syntax proposal

2005-04-16 Thread Robert Brewer
Bengt Richter wrote: > The '::' unary suite operator should return an ordered dict > subtype representing the bindings Why ordered? Robert Brewer MIS Amor Ministries [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: pre-PEP: Suite-Based Keywords - syntax proposal

2005-04-16 Thread Kay Schluehr
Bengt Richter wrote: > On Sun, 17 Apr 2005 01:10:47 GMT, [EMAIL PROTECTED] (Bengt Richter) wrote: > [...] > > > >The "::" expression I'm proposing generalizes capturing suite bindings into an ordered sequence of (key,value) > >tuples, like an ordered vars().items() limited to the bindings produced

Re: Compute pi to base 12 using Python?

2005-04-16 Thread Tim Roberts
Dick Moores <[EMAIL PROTECTED]> wrote: >M.E.Farmer wrote at 23:18 4/14/2005: >>Nice collection of unix tools, Cygwin not needed. >>http://unxutils.sourceforge.net/ > >Thank you! > >But a question. I've download both UnxUtils.zip and UnxUpdates.zip. I'm >planning to put the contents of UnxUtils.zi

Re: Compute pi to base 12 using Python?

2005-04-16 Thread Tim Roberts
Dick Moores <[EMAIL PROTECTED]> wrote: >> >># Reading/writing Python source often gives me the impression of >># reading/writing a poem! >># Layout, indentation, rythm, I like the look and feel! >> >># What does this tiny program do? It is not a sonnet, even not a >># pi-sonnet, but it surely produ

Re: whitespace , comment stripper, and EOL converter

2005-04-16 Thread M.E.Farmer
Thanks Jean, I have thought about adding docstrings several times, but I was stumped at how to determine a docstring from a regular tripleqoted string ;) I have been thinking hard about the problem and I think I have an idea. If the line has nothing before the start of the string it must be a docst

Re: Python's use in RAD

2005-04-16 Thread Luis M. Gonzalez
Check this out: http://pythoncard.sourceforge.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Do You Want To Know For Sure That You Are Going To Heaven? The reason some people don't know for sure if they are going to Heaven when they die is because they just don't know. The good news is that you can know for sure that you are going to Heaven which is described in the Holy Bible as a beautiful place with no death, sorrow, sickness or pain. (newsgroup-post 141)

2005-04-16 Thread
!! -- http://mail.python.org/mailman/listinfo/python-list

pysvn install on freebsd

2005-04-16 Thread Timothy Smith
has anyone used or installed this on fbsd the install for it is totally redundant. i get this error for it make -f freebsd.mak clean all test cd ../Source && make -f pysvn_freebsd_py.mak clean make: cannot open pysvn_freebsd_py.mak. *** Error code 2 Stop in /usr/home/timothy/pysvn-1.1.2/Extension/B

Re: new to mac OS10

2005-04-16 Thread Robert Kern
Maurice LING wrote: Hi Thomas, It seems that you've cleanly killed the Apple-installed Python, which isn't too bad a thing after all. What I can suggest you do is this... Copy the entire /System/Library/Frameworks/Python.framework directory from someone and drop it into your system (same place o

Re: pre-PEP: Suite-Based Keywords - syntax proposal

2005-04-16 Thread Bengt Richter
On Sun, 17 Apr 2005 01:10:47 GMT, [EMAIL PROTECTED] (Bengt Richter) wrote: [...] > >The "::" expression I'm proposing generalizes capturing suite bindings into an >ordered sequence of (key,value) >tuples, like an ordered vars().items() limited to the bindings produced in the >suite following "::"

Re: pre-PEP: Suite-Based Keywords

2005-04-16 Thread Bengt Richter
On Sat, 16 Apr 2005 14:01:56 -0700, Brian Sabbey <[EMAIL PROTECTED]> wrote: >Reinhold Birkenfeld wrote: >> Brian Sabbey wrote: >>> Here is a pre-PEP for what I call "suite-based keyword arguments". The >>> mechanism described here is intended to act as a complement to thunks. >>> Please let me kno

Re: XML parsing per record

2005-04-16 Thread William Park
Willem Ligtenberg <[EMAIL PROTECTED]> wrote: > I want to parse a very large (2.4 gig) XML file (bioinformatics > ofcourse :)) But I have no clue how to do that. Most things I see read > the entire xml file at once. That isn't going to work here ofcourse. > > So I would like to parse a XML file one

Re: pre-PEP: Suite-Based Keywords

2005-04-16 Thread Bengt Richter
On Sat, 16 Apr 2005 13:58:38 -0700, Brian Sabbey <[EMAIL PROTECTED]> wrote: [...] > >Yes, my description of the syntax was ambiguous. To clarify, I intended >the syntax to be backwardly compatible. That is, one would not be able to >use a suite to define keywords if there already exists a suit

Re: new to mac OS10

2005-04-16 Thread Maurice LING
Hi Thomas, It seems that you've cleanly killed the Apple-installed Python, which isn't too bad a thing after all. What I can suggest you do is this... Copy the entire /System/Library/Frameworks/Python.framework directory from someone and drop it into your system (same place of course). I will n

Re: pre-PEP: Simple Thunks

2005-04-16 Thread Brian Sabbey
Bengt Richter wrote: Good background on thunks can be found in ref. [1]. UIAM most of that pre-dates decorators. What is the relation of thunks to decorators and/or how might they interact? Hmm, I think you answered this below better than I could ;). def f(thunk): before() thunk() after()

Re: pre-PEP: Suite-Based Keywords

2005-04-16 Thread Bengt Richter
On Sat, 16 Apr 2005 14:02:32 -0700, Brian Sabbey <[EMAIL PROTECTED]> wrote: >Bengt Richter wrote: >> On Fri, 15 Apr 2005 19:32:02 -0700, James Stroud <[EMAIL PROTECTED]> wrote: Examples Using suite-based keyword arguments, the code f(x = 1) is equiv

Re: RE Engine error with sub()

2005-04-16 Thread Maurice LING
Solved it. Instead of modifying Replacer class, I've made another class which initiates a list of Replacer objects from a list of substitution rule files. And then iterates through the list of Replacer objects and calls upon their own substitute() method. It seems to work. Thanks for all your a

Re: pre-PEP: Suite-Based Keywords - syntax proposal

2005-04-16 Thread Bengt Richter
On 16 Apr 2005 09:07:09 -0700, "Kay Schluehr" <[EMAIL PROTECTED]> wrote: >The idea is interesting but not unambigously realizable. Maybe one >should introduce some extra syntax for disambiguation and thereby >generalize the proposal. This is intriguing. I am reminded of trailing "where x is someth

Re: pre-PEP: Simple Thunks

2005-04-16 Thread Brian Sabbey
[EMAIL PROTECTED] wrote: Keep in mind that most of the problems come from the "space is significant" thing, which is IMHO a very good idea, but prevents us from putting code in expressions, like : func( a,b, def callback( x ): print x ) or does it ? maybe this s

Re: pre-PEP: Simple Thunks

2005-04-16 Thread Brian Sabbey
On Sat, 16 Apr 2005, Ron_Adam wrote: Thunks are, as far as this PEP is concerned, anonymous functions that blend into their environment. They can be used in ways similar to code blocks in Ruby or Smalltalk. One specific use of thunks is as a way to abstract acquire/release code. Another use is as a

Re: pre-PEP: Simple Thunks

2005-04-16 Thread Brian Sabbey
Leif K-Brooks wrote: Brian Sabbey wrote: Thunk statements contain a new keyword, 'do', as in the example below. The body of the thunk is the suite in the 'do' statement; it gets passed to the function appearing next to 'do'. The thunk gets inserted as the first argument to the function, reminisc

Re:

2005-04-16 Thread Jaime Wyant
You need to look at the re module. >>> import re >>> dir(re) >>> re.split('A|a', 'A big Fat CAt') ['', ' big F', 't C', 't'] Then google around for a regular expression tutorial... jw On 4/16/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > All, > > I have been going through the manual

Re: whitespace , comment stripper, and EOL converter

2005-04-16 Thread qwweeeit
Hi, Importing a text file from another o.s. is not a problem : I convert it immediately using the powerful shell functions of Linux (and Unix). I thank you for the explanation about classes, but I am rather dumb and by now I resolved all my problems without them... Speaking of problems..., I have

Re: changing colors in python

2005-04-16 Thread Claudio Grondi
The readline module (used e.g. in IPython) http://sourceforge.net/project/showfiles.php?group_id=82407 provides the Console.py script and in my own version of it, the (extended) Console() class supports any ANSI escape sequences of the form ESC[#m and ESC[#,#m , making it possible to set any by con

Re: A little request about spam

2005-04-16 Thread Mike Meyer
Ivan Van Laningham <[EMAIL PROTECTED]> writes: > Of course I wouldn't base decisions _only_ on whether or not [PYTHON] > appears in the subject. But I ordinarily do base decisions on the whole > subject line, and I think that's perfectly reasonable. There's nothing > else to go on without opening

Re: Python's use in RAD

2005-04-16 Thread Jarek Zgoda
Ross Cowie napisał(a): I am currenly a second year university student and was wondering if you could help me ut. As part of a project i have decided to write about python, i am not having very much luck with regards to finding infrmation on pythons use in Rapid Application Development, and was

Re: pre-PEP: Suite-Based Keywords

2005-04-16 Thread Steven Bethard
Shane Hathaway wrote: I like this PEP a lot, but your concern is valid. Maybe Brian could modify the PEP slightly to disambiguate. How about using an ellipsis in the argument list to signify suite-based keywords? Examples: f(...): x = 1 class C(object): x = property(...): doc = "I'm

Re: pre-PEP: Suite-Based Keywords

2005-04-16 Thread Kay Schluehr
Nicolas Fleury wrote: > Shane Hathaway wrote: > > I like this PEP a lot, but your concern is valid. Maybe Brian could > > modify the PEP slightly to disambiguate. How about using an ellipsis in > > the argument list to signify suite-based keywords? Examples: > > > > f(...): > > x = 1 > > >

Re: pythonic use of properties?

2005-04-16 Thread Michael Spencer
Marcus Goldfish wrote: So what do you consider when making this decision Python style tends away from validating what doesn't need to be validated. The argument seems to be that the additional validating code comes at the price of legibility, and perhaps flexibility. It's common in Python to us

Re: pre-PEP: Suite-Based Keywords

2005-04-16 Thread Brian Sabbey
Bengt Richter wrote: On Fri, 15 Apr 2005 19:32:02 -0700, James Stroud <[EMAIL PROTECTED]> wrote: I_vote_yes(James): I_understand_what_it_does = True Makes_code_formatting_way_more_managable_in_tough_cases = True Makes_code_way_more_readable = True To_cool = True On Friday 15 April 2005 04:4

Re: pre-PEP: Suite-Based Keywords

2005-04-16 Thread Brian Sabbey
Reinhold Birkenfeld wrote: Brian Sabbey wrote: Here is a pre-PEP for what I call "suite-based keyword arguments". The mechanism described here is intended to act as a complement to thunks. Please let me know what you think. Suite-Based Keyword Arguments - Passing complic

Re: pre-PEP: Suite-Based Keywords

2005-04-16 Thread Brian Sabbey
Shane Hathaway wrote: Kent Johnson wrote: Brian Sabbey wrote: Using suite-based keyword arguments, the code f(x = 1) is equivalent to f(): x = 1 ISTM the syntax is ambiguous. How do you interpret if f(): x = 1 ? Is a suite alllowed only when a block could not be introduced in the current synt

Re: pydoc preference for triple double over triple single quotes -- anyreason?

2005-04-16 Thread Kent Johnson
Brian van den Broek wrote: Hi all, I'm posting partly so my problem and solution might be more easily found by google, and partly out of mere curiosity. I've just spent a frustrating bit of time figuring out why pydoc didn't extract a description from my module docstrings. Even though I had a w

Software Development Jobs

2005-04-16 Thread Solido Design Automation Jobs
Software Developer -- Responsibilities: You will be a key member of a project team to develop and deliver core modules of a breakthrough product in a venture capital backed start-up company in the electronic design automation (EDA) industry. You will be responsible for defining, de

Re: ANN: Python 2.3.2 for PalmOS available

2005-04-16 Thread Erik Max Francis
Klaus Alexander Seistrup wrote: However, MLPY doesn't seem to work on my Tungsten T3 (PalmOS 5.2.1). The .prc installs without any problems, and I can start the Python interpreter, but nothing happens if I ring in a Python expression and press return -- the prompt just "hangs" and never returns. It

Re: ANN: Python 2.3.2 for PalmOS available

2005-04-16 Thread bryce . moore
Lucio, Just tried to install it on my sony clie PEG-S360. When I try to run it I get: Fatal Alert pythonrun.c, Line: 1483, Py_Initialize: can't init ints Aside from my clie being significantly under-powered, I don't know what else could be wrong. What version of the Palm OS does this support?

Re: pre-PEP: Simple Thunks

2005-04-16 Thread Ron_Adam
On Fri, 15 Apr 2005 16:44:58 -0700, Brian Sabbey <[EMAIL PROTECTED]> wrote: > >Simple Thunks >- > >Thunks are, as far as this PEP is concerned, anonymous functions that >blend into their environment. They can be used in ways similar to code >blocks in Ruby or Smalltalk. One specific

Re: pydoc preference for triple double over triple single quotes -- any reason?

2005-04-16 Thread Thomas Rast
Brian van den Broek <[EMAIL PROTECTED]> writes: > It turns out that I was using '''triple single quotes''' and pydoc > only pulls a description out from module docstrings that are formatted > in """triple double quotes""". I've poked about with google, and > cannot find any explanation of why pydo

Re: pre-PEP: Suite-Based Keywords

2005-04-16 Thread Nicolas Fleury
Shane Hathaway wrote: I like this PEP a lot, but your concern is valid. Maybe Brian could modify the PEP slightly to disambiguate. How about using an ellipsis in the argument list to signify suite-based keywords? Examples: f(...): x = 1 class C(object): x = property(...): doc = "I'm

Re: whitespace , comment stripper, and EOL converter

2005-04-16 Thread MrJean1
Great tool, indeed! But doc strings stay in the source text. If you do need to remove doc strings as well, add the following into the __call__ method. ... # kill doc strings ... if not self.docstrings: ... if toktype == tokenize.STRING and len(toktext) >= 6: ...

pydoc preference for triple double over triple single quotes -- any reason?

2005-04-16 Thread Brian van den Broek
Hi all, I'm posting partly so my problem and solution might be more easily found by google, and partly out of mere curiosity. I've just spent a frustrating bit of time figuring out why pydoc didn't extract a description from my module docstrings. Even though I had a well formed docstring (one l

Re: IPython - problem with using US international keyboard input scheme on W2K

2005-04-16 Thread Thomas Heller
"Gary Bishop" <[EMAIL PROTECTED]> writes: > Fernando Perez <[EMAIL PROTECTED]> wrote: >> Claudio Grondi wrote: > >> > Considering what I found in the ipython mailing archives >> > and the fact, that after the fix with displaying colors on >> > bright backgrounds Gary had no time yet to get in touc

Re: whitespace , comment stripper, and EOL converter

2005-04-16 Thread M.E.Farmer
Glad you are making progress ;) >I give you a brief example of the xref output (taken from your >code, >also if the line numbers don't match, because I modified >your code, >not beeing interested in eof's other than Linux). What happens when you try to analyze a script from a diffrent os ? It usu

Re: new to mac OS10

2005-04-16 Thread Kevin Walzer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 It's *not* a good idea to delete Apple's system Python. You will probably need to reinstall the OS. In addition to the mailing list that someone else posted (which is a great resource!), here's a good site to check out: http://pythonmac.org/ The site ma

Re: XML parsing per record

2005-04-16 Thread Fredrik Lundh
Kent Johnson wrote: So I would like to parse a XML file one record at a time and then be able to store the information in another object. You might be interested in this recipe using ElementTree: http://online.effbot.org/2004_12_01_archive.htm#element-generator if you have ElementTree 1.2.5 or late

Re: unicode "em space" in regex

2005-04-16 Thread "Martin v. LÃwis"
Xah Lee wrote: > how to represent the unicode "em space" in regex? You will have to pass a Unicode literal as the regular expression, e.g. fracture=re.split(u'\u2003*\\|\u2003*',myline,re.U) Notice that, in raw Unicode literals, you can still use \u to escape characters, e.g. fracture=re.spli

Re: Dr Dobbs "with" keyword

2005-04-16 Thread Giovanni Bajo
Neil Hodgson wrote: >In the March 2005 issue of Dr Dobbs Journal there is an article > "Resource Management in Python" by Oliver Schoenborn. One paragraph > (first new paragraph, page 56) starts "Starting with Python 2.4, a new > type of expression lets you use the keyword /with/". It continue

Re:

2005-04-16 Thread tiissa
[EMAIL PROTECTED] wrote: I have been going through the manuals and not having much luck with the following code. This is basically an issue of giving 'split' multiple patterns to split a string. If it had an ignore case switch, the problem would be solved. Instead, I have to code the following,

Re: pre-PEP: Suite-Based Keywords - syntax proposal

2005-04-16 Thread Kay Schluehr
The idea is interesting but not unambigously realizable. Maybe one should introduce some extra syntax for disambiguation and thereby generalize the proposal. as : # list of definitions and assignments Proposed specifiers are dict, tuple, *, ** and func. - as dict: conversion into a dict

Re:

2005-04-16 Thread Kent Johnson
[EMAIL PROTECTED] wrote: All, I have been going through the manuals and not having much luck with the following code. This is basically an issue of giving 'split' multiple patterns to split a string. If it had an ignore case switch, the problem would be solved. Instead, I have to code the follow

Re: XML parsing per record

2005-04-16 Thread Kent Johnson
Willem Ligtenberg wrote: I want to parse a very large (2.4 gig) XML file (bioinformatics ofcourse :)) But I have no clue how to do that. Most things I see read the entire xml file at once. That isn't going to work here ofcourse. So I would like to parse a XML file one record at a time and then be a

Re: pre-PEP: Simple Thunks

2005-04-16 Thread Bengt Richter
On Fri, 15 Apr 2005 16:44:58 -0700, Brian Sabbey <[EMAIL PROTECTED]> wrote: >Here is a first draft of a PEP for thunks. Please let me know what you >think. If there is a positive response, I will create a real PEP. > >I made a patch that implements thunks as described here. It is available >at:

Re: pre-PEP: Simple Thunks

2005-04-16 Thread Kay Schluehr
Brian Sabbey wrote: > def get_items(thunk):# <-- "thunk-accepting function" > f = acquire() > try: > for i in f: > thunk(i) # A-OK > finally: > f.release() > > do i in get_items(): > print i Seems like You want to solve the addressed gene

Re: XML parsing per record

2005-04-16 Thread Ivan Voras
Irmen de Jong wrote: XML is not known for its efficiency Surely you are blaspheming, sir! XML's the greatest thing since peanut butter! I'm just *waiting* for the day someone finds its use on the rolls of toilet paper... oh the glorious day... -- http://mail.python.org/mailman/listinfo/py

Re: trouble to print array contents using slice operator

2005-04-16 Thread Diez B. Roggisch
praba kar wrote: > Dear all, > >In Php array_slice function base > we can print array contents as per our desire > eg) > > $a = array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15); > $arr = array_slice($a,10,10); > > this function will print 11,12,13,14,15 > > But I try to print the same thing in p

Re: whitespace , comment stripper, and EOL converter

2005-04-16 Thread qwweeeit
Hi, At last I succeded in implementing a cross reference tool! (with your help and that of other gurus...). Now I can face the problem (for me...) of understanding your code (I have not grasped the classes and objects...). I give you a brief example of the xref output (taken from your code, also

RE: trouble to print array contents using slice operator

2005-04-16 Thread Michael . Coll-Barth
print a[10:15] or print a[10:] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] n.org]On Behalf Of praba kar Sent: Saturday, April 16, 2005 10:28 AM To: python-list@python.org Subject: trouble to print array contents using slice operator Dear all, In Php array

RE:

2005-04-16 Thread Michael . Coll-Barth
All, I have been going through the manuals and not having much luck with the following code. This is basically an issue of giving 'split' multiple patterns to split a string. If it had an ignore case switch, the problem would be solved. Instead, I have to code the following, which works fine fo

trouble to print array contents using slice operator

2005-04-16 Thread praba kar
Dear all, In Php array_slice function base we can print array contents as per our desire eg) $a = array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15); $arr = array_slice($a,10,10); this function will print 11,12,13,14,15 But I try to print the same thing in python using slice operator eg) print a[1

Re: python modules in home dir

2005-04-16 Thread Uche Ogbuji
On Sat, 2005-04-09 at 14:09 -0700, dzieciou wrote: > I'm new-comer in Python. > I want to install few Python modules (4Suite, RDFLib, Twisted and Racoon) > in my home directory, since Python installation is already installed in the > system > and I'm NOT its admin. > I cannot install pyvm (portabl

Re: sort of a beginner question about globals

2005-04-16 Thread fred.dixon
just read the ne stuuf. i went to DIP right after work anf found in nice intro to unittest. not to bad (i thinK) now that I can see it work) -- http://mail.python.org/mailman/listinfo/python-list

Re: XML parsing per record

2005-04-16 Thread Irmen de Jong
Willem Ligtenberg wrote: I want to parse a very large (2.4 gig) XML file (bioinformatics ofcourse :)) But I have no clue how to do that. Most things I see read the entire xml file at once. That isn't going to work here ofcourse. So I would like to parse a XML file one record at a time and then be a

XML parsing per record

2005-04-16 Thread Willem Ligtenberg
I want to parse a very large (2.4 gig) XML file (bioinformatics ofcourse :)) But I have no clue how to do that. Most things I see read the entire xml file at once. That isn't going to work here ofcourse. So I would like to parse a XML file one record at a time and then be able to store the informa

Re: unicode "em space" in regex

2005-04-16 Thread Klaus Alexander Seistrup
Xah Lee : > how to represent the unicode "em space" in regex? > > e.g. i want do something like this: > > fracture=re.split(r'\342371*\|\342371*',myline,re.U) I'm not sure what you're trying to do, but would it help you to use it's name: >>> EM_SPACE = u'\N{EM SPACE}' >>> fra

Re: ANN: Python 2.3.2 for PalmOS available

2005-04-16 Thread Peter Hansen
Klaus Alexander Seistrup wrote: [EMAIL PROTECTED] wrote: Some months ago i did a port of the Python2.3.2 interpreter to PalmOS. Wow, this is just what I've been waiting for. Meanwhile I've tried to make do with Rexx for PalmOS, hehehe... I've been making do (rather successfully so far) with Plua 2

Re: ANN: Python 2.3.2 for PalmOS available

2005-04-16 Thread Klaus Alexander Seistrup
[EMAIL PROTECTED] wrote: > Some months ago i did a port of the Python2.3.2 interpreter to > PalmOS. Wow, this is just what I've been waiting for. Meanwhile I've tried to make do with Rexx for PalmOS, hehehe... However, MLPY doesn't seem to work on my Tungsten T3 (PalmOS 5.2.1). The .prc install

Re: MS SQL Server/ODBC package for Python

2005-04-16 Thread Francois Lepoutre
Peter, May my I apologize for knocking against your information, as well. > For what it is worth, my experience is as follows: Using a PIII > 550MHz, 256MB RAM, running WinNT 4.0 and Python 2.3.4 and connecting > to a Sybase Adaptive Server Anywhere 8.0 database, mx.ODBC took > approximately 8 wal

Re: Is Python appropriate for web applications?

2005-04-16 Thread Unknown User
Thank you very much. On Fri, 15 Apr 2005 06:47:14 -0300, Peter Maas <[EMAIL PROTECTED]> wrote: Unknown User schrieb: I am a Python programmer and I'm thinking about learning PHP, which is similar to C++ wrong (quite different from Python). true I want to start writing web applications. Do you th

unicode "em space" in regex

2005-04-16 Thread Xah Lee
how to represent the unicode "em space" in regex? e.g. i want do something like this: fracture=re.split(r'\342371*\|\342371*',myline,re.U) Xah [EMAIL PROTECTED] â http://xahlee.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: pythonic use of properties?

2005-04-16 Thread Diez B. Roggisch
> > Even though "tens", "ones" and "number" all appear as attributes, only > "number" has its input validated. Since the class is designed to only > hold numbers 0 - 99, one can 'break' it by setting self.tens=11, for > example. Should tens and ones be made into full-fledged properties > and val

Re: Do You Want To Know For Sure That You Are Going To Heaven? The reason some people don't know for sure if they are going to Heaven when they die is because they just don't know. The good news is that you can know for sure that you are going to Heaven which is described in the Holy Bible as a beautiful place with no death, sorrow, sickness or pain. (newsgroup-post 140)

2005-04-16 Thread Craig
Lord... forgive the Holy Roller, spammers for they know not what they do -- http://mail.python.org/mailman/listinfo/python-list

Re: pre-PEP: Suite-Based Keywords

2005-04-16 Thread peufeu
How would you write if f(x=1): print "yes" using suite-based keyword args? Good point. Then we should remove the extra ':' at the end of the function invocation : if f(x=@>): value of x print "yes" if f(@**>): x: value of x print "yes" -- ht

Re: pre-PEP: Simple Thunks

2005-04-16 Thread peufeu
I think your proposal is very interesting, I've been missing code blocks in Python more and more as time goes by. I'll answer to both the 'thunks" proposal and the "suite-based keywords" proposal here. I find the Ruby syntax rather dirty though, because it has a lot of implicit stuff, tre

Re: Do You Want To Know For Sure That You Are Going To Heaven? The reason some people don't know for sure if they are going to Heaven when they die is because they just don't know. The good news is that you can know for sure that you are going to Heaven which is described in the Holy Bible as a beautiful place with no death, sorrow, sickness or pain. (newsgroup-post 140)

2005-04-16 Thread [EMAIL PROTECTED]
I don't know why you post this article and contradict pope and Christian. Is this the right forum to talk something like this ? I guess this is only python language forum not Religion forum --- pujo -- http://mail.python.org/mailman/listinfo/python-list

Re: RE Engine error with sub()

2005-04-16 Thread Maurice LING
Hi all, I think I might have a workaround to this problem but have no idea how to work it through. I hope that someone can kindly help me out because I do not quite understand the mechanics of the _make_regex() method in the original codes... My idea is, instead of having one UserDict, have a l

Re: pre-PEP: Suite-Based Keywords

2005-04-16 Thread Reinhold Birkenfeld
Brian Sabbey wrote: > Here is a pre-PEP for what I call "suite-based keyword arguments". The > mechanism described here is intended to act as a complement to thunks. > Please let me know what you think. > > Suite-Based Keyword Arguments > - > > Passing complicated ar

distutils question: different projects under same namespace

2005-04-16 Thread Qiangning Hong
To avoid namespace confliction with other Python packages, I want all my projects to be put into a specific namespace, e.g. 'hongqn' package, so that I can use "from hongqn.proj1 import module1", "from hongqn.proj2.subpack1 import module2", etc. These projects are developed and maintained and dist

Re: ANN: Python 2.3.2 for PalmOS available

2005-04-16 Thread Wolfgang Keller
> If there is any interest on this, please let me know so we can work on > getting this as a real port. "Interest" is just a "slight" understatement... :-) Best regards Wolfgang Keller -- P.S.: My From-address is correct -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem when subclass instance changes base class instance variable

2005-04-16 Thread Peter Otten
Gerry Sutton wrote: > I have noticed a strange behavior when using a constant identifier to > initialize an instance list variable in a base class and then trying to > modifying the list in subclasses by using either the list.extend method or > even by having the subclass create a whole new list i

need help in PySparse

2005-04-16 Thread monocalibro
Hello all! I need ready-for-use installable version of PySparse (for FiPy), because I can't compile it with MingW. Or, may be, somebody knows step-by-step instruction to complie this package under Win32 using Mingw? Best regards -- http://mail.python.org/mailman/listinfo/python-list

Re: pre-PEP: Suite-Based Keywords

2005-04-16 Thread Bengt Richter
On Fri, 15 Apr 2005 16:45:55 -0700, Brian Sabbey <[EMAIL PROTECTED]> wrote: >Here is a pre-PEP for what I call "suite-based keyword arguments". The >mechanism described here is intended to act as a complement to thunks. >Please let me know what you think. > Sorry, I replied to to you via James S

Re: pre-PEP: Suite-Based Keywords

2005-04-16 Thread Bengt Richter
On Fri, 15 Apr 2005 19:32:02 -0700, James Stroud <[EMAIL PROTECTED]> wrote: >I_vote_yes(James): > I_understand_what_it_does = True > Makes_code_formatting_way_more_managable_in_tough_cases = True > Makes_code_way_more_readable = True > To_cool = True > >On Friday 15 April 2005 04:45 pm, Br

Re: pre-PEP: Suite-Based Keywords

2005-04-16 Thread Shane Hathaway
Kent Johnson wrote: > Brian Sabbey wrote: >> Using suite-based keyword arguments, the code >> >> f(x = 1) >> >> is equivalent to >> >> f(): >>x = 1 > > > ISTM the syntax is ambiguous. How do you interpret > if f(): > x = 1 > ? > > Is a suite alllowed only when a block could not be introduc