TheFlyingDutchman a écrit :
> Well I'm with Bruce Eckel - there shouldn't be any argument for the
> object in the class method parameter list.
def fun(obj, *args, **kw):
# generic code here that do something with obj
import some_module
some_module.SomeClass.fun = fun
This is why uniformity is
hi to all
I am just a beginner of python. I want to know how pixels are plotted
in python. I am not intending to use PIL because I don't need to
manipulate images. So is there a simple module for 2D graphics and
plot pixels
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I have Python 2.5 installed on WinXP and I am trying to install a new
package. I ran the setup.py build and I get the following message:
C:\packages\reedsolomon-0.1>setup.py build
running build
running build_ext
error: Python was built with Visual Studio 2003;
extensions must be built with a
On Sep 13, 1:03 pm, [EMAIL PROTECTED] wrote:
> hi to all
> I am just a beginner of python. I want to know how pixels are plotted
> in python. I am not intending to use PIL because I don't need to
> manipulate images. So is there a simple module for 2D graphics and
> plot pixels
Here is a *very* si
http://www.martin-stosch-superstar.wg.am/
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, 2007-09-13 at 09:05 -0700, Charles Fox wrote:
> when you are implementing a model from a published
> paper, the variables tend to be single greek or roman letter names,
> possibly with subscripts and superscripts, and it helps if the name
> you see on the screen is the same as the name on t
>
> (Can you tell I'm currently forced to developing in Java? ;) (Which I'm
> currently avoiding to do, by wasting my time on usenet.))
>
Maybe you can sneak Jython into the mix. Just describe it as "this
Java scripting language".
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 13, 11:22 pm, Paul McGuire <[EMAIL PROTECTED]> wrote:
> On Sep 13, 1:03 pm, [EMAIL PROTECTED] wrote:
>
> > hi to all
> > I am just a beginner of python. I want to know how pixels are plotted
> > in python. I am not intending to use PIL because I don't need to
> > manipulate images. So is the
ho ho..now thats quite funny!
Regards
John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Sep 11, 9:35 am, "John Timney \(MVP\)"
> <[EMAIL PROTECTED]> wrote:
>> How do I control one with C# then! Thats
On Thu, Sep 13, 2007 at 06:37:43PM -, [EMAIL PROTECTED] wrote regarding Re:
plotting pixels in python:
>
> On Sep 13, 11:22 pm, Paul McGuire <[EMAIL PROTECTED]> wrote:
> > On Sep 13, 1:03 pm, [EMAIL PROTECTED] wrote:
> >
> > > hi to all
> > > I am just a beginner of python. I want to know how
OKB (not okblacke) wrote:
What kind of name is this?
> No, but the point being made is that it would be better IN
> THIS CASE.
It wouldn't. IMHO, rewriting the code to two or three lines would be
better. No need to scream, BTW.
Regards,
Björn
--
BOFH excuse #447:
According to Microsoft, it
TheFlyingDutchman wrote:
> Here's a FAQ item where they refer to it as I think Python should
> have done it - a special predefined variable:
Maybe. Personally, I like it the way it is in Python.
Why don't you make a preprocessor which accepts method declarations
without "self" and fixes them?
Re
How do you import modules that aren't in the main python Lib folder? Is it
possible to keep it in the same file as the script thats being ran?
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I would like to delete a region on a log file which has this
kind of structure:
#--flutest
498 1.0086e-03 2.4608e-04 9.8589e-05 1.4908e-04
8.3956e-04 3.8560e-03 4.8384e-02 11:40:01 499
499 1.0086e-03 2.4608e-04 9.8589e-05
On Sep 13, 1:37 pm, [EMAIL PROTECTED] wrote:
> On Sep 13, 11:22 pm, Paul McGuire <[EMAIL PROTECTED]> wrote:
>
> > On Sep 13, 1:03 pm, [EMAIL PROTECTED] wrote:
>
> > > hi to all
> > > I am just a beginner of python. I want to know how pixels are plotted
> > > in python. I am not intending to use PIL
On Thu, 2007-09-13 at 14:01 -0500, Lamonte Harris wrote:
> How do you import modules that aren't in the main python Lib folder?
> Is it possible to keep it in the same file as the script thats being
> ran?
See http://docs.python.org/tut/node8.html#SECTION00811
and http://catb.org/~
TheFlyingDutchman wrote:
>> (Can you tell I'm currently forced to developing in Java? ;) (Which I'm
>> currently avoiding to do, by wasting my time on usenet.))
>>
>
> Maybe you can sneak Jython into the mix. Just describe it as "this
> Java scripting language".
>
>
Hehe, devious idea. I might j
2007/9/10, Facundo Batista <[EMAIL PROTECTED]>:
> I modified my tool, whichs makes a summary of all the Python tickets
> (I moved the source where the info is taken from SF to our Roundup).
>
> In result, the summary is now, again, updated daily:
Taking an idea from Jeff Rush, now there're separa
Hi,
I trying to create a bootstrap.sh shell script that takes two command line args
that passes them
to two scripts. one script is init.sh that sets up some environment varilables
the other will be a Python script used as the main build script. the contents
of the bootstrap file and init.sh a
This works for me under cygwin.
Start the script with the line
#! /usr/bin/python
Place the script in a directory shown by the command
echo $PATH
Invoke the script using its name, i.e.
test.py
--
http://mail.python.org/mailman/listinfo/python-list
Bjoern Schliessmann wrote:
>> No, but the point being made is that it would be better IN
>> THIS CASE.
>
> It wouldn't. IMHO, rewriting the code to two or three lines would be
> better.
>
Well I think Charles' Point about making the equations look like the
ones in the paper(s) is a pretty good
Bjoern Schliessmann a écrit :
> TheFlyingDutchman wrote:
>
>>Here's a FAQ item where they refer to it as I think Python should
>>have done it - a special predefined variable:
>
>
> Maybe. Personally, I like it the way it is in Python.
>
> Why don't you make a preprocessor which accepts method d
On Sep 13, 1:30 am, Amer Neely <[EMAIL PROTECTED]> wrote:
> I'm a complete newbie with Python, but have several years experience
> with Perl in a web environment.
>
> A question I have, if someone here is familiar with Perl, does Python
> have something like Perl's 'here document'? I've just search
Wildemar Wildenburger a écrit :
> Bjoern Schliessmann wrote:
>
>>> No, but the point being made is that it would be better IN
>>> THIS CASE.
>>
>>
>> It wouldn't. IMHO, rewriting the code to two or three lines would be
>> better.
>>
>
> Well I think Charles' Point about making the equations look
On Sep 13, 9:55 am, Steven D'Aprano <[EMAIL PROTECTED]
cybersource.com.au> wrote:
> On Thu, 13 Sep 2007 12:10:03 +, [EMAIL PROTECTED] wrote:
> > Why not use '_' as the self variable. It is minimal and achieves close
> > to '.var', as '_.var' isn't that different. I know its a little
> > perl-
Mikhail Teterin schrieb:
> While C/C++ and Fortran have OpenMP (http://www.OpenMP.org/), there is
> nothing comparable in Tcl (nor, as far as I know, in the two other
> scripting languages).
>
> Or is there? I'd like to, for example, have a version of foreach loop, that
> would split the tasks bet
Bruno Desthuilliers wrote:
> OTHO, simple math-illeterate programmers like me will have hard time
> maintaining such a code.
Certainly, but again: Such main people are not the intended audience.
The code is for people that know how to read these equations. I think a
general rule of (any form of)
On Sep 11, 5:56 am, Harry George <[EMAIL PROTECTED]> wrote:
> I use postgresql as well. I wonder if Pythonistas do so out of
> concern for rigor, clarity, and scalability. It works fine for a
> quick one-off effort and still works fine after scaling to a DBMS
> server supporting lots of clients,
On Sep 12, 9:38 pm, Prateek <[EMAIL PROTECTED]> wrote:
> Have you checked out Brainwave?http://www.brainwavelive.com
>
> We provide a schema-free non-relational database bundled with an app
> server which is basically CherryPy with a few enhancements (rich JS
> widgets, Cheetah/Clearsilver template
Hi Amit,
Why not create a list of those 800+ files and a sccript that when run,
looks for an environment variable that will be a number from 1 to 800,
selectss the file at that line number and processes it fully.
For the process control install a job scheduler such as LSF or the Sun
grid Engine ht
me again... I should describe it better:
the result should be an array with just:
498 1.0086e-03 2.4608e-04 9.8589e-05 1.4908e-04 8.3956e-04
3.8560e-03 4.8384e-02 11:40:01 499
499 1.0086e-03 2.4608e-04 9.8589e-05 1.4908e-04 8.3956e-04
3.8560e-03 4.8384e-02 11:40:01 499
500 1.0049e-03 2.4630e-04
Mark Summerfield wrote:
> - If an item is inserted it is put in the right place (because the
> underlying data structure, b*tree, skiplist or whatever is
> intrinsically ordered by < on the key)
+1 for all your suggestions below, but -1 for the above. You suggest that
myOrderedDict['key'] = va
Mark Summerfield <[EMAIL PROTECTED]> writes:
> > Yes. It should use a functional data structure.
> Could you elaborate?
I mean use a data structure like an AVL tree, that can make a new dict
object quickly, whose contents are the same as the old object except
for one element (i.e. most of the con
On Sep 13, 11:37 am, [EMAIL PROTECTED] wrote:
> No currently I am using a canvas from the Tkinter module
> What I actually want is to show how a line is plotted pixel by pixel
> using a delay loop. I want functions something like putpixel not
> draw_line
Try drawing 1px wide rectangles.
--
http:
Wildemar Wildenburger wrote:
> Bruno Desthuilliers wrote:
>
>> OTHO, simple math-illeterate programmers like me will have hard time
>> maintaining such a code.
>>
> Certainly, but again: Such main people are not the intended audience.
> The code is for people that know how to read these e
Cant believe I have to post this and get help... and can't believe I
couldnt Google it reasonably well enough... I need to take a float
variable and have it display as a string to always have two decimal
places:
12. -> 12.33
1.0 -> 1.00
etc...
Anyone willing to help with this one?
thanks,
H
On 13/09/2007, Fabian Braennstroem <[EMAIL PROTECTED]> wrote:
> me again... I should describe it better:
> the result should be an array with just:
>
> 498 1.0086e-03 2.4608e-04 9.8589e-05 1.4908e-04 8.3956e-04
> 3.8560e-03 4.8384e-02 11:40:01 499
> 499 1.0086e-03 2.4608e-04 9.8589e-05 1.4908e-04
On Thu, Sep 13, 2007 at 01:50:51PM -0700, Harlin Seritt wrote regarding Decimal
formatting:
>
> Cant believe I have to post this and get help... and can't believe I
> couldnt Google it reasonably well enough... I need to take a float
> variable and have it display as a string to always have two d
On Sep 13, 3:50 pm, Harlin Seritt <[EMAIL PROTECTED]> wrote:
> Cant believe I have to post this and get help... and can't believe I
> couldnt Google it reasonably well enough... I need to take a float
> variable and have it display as a string to always have two decimal
> places:
>
> 12. -> 12.
On 9/13/07, Brian McCann wrote:
> bootstrap.sh
> #!/bin/sh
> cd /home/workspaces
> export LANG="en_US.UTF-8"
>
> source init $1
> test.py $2
> #
>
> what's wrong with the line "source init $1 ?
Assuming your /bin/sh is actually the Bourne-again shell, this excerpt
Brian McCann wrote:
> init.sh
>
> #!/bin/sh
> WORKSPACE_ROOT="$1";
>
> export
> JAVA_OPTIONS="-Djava.library.path=$WORKSPACE_ROOT/:$WORKSPACE_ROOT/:$WORKSPACE_ROOT/"
> echo "JAVA_OPTIONS="$JAVA_OPTIONS;
>
> set
> PATH="$WORKSPACE_ROOT/vendor/basistech/rlp5.4/rlp/bin/ia32-glibc23-gcc32:$WORKSP
In article <[EMAIL PROTECTED]>,
Michael Schlenker <[EMAIL PROTECTED]> wrote:
>Mikhail Teterin schrieb:
>> While C/C++ and Fortran have OpenMP (http://www.OpenMP.org/), there is
>> nothing comparable in Tcl (nor, as far as I know, in the two other
>> scripting languages).
>>
>> Or is there? I'd li
"TheFlyingDutchman" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
| Here's a FAQ item where they refer to it as I think Python should have
| done it - a special predefined variable:
|
| http://www.faqs.org/docs/javap/c5/s5.html
|
| "Java provides a special, predefined variable named
Thanks! That worked perfectly.
Matt
On Sep 7, 10:42 pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Fri, 07 Sep 2007 18:46:26 -0300, Matthew Lausch <[EMAIL PROTECTED]>
> escribi?:
>
> > I'd like to use thesubprocessmodule with upper level characters in
> > the process name or in the argume
stef mientki wrote:
> Wildemar Wildenburger wrote:
>> Bruno Desthuilliers wrote:
>>
>>> OTHO, simple math-illeterate programmers like me will have hard time
>>> maintaining such a code.
>>>
>> Certainly, but again: Such main people are not the intended audience.
>> The code is for people t
I've decided that Python is a language/environment I'd like to learn
(I've been a professional programmer for 45+ years), but I really don't
know where and how to start! I have a number of books - and am buying
some more - but because of the bewildering number of after-market
packages, envi
On Thu, 13 Sep 2007 13:14:25 -0400, J. Clifford Dyer wrote:
> On Thu, Sep 13, 2007 at 04:21:36PM -, Steven D'Aprano wrote
> regarding Re: newbie: self.member syntax seems /really/ annoying:
>>
>> It's not just a matter of taste.
>>
>> Reading comprehensibility is an objective, measurable qua
>>> Certainly, but again: Such main people are not the intended audience.
>>> The code is for people that know how to read these equations. I think
>>> a general rule of (any form of) writing is to write with your audience
>>> in mind. I always do that and happily, that audience is usually nake
On Sep 13, 2:59 pm, [EMAIL PROTECTED] (Michael R. Copeland) wrote:
>I've decided that Python is a language/environment I'd like to learn
> (I've been a professional programmer for 45+ years), but I really don't
> know where and how to start! I have a number of books - and am buying
> some more
On Thursday 13 September 2007 14:59, Michael R. Copeland wrote:
>I've decided that Python is a language/environment I'd like to learn
> (I've been a professional programmer for 45+ years), but I really don't
> know where and how to start! I have a number of books - and am buying
> some more -
Bruno Desthuilliers wrote:
> Bjoern Schliessmann a écrit :
>> Why don't you make a preprocessor which accepts method
>> declarations without "self" and fixes them?
>
> The problem being that there's no such thing as a "method
> declaration" in Python
Yep, there are only definitions. I'm sorry.
Hello,
Martin Drautzburg a écrit :
> I am trying to cPickle/unpickle a C++ extension class with some private
> data members. I wrote __getstate__() and __setstate__ in C++ (I have
> to, due to the private data). Pickling writes the following file:
>
> ccopy_reg
> _reconstructor
>
James Stroud wrote:
> set_value_at -> set_value (not simply set)
Actually, 'set' seems better than set_value.
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, 13 Sep 2007 20:59:06 +0200, Bjoern Schliessmann wrote:
> TheFlyingDutchman wrote:
>> Here's a FAQ item where they refer to it as I think Python should have
>> done it - a special predefined variable:
>
> Maybe. Personally, I like it the way it is in Python.
>
> Why don't you make a prepr
On Sep 13, 5:59 pm, [EMAIL PROTECTED] (Michael R. Copeland) wrote:
>I've decided that Python is a language/environment I'd like to learn
> (I've been a professional programmer for 45+ years), but I really don't
> know where and how to start! I have a number of books - and am buying
> some more
On Thu, 13 Sep 2007 12:47:27 -0700, Carl Banks wrote:
> On Sep 13, 9:55 am, Steven D'Aprano <[EMAIL PROTECTED]
> cybersource.com.au> wrote:
>> On Thu, 13 Sep 2007 12:10:03 +, [EMAIL PROTECTED] wrote:
>> > Why not use '_' as the self variable. It is minimal and achieves
>> > close to '.var', a
On Sep 13, 11:05 pm, Dmitri Fedoruk <[EMAIL PROTECTED]> wrote:
> Hello everyone,
>
> I'm developing a mod_python application that is based on XML\XSLT
> transforming.
>
> I used 4Suite libraries for that, but as the speed was unacceptable
> for me, I switched to lxml. Everything became much easier
Hi list,
I'm 99% sure httplib is sporadically hanging when I call read() on the
HTTPResponse object (r.status == 200).
Evidence:
straceing the process shows it's blocked in recvfrom()
ls -la /proc/pid/fd shows the socket-id for recvfrom() file
descriptor (3)
lsof -n | grep socket-id
Rodney Maxwell wrote:
> The following are apparently legal Python syntactically:
>L[1:3, 8:10]
>L[1, ..., 5:-2]
>
> But they don't seem to work on lists:
l = [0,1,2,3]
l[0:2,3]
> Traceback (most recent call last):
> File "", line 1, in
> TypeError: list indices must be integer
On Thu, 2007-09-13 at 18:05 -0700, Thierry Masson wrote:
> Hello,
>
> I'm trying to use the C API to extend Python. I've looked at various
> books and web sites (including the docs at python.org) and I can't get
> any of the samples to work. Below is a very minimalist example that
> I'm trying to
On 9 13 , 7 44 , [EMAIL PROTECTED] wrote:
> On 13 Wrz, 10:48, Pacino <[EMAIL PROTECTED]> wrote:
>
>
>
> > On 9 13 , 4 43 , Laurent Pointal <[EMAIL PROTECTED]> wrote:
>
> > > Pacino a écrit :
>
> > > > Hi, everyone,
>
> > > > I am wondering whether it's possible to read part (e.g. 1000*1000) of
Hello,
I'm trying to use the C API to extend Python. I've looked at various books
and web sites (including the docs at python.org) and I can't get any of the
samples to work. Below is a very minimalist example that I'm trying to get
working and I was wondering if someone could tell me where I'm go
The documentation is here
http://docs.python.org/lib/typesseq-strings.html
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 13, 4:20 pm, James Stroud <[EMAIL PROTECTED]> wrote:
> Mark Summerfield wrote:
> > - If an item is inserted it is put in the right place (because the
> > underlying data structure, b*tree, skiplist or whatever is
> > intrinsically ordered by < on the key)
>
> +1 for all your suggestions belo
Puh, what a discussion... most common use case I can think of is
>> d = {'a': 1, 'b': 2, 'c': 3}
>> for key in d:
>> # do something that relies on order of keys as specified in the
>> constructor
It's a bit tireing having to type
>> for key in sorted(d.keys()):
>> do_somethig_with(d[ke
In article <[EMAIL PROTECTED]>,
Ben Finney <[EMAIL PROTECTED]> wrote:
>
>Specifically an easier way of doing it provided by the language syntax
>(hence "syntactic sugar"). As in, "the form 'foo += 1' is syntactic
>sugar for 'foo = foo + 1'".
Except, of course, that it isn't, quite. ;-)
--
Aahz
Carl Banks wrote:
> On Sep 13, 4:20 pm, James Stroud <[EMAIL PROTECTED]> wrote:
>> Mark Summerfield wrote:
>>> - If an item is inserted it is put in the right place (because the
>>> underlying data structure, b*tree, skiplist or whatever is
>>> intrinsically ordered by < on the key)
>> +1 for all y
Howdy!
I notice that the PIL has trouble playing with the DPI of other programs and
image standards: when I create a file with Paint Shop Pro or Photoshop, the PIL
routines can't properly recognize the DPI. And when I create an image file
(via the save method) of PIL, setting the DPI, those sa
In article <[EMAIL PROTECTED]>,
Alex Martelli <[EMAIL PROTECTED]> wrote:
>Chris Mellon <[EMAIL PROTECTED]> wrote:
>>
>> and I'll punch a kitten before I accept having to read
>> Python code guessing if something is a global, a local, or part of
>> self like I do in C++.
>
>Exactly: the technical o
Cameron Laird wrote:
> There are a LOT more possibilities one might pursue, depending
> on the details of Mr. Teterin's intent.
The reason I began wondering about this is that I like a particular
image-gallery generating tool called `imageindex'
(http://www.edwinh.org/imageindex/)
Unfortunately,
Amer Neely wrote:
> I'm a complete newbie with Python, but have several years experience
> with Perl in a web environment.
>
> A question I have, if someone here is familiar with Perl, does Python
> have something like Perl's 'here document'? I've just searched and read
> some postings on gener
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
a
>12.3
print '%0.2f' % a
>12.33
a = 1
print '%0.2f' % a
>1.00
>>> '%.2f' % 1
'1.00'
--
Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/
"Many customs in this life per
Michael R. Copeland wrote:
>Yes, I could fire up the interactive mode and play with some
> statements...but I consider that sort of thing for programming neophytes
> or experimenting with specific issues.
The interactive interpreter is *the fastest* way to learn, expert,
novice, or somewhe
En Thu, 13 Sep 2007 08:43:11 -0300, Ryan Ginstrom <[EMAIL PROTECTED]>
escribi�:
>> On Behalf Of Fabio Zadrozny
>> Makes sense... Do you think that creating a new object,
>> setting it as sys.stdout and overriding its write() method to
>> check for a unicode string to do
>> original_stdout.write(
En Thu, 13 Sep 2007 08:08:39 -0300, Fabio Zadrozny <[EMAIL PROTECTED]>
escribi�:
>>
>> But I don't think it's a good idea. Changing the default encoding will
>> change it for *all* scripts, *all* users, *all* objects. And AFAIK you
>> have trouble ONLY with sys.std* - one should fix those object
En Thu, 13 Sep 2007 23:50:39 -0300, Gary Bloom <[EMAIL PROTECTED]>
escribi�:
> I notice that the PIL has trouble playing with the DPI of other programs
> and image standards: when I create a file with Paint Shop Pro or
> Photoshop, the PIL routines can't properly recognize the DPI.
Do you m
> On Behalf Of Gabriel Genellina
> You should check that obj is an unicode object before calling
> encode.
> Strings should not be encoded.
...
> __getattr__ is only called when the attribute has NOT been
> found in the usual way, so checking for "write" is
> unnecesary. Just return getattr(se
On 9/13/07, Carsten Haese wrote:
>Your module C code uses an unknown function by the name of PyBuildValue.
>The actual name of the function you mean is Py_BuildValue.
Thank you so much, Carsten. I can't believe I missed that underscore! I'm
posting the working code below in case it ever turns out
On Sep 13, 4:59 pm, [EMAIL PROTECTED] (Michael R. Copeland) wrote:
>Yes, I could fire up the interactive mode and play with some
> statements...but I consider that sort of thing for programming
> neophytes or experimenting with specific issues.
To misquote Francis Bacon, "you would have fis
> If you look at the thread "parameter list notation" from ten days or so
> ago, TheFlyingDutchman has forked Python and is working on a very special
> new language, PIEthun 3.01B.
> I for one am looking forward to seeing all
> the very special features of PIEthun.
It will be named PIEthun 3000 as
Lamonte Harris wrote:
> http://www.powells.com/biblio/63-9780596001889-7 Used, has anyone read
> this book. Any additional information that you like,dislike about this
> book? [I like having real books and stead of ebooks because its better
> on the eyes.] Should be her 2morrow Afternoon :),
Greetings all,
I'm trying to work out when using a format specifier I get spaces in the
resulting string. Eg. Looking at the outputted string you can see that
there are spaces after T5LAT, F4LAT etc. as I result from trying to keep the
code aligned
Does anyone have any insights in how to
Hello,
I've been using Python for some DES simulations because we don't need
full C speed and it's so much faster for writing models. During
coding I find it handy to assign a variable *unless it has been
already assigned*: I've found that this is often referred to as "once"
assigment.
The best
Hey
I have this pythonapp I'm trying to pack, and I've read in the Gnome
specifications that I should run "update-icon-cache" after install, in
order to get the menus and stuff correctly updated.
Is there a way to specify a (list of) commands to be run after
installation?
--
http://mail.python
"Bjoern Schliessmann" <[EMAIL PROTECTED]> wrote
in message news:[EMAIL PROTECTED]
|> - only functions being attributes of a class...
|What, IYHO, is the difference between a method and a function?
A method is a function accessed as an attribute of a class or instance.
As an object type, it is a
This is one of the things that I often see people trying to do in
Python, where the best solution is simply to understand how Python
works and craft the code to work with the language. The problem, in my
view, is not that you don't have a good way to do this "once
assignment" operation, but that yo
Hey watchout IT related News and Blog on www.itnewz.net
--
http://mail.python.org/mailman/listinfo/python-list
In message <[EMAIL PROTECTED]>, Lorenzo Di
Gregorio wrote:
> During coding I find it handy to assign a variable *unless it has been
> already assigned*: I've found that this is often referred to as "once"
> assigment.
Why not just assign to it once at the beginning and be done with it?
--
http:/
On Sep 14, 1:50 am, James Stroud <[EMAIL PROTECTED]> wrote:
> Rodney Maxwell wrote:
> > The following are apparently legal Python syntactically:
> >L[1:3, 8:10]
> >L[1, ..., 5:-2]
>
> > But they don't seem to work on lists:
> l = [0,1,2,3]
> l[0:2,3]
> > Traceback (most recent cal
101 - 189 of 189 matches
Mail list logo