name
> fh.close()
Then you close fh... and discard the modifications to l.
> if __name__=="__main__":
> replace()
>
> But it does not replace Document with Doc in the txt file
Why should it ? You didn't asked for it !-)
> Is there anything wrong i am doin
Georg Brandl wrote:
> Bruno Desthuilliers wrote:
>> Steven D'Aprano wrote:
>>> On Sat, 07 Oct 2006 17:21:55 -0500, Tim Chase wrote:
>>>
>>>>>> With the caveat of the "=" mentioned in the subject-line (being
>>>>>> diffe
Terry Reedy wrote:
> "Bruno Desthuilliers" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> The current namespace object, of course.
>
> Implementing a namespace as a Python object (ie, dict) is completely
> optional and implementati
> user to change and add new lines. What is the easiest set of database
> routines to use for such a project???
I'd go for something like SQLite or Gadfly - or even the standard CSV
module if there are no need for a relational model.
> http://www.dexrow.com
>
--
bru
tml#delete
http://pylonshq.com/project/pylonshq/wiki/AjaxGettingStarted
HTH
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in '[EMAIL PROTECTED]'.split('@')])"
--
http://mail.python.org/mailman/listinfo/python-list
re's much more to Zope and web programming than just html.
> so I don't need to learn
> again this things.
>
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in '[EMAIL PROTECTED]'.split('@')])"
--
http://mail.python.org/mailman/listinfo/python-list
Peter Maas wrote:
> Bruno Desthuilliers wrote:
>> Peter Maas wrote:
> [...]
>>> a reference implementation for web programming as part of the standard
>>> library,
>> wsgiref is part of the 2.5 stdlib.
>
> Yes, but it's not an implementation. Think
lumbing. You can of course build fun things from spare
> parts and
> plumbing, and there are really interesting things going on in certain
> research labs, as usual,
> but if you want turn-key stuff, pick one of the big three.)
>
>
>
>
>
--
bruno desthuillier
Fredrik Lundh wrote:
> Bruno Desthuilliers wrote:
>
>>>> Meanwhile, the Web programming standardisation scene remains
>>>> stagnant.
>>> Aw, come on. The Python web programming standardisation wars are over, for
>>> now.
>>> Ther
Terry Reedy wrote:
> "Bruno Desthuilliers" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> Terry Reedy wrote:
>>> "Bruno Desthuilliers" <[EMAIL PROTECTED]> wrote in message
>>> news:[EMAIL PROTECTED]
>>>>
Ahmer wrote:
=> Re: Best IDE?
Strange enough, this is kind of a *very* frequently asked question...
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in '[EMAIL PROTECTED]'.split('@')])"
--
http://mail.python.org/mailman/listinfo/python-list
all methods from super type.
> now i just need "some" methods from one type and "some" methods from
> other types, to build the new type.
> Do you think this way is more flexible than tranditional inheritance?
While dynamically adding attributes (and methods - which are att
gt; But it seems that import donot know what is i ?
The import statement expects a name (a symbol), not a string.
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in '[EMAIL PROTECTED]'.split('@')])"
--
http://mail.python.org/mailman/listinfo/python-list
nect(ing) a GUI to a database" IMHO and experience. Might be time to
google for MVC...
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in '[EMAIL PROTECTED]'.split('@')])"
--
http://mail.python.org/mailman/listinfo/python-list
rd : Ruby's code-blocks (closures, really) come from
Smalltalk, which is still the OneTrueObjectLanguage(tm).
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in '[EMAIL PROTECTED]'.split('@')])"
--
http://mail.python.org/mailman/listinfo/python-list
Fredrik Lundh wrote:
> Scott David Daniels wrote:
>
>> Nope. idempotent: f(f(x)) = f(x)
>> That is, after doing it once, repeating it won't hurt.
>
> http://en.wikipedia.org/wiki/Idempotence_%28computer_science%29
>
>
>
Thank you (Scott and F
neoedmund wrote:
> Bruno Desthuilliers wrote:
>> neoedmund wrote:
>> (*PLEASE* stop top-posting - corrected)
>>> Ben Finney wrote:
>>>> [Please don't top-post above the text to which you're replying.]
>>>>
>>>> "neoedmund&q
.
FWIW, I'm not sure you can deploy any web applications in Java without a
(distinct, long-running process) application server... In the very worst
case, Python has at least CGI support (now why would anyone go for an
ISP that doesn't provide a better Python support is another question
Kay Schluehr wrote:
> Bruno Desthuilliers wrote:
>
>> Just for the record : Ruby's code-blocks (closures, really) come from
>> Smalltalk, which is still the OneTrueObjectLanguage(tm).
>
> IsTheOneTrueObjectLanguage(tm)ReallyCame
Given Python's
support for both multiple inheritance and composition/delegation, it's
usually a trivial task (unless you already mixed up too many orthogonal
concerns in your base class...).
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in '[EMAIL PROTECTED]'.split('@')])"
--
http://mail.python.org/mailman/listinfo/python-list
g thru the result set
just to count the number of records in the table (don't laugh, I've
actually seens this (and even worse) in production code).
But given your concerns, I don't think you'd do such a thing anyway !-)
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in '[EMAIL PROTECTED]'.split('@')])"
--
http://mail.python.org/mailman/listinfo/python-list
uld probably be better indeed:
class MyInt(object):
def __init__(self, val):
self.val = int(val)
My 2 cents
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in '[EMAIL PROTECTED]'.split('@')])"
--
http://mail.python.org/mailman/listinfo/python-list
MyClass(42)
m
=> <__main__.MyClass object at 0x2ae5eaa00410>
m.val
=> 42
m = 42
m
=> 42
type(m)
=>
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in '[EMAIL PROTECTED]'.split('@')])"
--
http://mail.python.org/mailman/listinfo/python-list
se == 0 and True == 1.
NB : if you don't want to eval both terms before (which is how it should
be with a real ternanry operator), you can rewrite it like this:
result = (str, lambda obj:"")[x is None)(x)
But this begins to be unreadable enough to be replaced by a good old
if/else...
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in '[EMAIL PROTECTED]'.split('@')])"
--
http://mail.python.org/mailman/listinfo/python-list
l
def setval(self, val):
assert(isinstance(val, int))
self._val = val
_val = property(self.getval, self.setval)
And here's the result:
Traceback (most recent call last):
File "", line 1, in ?
File "/usr/tmp/python-30955cPK.py", line 1, in
[EMAIL PROTECTED] wrote:
> Hello:
> Variable 'a' has the next values:
> [[1,1],[2,2]]
> and I want to take a to b as:
> [[1,1,'='],[2,2,'=']]
> How can I do this with only one line of instruction?
b = [item + ['='] for item in a]
--
getting my brain. Is there
> anything else wrong with my code?
You mean something I didn't cover in my 2 previous posts ?
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in '[EMAIL PROTECTED]'.split('@')])"
--
http://mail.python.org/mailman/listinfo/python-list
tance(val, int))
>> self._val = val
>>
>> a = MyInt(10)
>>
>> # Here i need to overwrite the assignement operator
>> a = 12
>>
> Could the "traits" package be of help?
>
> http://code.enthought.com/traits/
>
How could it help ?
Setash a écrit :
> I've got a tiny bit of coding background, but its not the most
> extensive.
>
> That said, I'm trying to wrap my head around python and have a couple
> questions with classes and functions.
>
> Two notable questions:
>
> 1) Classes. How do you extend classes?
>
> I know its a
John Salerno a écrit :
> Hi guys. I was wondering if someone could suggest some possible
> structures for an "Education" table in a database.
Wrong newsgroup, then. comp.database.* is right next door...
--
http://mail.python.org/mailman/listinfo/python-list
or, Quote FROM PythonQuoteQuery WHERE ID=?",
quote_number
)
return c.fetchone()
def format_quote(self, quote):
# code here
return formatted_quote
def close(self):
try: self._cnx.close()
except: pass
def main(*args):
if len(args) < 2:
print >> sys
and displays it using textwrap.
> """
> c = Connection('DSN=Quotations')
> c.execute ("SELECT COUNT(Quote) FROM PythonQuoteQuery")
And this will raise an AttributeError, since your (mostly useless)
Connection class doesn't define an 'execu
his object behaving somehow like a C 'static' local
variable, ie it keeps it value from call to call.
The canonical idiom is to use None instead:
class PicInfo(object):
def __init__(self, intro="", tags="", comments=None):
self.picintro = intro
self.pictags
*not* supposed to issue (even if indirectly) a POST request.
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in '[EMAIL PROTECTED]'.split('@')])"
--
http://mail.python.org/mailman/listinfo/python-list
Fredrik Lundh wrote:
> Bruno Desthuilliers wrote:
>
>> First, notice that you *don't* need a class here to avoid globals.
>> Learning to use function as *functions* (ie: taking arguments and
>> returning values) instead of procedure would help:
>>
>>
lltalk (which is still the reference IMHO). And it's (it->OO)
more an evolution/systematisation of concepts that already existed
before...
FWIW, I don't know if there's any truly Python-specific concept in
Python (except perhaps for the descriptor protocol, which is a somewhat
advanced to
John Salerno a écrit :
> [EMAIL PROTECTED] wrote:
>
>> It's just sequence unpacking. Did you know that this works?:
>>
>> pair = ("California","San Francisco")
>> state, city = pair
>> print city
>> # 'San Francisco'
>> print state
>> # 'California'
>
>
> Yes, I understand that. What confused m
Sai Krishna M a écrit :
> Hi,
>
> I have been working for some time developing web pages using python,
> modpython, cheetah.
> I find that this method has come inherent difficulties in it like if
> we want to generate a single page we have to write two separate files
> ( py & tmpl).
> Is there any
[EMAIL PROTECTED] a écrit :
(snip)
> The trouble is that get_a and set_a are attributes of the _class
> object_ A. Instances of A (and hence, instances of B) will see them,
> but the class B will not,
Yes it does:
>>> class A(object):
... aa = "aa"
...
>>> class B(A):pass
...
>>> B.aa
'aa
Jerry a écrit :
> Thanks to everyone that resonded. I will have to spend some time
> reading the information that you've provided.
>
> To Fredrik, unfortunately yes. I saw the examples, but couldn't get my
> head wrapped around their purpose. Perhaps it's due to the fact that
> my only experien
Echo a écrit :
(snip)
> As for working with WSGI, I have found
> Colubrid(http://wsgiarea.pocoo.org/colubrid/) and
> Paste(http://pythonpaste.org/). I was wondering if anyone knew of any
> other libraries that make working with WSGI easier.
Pylons (www.pylonshq.com). It's a rail-like framework ba
imed
saw nothing about this one... but perhaps with
> and
> camparison conditions.
"""
condition bpnumber [condition]
Condition is an expression which must evaluate to true before the
breakpoint is honored. If condition is absent, any existing condition is
rem
r to do server-side-includes-like inclusion of
common parts. Google for Genshi, Jinja, SimpleTAL, Mighty, Cheetah...
> Any other tips to help life easier are appreciated.
Have you considered using one of the existing python web development
libraries/frameworks? Like Pylons, Turbogears, Django, Spy
[EMAIL PROTECTED] wrote:
> Why do you need to know the number of instances. I know that Python
> does not support Class Variable,
Plain wrong.
class Class(object):
classvar = ["w", "t", "f"]
print Class.classvar
c = Class()
c.classvar.append("???&quo
makerjoe wrote:
> hi, all
> i would like to know which is the best PSE
"best" according to what metrics ?
> i have to choose to use
> servlets with mod_python in my HRYDROGEN project
> (http://makerjoe.sytes.net/pycrud/query.psp)
--
bruno desthuilliers
python -c &qu
will i need to make a http call to the
> php application?
>
The fact that it's a PHP (or Java or Python or .NET or whatever)
application is totally orthogonal as long as you're using HTTP. And you
may want to have a look at the urllib and urllib2 modules in the
standard lib
counter += 1
seq = list("abcd")
for indice, item in enumerate(seq):
print "%02d : %s" % (indice, item)
> except:
> docout.write(line.replace('ABCDEF', '', 1))
> else:
> docout.write(line)
>
> doc.close()
> docout.close()
>
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in '[EMAIL PROTECTED]'.split('@')])"
--
http://mail.python.org/mailman/listinfo/python-list
Antoine De Groote wrote:
> Bruno Desthuilliers wrote:
>> Antoine De Groote wrote:
>>> Hi there,
>>>
>>> I have a word document containing pictures and text. This documents
>>> holds several 'ABCDEF' strings which serve as a placeholder for
f._my_attr
def _set_my_attr(self, val):
self._my_attr = val
self.runThisFunctionWhenMyAttrChanged()
my_attr = property(_get_my_attr, _set_my_attr)
HTH
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')])
nload one file, and not several
> libraries.
Then google for easy_install + "python-eggs".
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in '[EMAIL PROTECTED]'.split('@')])"
--
http://mail.python.org/mailman/listinfo/python-list
type(pr2)
class Virtual(object):
def create(self):
return self.__class__()
class VirtualChild(Virtual):
pass
vc1 = VirtualChild()
vc2 = vc1.create()
print "vc2 is a ", type(vc2)
My 2 cents...
--
bruno desthuilliers
python -c "print '@'.join([
Fulvio a écrit :
>
> On Monday 23 October 2006 19:10, Bruno Desthuilliers wrote:
>
>
>>condition bpnumber [condition]
>>
>>Condition is an expression which must evaluate to true before the
>>breakpoint is honored. If condition is absent, any existi
Rob Williscroft a écrit :
> Bruno Desthuilliers wrote in news:[EMAIL PROTECTED] in
> comp.lang.python:
>
>
>>>class cSphere() :
>>
>>OT : prefixing classes names with 'c' is totally unpythonic.
>
>
> My understanding of "pythonic"
David Isaac a écrit :
> Bruno wrote:
>
>>This is usually known as a 'factory method'. You do realise that both
>
> solutions are *not* strictky equilavent, do you?
>
> Your point I believe is that after inheritance the factory method
> in the subclass wil
flit a écrit :
> Hello All,
>
> I am trying to get information from a form and send it to a python
> script without success..
> Here is my objective:
>
> User enters data in form --> form send variables to python script -->
> script runs and output result.
If the script has side-effects (adding
ken a écrit :
> This file has 1,000,000+ lines in it, yet when I print the counter 'cin'
> at EOF I get around 10,000 less lines. Any ideas?
Not without seeing the file.
But I'm not sure I want to see it !-)
>lineIn =
> csv.reader(file("rits_feed\\rits_feed_US.csv",'rb'),delimiter='|')
>
mumebuhi a écrit :
> Hi,
>
> Is it possible to send a non-string object from a Python program to
> another? I particularly need to send a dictionary over to the other
> program. However, this is not possible using the socket object's send()
> function.
>
> Help?
>>> d = dict(one=1, two="three",
Mudcat a écrit :
> Hi,
>
> I can't figure out why ctypes won't load the DLL I need to use. I've
> tried everything I can find (and the ctypes website is down at the
> moment). Here's what I've seen so far.
>
> I've added the file arapi51.dll to the system32 directory. However
> when I tried to a
Steve Holden wrote:
> Bruno Desthuilliers wrote:
>> David Isaac a écrit :
> [...]
>>
>>> But Steve suggests going with the latter.
>>
>>
>> That's what I'd do too a priori.
>>
> Believe it or not, I wasn't at the priory whe
Tommi wrote:
> Bruno Desthuilliers wrote:
>
(about Traits)
>
>> How could it help ?
>
> To me they just looked a bit alike:
>
> --- op's example ---
> a = MyInt(10)
> # Here i need to overwrite the assignement operator
> a = 12
>
> --- traits
Bruno Desthuilliers wrote:
(snip)
>
(snip)
> Also, the "button" tag doesn't require a end tag.
oops ! Sorry, your syntax was ok - button elements actually requires the
end tag.
my bad :(
--
bruno desthuilliers
python -c "print '@'.join(['.'.
is also appreciated on that.
import sys
print sys.argv
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in '[EMAIL PROTECTED]'.split('@')])"
--
http://mail.python.org/mailman/listinfo/python-list
oing the same", you're doing something that *looks* the same.
While they look quite similar at first sight - and indeed share a lot of
characteristics (lightweight, highly dynamic, hi-level object languages)
-, Python and Ruby are very different beasts under the hood. So bewa
John Salerno a écrit :
> Paul Rubin wrote:
>
>> John Salerno <[EMAIL PROTECTED]> writes:
>>
>>> I just need some advice for how to structure
>>> the check of the empty string.
>>
>>
>> How about
>>
>> return db_name or None
>>
>> since the empty string taken as a boolean is False.
>
>
> But
[EMAIL PROTECTED] a écrit :
> Recently I've had some problems with PythonWin when I switched to
> Py2.5, tooka long hiatus, and came back. So now I'm without my god sent
> helper, and I'm looking for a cool replacement, or some advocation to
> reinstall/setup PyWin. But the Python website's list is
thonwin\pywin\framework\scriptutils.py",
> line 310, in RunScript
> exec codeObject in __main__.__dict__
> File "D:\A2_3.1.py", line 32, in ?
> main()
> File "D:\A2_3.1.py", line 30, in main
> print c
> File "D:\A2_3.1.py", line
Please take a few minutes to read this:
http://catb.org/esr/faqs/smart-questions.html
with particular attention to the following point:
http://catb.org/esr/faqs/smart-questions.html#beprecise
HTH
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w
DataSmash a écrit :
> Hello,
> I need to search and replace 4 words in a text file.
> Below is my attempt at it, but this code appends
> a copy of the text file within itself 4 times.
> Can someone help me out.
> Thanks!
>
> # Search & Replace
> file = open("text.txt", "r")
NB : avoid using 'file'
robert a écrit :
(snip)
> class MemoCache(dict): # cache expensive Objects during a session
> (memory only)
>def memo(self, k, f):
>try: return self[k]
>except IndexError:
>return self.setdefault(k, f())
> cache=MemoCache()
> ...
>
> o = cache.memo( complex-key-exp
robert wrote:
> Bruno Desthuilliers wrote:
>> robert a écrit :
>> (snip)
>>> class MemoCache(dict): # cache expensive Objects during a session
>>> (memory only)
>>>def memo(self, k, f):
>>>try: return self[k]
>>&
robert wrote:
> Bruno Desthuilliers wrote:
>> robert wrote:
>>> Bruno Desthuilliers wrote:
>>>> robert a écrit :
>>>> (snip)
>>>>> class MemoCache(dict): # cache expensive Objects during a session
>>>>> (mem
gt;
> def myfunc(a, b, *tup):
> ...
>
> and be done with it?
Yes.
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in '[EMAIL PROTECTED]'.split('@')])"
--
http://mail.python.org/mailman/listinfo/python-list
MindClass wrote:
> Is possible import a library according to a condition?
>
> if Foo = True:
> import bar
>
Did you even try ? Would have been faster than posting here...
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p
t;
print map(str.lstrip, mylist)
print "with list comprehension :"
print [line.lstrip() for line in mylist]
print "with a for loop :"
strippedlist = []
for line in mylist:
strippedlist.append(line.lstrip())
print strippedlist
> Is there a way this can be done??
Probably. Rea
fective-user directive in
> zope.conf)
And this has absolutely nothing to do with Python.
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in '[EMAIL PROTECTED]'.split('@')])"
--
http://mail.python.org/mailman/listinfo/python-list
#x27;, '__invert__', '__long__',
'__lshift__', '__mod__', '__mul__', '__neg__', '__new__', '__nonzero__',
'__oct__', '__or__', '__pos__', '__pow__', '__radd__', '_
Mudcat a écrit :
> That was it. Once I added the other DLLs then it was able to find and
> make the call.
>
> Thanks for all the help,
I just googled for "WindowsError: [Errno 126]" and followed the links,
you know...
--
http://mail.python.org/mailman/listinfo/python-list
Jeremy Sanders a écrit :
> Here is a brief simple introduction to Python I wrote for a computing course
> for graduate astronomers. It assumes some programming experience. Although
> it is not a complete guide, I believe this could be a useful document for
> other groups to learn Python, so I'm mak
Nick Vatamaniuc a écrit :
(snip)
> In Python all the primitives are copied and all other entities are
> references.
Plain wrong. There's no "primitives" (ie : primitive data types) in
Python, only objects. And they all get passed the same way.
--
http://mail.python.org/mailman/listinfo/python-l
SpreadTooThin a écrit :
> Bruno Desthuilliers wrote:
>
>>Nick Vatamaniuc a écrit :
>>(snip)
>>
>>>In Python all the primitives are copied and all other entities are
>>>references.
>>
>>Plain wrong. There's no "primitives" (i
Michael S a écrit :
> I used it for various projects. It's alright.
> The only problem I had, was that I was unable to get
> mod_python and pysqlite to work together.
Seems there's a strange bug with pysqlite when you have both
mod_python/pysqlite and php5...
--
http://mail.python.org/mailman/li
cast description of the interface?
As the name implies, W(eb) S(ervice) D(escription) L(anguage) is meant
to describe a given web service - and says nothing about implementation.
My 2 cents
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in '[EMAIL PROTECTED]'.split('@')])"
--
http://mail.python.org/mailman/listinfo/python-list
tom arnall a écrit :
> does anyone know of a utility to do a recursive dump of object data members?
>
What are "object data members" ? (hint: in Python, everything is an
object - even functions and methods).
What is your real use case ?
--
http://mail.python.org/mailman/listinfo/python-list
tom arnall wrote:
> Bruno Desthuilliers wrote:
>
>> tom arnall a écrit :
>>> does anyone know of a utility to do a recursive dump of object data
>>> members?
>>>
>> What are "object data members" ? (hint: in Python, everything is an
>>
John Salerno a écrit :
> Ok, back to my so-called "game." I'm just curious if I've implemented
> the subclasses properly, because it seems like an awful lot of
> repetition with the parameters. And again, if I want to add a new
> attribute later, I'd have to change a lot of things. I can't help
John Salerno a écrit :
> Peter Otten wrote:
>
>> You may need a no-op implementation of fix_attributes() in the Character
>> class.
>
>
> What does that mean? Is that in case I use Character directly to create
> an object?
Most propbably it can be useful for other character classes that don't
gt; assignment so: don't cheat and do your homework!
>
OTHO, looking for existing solutions to a same or similar problem and
studying them is usually considerer good practice in real-life
programming jobs !-)
--
bruno desthuilliers
python -c "print '@'.join(['.'.jo
plementation works the same.
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in '[EMAIL PROTECTED]'.split('@')])"
--
http://mail.python.org/mailman/listinfo/python-list
Jorge Vargas wrote:
> On 9 Nov 2006 16:44:40 -0800, gavino <[EMAIL PROTECTED]> wrote:
>> both are interpreted oo langauges..
>>
> that is not correct java is compiled and the VM interprets the code
So are CPython and IronPython.
--
bruno desthuilliers
python -c &quo
files, the interpreter takes care
> of this for you.
And ? The fact that the Python runtime is smart enough (lol) to silently
call the compiler when needed doesn't make Python (well, CPython...)
more or less "interpreted" or "compiled".
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in '[EMAIL PROTECTED]'.split('@')])"
--
http://mail.python.org/mailman/listinfo/python-list
John Machin wrote:
> Bruno Desthuilliers wrote:
>> Gabriel Genellina wrote:
>>> At Wednesday 8/11/2006 22:29, zeal elite wrote:
>>>
>>>> I am looking for substring search python program without using the
>>>> built in funtions like find, or '
e compiler so Python is interpreted". If that was not what you
meant, please consider this a typical case of "monday morning, not
enough coffein yet".
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
tors.html
* http://users.rcn.com/python/download/Descriptor.htm
My 2 cents...
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in '[EMAIL PROTECTED]'.split('@')])"
--
http://mail.python.org/mailman/listinfo/python-list
ly on the
particular RDBMS. So we're left with the application code itself - the
glue between all these componants. There's usually nothing really
"intensive" here, and I wouldn't bet using C++ instead of Python would
make a huge difference here - wrt/ perceived performances
Mary Jane Boholst a écrit :
> Hello everyone,
> I have a question that google couldnt answer for me and thought that the
> brains on here might be able to help.
> I am trying to upload a file to a database
What do you mean "upload a file to a database" ? I know how to uplaod a
file (from a web fo
walterbyrd a écrit :
> Bjoern Schliessmann wrote:
>
>>walterbyrd wrote:
>>
>>
>>>- PHP has a lower barrier to entry
>>
>>Which kind of barrier do you mean -- syntax, availability, ...?
>
>
> Putting php into a web-site is as easy as throwing some php code into a
> my html file, and maybe giving
walterbyrd a écrit :
> Larry Bates wrote:
>
>
>>I'd be surprised if there was more demand for PHP developers
>>than Python developers.
>
>
> Prepare to be surprised. From what I have seen demand for PHP
> developers is off-the-scale higher than demand for Python developers.
Anyone that knows h
Michael Torrie a écrit :
> On Tue, 2006-11-14 at 18:55 -0800, Luis M. González wrote:
>
>>>- Python is more readable, and more general purpose
>>
>>Yes, php is only for web.
>
>
> Absolutely false.
From a purely technical POV, you're of course right. But PHP has been
hacked (nobody in it's o
walterbyrd a écrit :
> Michael Torrie wrote:
>
>
>>Absolutely false. Most of my standalone, command-line scripts for
>>manipulating my unix users in LDAP are written in PHP, although we're
>>rewriting them in python.
>>
>
>
> I would say that you are one of very few who use PHP for sys-admin
>
walterbyrd a écrit :
> Luis M. González wrote:
>
>>the new crop of web frameworks (Django, Turbo Gears, etc...).
>>
>>
>>>- Newer versions of mod_python require Apache 2.0, which few hosters
>>>have
>>
>>You can also get alder versions of mod_python. What's the problem?
>
>
> The problem is that
601 - 700 of 4404 matches
Mail list logo