Pardon if this is already discussed extensively. But what is the best
IDE for Python for a newbie? I have experience in C++ and Java and this
is the first time I am learning a scripting language.
Thanks in advance
--
http://mail.python.org/mailman/listinfo/python-list
Eric S. Johansson wrote:
> So if you want to make a serious difference in people's lives from your
> keyboard, you can help out in two ways. ... Second is working with probably
> myself and a couple of other folks in gnome at-spi land building a
> bridge between speech recognition on Windows and
D wrote:
> Is it possible to have Python authenticate with Active Directory?
> Specifically what I'd like to do is have a user enter a
> username/password, then have Python check the credentials with AD - if
> what they entered is valid, for example, it returns a 1, otherwise a
> 0.. Thanks!
Inst
Benji York wrote:
> D wrote:
>> Is it possible to have Python authenticate with Active Directory?
>> Specifically what I'd like to do is have a user enter a
>> username/password, then have Python check the credentials with AD - if
>> what they entered is valid, for example, it returns a 1, otherwi
I have a Python IDE review I did a few months back you may want to view:http://www.straw-dogs.co.uk/blog/python-ide-reviewHope that helps.
DougOn 5 May 2006 08:28:00 -0700, Saurabh Sardeshpande <[EMAIL PROTECTED]> wrote:
Pardon if this is already discussed extensively. But what is the bestIDE for P
Have you checked: http://wiki.python.org/moin/IntegratedDevelopmentEnvironments
I like pydev (for Eclipse), but as I also develop it I might be a
little biased, so, I'd reccomend checking it and taking your own
conclusions.
-- FabioOn 5 May 2006 08:28:00 -0700, Saurabh Sardeshpande <[EMAIL PROTEC
Hi...
Never used python, but I have a question regarding Drop Down Menus. Does
Python allow me to create a website, that will permit the user to create
Drop Down menus that can be initiated with the right mouse click? If it can,
is it fairly easy to implement?
Thanks
-Bruce
--
http://mail.pyth
> You've been told that quite a few times before that "is" is not intended for
> what you used it.
I got that. I was cleaning up some code that used "is" incorrectly
immediately after.
> Some people actually listen to what others tell. Others seem to be driven by
> the deep desire to make even th
cool!
thanks you all!
I choose
a=set(range(10))
b=set(range(5))
a.symmetric_difference(b)
certainly,the real data not range(), I am satisfied the performance of
set.difference
thank you all again!
--
http://mail.python.org/mailman/listinfo/python-list
>> Pardon if . . . already discussed
Here is a link searching comp.lang.python for "best ide"
http://tinyurl.com/qqtaf
--
http://mail.python.org/mailman/listinfo/python-list
Philippe Martin wrote:
> bruno at modulix wrote:
>
>
>>Philippe Martin wrote:
>>(snip)
>>
>>>l_init really is a boolean parameter and l_value a value that _might_
>>>exist in a shelve.
>>>
>>>So I just want to have a parameter to a method so if the first value
>>>tested is false (l_init) then the
>> Pardon if . . . already discussed
Here is a link searching comp.lang.python for "best ide"
http://tinyurl.com/qqtaf
rick
--
http://mail.python.org/mailman/listinfo/python-list
Hello Bruce -
bruce wrote:
> Hi...
>
> Never used python, but I have a question regarding Drop Down Menus. Does
> Python allow me to create a website, that will permit the user to create
> Drop Down menus that can be initiated with the right mouse click? If it can,
> is it fairly easy to implemen
bruce wrote:
> Hi...
>
> Never used python, but I have a question regarding Drop Down Menus. Does
> Python allow me to create a website,
Yes.
> that will permit the user to create
> Drop Down menus that can be initiated with the right mouse click?
Not sure to understand what you mean, but this
bruno at modulix wrote:
> Philippe Martin wrote:
>> bruno at modulix wrote:
>>
>>
>>>Philippe Martin wrote:
>>>(snip)
>>>
l_init really is a boolean parameter and l_value a value that _might_
exist in a shelve.
So I just want to have a parameter to a method so if the first value
Fredrik Lundh wrote:
> Philippe Martin wrote:
>
>> l_init really is a boolean parameter and l_value a value that _might_
>> exist in a shelve.
>>
>> So I just want to have a parameter to a method so if the first value
>> tested is false (l_init) then the second (l_value) does not get tested
>> ..
I suspect that if an app were to be created that really allowed for "Drop
Down" menus that can be initiated via the "right" mouse key, the web app
would have to be a java app
I've seen some web based java apps with this functionality, but never any
php/perl.. I didn't think python would be abl
Ju Hui wrote:
> cool!
> thanks you all!
> I choose
> a=set(range(10))
> b=set(range(5))
> a.symmetric_difference(b)
> certainly,the real data not range(), I am satisfied the performance of
> set.difference
>
> thank you all again!
Be warned that this may /add/ items to a:
>>> set("abc")
Hello,
how can I use/save/read values with ";" (start comment) and the value
blank?
When I write (set) my config file often the part behind the ";"
disappears.
e.g.
myKey = startMyValue ; endMyValue
Thank's for your hints, Kai
--
http://mail.python.org/mailman/listinfo/python-list
Hi everyone,
Has anyone developed a pymqi module based file transfer method for use
with WebSphere MQSeries v5.3?
If so, would it be possible to point me towards examples of how this was
done?
Any help that can be provided would be greatly appreciated.
Thanks
--
http://mail.python.org/mailma
Hello,
I use the ConfigPaserver from Python.
how can I use/save/read values with ";" (start comment) and the value
blank?
When I write (set) my config file often the part behind the ";"
disappears.
e.g.
myKey = startMyValue ; endMyValue
Thank's for your hints, Kai
--
http://mail.pytho
bruce wrote:
> Hi...
>
> Never used python, but I have a question regarding Drop Down Menus. Does
> Python allow me to create a website, that will permit the user to create
> Drop Down menus that can be initiated with the right mouse click? If it can,
> is it fairly easy to implement?
>
> Thanks
Is there a way to do something equivalent to "import * from self"?
Perhaps I'm doing something wrong, but I'm having a headache
when dealing with class instance data, forgetting to always
put the "self." prefix
For example, in my brain I'm thinking:
optc,args=getopt.getopt(args,cmdopts[cm
* kai wrote:
> I use the ConfigPaserver from Python.
> how can I use/save/read values with ";" (start comment) and the value
> blank?
> When I write (set) my config file often the part behind the ";"
> disappears.
> e.g.
> myKey = startMyValue ; endMyValue
You can't. The ConfigParser tre
vdrab wrote:
> I guess the take-away lesson is to steer clear from any reliance on
> object identity checks, if at all possible.
BINGO!
> Are there any other such
> "optimizations" one should like to know about?
You don't have to know about them, as long as you use the operators
correctly.
=
kai wrote:
> Hello,
>
> how can I use/save/read values with ";" (start comment) and the value
> blank?
> When I write (set) my config file often the part behind the ";"
> disappears.
> e.g.
> myKey = startMyValue ; endMyValue
>
> Thank's for your hints, Kai
>
No, but you can write it as
Is there a way to automatically print all the instance
data in a class? This is for debugging, I would like
to do something like dump(self) to snapshot the state
of the object.
Many TIA!
Mark
--
Mark Harrison
Pixar Animation Studios
--
http://mail.python.org/mailman/listinfo/python-list
Fredrik Lundh wrote:
> John Salerno wrote:
>
>> Thanks. So the ftp:// is something different than actually using ftplib
>> to connect to an FTP server, right? I've used both urllib and ftplib, so
>> I know what they do, I just was a little unclear about whether they can
>> sometimes do each other'
Mark Harrison wrote:
> Is there a way to do something equivalent to "import * from self"?
(snip)
>
> Is there a way to get rid of those the "self." references,
No.
> or is this
> just something I need to get my brain to accept?
Yes.
And FWIW, "from somemodule import *" is usually considered bad
Mark Harrison wrote:
> For example, in my brain I'm thinking:
>
> optc,args=getopt.getopt(args,cmdopts[cmd][0], cmdopts[cmd][1])
>
> but I'm having to type:
>
> self.optc,self.args=getopt.getopt(self.args,self.cmdopts[self.c
> md][0],
>
Mark Harrison wrote:
> Is there a way to automatically print all the instance
> data in a class? This is for debugging, I would like
> to do something like dump(self) to snapshot the state
> of the object.
def dump(obj):
buf = ['%r %s :' % (obj, str(obj)]
for name in dir(obj):
attr = geta
Jay Parlar <[EMAIL PROTECTED]> writes:
> On May 5, 2006, at 6:35 AM, John J. Lee wrote:
[...]
> > I know about nose, but it seems just a little too magical for my
> > tastes, and includes stuff I don't really need.
[...]
> nose actually has very little magic, its operation is quite
> straightforwa
Mark Harrison wrote:
> Is there a way to do something equivalent to "import * from self"?
> Perhaps I'm doing something wrong, but I'm having a headache
> when dealing with class instance data, forgetting to always
> put the "self." prefix
>
> For example, in my brain I'm thinking:
>
> op
"Joel Hedlund" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Below, you'll find some background info and an executable code example.
>
> In the code example I have two ways of doing the same thing. The problem
> is
> that the "Neat" version doesn't work, and the "Ugly" version th
On Fri, May 05, 2006 at 05:08:24PM +, Mark Harrison wrote:
> Is there a way to get rid of those the "self." references, or is this
> just something I need to get my brain to accept?
It's pretty much just something you'll need to get your brain to accept.
You can replace self with something sho
"RM" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I had been thinking of releasing some of my little personal apps for a
> while. So, this finally motivated me to clean them up enough for
> release. The website is not yet finished, but I couldn't wait to share
> with you these li
It's easy in this case:
a = range(5, 10)
But, I'm just trying to add some humor to this thread :)
On May 5, 2006, at 9:36 AM, Ju Hui wrote:
> I want to remove about 5 elements from a list,which has 10
> elements.
> sample code like below:
>
a=range(10)
b=range(4)
On Fri, May 05, 2006 at 04:50:11PM +0100, Doug Bromley wrote:
> I have a Python IDE review I did a few months back you may want to view:
> http://www.straw-dogs.co.uk/blog/python-ide-review
Sounds interesting. Could you fix the screenshots? I just get a 404 here.
Kindly
Christoph
P.S.: [Rant ab
Mark Harrison wrote:
> Is there a way to automatically print all the instance
> data in a class? This is for debugging, I would like
> to do something like dump(self) to snapshot the state
> of the object.
>
>
>
Would something like cPickle work? That allows you to dump objects into
files as
Through Wine maybe ?
Philippe
Dennis Lee Bieber wrote:
> On 4 May 2006 09:57:15 -0700, [EMAIL PROTECTED] declaimed the
> following in comp.lang.python:
>
>> I am using python on a linux terminal.
>>
>> I want to shutdown a remote windows box. I found a script which does
>> something like this
Mark Harrison wrote:
> Is there a way to automatically print all the instance
> data in a class?
print self.__dict__
--
http://mail.python.org/mailman/listinfo/python-list
Some Googling yielded this recipe
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/137951/index_txt,
a little test shows promising results of the described recipe. BTW: the
Python Cookbook is always a good place to browse with questions other
people probably had as well!
--
http://mail.pyt
John J. Lee wrote:
> ...I wrote something to do this once, but didn't do as good a job as I
> might have done and wondered if anybody else has done it properly.
The Zope 3 project has zope.testing which has a very nice test runner
(and isn't Zope-specific at all). You can get the code (via Subve
On Fri, 5 May 2006, Benji York wrote:
> John J. Lee wrote:
>> ...I wrote something to do this once, but didn't do as good a job as I
>> might have done and wondered if anybody else has done it properly.
>
> The Zope 3 project has zope.testing which has a very nice test runner (and
> isn't Zope-
Kamilche a écrit :
> Mark Harrison wrote:
>
>>Is there a way to automatically print all the instance
>>data in a class?
>
>
> print self.__dict__
>
Yeps - if you don't mind missing class attributes and data descriptors.
--
http://mail.python.org/mailman/listinfo/python-list
John J Lee wrote:
> Is there a page that describes the Zope SVN layout?
Not that I know of. It basically goes like this: if it's not a
top-level project (like zope.testing), it's either in Zope (for Zope 2
stuff) or Zope3 (for Zope 3 stuff).
--
Benji York
--
http://mail.python.org/mailman/listin
[EMAIL PROTECTED] (Alex Martelli) writes:
> John J. Lee <[EMAIL PROTECTED]> wrote:
>
> > "A.M" <[EMAIL PROTECTED]> writes:
> >
> > > Is there any efficient online resource or book that help experienced Perl
> > > programmers to Python?
> >
> > Worry instead about how you're going to keep mainta
Joel Hedlund a écrit :
> Hi!
>
> I need some input on my use of metaclasses since I'm not sure I'm using
> them in a pythonic and graceful manner. I'm very grateful for any tips,
> pointers and RTFMs I can get from you guys.
>
> Below, you'll find some background info and an executable code exa
Peter Otten wrote:
> Ju Hui wrote:
>
>> cool!
>> thanks you all!
>> I choose
>> a=set(range(10))
>> b=set(range(5))
>> a.symmetric_difference(b)
>> certainly,the real data not range(), I am satisfied the performance of
>> set.difference
>>
>> thank you all again!
>
> Be warned that this
"vdrab" <[EMAIL PROTECTED]> writes:
[...]
> In fact, I think my code contains things like "if len(arg) is 0:" and
> so on,
So you made a mistake. It's OK, you can forgive yourself, nobody will
notice
> and I feel I should be able to do so given the way python treats
> (claims to treat?) consta
Here's a shot of Komodo, albeit embedded in a pdf
http://www.activestate.com/Products/Komodo/ActiveState_Komodo_datasheet.pdf
--
http://mail.python.org/mailman/listinfo/python-list
Hi
import string
import re
accumulator = []
pattern = '(\S*)\s*(\S*)\s*(\S*)'
for each text file in dir
openfile and read into text
data = re.compile(pattern, re.IGNORECASE).findall(text)
accumulator = accumulator + data
gives a list of tuples which when printed looks like
('jack', '
>
> NaNs are handled.
Throwing an exception would be nice in regular Python (non-scipy).
This works to catch NaN on OSX and Linux:
# assuming x is a number
if x+1==x or x!=x:
#x is NaN
But is expensive as a precautionary measure.
Assert can be used for testing, if production code can
"Diez B. Roggisch" <[EMAIL PROTECTED]> writes:
[...]
> google:BeatifulSoup
Even better, google for BeautifulSoup
^
John
--
http://mail.python.org/mailman/listinfo/python-list
vdrab wrote:
> I guess the take-away lesson is to steer clear from any reliance on
> object identity checks, if at all possible. Are there any other such
> "optimizations" one should like to know about?
Object identity checks are just the thing/numero uno/ichiban
for checking object identity. A
Michael Ekstrand wrote:
> On Fri, May 05, 2006 at 05:08:24PM +, Mark Harrison wrote:
>
>>Is there a way to get rid of those the "self." references, or is this
>>just something I need to get my brain to accept?
>
>
> It's pretty much just something you'll need to get your brain to accept.
> Y
On 2006-05-05, Ivan Vinogradov <[EMAIL PROTECTED]> wrote:
>
>>
>> NaNs are handled.
>
> Throwing an exception would be nice in regular Python (non-scipy).
That would break most of my Python programs (at least most of
the ones in which I do floating point). My main problem with
NaNs (and Infs) is
Okay, I've banged my head against this for about three days on and off.
The client's IP is passed to my handler in the non-threaded case.
It's not in the threaded case, which is actually rather different with a
couple of mixin classes mixing things up. I'm not confused, it's not
passed.
I can't
Gary Wessle wrote:
> Hi
>
>
> import string
> import re
> accumulator = []
>
> pattern = '(\S*)\s*(\S*)\s*(\S*)'
> for each text file in dir
> openfile and read into text
> data = re.compile(pattern, re.IGNORECASE).findall(text)
> accumulator = accumulator + data
> gives a list of
In <[EMAIL PROTECTED]>, OlafMeding
wrote:
>> IIRC it was something like an NTP daemon that caused the clock to
>> "jump" a little and (Window's) sleep was confused.
>
> The problem is not a "jump" but a permanet lockup of the sleep statement.
The "jump" of the system clock might confuse the syst
Another option is to use a dedicated section and simply omit values
for options:
[dirs]
/path/1:
/long/path/2:
/etc:
Then get options for section dirs.
This approach precludes using ':' or '=' in paths though.
--
http://mail.python.org/mailman/listinfo/python-list
On 2006-05-05, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
> In <[EMAIL PROTECTED]>, OlafMeding
> wrote:
>
>>> IIRC it was something like an NTP daemon that caused the clock
>>> to "jump" a little and (Window's) sleep was confused.
>>
>> The problem is not a "jump" but a permanet lockup of
>
> There are those of us that need NaNs in production code, so it
> would have to be something that could be configured. I find
> that in my programs the places where I need to do something
> "exceptional" with a NaN are very limited. The vast majority
> of the time, I need them to propagate qu
Below is some code adapted from something I think was written by Mark
Hammond. Originally I needed to create a Windows shortcut (link), and
this code does the trick, requiring only the target filename and the
desired shortcut name.
Now, I find I need to open a shortcut and extract the target filena
Ivan Vinogradov wrote:
>>
>>There are those of us that need NaNs in production code, so it
>>would have to be something that could be configured. I find
>>that in my programs the places where I need to do something
>>"exceptional" with a NaN are very limited. The vast majority
>>of the time, I ne
I have a simple question (I hope), but one I'd love to get some
feedback on in case I am missing something obvious:
If I have a Python script that is executable, and therefore
already uses '''if __name__ == "__main__"''' to call a function
of its own, what is then the easiest yet still most Python
On 2006-05-05, Ivan Vinogradov <[EMAIL PROTECTED]> wrote:
>>
>> There are those of us that need NaNs in production code, so it
>> would have to be something that could be configured. I find
>> that in my programs the places where I need to do something
>> "exceptional" with a NaN are very limited
On 2006-05-05, Robert Kern <[EMAIL PROTECTED]> wrote:
>> Our programming expectations may differ, but an option to catch NaNs as
>> an exception is a great idea.
>
[...]
> Pure Python has a similar, but somewhat less flexible method, on UNIX
> platforms.
>
> http://docs.python.org/dev/lib/modu
I have just released a Windows and Macintosh OS X version of MakeBot, an
IDE intended for students learning Python. It includes a very nice
graphics/video game package based on PyGame. You can read all about it
here:
http://stratolab.com/misc/makebot/
-Winston
--
http://mail.python.
Grant Edwards wrote:
> On 2006-05-05, Robert Kern <[EMAIL PROTECTED]> wrote:
>>Pure Python has a similar, but somewhat less flexible method, on UNIX
>>platforms.
>>
>> http://docs.python.org/dev/lib/module-fpectl.html
>
> For which "Unix" platforms? It's not there under Linux:
>
> Python 2.4.
On 5/5/06, Christoph Haas <[EMAIL PROTECTED]> wrote:
On Fri, May 05, 2006 at 04:50:11PM +0100, Doug Bromley wrote:> I have a Python IDE review I did a few months back you may want to view:> http://www.straw-dogs.co.uk/blog/python-ide-review
Sounds interesting. Could you fix the screenshots? I just
I did some searches but did not find any definitive answers as to
whether or not it should be possible to build Python 2.4+ with Microsoft
Visual C++ 2005 Express Edition.
I tried it myself (have VC++ project files that work with Visual Studio
2003 .NET commercial version, just opened and closed t
On 5-May-06, at 6:45 PM, Grant Edwards wrote:
> On 2006-05-05, Robert Kern <[EMAIL PROTECTED]> wrote:
>
>>> Our programming expectations may differ, but an option to catch
>>> NaNs as
>>> an exception is a great idea.
>>
> [...]
>
>> Pure Python has a similar, but somewhat less flexible method,
I'm trying to replace the ' and " characters in the strings I get from
feedparser so I can enter it in the database without getting errors.
Here's what I have right now.
self.title = entry.title.encode('utf-8')
self.title = self.title.replace('\"', '\\\"')
self.title = self.title.replace('\'', '\\
Are you sure that your dB interface module doesn't do this for you?
What dB and interface are you using?
Jim
--
http://mail.python.org/mailman/listinfo/python-list
Python, Lambda, and Guido van Rossum
Xah Lee, 2006-05-05
In this post, i'd like to deconstruct one of Guido's recent blog about
lambda in Python.
In Guido's blog written in 2006-02-10 at
http://www.artima.com/weblogs/viewpost.jsp?thread=147358
is first of all, the title “Language Design Is Not
"Xah Lee" <[EMAIL PROTECTED]> writes:
> Python, Lambda, and Guido van Rossum
Which one is the "critic"? Or is your subject field an indication that
you continue not to learn from responses to your previous posts?
> is first of all, the title “Language Design Is Not Just Solving
> Puzzles”. In th
persist.Load('someshortcut.lnk')
print sh.GetPath(shell.SLGP_RAWPATH)[0]
hth
Roger
"Steve M" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Below is some code adapted from something I think was written by Mark
> Hammond. Originally I needed to create a Windows shortcut (li
Xah Lee wrote:
> Python, Lambda, and Guido van Rossum
>
> Xah Lee, 2006-05-05
>
> In this post, i'd like to deconstruct one of Guido's recent blog about
> lambda in Python.
>
> In Guido's blog written in 2006-02-10 at
> http://www.artima.com/weblogs/viewpost.jsp?thread=147358
>
> is first of
Eric wrote:
> I have a string...
>
> str = "tyrtrbd =ffgtyuf == =tyryr =u=p ff"
>
> I want to replace the characters after each '=', what I ended up doing is
> somthing like this...
>
> buf = list(str)
> newchr = '#'
>
> count = 0
> for i in range(len(buf)):
> if buf[count] == '=':
>
Hi everyone, I'm wondering whether it's possible to construct a
binary-tree using python.
Since python don't have pointer, it can't dynamically allocate memory
like C language.
But some important data structures like linked list, binary-tree and
hash table are closely linked with dynamic memory tec
hankssong wrote:
> Hi everyone, I'm wondering whether it's possible to construct a
> binary-tree using python.
> Since python don't have pointer, it can't dynamically allocate memory
> like C language.
> But some important data structures like linked list, binary-tree and
> hash table are closely l
Ivan Vinogradov wrote:
> It doesn't seem to be here under OSX either (universal Python install).
It's not enabled by default. In the source distribution, it is
Modules/fpectlmodule.c .
> Since numpy seems to be working on a variety of platforms/hardware,
> how hard would it be to extract this fu
Ken Tilton <[EMAIL PROTECTED]> wrote:
...
> But the key in the whole thread is simply that indentation will not
> scale. Nor will Python.
Absolutely. That's why firms who are interested in building *seriously*
large scale systems, like my employer (and supplier of your free mail
account), wou
On Fri, 05 May 2006 17:26:26 -0700, Xah Lee wrote:
> Regarding the lambda in Python situation... conceivably you are right
> that Python lambda is perhaps at best left as it is crippled, or even
> eliminated. However, this is what i want: I want Python literatures,
> and also in Wikipedia, to cease
Per wrote:
> I am doing a Natural Language processing project for academic use,
>
> I think google's rich retrieval information and query-segment might be
> of help, I downloaded google api, but there is query limit(1000/day),
> How can I write python code to simulate the browser-like-activity to
If you have Pywin32 installed, you can use the win32com.adsi
package to open an object with username/password credentials.
See adsi.ADsOpenObject for details. Adsi also contains a number
of interfaces for dealing with users, containers, etc.
Roger
"D" <[EMAIL PROTECTED]> wrote in messag
Ken Tilton wrote:
> [...] The upshot of what [Guido] wrote is that it would be really hard to make
> semantically meaningful indentation work with lambda.
Haskell manages it.
--
David Hopwood <[EMAIL PROTECTED]>
--
http://mail.python.org/mailman/listinfo/python-list
Using Pywin32 (obviously not cross platform):
import win32api,win32con
h=win32api.OpenProcess(win32con.PROCESS_TERMINATE,False, )
win32api.TerminateProcess(h, )
Roger
"I. Myself" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Suppose we spawn a child process with Popen. I
Alex Martelli wrote:
> Ken Tilton <[EMAIL PROTECTED]> wrote:
>...
>
>>But the key in the whole thread is simply that indentation will not
>>scale. Nor will Python.
>
>
> Absolutely. That's why firms who are interested in building *seriously*
> large scale systems, like my employer (and s
David Hopwood wrote:
> Ken Tilton wrote:
>
>>[...] The upshot of what [Guido] wrote is that it would be really hard to make
>>semantically meaningful indentation work with lambda.
>
>
> Haskell manages it.
>
To be honest, I was having a hard time imagining precisely how
indentation broke do
Depending on what concrete use you have for binary trees, you may want
to consider tuples. What's cool about them is that you get pattern
matching on your tree for free.
>>> x = ((2,4),(5,6))
>>> y, _ = x
>>> y
(2, 4)
>>> (_,y), _ = x
>>> y
4
>>>
Or you could code your own binary tree class subcl
On Fri, May 05, 2006 at 05:26:26PM -0700, Xah Lee wrote:
> Python, Lambda, and Guido van Rossum
[snip]
Foxtrot Oscar Alpha Delta
Others have said banning this troll would be wrong or undemocratic
but let's be sane: he has wasted hundreds of hours of other people's
time and hurt newbies especially
Patch / Bug Summary
___
Patches : 378 open ( +0) / 3216 closed (+17) / 3594 total (+17)
Bugs: 894 open ( -7) / 5811 closed (+19) / 6705 total (+12)
RFE : 216 open ( +2) / 215 closed ( +1) / 431 total ( +3)
New / Reopened Patches
__
Rename fu
Not much to it. Just follow the SimpleXMLRPCServer example from Python
docs and register your shutdown function. Call it using xmlrpclib
remotely.
Actually, I prefer the telnet method below. Simple and straight forward.
--
http://mail.python.org/mailman/listinfo/python-list
fyleow wrote:
> I'm trying to replace the ' and " characters in the strings I get from
> feedparser so I can enter it in the database without getting errors.
> Here's what I have right now.
>
> self.title = entry.title.encode('utf-8')
> self.title = self.title.replace('\"', '\\\"')
> self.title = s
On Fri, 05 May 2006 21:16:50 -0400, Ken Tilton wrote:
> The upshot of
> what he wrote is that it would be really hard to make semantically
> meaningful indentation work with lambda.
Pretty much correct. The complete thought was that it would be painful
all out of proportion to the benefit.
See
"I V" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Fri, 05 May 2006 17:26:26 -0700, Xah Lee wrote:
>> Regarding the lambda in Python situation... conceivably you are right
>> that Python lambda is perhaps at best left as it is crippled, or even
>> eliminated. However, this is
Edward, thanks for the thoughtful comments.
I would like to offer a couple of links to the kind of stuff I am talking
about w.r.t. the "transparency" issue.
First, some from Eclipse:
http://www.eclipse.org/org/documents/Eclipse%20IP%20Policy2006_03_20.pdf
http://www.eclipse.org/legal/ See espec
I use google and get some detailed info in the page:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/286239
Carl J. Van Arsdall ,vdrab, thank for your help!
--
http://mail.python.org/mailman/listinfo/python-list
101 - 200 of 208 matches
Mail list logo