Edward C. Jones wrote:
> #! /usr/bin/env python
>
> class A(list):
> def __init__(self, alist, n):
> list.__init__(self, alist)
> self.n = n
>
> def __str__(self):
> return 'AS(%s, %i)' % (list.__str__(self), self.n)
>
> def __repr__(self):
> retur
Robert <[EMAIL PROTECTED]> wrote:
>
>something wrong in wx
I doubt it.
>I wrote program training na Artificial Neural Network. It work well in
>console mode, but when I try to add GUI there is an error:
>FANN Error 10: Error reading info from train data file "zapis.txt", line: 2
How are you laun
James Colannino <[EMAIL PROTECTED]> wrote:
>
>Hey everyone. I tried to use os.chown() in the following manner:
>
>os.chown('filename', 'username', 'groupname')
>
>I got an error, and when I googled for this function I realized that I
>must pass the numerical uid and gid. My question is, is there
[EMAIL PROTECTED] wrote:
> Hello. I'm trying to mod an open source app called TinyERP and inherit
> from a parent object, and in essence change how _column is defined. I
> found sample code of:
Looks like "Spot the differences" puzzle to me. Hint: look at the
underscore characters.
>
> class cu
Ben Finney a écrit :
> Pierre Barbier de Reuille <[EMAIL PROTECTED]> wrote:
>
>>This proposal suggests to add symbols into Python.
>
>
> I still don't think "symbol" is particularly descriptive as a name;
> there are too many other things already in the language that might
> also be called a "sy
Ben Bush wrote:
> When I click the button of cancel,
> I got the follwoing message. I want to see "Goodbye" on the console screen.
> What to do?
> KeyboardInterrupt: operation cancelled
> num = input( "Enter a number between 1 and 100: " )
> while num < 1 or num > 100:
>print "Oops, your inp
Mike Meyer a écrit :
> Pierre Barbier de Reuille <[EMAIL PROTECTED]> writes:
>
>>Please, note that I am entirely open for every points on this proposal
>>(which I do not dare yet to call PEP).
>>
>>Abstract
>>
>>
[...]
>
>
>>Symbols are objects whose representation within the code is mor
[EMAIL PROTECTED] wrote:
> Safari stores its cookies in XML format. Looking to try and add support for
> it to cookielib I started by first trying to parse it with Fredrik Lundh's
> elementtree package. It complained about an invalid token. Looking at the
> spot it indicated in the file, I foun
john boy said unto the world upon 2005-11-11 22:25:
> Question for the following program: sec 5.5
>
> def factorial (n):
>if n == 0:
> return 1
>else:
> recurse = factorial (n-1)
> result = n * recurse
> return result
>
> How come whenever I state the function wi
Pierre Barbier de Reuille <[EMAIL PROTECTED]> writes:
>>>In LISP : Symbols are introduced by "'". "'open" is a symbol.
>> No, they're not. "'(a b c)" is *not* a symbol, it's a list. Symbols in
>> LISP are just names. "open" is a symbol, but it's normally evaluated.
>> The "'" is syntax that keeps t
Hi,
I'm trying to automate an installation of some SW that is installed on
Windows (you know - 'Start' ==> 'Next' ==> 'Next' ==> 'Finish' kind of
installation). Is ther any way to perform that using python?
Thank you.
tommy
--
http://mail.python.org/mailman/listinfo/python-list
john boy said unto the world upon 2005-11-12 19:43:
> OK...I have the following program
>
> i = 1
> while i <= 6:
> print 2 * i,' ',
> i = i + 1
> print
>
> this is supposed to give you a "new" blank line after the program runs
> instead it just gives:
> 2 4 6 8 10 12
>
>
Mike Meyer a écrit :
> Pierre Barbier de Reuille <[EMAIL PROTECTED]> writes:
>
>>>While you don't make it clear, it seems obvious that you intend that
>>>if $open occurs twice in the same scope, it should refer to the same
>>>symbol. So you're using the syntax for a dual purpose. $name checks to
>
On Sun, 13 Nov 2005 10:11:04 +0100, Pierre Barbier de Reuille wrote:
> The problem, IMHO, is that way you need to declare "symbols"
> beforehands, that's what I was trying to avoid by requiring a new syntax.
???
If you don't declare your symbols, how will you get the ones that you want?
I don't
On Sun, 13 Nov 2005 02:57:04 -0800, 28tommy wrote:
> Hi,
>
> I'm trying to automate an installation of some SW that is installed on
> Windows (you know - 'Start' ==> 'Next' ==> 'Next' ==> 'Finish' kind of
> installation). Is ther any way to perform that using python?
Quick answer is yes, very mu
Szabolcs Nagy wrote:
> charset, modulo, japh = " .JPacehknorstuy", 17, ""
> s =
> 69859911049503515105680510599913390885187193231927247909305172858127641629
> for n in xrange(2,):
> if s%n==0:
> japh += charset[(n - 1) % modulo]
> s /= n
> if s==1:
> break
> pri
Hi,
first of all- thanks for the quick answer.
You presumed correctly, but unfortunately, I Don't have control of the
preparation process of the package, so I get it as is. I just need to
answer it's questions on each screen of the wizard...
10x again
tommy
--
http://mail.python.org/mailman/lis
28tommy wrote:
> I'm trying to automate an installation of some SW that is installed on
> Windows (you know - 'Start' ==> 'Next' ==> 'Next' ==> 'Finish' kind of
> installation). Is ther any way to perform that using python?
While that is possible in Python, it is very tedious to do: you
essential
Steven D'Aprano a écrit :
> On Sun, 13 Nov 2005 10:11:04 +0100, Pierre Barbier de Reuille wrote:
>
>
>>The problem, IMHO, is that way you need to declare "symbols"
>>beforehands, that's what I was trying to avoid by requiring a new syntax.
>
>
> ???
>
> If you don't declare your symbols, how w
Use AutoIt3 for it and be happy:
http://www.autoitscript.com/autoit3/.
And if you need Python to be involved in this process, just write out the
AutoIt script from Python and then run the AutoIt script from Python, what
makes you twice that happy.
If you want, you can reinvent the wheel using Pyt
i am use python2.4.2 on my gentoo linux system
i want to find some ide of python
but i am using gtk2.8,wxPython has some bug on it.i cant emerge it correctly.
i want some ide use pygtk or other lib of python gui except wxpython(wxWidgets)
thx
--
/***
Hello,
Daniel Crespo wrote:
> Is there a built-in method for transforming (1,None,"Hello!") to
> 1,None,"Hello!"?
As others answered before, the two syntaxes build the same object, so
there is no need to convert.
Except if you already have the tuple stored in a variable, and want to
call a fun
I would like to interact with Lotus Notes. I wrote following:
>>> from win32com.client.dynamic import Dispatch
>>> ln=Dispatch('Lotus.Notessession')
then, following exception come out:
Traceback (most recent call last):
File "", line 1, in ?
File "C:\Python24\Lib\site-packages\win32com\client\
David Rasmussen wrote:
> If I have a collection of dicts like:
>
> john = {'id': 1, 'name': "John Cleese", 'year': 1939}
> graham = {'id': 2, 'name': "Graham Chapman", 'year': 1941}
If these are all like that, I prefer:
john = dict(id=1, name="John Cleese", year=1939}
graham = dict{id-2,
o wrote:
> plez send me
>
>
First off, please explain what you are talking about better next time.
Second, What on earth are you talking about?
"f" is a file object, correct?
Are you trying to close a file by typing f.close or is the file closing
when you type f.close?
If you are trying to
赵光 wrote:
> i am use python2.4.2 on my gentoo linux system
> i want to find some ide of python
> but i am using gtk2.8,wxPython has some bug on it.i cant emerge it correctly.
> i want some ide use pygtk or other lib of python gui except
> wxpython(wxWidgets)
Take astab at eric3. Uses Qt + PyQt
Bengt Richter enlightened us with:
> I meant somestring.split() just like that -- without a splitter
> argument. My suspicion remains ;-)
Mine too ;-)
Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
Steven D'Aprano <[EMAIL PROTECTED]> wrote:
> On Sun, 13 Nov 2005 10:11:04 +0100, Pierre Barbier de Reuille wrote:
> > The problem, IMHO, is that way you need to declare "symbols"
> > beforehands, that's what I was trying to avoid by requiring a new
> > syntax.
>
> If you don't declare your symbols
Pierre Barbier de Reuille <[EMAIL PROTECTED]> wrote:
> Mike Meyer a écrit :
> > Hmm. You know, $symbol$ doesn't seem nearly as bad as $symbol. It
> > tickles TeX, not P***. I could live with that.
> Yep, I like this $symbol$ notation !
Gets a big -1 here.
I've yet to see a convincing argument aga
i want some python ide use pygtk
eric3 is good for me ,but i like gtk,so i want some pygtk ide look like
eric3
wing is a good python ide,but i can not download it
some other python ide(must use pygtk)
thx
--
http://mail.python.org/mailman/listinfo/python-list
Brian van den Broek wrote:
> john boy said unto the world upon 2005-11-11 22:25:
>
>> Question for the following program: sec 5.5
>>
>> def factorial (n):
>>if n == 0:
>> return 1
>>else:
>> recurse = factorial (n-1)
>> result = n * recurse
>> return result
>>
>
On Thu, 2 Nov 2006 23:56:22 +0200, o wrote
> plez send me
>
Please tell us what bug you're talking about:
A) Python closed the file but you expected it not to.
B) Python didn't close the file but you expected it to.
C) Python didn't warn you when you wrote "f.close" instead of "f.close()".
D)
wingide is good for me
but i cant down load it
i download from
http://wingware.com/pub/wingide-personal/2.0.4/wingide-personal-2.0.4-1-i386-linux.tar.gz
but it stop at 7%
who can help me
thx
--
/**
* Love in Gentoo-Linux C and Python
* Look
ANNOUNCING twill v0.7.4.
twill is a simple Web scripting language built on top of Python and
John J. Lee's 'mechanize'. It's designed for automated testing of Web
sites, but it should prove useful for anybody who needs to interact
with Web sites (especially those using logins and cookies) on the
See http://gmpy.sourceforge.net/ for details.
What is it: a wrapper for the GMP 4 library (http://swox.com/gmp/), to
provide multi-precision arithmetic for Python. Multi-precision floats,
and unbounded-precision rationals, are not present in stock Python;
multi-precision integers ('long') are, b
On Sun, 13 Nov 2005 12:33:48 +0100, Pierre Barbier de Reuille wrote:
> Steven D'Aprano a écrit :
>> On Sun, 13 Nov 2005 10:11:04 +0100, Pierre Barbier de Reuille wrote:
>>
>>
>>>The problem, IMHO, is that way you need to declare "symbols"
>>>beforehands, that's what I was trying to avoid by requ
Ben Finney a écrit :
> Pierre Barbier de Reuille <[EMAIL PROTECTED]> wrote:
>
>>Mike Meyer a écrit :
>>
>>>Hmm. You know, $symbol$ doesn't seem nearly as bad as $symbol. It
>>>tickles TeX, not P***. I could live with that.
>>
>>Yep, I like this $symbol$ notation !
>
>
> Gets a big -1 here.
>
>
Ben Finney <[EMAIL PROTECTED]> writes:
> I've yet to see a convincing argument against simply assigning values
> to names, then using those names.
The problem with that is that you can't pass around the names of objects
that are used for other things. Obviously they make enums unnecessary,
but on
On Mon, 14 Nov 2005 00:48:46 +1100, Ben Finney wrote:
> Steven D'Aprano <[EMAIL PROTECTED]> wrote:
>> On Sun, 13 Nov 2005 10:11:04 +0100, Pierre Barbier de Reuille wrote:
>> > The problem, IMHO, is that way you need to declare "symbols"
>> > beforehands, that's what I was trying to avoid by requir
Steven D'Aprano a écrit :
> On Sun, 13 Nov 2005 12:33:48 +0100, Pierre Barbier de Reuille wrote:
>
>
>>Steven D'Aprano a écrit :
>>[...]
>
>
> If you want to be technical, Python doesn't have variables. It has names
> and objects.
>
> If I want a name x to be bound to an object 1, I have to de
Björn Lindström a écrit :
> Ben Finney <[EMAIL PROTECTED]> writes:
>
>
>>I've yet to see a convincing argument against simply assigning values
>>to names, then using those names.
>
>
> The problem with that is that you can't pass around the names of objects
> that are used for other things. Obv
Fredrik> that apple's tools are able to generate bogus XML is a known
Fredrik> problem; for a discussion and some workarounds, see the "Status
Fredrik> of XML 1.1 processing in Python" over at the xml-sig mailing
Fredrik> list:
Fredrik> http://aspn.activestate.com/ASPN/Mai
[EMAIL PROTECTED] wrote:
> i want some python ide use pygtk
> eric3 is good for me ,but i like gtk,so i want some pygtk ide look like
> eric3
> wing is a good python ide,but i can not download it
> some other python ide(must use pygtk)
> thx
>
You can just use a text editor like jedit with gazpac
Carsten Haese wrote:
> On Thu, 2 Nov 2006 23:56:22 +0200, o wrote
>
>>plez send me
>>
>
>
> Please tell us what bug you're talking about:
>
> A) Python closed the file but you expected it not to.
> B) Python didn't close the file but you expected it to.
> C) Python didn't warn you when you w
?? wrote:
> i am use python2.4.2 on my gentoo linux system
> i want to find some ide of python
> but i am using gtk2.8,wxPython has some bug on it.i cant emerge it correctly.
> i want some ide use pygtk or other lib of python gui except
> wxpython(wxWidgets)
Try Gazpacho or Glade for designing yo
[EMAIL PROTECTED] wrote:
> Tom Anderson:
>> And we're halfway to looking like perl already! Perhaps a more pythonic
>> thing would be to define a "then" operator:
>> all_lines = file1 then file2 then file3
>
> Or a "chain" one:
>> all_lines = file1 chain file2 chain file3
That's certainly not bet
My Tkinter app's gui file grew to the point that i wanted to split it
into several files: menus.py, mainFrame,py, buttons.py, etc. Of
course, when i moved the menu code into its own file, then did "import
menus" in the main gui file, it died because of references in the
menus file to stuff in the m
Dear all,
I have decided to focus my activities on development and support.
I will release SnakeCard's produt line source code under the GPL licence
this week (www.snakecard.com) ... I need to fix the site.
It includes:
SCF: SnakeCard Framework (software=Python)
SCFB: SnaleCard Framework Bundle
I forgot
SC-School-ID and SC-Corporate-ID: software = Python, GUI = wxWidget, Applets
JavaCard and BasicCard.
Regards,
Philippe
Philippe C. Martin wrote:
> Dear all,
>
> I have decided to focus my activities on development and support.
>
> I will release SnakeCard's produt line source code
>
> Thomas Edison (I think it was him) once said it took 999 failures to
> make 1 success. That makes SourceForge 10 times more successful.
>
>
>> The world is filled with
>> millions of wanna-be poets, writers and creators whose sum total
>> contribution to the artistic wealth of the world is neg
>
> Thomas Edison (I think it was him) once said it took 999 failures to
> make 1 success. That makes SourceForge 10 times more successful.
>
>
>
>> The world is filled with
>> millions of wanna-be poets, writers and creators whose sum total
>> contribution to the artistic wealth of the world is n
"James Hu" <[EMAIL PROTECTED]> writes:
> Maybe the reason is ..\Content.IE5\index.dat can't be deleted!
[...]
IIRC, it can/could be from linux (with Win NT 4 installed on a VFAT
partition), so I guess it is/was a normal file to that extent.
John
--
http://mail.python.org/mailman/listinfo/pyt
On Sun, 13 Nov 2005, Reinhold Birkenfeld wrote:
> [EMAIL PROTECTED] wrote:
>
>> Tom Anderson:
>
>>> And we're halfway to looking like perl already! Perhaps a more
>>> pythonic thing would be to define a "then" operator:
>>>
>>> all_lines = file1 then file2 then file3
>>
>> Or a "chain" one:
>>
>>
The Digital Mars D compiler is a kind of "improved c++", it contains a
"foreach" statement:
http://www.digitalmars.com/d/statement.html#foreach
Usage example:
foreach(int i, inout int p; v1) p = i;
Is equal to Python:
for i in xrange(len(v)): v[i] = i
That is: v1 = range(len(v1))
(Some people us
I'm using py2exe to create a standalone program that uses pyparallel.
When I run the created program an error occurs and a message directs me
to
the log file which contains:
Traceback (most recent call last):
File "fg.py", line 30, in ?
import dds2
File "dds2.pyc", line 24, in ?
WHETHE
Kent Johnson <[EMAIL PROTECTED]> writes:
> Leif K-Brooks wrote:
> > New-style classes look up special methods on the class, not on the instance:
>
> For my future reference, is this documented somewhere in the standard docs?
Maybe somewhere in here :-(
http://www.python.org/doc/newstyle.html
Simon Brunning wrote:
> On 08/11/05, Dmytro Lesnyak <[EMAIL PROTECTED]> wrote:
> > I need to import some big data into Excel from my Python script. I have TXT
> > file (~7,5 Mb).
>
> Have you considered converting your text data to CSV format? Excel
> opens CSV files happily enough, and you could a
Fredrik Lundh wrote:
> Lonnie Princehouse wrote:
>
>
>>"[a-z0-9_]" means "match a single character from the set {a through z,
>>0 through 9, underscore}".
>
>
> "\w" should be a bit faster; it's equivalent to "[a-zA-Z0-9_]" (unless you
> specify otherwise using the locale or unicode flags), b
What is the best book for Python newbies (seasoned programmer in other
languages)?
/David
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Ok, so the function simplifyed without loops:
>
> def renamer(folder, band):
> archive = #file to transform
> rest = archive[3:]
> print band + " -",rest.capitalize()
>
>
> obs: the file names came this way(with spaces or apostrophes)
Ron Adam wrote:
> The \w does make a small difference, but not as much as I expected.
that's probably because your benchmark has a lot of dubious overhead:
> word_finder = re.compile('[EMAIL PROTECTED]', re.I)
no need to force case-insensitive search here; \w looks for both lower-
and uppercase
On 11/13/05, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
Ben Bush wrote:> When I click the button of cancel,> I got the follwoing message. I want to see "Goodbye" on the console screen.
> What to do?> KeyboardInterrupt: operation cancelled> num = input( "Enter a number between 1 and 100: " )> while n
hi everybody, i have a problem with py2exe that gives me this error:
ImportError: could not import pango
ImportError: could not import pango
Traceback (most recent call last):
File "acqua.py", line 40, in ?
File "gtk\__init__.pyc", line 113, in ?
AttributeError: 'module' object has no attribut
David Rasmussen a écrit :
> What is the best book for Python newbies (seasoned programmer in other
> languages)?
I don't know if it's the "best", but a DiveIntoPython/PythonCookbook
combo may be a good choice.
--
http://mail.python.org/mailman/listinfo/python-list
>As far as I know, only one country ever claimed to have that, so your
>"we" only applies to citizens of that country, and not to everyone who
>may be reading the letter - and the status of the person you quoted
>but did not attribute is unclear.
It applies to not only the US, which explicitly has
Kent Johnson wrote:
> Leif K-Brooks wrote:
> > New-style classes look up special methods on the class, not on the instance:
>
> For my future reference, is this documented somewhere in the standard docs?
>
Looks like it's the most detailed explanation on the net:
http://mail.python.org/pipermail/
David T wrote:
> Individuals, and perhaps groups of individuals are the creators of
> works.
When someone pays you to create a work, then they own the copyright, not
you. It's called work for hire.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA &&
I'm using Python 2.3.5 and when I type the following in the interactive
prompt I see that strip() is not working as advertised:
>>>s = 'p p:p'
>>>s.strip(' :')
'p p:p'
Is this just me or does it not work? I want to get rid of all ' ' and
':' in the string. I've checked the doc and from what I can
Mike Meyer wrote:
> Further, recent evidence is that this is no longer true in that
> country, assuming it ever was.
Oh, please. Take the political crap elsewhere.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfranci
Is there any package written in pure python code?
I know lots of packages borrow the functions from other languages such as C or FORTRAN. So it is still black box to me because I do not know these languages.
Ben
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, 2005-11-13 at 13:16 -0800, [EMAIL PROTECTED] wrote:
> I'm using Python 2.3.5 and when I type the following in the interactive
> prompt I see that strip() is not working as advertised:
>
> >>>s = 'p p:p'
> >>>s.strip(' :')
> 'p p:p'
>
> Is this just me or does it not work? I want to get ri
[EMAIL PROTECTED] a écrit :
> I'm using Python 2.3.5 and when I type the following in the interactive
> prompt I see that strip() is not working as advertised:
>
>
s = 'p p:p'
s.strip(' :')
>
> 'p p:p'
>
> Is this just me or does it not work? I want to get rid of all ' ' and
> ':' in th
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] wrote:
> I'm using Python 2.3.5 and when I type the following in the interactive
> prompt I see that strip() is not working as advertised:
>
> >>>s = 'p p:p'
> >>>s.strip(' :')
> 'p p:p'
>
> Is this just me or does it not work? I want to get rid
On Sun, 13 Nov 2005 17:31:32 +0100, Reinhold Birkenfeld <[EMAIL PROTECTED]>
wrote:
>[EMAIL PROTECTED] wrote:
>> Tom Anderson:
>>> And we're halfway to looking like perl already! Perhaps a more pythonic
>>> thing would be to define a "then" operator:
>>> all_lines = file1 then file2 then file3
>>
Anybody has this file in ..\system32\drivers\drvmcdb.sys in your computer? please send it to me. You will save my life! thanks a lot! James
Yahoo! FareChase - Search multiple travel sites in one click.
--
http://mail.python.org/mailman/listinfo/python-list
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] wrote:
> I'm using Python 2.3.5 and when I type the following in the interactive
> prompt I see that strip() is not working as advertised:
>
> >>>s = 'p p:p'
> >>>s.strip(' :')
> 'p p:p'
>
> Is this just me or does it not work? I want to get rid
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] wrote:
> I'm using Python 2.3.5 and when I type the following in the interactive
> prompt I see that strip() is not working as advertised:
>
> >>>s = 'p p:p'
> >>>s.strip(' :')
> 'p p:p'
>
> Is this just me or does it not work? I want to get rid
Dnia Sun, 13 Nov 2005 08:29:49 +, Tim Roberts napisał(a):
>>I wrote program training na Artificial Neural Network. It work well in
>>console mode, but when I try to add GUI there is an error:
>>FANN Error 10: Error reading info from train data file "zapis.txt", line: 2
>
> How are you launchi
David Beasley's Essential Python (New Riders). It's a little dated
now (covers only up to version 2.2) but lucid, consise, well organized.
It restricts itself to Python's syntax and semantics and does not waste
time explaining basic programming concepts.
I made several attempts to learn Python bu
"The Eternal Squire" <[EMAIL PROTECTED]> writes:
>>Further, recent evidence is that this is no longer true in that
>>country, assuming it ever was.
> Wow, how Machiaviellian.
Just an observation on the state of the US. It's been a long while
since the people running the country did so for the peop
Erik Max Francis a écrit :
> David T wrote:
>
>> Individuals, and perhaps groups of individuals are the creators of
>> works.
>
>
> When someone pays you to create a work, then they own the copyright,
Depends on the country's laws and the exact agreement.
--
http://mail.python.org/mailman/l
Ben Bush wrote:
> Is there any package written in pure python code?
Quite a lot. Browse through the Package Index.
http://cheeseshop.python.org/pypi
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
Erik Max Francis <[EMAIL PROTECTED]> writes:
> Mike Meyer wrote:
>> Further, recent evidence is that this is no longer true in that
>> country, assuming it ever was.
> Oh, please. Take the political crap elsewhere.
It's got as much right to be here as the copyright crap. And I'm
trying to keep it
Don't know if this will help or not because it seems like a strange
error if this is the problem. I've always had to run my wxPython apps
with pythonw, otherwise it will give you an error saying it needs the
GUI interpreter or something like that. However, this could be an
operating system specif
On Sun, 13 Nov 2005 13:16:43 -0800, Erik Max Francis wrote:
> David T wrote:
>
>> Individuals, and perhaps groups of individuals are the creators of
>> works.
>
> When someone pays you to create a work, then they own the copyright, not
> you. It's called work for hire.
That is *not* general
I'd like to announce the first release of PySizer, a memory usage
profiler for Python code.
PySizer was written as part of Google's Summer of Code.
The source, documentation and so on are at http://pysizer.8325.org.
The current release is at
http://pysizer.8325.org/dist/sizer-0.1.tar.gz.
The code
Bruno Desthuilliers wrote:
> Depends on the country's laws and the exact agreement.
Work for hire is part of the Berne convention.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
Life is painting a picture, n
Steven D'Aprano wrote:
> That is *not* generally true, although it is true in certain industries,
> such as newspapers.
It is true in many industries, including the software industry. My
point was that the creator of a work and the copyright holder and not
necessarily one and the same. Often,
Mike Meyer wrote:
> Erik Max Francis <[EMAIL PROTECTED]> writes:
>
>>Mike Meyer wrote:
>>
>>>Further, recent evidence is that this is no longer true in that
>>>country, assuming it ever was.
>>
>>Oh, please. Take the political crap elsewhere.
>
> It's got as much right to be here as the copyrigh
Ben Finney wrote:
...
> I've yet to see a convincing argument against simply assigning values
> to names, then using those names.
I don't like any syntax I've seen so far, but I can understand the problem.
If you have a name, you can redefine a name, therefore the value a name
refers to is mutable
Steven D'Aprano <[EMAIL PROTECTED]> wrote:
> On Mon, 14 Nov 2005 00:48:46 +1100, Ben Finney wrote:
> > I believe Pierre is looking for a syntax that will save him from
> > assigning values to names; that Python will simply assign
> > arbitrary unique values for these special names.
>
> > What I st
"Stuart McGraw" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> David Beasley's Essential Python (New Riders). It's a little dated
> now (covers only up to version 2.2) [...]
Oops, that should be "Beazley", "Python Essential Reference", and
version 2.1.
--
http://mail.python.org
On Sun, 13 Nov 2005 01:03:05 +0100, David Rasmussen <[EMAIL PROTECTED]> wrote:
>If I have a collection of dicts like:
>
>john = {'id': 1, 'name': "John Cleese", 'year': 1939}
>graham = {'id': 2, 'name': "Graham Chapman", 'year': 1941}
>
Why do you use dicts for what looks like fixed-format records
Ben Finney wrote:
> I believe that's exactly what Pierre doesn't want to do. He wants to
> simply use names (marked special in some way) and have Python
> automatically determine a unique value for each name, with nary an
> assignment in sight.
>
> To me, that's a net loss. It makes names more co
Fredrik Lundh wrote:
> Ron Adam wrote:
>
>
>>The \w does make a small difference, but not as much as I expected.
>
>
> that's probably because your benchmark has a lot of dubious overhead:
I think it does what the OP described, but that may not be what he
really needs.
Although the test to
On Sun, Nov 13, 2005 at 09:44:43PM +, Bengt Richter wrote:
> even if expr1 had a __unaryop__ method,
> expr1 - expr2
> could not become
> expr1.__unaryop__(-expr2)
> unless you forced the issue with
> expr1 (-expr2)
as opposed to being a function call? I don't think you've solved
[EMAIL PROTECTED] wrote:
> which feature of python do you like most?
>
Duck typing (All I care about is that it quacks, and it doesn't have to
derive from Duck() to do that!)
And decorating (the ability to add attributes to objects on-the-fly, not
the @XXX stuff)
--
http://mail.python.org/mai
Have you tried the tutorial on python.org? It's pretty good, even for
seasoned programmers.
Calad Sigilon
David Rasmussen wrote:
> What is the best book for Python newbies (seasoned programmer in other
> languages)?
>
> /David
--
http://mail.python.org/mailman/listinfo/python-list
Michael <[EMAIL PROTECTED]> wrote:
> Ben Finney wrote:
> > I've yet to see a convincing argument against simply assigning
> > values to names, then using those names.
>
> If you have a name, you can redefine a name, therefore the value a
> name refers to is mutable.
Since there are mutable and im
John J. Lee wrote:
> Kent Johnson <[EMAIL PROTECTED]> writes:
>
>>Leif K-Brooks wrote:
>>
>>>New-style classes look up special methods on the class, not on the instance:
>>
>>For my future reference, is this documented somewhere in the standard docs?
>
> Maybe somewhere in here :-(
>
> http://ww
1 - 100 of 120 matches
Mail list logo