Humerus 2.1 is now available:
http://www.cosc.canterbury.ac.nz/greg.ewing/python/Albow/Humerus-2.1.0.zip
Online documentation:
http://www.cosc.canterbury.ac.nz/greg.ewing/python/Albow/Humerus-2.1.0/doc/
In this version, the code for handling levels has been separated out
into a new pair
=
Uliweb Introduction
=
:Author: Limodou limo...@gmail.com
.. contents::
About Uliweb
Uliweb is a relatively new Python based web framework. Before I
started to create
this framework,I had used a few other frameworks such as Karrigell,
John Nagle wrote:
The right question is uname --hardware-platform. That returns i386 if
running on something emulating a 386, even it it's 64-bit capable.
Thanks, I'll make a note that I'll need to clarify that part.
With that change, the build runs to completion and and the regression tests
On Thu, Oct 1, 2009 at 10:13 PM, Jon Clements jon...@googlemail.com wrote:
On 1 Oct, 16:30, lallous lall...@lgwm.org wrote:
Hello
What is faster when clearing a list?
del L[:]
or
L = []
--
Elias
Does it really matter that much?
And you're really talking about two
Is there any way to get kernel-level timestamps for TCP packets while
still using the standard python sockets library for communication? I
need to communicate over a TCP connection as easily as possible, but
also record the timestamps of the incoming and outgoing timestamps at
microsecond or
On Wed, 23 Sep 2009 23:41:35 +0200,
Diez B. Roggisch de...@nospam.web.de wrote:
The Bear schrieb:
Hi I'm looking to do something like this
f = f.openfileobj(remotefileloc, localfilelikeobj)
my remote files are on a solaris box that i can access using ssh (could
prehap request othe
504cr...@gmail.com a écrit :
I'm kind of new to regular expressions, and I've spent hours trying to
finesse a regular expression to build a substitution.
What I'd like to do is extract data elements from HTML and structure
them so that they can more readily be imported into a database.
No --
On Oct 2, 2009, at 12:03 AM, Thomas Johnson wrote:
Is there any way to get kernel-level timestamps for TCP packets while
still using the standard python sockets library for communication? I
need to communicate over a TCP connection as easily as possible, but
also record the timestamps of the
that works. Thx
below is the output for my system:
gluGetString - GLU_VERSION: 1.2.2.0 Microsoft
Corporation
gluGetString - GLU_EXTENSIONS: GL_EXT_bgra
glGetString - GL_VENDOR: NVIDIA Corporation
glGetString - GL_RENDERER: GeForce
On Oct 2, 12:10 am, 504cr...@gmail.com 504cr...@gmail.com wrote:
I'm kind of new to regular expressions, and I've spent hours trying to
finesse a regular expression to build a substitution.
What I'd like to do is extract data elements from HTML and structure
them so that they can more readily
Hi group,
I am trying to use a weak reference to a bound method:
class MyClass(object):
def myfunc(self):
pass
o = MyClass()
print o.myfunc
bound method MyClass.myfunc of __main__.MyClass object at 0xc675d0
import weakref
r = weakref.ref(o.myfunc)
print r()
None
This is what
Ole Streicher wrote:
I am trying to use a weak reference to a bound method:
class MyClass(object):
def myfunc(self):
pass
o = MyClass()
print o.myfunc
bound method MyClass.myfunc of __main__.MyClass object at
0xc675d0
import weakref
r = weakref.ref(o.myfunc)
print
Hi Thomas,
Thomas Lehmann t.lehm...@rtsgroup.net writes:
r = weakref.ref(o.myfunc)
print r()
None
k = o.myfunc
r = weakref.ref(k)
print r()
weakref at 00B80750; to 'method' at 00B59918 (myfunc)
Don't ask me why! I have just been interested for what you are trying...
This is clear:
Tony Schmidt wrote:
Hi, Marc-Andre - well, so far you seem to be the only one suggesting
that cross-database joins is the way to go - everyone else has been
telling me to build a warehouse. I initially was trying to avoid the
warehouse idea to avoid going through the external temporary
On Oct 2, 2009, at 1:54 AM, Ole Streicher wrote:
I am trying to use a weak reference to a bound method:
class MyClass(object):
def myfunc(self):
pass
o = MyClass()
print o.myfunc
bound method MyClass.myfunc of __main__.MyClass object at
0xc675d0
import weakref
r =
Hello Peter,
Peter Otten __pete...@web.de writes:
Is there an actual use case?
I discussed this in the german newsgroup. Here is the use in my class:
-8---
import threading
import weakref
class DoAsync(threading.Thread):
def __init__(self,
Ole Streicher wrote:
Hi Thomas,
Thomas Lehmann t.lehm...@rtsgroup.net writes:
r = weakref.ref(o.myfunc)
print r()
None
k = o.myfunc
r = weakref.ref(k)
print r()
weakref at 00B80750; to 'method' at 00B59918 (myfunc)
Don't ask me why! I have just been interested for what you are
On 1 Okt, 16:08, John j...@nospam.net wrote:
I downloaded the cx_freeze source code
fromhttp://cx-freeze.sourceforge.net/into a directory.
[...]
From
here:http://linux.softpedia.com/get/Programming/Assembler-Tools/cx-Freeze-...
the directions state:
What about the documentation
Hi Miles,
Miles Kaufmann mile...@umich.edu writes:
You could also create a wrapper object that holds a weak reference to the
instance and creates a bound method on demand:
class WeakMethod(object):
def __init__(self, bound_method):
self.im_func = bound_method.im_func
I am trying to use a weak reference to a bound method:
class MyClass(object):
def myfunc(self):
pass
o = MyClass()
print o.myfunc
bound method MyClass.myfunc of __main__.MyClass object at 0xc675d0
import weakref
r = weakref.ref(o.myfunc)
print r()
None
This is
Carl Banks wrote:
On Sep 30, 11:35 pm, Timothy W. Grove tim_gr...@sil.org wrote:
Recently I purchased some software to recover some files which I had
lost. (A python project, incidentally! Yes, I should have kept better
backups!) They were nowhere to found in the file system, nor in the
I use setuptools to create a package. In this package I included some
images and I checked that they are in the egg-file. The problem is how
can I access the images in the package?
I tried pkgutil.get_data, but only got an IOError, because the EGG-INFO
directory doesn't exist.
I tried
In article fa454992-d61a-4fb7-b684-c8535bce5...@e18g2000vbe.googlegroups.com,
daggerdvm dagger...@yahoo.com wrote:
you brain needs error checking!
Whose brain? At least I know this:
Your brain is beyond repair. Go for a brain transplant.
Groetjes Albert
--
--
Albert van der Horst,
Hello Everyone,
My name is Baboucarr ..am from the gambia (west africa)..I just read about
python and i want to know how to program with it..
I would like you guys to help me in my road to becoming a python guru..Am a
novice so i would welcome any suggestions etc..
Will be posting again
Aaron Hoover wrote:
div class=moz-text-flowed style=font-family: -moz-fixedI have a
wx GUI application that connects to a serial port in a separate
thread, reads from the port, and then is supposed to put the data it
finds into a queue to be used by the main GUI thread. Generally
speaking,
2009/10/2 baboucarr sanneh sanne...@hotmail.com:
Hello Everyone,
My name is Baboucarr ..am from the gambia (west africa)..
I visited some years back. Friendly people.
I just read about
python and i want to know how to program with it..
I would like you guys to help me in my road to
Paul Rubin http://phr...@nospam.invalid wrote:
Duncan Booth duncan.bo...@invalid.invalid writes:
Is there a real-life sorting task that requires (or is far more
efficient with) cmp and can't be easily achieved with key and reverse?
There is no sorting task that *requires* cmp. If all
Ole Streicher wrote:
Peter Otten __pete...@web.de writes:
class Method(object):
def __init__(self, obj, func=None):
if func is None:
func = obj.im_func
obj = obj.im_self
This requires that func is a bound method. What I want is to have a
universal
Hello Peter,
Peter Otten __pete...@web.de writes:
What I want is to have a universal class that always works: with
unbound functions, with bound function, with lambda expressions, with
locally defined functions,
That's left as an exercise to the reader ;)
Do you have the feeling that there
Thanks simon, Can't wait to get my hands dirty on it..
$LIM $...@dy
From: si...@brunningonline.net
Date: Fri, 2 Oct 2009 12:32:53 +0100
Subject: Re: New Python Novice
To: sanne...@hotmail.com
CC: python-list@python.org
2009/10/2 baboucarr sanneh sanne...@hotmail.com:
Hello
On Fri, Oct 2, 2009 at 4:34 PM, baboucarr sanneh sanne...@hotmail.comwrote:
Hello Everyone,
My name is Baboucarr ..am from the gambia (west africa)..I just read about
python and i want to know how to program with it..
I would like you guys to help me in my road to becoming a python guru..Am
Thanks Deven...
Appreciate it
$LIM $...@dy
Date: Fri, 2 Oct 2009 17:37:28 +0530
Subject: Re: New Python Novice
From: drt...@gmail.com
To: sanne...@hotmail.com
CC: python-list@python.org
On Fri, Oct 2, 2009 at 4:34 PM, baboucarr sanneh sanne...@hotmail.com wrote:
Hello Everyone,
My
Ole Streicher wrote:
Hello Peter,
Peter Otten __pete...@web.de writes:
What I want is to have a universal class that always works: with
unbound functions, with bound function, with lambda expressions, with
locally defined functions,
That's left as an exercise to the reader ;)
Do you
I come from a scientific background, so my approach to the solution of
this problem is a little different.
It makes use of some numerical approximations, but that's not
necessarily a bad thing, because it helps avoid singularities. So it
could be a little more robust than other solutions
Paul McGuire wrote:
On Oct 2, 12:10 am, 504cr...@gmail.com 504cr...@gmail.com wrote:
I'm kind of new to regular expressions, and I've spent hours trying to
finesse a regular expression to build a substitution.
What I'd like to do is extract data elements from HTML and structure
them so that
Humerus 2.1 is now available:
http://www.cosc.canterbury.ac.nz/greg.ewing/python/Albow/Humerus-2.1.0.zip
Online documentation:
http://www.cosc.canterbury.ac.nz/greg.ewing/python/Albow/Humerus-2.1.0/doc/
In this version, the code for handling levels has been separated out
into a new pair
Hi Peter,
Peter Otten __pete...@web.de writes:
Ole Streicher wrote:
Peter Otten __pete...@web.de writes:
What I want is to have a universal class that always works: with
unbound functions, with bound function, with lambda expressions, with
locally defined functions,
That's left as an
Hi Guys...want to register to the PyCon 2010 conference but i cannot have
access to the page because it says the page was not found
on the server..I have seen also that they can give out financial aid for those
who want to go to the conference.am interested in that too as it will be very
Hi Peter,
Peter Otten __pete...@web.de writes:
class Method(object):
def __init__(self, obj, func=None):
if func is None:
func = obj.im_func
obj = obj.im_self
This requires that func is a bound method. What I want is to have a
universal class that always
Ole Streicher wrote:
Hi Peter,
Peter Otten __pete...@web.de writes:
Ole Streicher wrote:
Peter Otten __pete...@web.de writes:
What I want is to have a universal class that always works: with
unbound functions, with bound function, with lambda expressions, with
locally defined functions,
On Oct 2, 1:10 am, 504cr...@gmail.com 504cr...@gmail.com wrote:
I'm kind of new to regular expressions, and I've spent hours trying to
finesse a regular expression to build a substitution.
What I'd like to do is extract data elements from HTML and structure
them so that they can more readily
On 2009-10-02, Thomas Johnson thomas.j.john...@gmail.com wrote:
Is there any way to get kernel-level timestamps for TCP packets while
still using the standard python sockets library for communication?
libpcap
http://sourceforge.net/projects/pylibpcap/
I need to communicate over a TCP
Paul Rubin wrote:
I still have never understood why cmp was removed. Sure, key is more
convenient a lot (or maybe most) of the time, but it's not always.
Not just more convenient. cmp will always be N log N, in that _every_
comparison runs your function, while key is linear, in that it is
Yes, John, that's correct. I'm trying to trap and discard the tr row
td elements, re-formatting with pipes so that I can more readily
import the data into a database. The tags are, of course, initially
useful for pattern discovery. But there are other approaches -- I
could just replace the tags
The other thought I had was that I may not be properly trapping the
end of the first tr row, and the beginning of the next tr row.
On Oct 2, 8:38 am, John jmg3...@gmail.com wrote:
On Oct 2, 1:10 am, 504cr...@gmail.com 504cr...@gmail.com wrote:
I'm kind of new to regular expressions, and
I stumbled upon the following strangeness (python 2.6.2):
getattr(int, '__gt__')
method-wrapper '__gt__' of type object at 0x822b7c0
getattr(5, '__gt__')
Traceback (most recent call last):n
File stdin, line 1, in module
AttributeError: 'int' object has no attribute '__gt__'
Is this a bug ?
I'm looking for an open source, AJAX based widget/windowing framework.
Here is what I need:
- end user opens up a browser, points it to a URL, logs in
- on the server site, sits my application, creating a new session for
each user that is logged in
- on the server site, I create
On 05:48 am, wlfr...@ix.netcom.com wrote:
On Fri, 02 Oct 2009 01:33:18 -, exar...@twistedmatrix.com declaimed
the following in gmane.comp.python.general:
There's no need to use threads for this. Have a look at Twisted:
http://twistedmatrix.com/trac/
Strange... While I can
Hello,
I'm looking at gcmodule.c and in move_unreachable() function, the code
assumes that if an object has its gc.gc_refs stuff to 0 then it *may*
be unreachable.
How can an object tagged as unreachable could suddenly become
reachable later ?
Thanks
--
Hi Peter,
Peter Otten __pete...@web.de writes:
I am a bit surprised that already such a simple problem is virtually
unsolvable in python.
Btw, have you implemented such a design in another language?
No.
I think I'd go for a simpler approach, manage the lifetime of MyClass
instances
On Oct 2, 3:52 pm, George Sakkis george.sak...@gmail.com wrote:
I stumbled upon the following strangeness (python 2.6.2):
getattr(int, '__gt__')
method-wrapper '__gt__' of type object at 0x822b7c0
getattr(5, '__gt__')
Traceback (most recent call last):n
File stdin, line 1, in module
I saw an article on O'Reilly about using NumPy and Dislin to analyze
and visualize WAV files. It's a really fantastic article but was a
little out of date. I updated the script to work with the newer
modules etc but am still having trouble getting it working.
The line
temp[i,:] =
On Fri, Oct 2, 2009 at 12:07 PM, Carlo DiCelico
carlo.dicel...@gmail.com wrote:
I saw an article on O'Reilly about using NumPy and Dislin to analyze
and visualize WAV files. It's a really fantastic article but was a
little out of date. I updated the script to work with the newer
modules etc
Thanks Duncan,
I did look at that, but it was kinda greek to me. Thanks for pulling
out the part I was looking for that should do the trick.
Jonathan
http://www.python.org/doc/current/library/re.html#re.sub
Backreferences, such as \6, are replaced with the substring matched by
group 6 in
On Oct 2, 12:15 pm, Simon Forman sajmik...@gmail.com wrote:
On Fri, Oct 2, 2009 at 12:07 PM, Carlo DiCelico
carlo.dicel...@gmail.com wrote:
I saw an article on O'Reilly about using NumPy and Dislin to analyze
and visualize WAV files. It's a really fantastic article but was a
little
Carlo DiCelico wrote:
I saw an article on O'Reilly about using NumPy and Dislin to analyze
and visualize WAV files. It's a really fantastic article but was a
little out of date. I updated the script to work with the newer
modules etc but am still having trouble getting it working.
The line
Heikki Toivonen wrote:
John Nagle wrote:
The right question is uname --hardware-platform. That returns i386 if
running on something emulating a 386, even it it's 64-bit capable.
Thanks, I'll make a note that I'll need to clarify that part.
With that change, the build runs to completion and
On 2 Okt, 13:29, Dave Angel da...@ieee.org wrote:
Many people have concluded that (in Python) much of what threads are
used for should be done with processes.
Remember that threads were invented long before multi-core CPUs were
common. Java had threads before the VM could support more than one
Hi,
today I have released the following packages for fast arbitrary precision
decimal arithmetic:
1. libmpdec
Libmpdec is a C (C++ ready) library for arbitrary precision decimal
arithmetic. It is a complete implementation of Mike Cowlishaw's
General Decimal Arithmetic
sturlamolden sturlamol...@yahoo.no writes:
On 2 Okt, 13:29, Dave Angel da...@ieee.org wrote:
If you are worried about speed, chances are you are not using Python
anyway.
I *do* worry about speed. And I use Python. Why not? There are powerful
libraries available.
If you still have need for
On 2 Okt, 02:51, Aaron Hoover ahoo...@eecs.berkeley.edu wrote:
All the thread is doing most of the time is sitting around checking
the serial port for waiting data, reading it, and appending it to a
list when it finds it.
Do your threads ever block waiting for I/O? If they do, is the GIL
On 2 Okt, 20:19, Ole Streicher ole-usenet-s...@gmx.net wrote:
I *do* worry about speed. And I use Python. Why not? There are powerful
libraries available.
I do as well. But powerful libraries should release the GIL. Let me
rephrase that: I am not worried about speed in the part of my code
that
Hi all,
Our project uses some libraries that were written by 3rd parties (i.e.
not us). These libraries fit into a single Python file and live in our
source tree alongside other modules we've written. When our app is
distributed, they'll be included in the installation. In other words,
Philip Semanchuk phi...@semanchuk.com wrote:
In your Pythonic opinion, should 3rd-party modules that live alongside
homegrown code be listed in import category 2 or 3?
PEP 8 also starts by saying This document gives coding conventions for the
Python code comprising the standard library in
On behalf of the Python community, I'm happy to announce the
availability of Python 2.6.3. This is the latest production-ready
version in the Python 2.6 series. Somewhere near 100 bugs have been
fixed since Python 2.6.2 was released in April 2009. Please see the
NEWS file for all the
On Oct 2, 11:53 am, Stef Mientki stef.mien...@gmail.com wrote:
Will this method work always ?
Are there better methods ?
I SQLite doesn't like raw data (with all its \0 glory), you're out of
luck, unfortunately. Base64 encoding is a really good solution for
places like this.
You are aware,
Stef Mientki wrote:
hello,
I want to store some fields in an sqlite database.
I use ezPyCrypto to encrypt and decrypt:
User = ['z684684', 'Mientki, Stef', 1,1,0,1,1 ]
encryption_key_1 = ezPyCrypto.key ( 512 )
SQL_Base = 'insert or replace into __USERS__ values ('
for field in User
On Oct 2, 11:38 am, Medi montas...@gmail.com wrote:
Can I present multiple directories to epydoc to process. For example
epydoc -option -option -option dir_1 dir_2 dir_3
I know nothing of epydoc.
However, it looks like it should be something like:
epydoc -option dir_1 -option dir_2
I have a problem with numpy's vectorize class and f2py wrapped old
FORTRAN code. I found that the function _get_nargs() in
site-packages/numpy/lib/function_base.py tries to find the number of
arguments for a function from an error message generated when the
function is invoked with no
George Sakkis wrote:
I stumbled upon the following strangeness (python 2.6.2):
getattr(int, '__gt__')
method-wrapper '__gt__' of type object at 0x822b7c0
getattr(5, '__gt__')
Traceback (most recent call last):n
File stdin, line 1, in module
AttributeError: 'int' object has no attribute
Scott David Daniels scott.dani...@acm.org writes:
Most cases are moreeasily done with key, and it is
a good idea to make the most accessible way to a sort be the most
efficient one. In the rare case that you really want each comparison,
the cmp-injection function will do nicely (and can be
On Oct 2, 3:17 pm, Simon Forman sajmik...@gmail.com wrote:
On Fri, Oct 2, 2009 at 12:35 PM, Carlo DiCelico
carlo.dicel...@gmail.com wrote:
On Oct 2, 12:15 pm, Simon Forman sajmik...@gmail.com wrote:
On Fri, Oct 2, 2009 at 12:07 PM, Carlo DiCelico
carlo.dicel...@gmail.com wrote:
I
On Oct 2, 12:49 pm, MRAB pyt...@mrabarnett.plus.com wrote:
Carlo DiCelico wrote:
I saw an article on O'Reilly about using NumPy and Dislin to analyze
and visualize WAV files. It's a really fantastic article but was a
little out of date. I updated the script to work with the newer
modules
On Oct 2, 2009, at 12:30 PM, Dave Angel wrote:
(you responded off-list, which isn't the way these mailing lists
work. So I'm pasting your message back to the list, with my
response at the end)
Sorry about that - a slip of the reply button.
Actually, I was thinking of the subprocess
Hi;
I'm trying to create an HTML select with several options in a form that is
posted to a script. I want to enable the user to select multiple options.
The problem is I don't know how to call those options in my cgi calls in the
script to which it posts. Only one of them gets associated with the
On Fri, 02 Oct 2009 14:25:55 -0700, Victor Subervi
victorsube...@gmail.com wrote:
Hi;
I'm trying to create an HTML select with several options in a form
that is
posted to a script. I want to enable the user to select multiple options.
The problem is I don't know how to call those options
I have the select called variable these. Whichever option is selected is
passed through the cgi:
import cgitb; cgitb.enable()
import cgi
form = cgi.FieldStorage()
these = form.getfirst('these', '')
As I mentioned before, I get the variable all right. That is not the issue.
What is the issue is
Victor Subervi wrote:
I have the select called variable these. Whichever option is selected
is passed through the cgi:
import cgitb; cgitb.enable()
import cgi
form = cgi.FieldStorage()
these = form.getfirst('these', '')
As I mentioned before, I get the variable all right. That is not the
On 2 Okt, 22:29, Aaron Hoover ahoo...@eecs.berkeley.edu wrote:
My external hardware is actually sending 2000 packets per second right
now (but that can also be changed). Each packet currently contains 6
bytes of data and 6 bytes of overhead. So, 12 bytes per packet * 2000
packets per
My apologies in advance if this has been addressed before. Google does
not presently seem to return search results for this group from more
than a couple of months ago.
I have some long-running Python processes that slowly increase in
resident memory size, and whose resident size goes down only
Hi,
I'm interested in this type of programming but need some fundamental
questions answered if someone could oblige:
In the docs for the mutiprocessing module it mentions right at the
beginning about an underlying semaphore system - would MPI2 fit the
bill running on a Beowulf cluster?
Is the
On 2 Okt, 22:41, George Trojan george.tro...@noaa.gov wrote:
I have a problem with numpy's vectorize class and f2py wrapped old
FORTRAN code. I found that the function _get_nargs() in
site-packages/numpy/lib/function_base.py tries to find the number of
arguments for a function from an error
[Stefan Krah]
today I have released the following packages for fast arbitrary precision
decimal arithmetic:
Nice.
Raymond
--
http://mail.python.org/mailman/listinfo/python-list
http://projects.scipy.org/numpy/ticket/1247
--
http://mail.python.org/mailman/listinfo/python-list
Haskell has a new logo. A fantastic one. Beautiful. For creator,
context, detail, see bottom of:
• A Lambda Logo Tour
http://xahlee.org/UnixResource_dir/lambda_logo.html
this is posted here because it relates to various computer software/
language's logo, a subject discussed by me several
Xah Lee wrote:
Haskell has a new logo. A fantastic one. Beautiful. For creator,
context, detail, see bottom of:
• A Lambda Logo Tour
http://xahlee.org/UnixResource_dir/lambda_logo.html
Cool survey, and yes, that is a nice new one for Haskell.
I saw beauty the other day changing an
Matt Ernst wrote:
{...}
I thought Evan Jones altered Python to deal with this very problem,
and the change went into the release of 2.5.
Here is Tim Peters announcing the change:
http://mail.python.org/pipermail/python-dev/2006-March/061991.html
He included this simple test program to show
Kenneth Tilton kentil...@gmail.com writes:
Xah Lee wrote:
Haskell has a new logo. A fantastic one. Beautiful. For creator,
context, detail, see bottom of:
• A Lambda Logo Tour
http://xahlee.org/UnixResource_dir/lambda_logo.html
Don't do that!
If you want to watch the logo, just google
On Thu, Oct 1, 2009 at 6:33 PM, exar...@twistedmatrix.com wrote:
On 1 Oct, 09:28 am, nos...@nospam.com wrote:
Hello
I recently asked how to pull companies' ID from an SQLite database,
have multiple instances of a Python script download each company's web
page from a remote server,
On Fri, Oct 2, 2009 at 3:50 PM, Philip Semanchuk phi...@semanchuk.com wrote:
Hi all,
Our project uses some libraries that were written by 3rd parties (i.e. not
us). These libraries fit into a single Python file and live in our source
tree alongside other modules we've written. When our app is
[Paul Rubin]
Yes, think of sorting tree structures where you have to recursively
compare them til you find an unequal pair of nodes.
I'm not sure what you mean by this. What are the semantics of
sorting a tree? Can you outline an example of tree that
could be sorted easily with a cmp
Pascal J. Bourguignon wrote:
Kenneth Tilton kentil...@gmail.com writes:
Xah Lee wrote:
Haskell has a new logo. A fantastic one. Beautiful. For creator,
context, detail, see bottom of:
• A Lambda Logo Tour
http://xahlee.org/UnixResource_dir/lambda_logo.html
Don't do that!
If you want to
I would assume that putting scripts into a folder with the aim of re-
using pieces of them would be called a package, but since this is an
anti-pattern according to Guido, apparently I'm wrong-headed here.
(Reference: http://mail.python.org/pipermail/python-3000/2007-April/006793.html
)
Say you
Robert Kern wrote:
George Sakkis wrote:
I stumbled upon the following strangeness (python 2.6.2):
getattr(int, '__gt__')
method-wrapper '__gt__' of type object at 0x822b7c0
getattr(5, '__gt__')
Traceback (most recent call last):n
File stdin, line 1, in module
AttributeError: 'int'
Raymond Hettinger pyt...@rcn.com writes:
I'm not sure what you mean by this. What are the semantics of
sorting a tree? Can you outline an example of tree that
could be sorted easily with a cmp function but not a key function?
The idea was that you have a list of trees that you want to sort,
Brian D wrote:
This isn't merely a question of knowing when to use the right
tool. It's a question about how to become a better developer using
regular expressions.
It could be said that if you want to learn how to use a
hammer, it's better to practise on nails rather than
screws.
--
Greg
--
In article mailman.549.1254045623.2807.python-l...@python.org,
Sjoerd Mullender sjo...@acm.org wrote:
On 2009-09-26 05:32, Mike L wrote:
could you remove this old post, off topic and spam
http://www.mail-archive.com/python-list@python.org/msg175722.html
You need to put this request to
Xah Lee wrote:
Haskell has a new logo. [Blam! It fucking blows because lambda means
pure functional]
A truly pure functional language would be useless for anything but
programming space heaters.
Lambda seems not inappropriate on any language that strongly supports a
functional style.
Mark Dickinson dicki...@gmail.com added the comment:
Can int.hex() and int.fromhex() be added for symmetry?
On the face of it, adding int.hex (and presumably also long.hex for 2.x)
seems reasonable: in general, integers should be acceptable where-ever
floats are, and by that argument x.hex()
Kandalintsev Alexandre bug_hun...@messir.net added the comment:
Please don't keep this bug open :(
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5097
___
1 - 100 of 152 matches
Mail list logo