-- Forwarded message --
From:
[EMAIL PROTECTED] <
[EMAIL PROTECTED]>
Date: 17 Sep 2007 18:41
Subject: Your confirmation is required to join the Python-list mailing list
To: [EMAIL PROTECTED]
Mailing list subscription confirmation notice for mailing list
Python-list
We have receive
On 18 Sep., 03:30, "Evan Klitzke" <[EMAIL PROTECTED]> wrote:
> > My question is: how can we call a language "functional" if it's major
> > implementation has a limited stack? Or is my code wrong?
>
> Python does not optimize tail recursion.
Never mind. In the provided example the call to sieve()
On 9/18/07, Alex Martelli <[EMAIL PROTECTED]> wrote:
> Rustom Mody <[EMAIL PROTECTED]> wrote:
>
> > Can someone help? Heres the non-working code
> >
> > def si(l):
> > p = l.next()
> > yield p
> > (x for x in si(l) if x % p != 0)
> >
> > There should be an yield or return somewhere but
Sorry, I read your message too fast and responded to the wrong point
:-)
[EMAIL PROTECTED] (Alex Martelli) writes:
> Ben Finney <[EMAIL PROTECTED]> wrote:
> > Am I mistaken in thinking that "superclass of foo" is equivalent
> > to "parent class of foo"? If so, I'd lay heavy odds that I'm not
> >
Summercool <[EMAIL PROTECTED]> writes:
> I just want to confirm that in OOP, if a is an object, then b = a is
> only copying the reference.
Whether the language is OO or not has no bearing on this question. The
semantics of the assignment operator can and do differ between
languages, orthogonal t
Summercool wrote:
> so most or all object oriented language do assignment by reference?
> is there any object oriented language actually do assignment by
> value? I kind of remember in C++, if you do
>
> Animal a, b;
>
> a = b will actually be assignment by value.
> while in Java, Python, and Ru
[EMAIL PROTECTED] (Alex Martelli) writes:
> In general, "a superclass of foo" means "a class X such that foo is a
> sublass of X"
Sure. However, this doesn't equate to the assertion that "next class
in the MRO is the superclass", which is what I was responding to.
--
\ "Even if the voice
The meaning of a = b in object oriented languages.
I just want to confirm that in OOP, if a is an object, then b = a is
only copying the reference.
(to make it to the most basic form:
a is 4 bytes, let's say, at memory location 0x1000
Evan Klitzke <[EMAIL PROTECTED]> writes:
> If you're using multiple inheritance, and you're _not_ using super
> everywhere, then your code is broken anyway.
This seems to support the notion that 'super' is unusable. If I
inherit from code that isn't under my control, and then use super(),
my code
Ben Finney <[EMAIL PROTECTED]> wrote:
> Am I mistaken in thinking that "superclass of foo" is equivalent to
> "parent class of foo"? If so, I'd lay heavy odds that I'm not alone in
> that thinking.
"That thinking" (confusing "parent" with "ancestor") makes sense only
(if at all) in a single-inher
Evan Klitzke <[EMAIL PROTECTED]> writes:
> On Tue, 2007-09-18 at 14:15 +1000, Ben Finney wrote:
> > Why does the documentation of 'super' say that it returns the
> > superclass when *that's not true*? It doesn't return the
> > superclass, it returns the next class in the MRO, whether that's a
> >
Rustom Mody <[EMAIL PROTECTED]> wrote:
> Can someone help? Heres the non-working code
>
> def si(l):
> p = l.next()
> yield p
> (x for x in si(l) if x % p != 0)
>
> There should be an yield or return somewhere but cant figure it out
Change last line to
for x in (x for x in si(l
The following defines the infinite list of primes as a generator [chap
6.5 of the library]
def sieve(l):
p = l.next()
yield p
for x in sieve(l):
if x % p != 0:
yield x
After that
from itertools import *
>>> [p for i,p in izip(range(10), sieve(count(2)))]
[2, 3, 5,
On Tue, 2007-09-18 at 14:15 +1000, Ben Finney wrote:
> Howdy all,
>
> After banging my head against super() trying to reliably get
> attributes of a superclass, I gained a little enlightenment when this
> turned up in a search:
>
> "Python's Super is nifty, but you can't use it
> (Previou
Howdy all,
After banging my head against super() trying to reliably get
attributes of a superclass, I gained a little enlightenment when this
turned up in a search:
"Python's Super is nifty, but you can't use it
(Previously: Python's Super Considered Harmful)"
http://fuhm.org/super-ha
Thanks to both kyosohma and 7stud for the suggestions. I'll try
variations on the code suggested by 7stud, and follow up to the
wx-python list as kyosohma suggested if I need more help.
--
http://mail.python.org/mailman/listinfo/python-list
Bryan Olson wrote:
> Amer Neely wrote:
>> I don't have shell access but I can run 'which python' from a Perl
>> script, and I will try the different shebang line you suggested.
>
> And after trying it, Amer Neely reported:
>
>> I tried `which python` and `whereis python` and got 0 back as a
>>
This works ...
Cf=ConfigParser.ConfigParser()
Cf.optionxform=str
...
Blinston.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joshua J. Kugler
Sent: Tuesday, September 18, 2007 3:44 AM
To: python-list@python.org
Subject: Re: why does Configparser change
[Colin, you posted your message to both of 'comp.lang.python' and
'gmane.comp.python.general'. The latter is merely a view on the
former, and your message appears in exactly the same places if you
post only to 'comp.lang.python'.]
"Colin J. Williams" <[EMAIL PROTECTED]> writes:
> > Carl Banks wro
>
> Does the user care whether an object is implemented in C?
>
> Colin W.
>
> You're damn right I care! This is critical to just about everything I
write because...well..I meanwell. I guess it isn't really all that
important. Never mind.
--greg
--
http://mail.python.org/mailman/listinfo/p
En Mon, 17 Sep 2007 21:01:38 -0300, Chris Carlen
<[EMAIL PROTECTED]> escribi�:
> I'm writing a Python program, a hex line editor, which takes in a line
> of input from the user such as:
>
> >>> cmd = raw_input('-').split()
> -e 01 02 "abc def" 03 04
> >>> cmd
> ['e', '01', '02', '"abc', 'def"'
Steve Holden wrote:
> [EMAIL PROTECTED] wrote:
>> Makes you wonder what other edge cases aren't
>> handled properly.
>>
>> Makes you wonder why Microsoft doesn't employ
>> professional programmers.
>>
> Makes *me* wonder why you haven't got better things to do with your time.
Contributing
Are any of the following pieces of web software available in Python (under a
non-copyleft license like BSD or MIT or Python license)?
Mailing list - with web accessable archive and list maintenance.
Source control
Wiki System
Again, only non-copyleft licenses like MIT, BSD, or public domain.
Steve Holden wrote:
> [EMAIL PROTECTED] wrote:
>> Makes you wonder what other edge cases aren't
>> handled properly.
>>
>> Makes you wonder why Microsoft doesn't employ
>> professional programmers.
>>
> Makes *me* wonder why you haven't got better things to do with your time.
Contributing to this
On 9/17/07, Lorenzo Stella <[EMAIL PROTECTED]> wrote:
> Hi all,
> I haven't experienced functional programming very much, but now I'm
> trying to learn Haskell and I've learned that: 1) in functional
> programming LISTS are fundmental; 2) any "cycle" in FP become
> recursion.
> I also know that Pyt
In article <[EMAIL PROTECTED]>,
duikboot <[EMAIL PROTECTED]> wrote:
>
>I am trying to extract a list of strings from a text. I am looking it
>for hours now, googling didn't help either.
To emphasize the other answers you got about avoiding regexps, here's a
nice quote from my .sig database:
'Som
In article <[EMAIL PROTECTED]>,
Bruno Desthuilliers <[EMAIL PROTECTED]> wrote:
>
>But what, given that I'm an AOL user still thinking it's kewl to hide
>behind a pseudo, what else would you expect ?
What exactly is a "pseudo", pray tell?
--
Aahz ([EMAIL PROTECTED]) <*> http://
Steve Holden wrote:
> Carl Banks wrote:
>> On Fri, 07 Sep 2007 01:30:00 -0500, Sergio Correia wrote:
>>> Hi, I'm kinda new to Python (that means, I'm a total noob here), but
>>> have one doubt which is more about consistency that anything else.
>>>
>>> Why if PEP 8 says that "Almost without excepti
We're sorry to see that you're leaving TECHWR-L. If there is anything
you believe TECHWR-L should have offered but didn't, or if there are
any other suggestions you may have for the list, please feel free to
write directly to us.
TECHWR-L Administrators [EMAIL PROTECTED]
--
http://mail.python.org
On Sep 18, 4:59 am, lilly <[EMAIL PROTECTED]> wrote:
> On Sep 17, 2:33 pm, [EMAIL PROTECTED] wrote:
>
> >http://world-traveling-destinations.SPAMpot.com/
>
> this is ..
..widely cross-posted *spam*.
[ F'Ups set to c.l.j.p. only. ]
--
http://mail.python.org/mailman/listinfo/python-list
J. Cliff Dyer wrote:
> Mridula Ramesh wrote:
>> Dear all,
>>
>> Hi. I am not very tech-savvy so please pardon me if this is a stupid
>> question: so far I have been googling for about 4 days to find help
>> for this, so now I am desperate! :)
>>
>> How do you use adodb with mysql to connect to a fi
Lorenzo Di Gregorio wrote:
> On 17 Sep., 16:54, Larry Bates <[EMAIL PROTECTED]> wrote:
>> IMHO variables like what you describe are really data not program variables.
>> You might consider putting variables like these in a dictionary and then
>> check
>> to see if the keys exist before assignment:
Jason wrote:
> On Sep 17, 9:31 am, [EMAIL PROTECTED] wrote:
>> I am new to python as I have been a VB programmer. I am used to the
>> GUI interface, and was wondering if I had to choose between a GUI for
>> Python, which one should I go with? Thanks.
>>
>> Kou
>
> You need to be more specific.
[EMAIL PROTECTED] wrote:
> I want to have a class in my python application that does not allow
> multiple instance with same "name".
Thank you very much for very quick and precise answers to my questions!
input for garbage collector and id are appreciated as well. I head to
bookstore for the c
Hi:
I'm writing a Python program, a hex line editor, which takes in a line
of input from the user such as:
>>> cmd = raw_input('-').split()
-e 01 02 "abc def" 03 04
>>> cmd
['e', '01', '02', '"abc', 'def"', '03', '04']
Trouble is, I don't want to split the quoted part where the space occurs.
Hi all,
I haven't experienced functional programming very much, but now I'm
trying to learn Haskell and I've learned that: 1) in functional
programming LISTS are fundmental; 2) any "cycle" in FP become
recursion.
I also know that Python got some useful tool such as map, filter,
reduce... so I told:
Mailing list subscription confirmation notice for mailing list
TECHWR-L
We have received a request from python-list@python.org for
subscription of your email address, "python-list@python.org", to the
[EMAIL PROTECTED] mailing list. To confirm that you want to
be added to this mailing list, simply
On Tue, 18 Sep 2007 00:26, Grant Edwards wrote in comp.lang.python
<<[EMAIL PROTECTED]>>:
> On 2007-09-17, Laurent Pointal <[EMAIL PROTECTED]> wrote:
>
>> Note3: Its funny to see how Python users tries to change the
language,
>> does this occure with C, C++, Java, C# ?
>
> Yes. I remember some
Ok, I could have researched this before posting, but here's an
explanation how to do it with twisted:
http://unpythonic.blogspot.com/2007/08/spawning-subprocess-with-pygtk-using.html
It seems that another solution is gobject.io_add_watch, but I don't
see how it tells me how much I can read from t
On 17 sep, 19:22, John Machin <[EMAIL PROTECTED]> wrote:
> On Sep 18, 7:59 am, "Gabriel Genellina" <[EMAIL PROTECTED]>
> wrote:
>
> > It doesn't matter how many spaces you put in between, capwords will
> > collapse all of them into a single space.
>
> This is true. However AFAICT the OP doesn't hav
Hi,
I guess my description was a bit rubbish in retrospec, I dont even
think the title of my email made senseit doesnt to me now:
class Manager(object):
def __init__(self):
pass
def dosomething(self):
return "RESULTS"
class Foo(object):
def __init__(self):
self.a = "NEE"
W
Mridula Ramesh wrote:
> Dear all,
>
> Hi. I am not very tech-savvy so please pardon me if this is a stupid
> question: so far I have been googling for about 4 days to find help
> for this, so now I am desperate! :)
>
> How do you use adodb with mysql to connect to a file that is on your
> machine?
Heikki Toivonen wrote:
> M2Crypto is the most complete Python wrapper for OpenSSL featuring RSA,
> DSA, DH, HMACs, message digests, symmetric ciphers (including AES); SSL
> functionality to implement clients and servers; HTTPS extensions to
> Python's httplib, urllib, and xmlrpclib; unforgeable HMA
Hello,
I want to write a terminal program in pygtk. It will run a subprocess,
display everything it writes in its standard output and standard
error, and let the user write text into its standard input.
The question is, how can I know if the process wrote something to its
output, and how much it
On 17 Sep., 16:54, Larry Bates <[EMAIL PROTECTED]> wrote:
>
> IMHO variables like what you describe are really data not program variables.
> You might consider putting variables like these in a dictionary and then check
> to see if the keys exist before assignment:
>
> var_dict={}
>
> #
> # See if
On 17 sep, 19:10, <[EMAIL PROTECTED]> wrote:
> I'd like some advices from more experienced python users. I want to
> have a class in my python application that does not allow multiple
> instance with same "name".
>
> I want to have a class (call it kls) that behave at least following way:
>
> 1
<[EMAIL PROTECTED]> writes:
> 1) New instance has to have a property called 'name'
> 2) When instance is attemped to created, e.g., x=kls(name='myname'), and
> there already exists an instance with obj.name =='myname', that
> pre-existing instance is returned, instead of making new one.
> 3) A c
On Sep 18, 7:59 am, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Mon, 17 Sep 2007 18:15:29 -0300, Shawn Minisall <[EMAIL PROTECTED]>
> escribi?:
>
> > I'm trying to get a space in between these two strings but it's ignoring
> > the space in between when it prints.
>
> > >>> string.capwords
On Sep 18, 7:15 am, Shawn Minisall <[EMAIL PROTECTED]> wrote:
> I'm trying to get a space in between these two strings but it's ignoring
> the space in between when it prints.
>
> >>> string.capwords (string.join([s1 + " " + s2])) * 3
> 'Spam Ni!Spam Ni!Spam Ni!'
> >>>
-1. "qa" as a subject hea
Hello all,
I'd like some advices from more experienced python users. I want to
have a class in my python application that does not allow multiple
instance with same "name".
I want to have a class (call it kls) that behave at least following way:
1) New instance has to have a property called '
On Friday 14 September 2007 12:21, stef mientki wrote:
> Why does Configparser change names to lowercase ?
>
> As Python is case sensitive (which btw I don't like at all ;-)
> but now when really need the casesensitivity,
> because it handles about names which should be recognized by human,
> it
Nathan Harmston a écrit :
> HI,
>
> I m trying to start an api in a similar way to the djangic way of
> Class.objects.all(). Ie objects is a "Manager" class.
>
> So:
>
> class Foo(object):
>def __init__(self):
> self.test = "NEE"
>
> class Manager(object):
> def __init__(self):
En Mon, 17 Sep 2007 18:15:29 -0300, Shawn Minisall <[EMAIL PROTECTED]>
escribi�:
> I'm trying to get a space in between these two strings but it's ignoring
> the space in between when it prints.
>
> >>> string.capwords (string.join([s1 + " " + s2])) * 3
> 'Spam Ni!Spam Ni!Spam Ni!'
> >>>
It d
En Mon, 17 Sep 2007 17:31:19 -0300, <[EMAIL PROTECTED]> escribi�:
> I am attempting to extract some XML from an HTML document that I get
> returned from a form based web page. For some reason, I cannot figure
> out how to do this. I thought I could use the minidom module to do it,
> but all I get
Ivan Voras wrote:
> Hi,
>
> I'm looking for a construct that's similar to (Turbo) Pascal's "with"
> statement. I read about the Python's new "with" statement, but I was
> dissapointed to learn that it does something different (I still don't
> see how it's better than try..except..finally, but that
On Sep 17, 4:01 pm, Paul Boddie <[EMAIL PROTECTED]> wrote:
> On 17 Sep, 22:31, [EMAIL PROTECTED] wrote:
>
>
>
> > What's the best way to get at the XML? Do I need to somehow parse it
> > using the HTMLParser and then parse that with minidom or what?
>
> Probably easiest is to use an XML processing
On Sep 17, 6:11 pm, Stefano Esposito <[EMAIL PROTECTED]>
wrote:
> On Mon, 17 Sep 2007 17:49:58 +0100
>
>
>
> Paul Rudin <[EMAIL PROTECTED]> wrote:
> > Stefano Esposito <[EMAIL PROTECTED]> writes:
>
> > > Hi all
>
> > > what i'm trying to do is this:
>
> > def foo ():
> > > ... return None
> >
Hi,
I have a list which I need to write to excel worksheet. The list is like:
data =
['IP1','21','ftp','\n','IP1','22','ssh','\n','IP2','22','ssh','\n','IP2','23','telnet','\n']
Now the task is to create a workbook with tabbed sheet for each of the
service's in the list i.e. tabs for ftp, ssh, t
I'm trying to create a custom Tkinter widget class, and I'm having some
difficulty getting it set up properly.
The class is called MacToolbar, saved in its own module MacToolbar.py,
and imported with this statement:
import MacToolbar
Here is the relevant portion of the class:
###relev
En Mon, 17 Sep 2007 17:11:03 -0300, Kevin Walzer <[EMAIL PROTECTED]>
escribi�:
> I'm trying to create a custom Tkinter widget class, and I'm having some
> difficulty getting it set up properly.
>
> The class is called MacToolbar, saved in its own module MacToolbar.py,
> and imported with this st
I'm trying to get a space in between these two strings but it's ignoring
the space in between when it prints.
>>> string.capwords (string.join([s1 + " " + s2])) * 3
'Spam Ni!Spam Ni!Spam Ni!'
>>>
--
http://mail.python.org/mailman/listinfo/python-list
On 17 set, 17:08, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote:
> En Mon, 17 Sep 2007 15:28:27 -0300, Arnaud Delobelle
> <[EMAIL PROTECTED]> escribi?:
>
> > On Sep 17, 7:14 pm, Bjoern Schliessmann > [EMAIL PROTECTED]> wrote:
> >> Andre P.S Duarte wrote:
> >> > I´m trying to desenvolve a site in p
On 17 Sep, 22:31, [EMAIL PROTECTED] wrote:
>
> What's the best way to get at the XML? Do I need to somehow parse it
> using the HTMLParser and then parse that with minidom or what?
Probably easiest is to use an XML processing toolkit or library which
supports HTML parsing. Since the libxml2 librar
TheFlyingDutchman a écrit :
> On Sep 17, 4:02 am, Steve Holden <[EMAIL PROTECTED]> wrote:
(snip)
> I made a complaint about a small design choice.
It's by no mean a "small" design choice.
> I also made it in the
> past tense at least once ("should have done it") and explicitly
> expressed that I
Hi,
I am attempting to extract some XML from an HTML document that I get
returned from a form based web page. For some reason, I cannot figure
out how to do this. I thought I could use the minidom module to do it,
but all I get is a screwy traceback:
Traceback (most recent call last):
File "\\m
On Sep 17, 3:11 pm, "Shawn Milochik" <[EMAIL PROTECTED]> wrote:
> On 9/17/07, dorje tarap <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi all,
>
> > Given some patterns such as "...t...s." I need to make all possible
> > combinations given a separate list for each position. The length of the
> > pattern i
Aahz wrote:
> What I suggest doing is submitting a doc patch to
> http://bugs.python.org/
Done. Thanks for the suggestion.
Bob
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 16, 3:11 pm, Sidd <[EMAIL PROTECTED]> wrote:
> On Sep 16, 8:01 am, dohertywa <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi:
>
> > I'm working with probstat module which does an excellent job for the
> > project I'm working on.
>
> > I am passing the Combination objects I generate to generator func
On Sep 17, 6:39 am, Laurent Pointal
> May use simple file in known place:
> $HOME/.myprefs
> $HOME/.conf/myprefs
>
> Or host specific configuration API:
> WindowsRegistry HKEY_CURRENT_USER\Software\MySociety\MyApp\myprefs
>
> See os.getenv, and _winreg Windows specific module.
> See also standard C
En Mon, 17 Sep 2007 15:28:27 -0300, Arnaud Delobelle
<[EMAIL PROTECTED]> escribi�:
> On Sep 17, 7:14 pm, Bjoern Schliessmann [EMAIL PROTECTED]> wrote:
>> Andre P.S Duarte wrote:
>> > I´m trying to desenvolve a site in python.
>>
>> What does "desenvolve" mean? By "site", do you mean a web site?
En Mon, 17 Sep 2007 07:38:16 -0300, geoff_ness <[EMAIL PROTECTED]>
escribi�:
> def buildString(warrior):
> """Build a string from a warrior's stats
>
> Returns string for output to warStat."""
> return "!tr!!td!!id!"+str(warrior.ID)+"!/id!!/td!"+\
> "!td!"+str(war
Great! I've found this link
http://bonsai.ims.u-tokyo.ac.jp/~mdehoon/software/python/cygwin.html
it has libpython23.def and libpython23.a all set and ready to go.
Thanks anyway! Hope I could help someone.
--
http://mail.python.org/mailman/listinfo/python-list
En Mon, 17 Sep 2007 09:02:38 -0300, BlueBird <[EMAIL PROTECTED]>
escribi�:
> Oooops. It was a stupid bug in my script: textLine[:-
> int(textLine[-1]=='\n')] is not what I want (the real code was not a
> one-liner)! The documentation made me think that something wrong was
> going on with pyt
On 9/17/07, dorje tarap <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> Given some patterns such as "...t...s." I need to make all possible
> combinations given a separate list for each position. The length of the
> pattern is fixed to 9, so thankfully that reduces a bit of the complexity.
>
> For examp
En Mon, 17 Sep 2007 08:17:22 -0300, Nirmal <[EMAIL PROTECTED]>
escribi�:
> Hi,
>
> When I try running java through os.spawnv with P_NOWAIT, it returns the
> process id
>
os.spawnv(os.P_NOWAIT, '$JAVA_HOME/bin', ('java', '$JAVA_HOME/bin/java
> ex3178 true'))
> 19524
>
> then I removed the c
Hi all,
Given some patterns such as "...t...s." I need to make all possible
combinations given a separate list for each position. The length of the
pattern is fixed to 9, so thankfully that reduces a bit of the complexity.
For example I have the following:
pos1 = ['a',' t']
pos2 = ['r', 's']
pos
On Sep 17, 2:33 pm, [EMAIL PROTECTED] wrote:
> http://world-traveling-destinations.blogspot.com/
this is good
--
http://mail.python.org/mailman/listinfo/python-list
Paul Rudin wrote:
> Steven D'Aprano <[EMAIL PROTECTED]> writes:
>
>> On Sun, 16 Sep 2007 19:25:22 +0100, Paul Rudin wrote:
>>
The generator expression takes about twice as long to run, and in my
opinion it is no more readable. So what's the advantage?
>>> If you do it with a decent size
On 9/17/07, Steve Holden <[EMAIL PROTECTED]> wrote:
> "Cretin" (in the sense of possessing sub-normal intelligence, as I do
> not know whether or not you have a thyroid deficiency) because you do
> not seem to be able to think of the needs of the larger community, and
> respond to argument with non
http://world-traveling-destinations.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 17, 4:02 am, Steve Holden <[EMAIL PROTECTED]> wrote:
> TheFlyingDutchman wrote:
> >> The other half of the confusion is cleared up by considering that
> >> Python methods are ordinary functions that don't magically "know" in
> >> which "class" context they are executing: they must be told vi
On Sep 17, 7:14 pm, Bjoern Schliessmann wrote:
> Andre P.S Duarte wrote:
> > I´m trying to desenvolve a site in python.
>
> What does "desenvolve" mean? By "site", do you mean a web site?
>
"desenvolver" is a spanish verb meaning "to develop".
--
Arnaud
--
http://mail.python.org/mailman/listi
[EMAIL PROTECTED] wrote:
> On Sep 17, 6:09 am, Steve Holden <[EMAIL PROTECTED]> wrote:
>> [EMAIL PROTECTED] wrote:
>>> On Sep 16, 9:27?pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
>>> wrote:
En Sun, 16 Sep 2007 21:58:09 -0300, [EMAIL PROTECTED]
>> [...]
What about the rest of the world t
Andre P.S Duarte wrote:
> I´m trying to desenvolve a site in python.
What does "desenvolve" mean? By "site", do you mean a web site?
Regards,
Björn
--
BOFH excuse #247:
Due to Federal Budget problems we have been forced to cut back on
the number of users able to access the system at one tim
Hi,
I'm pleased to announce release 0.2.0 of Python FTP Server library
(pyftpdlib).
http://code.google.com/p/pyftpdlib/
=== About ===
Python FTP server library provides an high-level portable interface to
easily write asynchronous FTP servers with Python.
Based on asyncore framework pyftpdlib is
On Sep 17, 4:57 pm, Paul Rudin <[EMAIL PROTECTED]> wrote:
[...]
> Although it's not clear to me why the join method needs a sequence
> rather than just an iterator.
Pure guess (I haven't looked at the code): the join method needs to
know the length of the string it builds in order to allocate the
On Sep 17, 6:09 am, Steve Holden <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > On Sep 16, 9:27?pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
> > wrote:
> >> En Sun, 16 Sep 2007 21:58:09 -0300, [EMAIL PROTECTED]
> [...]
> >> What about the rest of the world that don't speak
> >> English
I´m trying to desenvolve a site in python. Any recommendation on
literature or sites I shoul see. Being that I´m a low experienced
programmer, if even I could be cald one lol, but any information would
really help!
--
http://mail.python.org/mailman/listinfo/python-list
have a look at wxpython and py2exe.
On 9/17/07, Tom Harding <[EMAIL PROTECTED]> wrote:
>
> Hi guys, sorry to post another topic on this, as I am aware that it has
> already been posted a few times, but not with specifically what I am looking
> for. I want an app that makes a gui interface for pyt
Hi guys, sorry to post another topic on this, as I am aware that it has
already been posted a few times, but not with specifically what I am looking
for. I want an app that makes a gui interface for python (similar to
Microsoft visual studio or qt designer, not a code based one) and/or an app
that
On Mon, 17 Sep 2007 17:49:58 +0100
Paul Rudin <[EMAIL PROTECTED]> wrote:
> Stefano Esposito <[EMAIL PROTECTED]> writes:
>
> > Hi all
> >
> > what i'm trying to do is this:
> >
> def foo ():
> > ... return None
> > ...
> def bar ():
> > ... print "called bar"
> > ...
> def assigner ():
On 9/17/07, Stefano Esposito <[EMAIL PROTECTED]> wrote:
> Hi all
>
> what i'm trying to do is this:
>
> >>>def foo ():
> ... return None
> ...
> >>>def bar ():
> ... print "called bar"
> ...
> >>>def assigner ():
> ... foo = bar
> ...
You need to tell "assigner()" that foo doesn't belo
Hi all
what i'm trying to do is this:
>>>def foo ():
... return None
...
>>>def bar ():
... print "called bar"
...
>>>def assigner ():
... foo = bar
...
>>>assigner()
>>>foo()
called bar
>>>
This piece of code is not working and even trying with
>>>def assigner (a, b):
... a = b
Stefano Esposito <[EMAIL PROTECTED]> writes:
> Hi all
>
> what i'm trying to do is this:
>
def foo ():
> ... return None
> ...
def bar ():
> ... print "called bar"
> ...
def assigner ():
> ... foo = bar
> ...
assigner()
foo()
> called bar
>
> This piece of code is no
On Sep 17, 8:46 am, John Machin <[EMAIL PROTECTED]> wrote:
> On Sep 17, 10:16 pm, "timw.google" <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > On Sep 15, 8:36 am, Summercool <[EMAIL PROTECTED]> wrote:
>
> > > i think in Ruby, if you have an array (or list) of integers
>
> > > foo = [1, 2, 3]
>
> > > you
Steven D'Aprano <[EMAIL PROTECTED]> writes:
> On Sun, 16 Sep 2007 19:25:22 +0100, Paul Rudin wrote:
>
>>> The generator expression takes about twice as long to run, and in my
>>> opinion it is no more readable. So what's the advantage?
>>
>> If you do it with a decent size list they take more or
You're probably right!
Thanks all. :)
On Sep 17, 10:15 am, Bruno Desthuilliers wrote:
> Stodge a écrit :
>
>
>
> > I'm trying to do the following. I have a Python application that is
> > run:
>
> > python app1.py --location=c:\test1
>
> > What I want to do is save the location parameter, so I ca
On Sep 17, 9:31 am, [EMAIL PROTECTED] wrote:
> I am new to python as I have been a VB programmer. I am used to the
> GUI interface, and was wondering if I had to choose between a GUI for
> Python, which one should I go with? Thanks.
>
> Kou
You need to be more specific. Do you mean that you are
7stud wrote:
> However, now I am having a problem trying to set the color of the text
> that is output:
import curses
def example(screen):
if curses.has_colors():
curses.init_pair(1, curses.COLOR_GREEN, curses.COLOR_BLACK)
curses.init_pair(2, curses.COLOR_YELLOW, curses.COL
On Sep 17, 9:50 am, 7stud <[EMAIL PROTECTED]> wrote:
> Ok. This works:
>
> import curses
> import curses.wrapper
Oops. That second import statement isn't necessary.
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 173 matches
Mail list logo