None is a valid value for io.TextIOBase.encoding, then why is it not a valid
value for bytes.encode()?
Regards,
Rocco
--
https://mail.python.org/mailman/listinfo/python-list
k, but having a Setup file working would never produce merge
conflicts.
What am I doing wrong?
Rocco
--
http://mail.python.org/mailman/listinfo/python-list
On May 16, 4:27 pm, "inhahe" <[EMAIL PROTECTED]> wrote:
> >>> a = 1
> >>> b = eval("a")
> >>> b
> 1
> >>> a =1
> >>> b = globals()["a"]
> >>> b
> 1
> >>> a =1
> >>> b = locals()["a"]
> >>> b
>
> 1<[EMAIL PROTECTED]> wrote in message
>
> news:[EMAIL PROTECTED]
>
> > Is there any function which will
Is there any function which will return a variable by passing to it
the string containing the variable's name? Something like this for
instance:
foo = some_function("foo")
or perhaps it's a dictionary. I don't know, but I would really like to
find out how it can be done. I guess it is achievable.
> Anyway, if you have a blocking operation, the only solution is to use
> a thread or a separate process.
>
> Michele Simionato
That's what I thought. It was in fact rather obvious, but I wanted to
be sure that I hadn't overlooked some arcane possibility (ex. with the
use of exceptions or somet
I would really like to know more about python 2.5's new generator
characteristics that make them more powerful and analogous to
coroutines. Is it possible for instance to employ them in situations
where I would normally use a thread with a blocking I/O (or socket)
operation? If it is, could someone
I'm using the Python processing module. I've just run into a problem
though. Actually, it's a more general problem that isn't specific to
this module, but to the handling of Unix (Linux processes) in general.
Suppose for instance that for some reason or another, after forking
several child processe
I'm employing xmlrpclib for a project at work, and I must say that I'm
quite impressed with its effectiveness and ease of use.
However, I was recently doing some tests when I realized that if the
server was down, the client quite simply hanged (no use of "try ...
except" here) with no error or tra
On Jan 7, 12:09 am, GHZ <[EMAIL PROTECTED]> wrote:
> Had the same issue. What you want is: reload()
Thanks :)
--
http://mail.python.org/mailman/listinfo/python-list
Tinkering with Python I find myself often writing scripts and then
experimenting with the interactive interpreter, which is really a cool
way to learn a language. However, when, after loading a module with
import
or
from module import *
and using it, I make a change to the module file, the cha
I was having a real hard time trying to accomplish something. I
couldn't find a way to automatically connect the "close" button
(clicked signal) of a GUI app I was working on, to the gtk.main_quit()
function. I had entered this handler directly with the GLADE-3
designer (I DON'T WANT TO USE A DICTI
I'm using IDLE for my Python programming. I can't seem to solve one
issue though. Whenever I try to indent a region of code, I simply
select it and hit the tab key, as I usually do in most editors, like
GEdit or Geany on Linux, for instance, and it works fine. But, if I
try to unindent a region of
I was wondering how and if it's possible to write a loop in python
which updates two or more variables at a time. For instance, something
like this in C:
for (i = 0, j = 10; i < 10 && j < 20; i++, j++) {
printf("i = %d, j = %d\n", i, j);
}
So that I would get:
i = 0, j = 0
i = 1, j = 1
i = 2
I was wondering how and if it's possible to write a loop in python
which updates two or more variables at a time. For instance, something
like this in C:
for (i = 0, j = 10; i < 10 && j < 20; i++, j++) {
printf("i = %d, j = %d\n", i, j);
}
So that I would get:
i = 0, j = 0
i = 1, j = 1
i = 2
Thanks Serge.
It's a gzip string.
So the code is
>>> import urllib2
>>> def takefeed(url):
request=urllib2.Request(url)
request.add_header('User-Agent', 'Mozilla/4.0 (compatible; MSIE
5.5;Windows NT')
opener = urllib2.build_opener()
data=opener.open(request).read()
Also with ascii the function does not work.
--
http://mail.python.org/mailman/listinfo/python-list
This is the problem when I run the function
this is the result from 2.3.5
>>> print rss
http://purl.org/atom/ns#";>NFE/1.0Google
News Italiahttp://news.google.it/"/>Google News
ItaliaGoogle
Inc.[EMAIL PROTECTED]©2006
Google2006-05-28T19:09:13+00:00
Benedetto XVI: Wojtyla santo subito - LibertÃ
hi
I made the upgrade to python 2.4.3 from 2.4.2.
I want to take from google news some atom feeds with a funtion like
this
import urllib2
def takefeed(url):
request=urllib2.Request(url)
request.add_header('User-Agent', 'Mozilla/4.0 (compatible; MSIE 5.5;
Windows NT')
opener
here you'll find it in svn.
http://trac.defuze.org/browser/oss
--
http://mail.python.org/mailman/listinfo/python-list
Alexander Schmolck wrote:
> I wanted to point
> out that one could with just as much justification claim CL to be more dynamic
> than python (it is in some regards, but not in others -- how to weight them to
> achieve some overall "score" is not obvious.
I think it's worth pointing out that not a
[EMAIL PROTECTED] wrote:
> Hi,
> I'm trying to open a Netcdf file using NetcdfFile but I always get an
> import error DLL failed
> even though I've tried using all these:
>
> import Numeric
> from Scientific.IO.NetCDF import NetCDFFile
> from Scientific.IO import NetCDF
> from Scientific import *
Max wrote:
> But today we were discussing the problem of running externally-provided
> code (e.g. add-on modules). Neither of us knew how to do it in C, though
> I suggested using DLLs. However, I quickly installed python on his
> laptop and coded this:
>
> exec "import %s as ext_mod" % raw_in
Steve Holden wrote:
> fraca7 wrote:
>
>> The memory allocation for integers is optimized. 'Small' integers
>> (between -5 and 100 IIRC) are allocated once and reused. The memory
>> for larger integers is allocated once and reused whenever possible, so
>> the malloc() overhead is negligible.
>
Steven D'Aprano wrote:
> Anybody using Python *should* be aware of the division issue. As soon as
> they see a division, it is their responsibility to *find out what it
> means*. That doesn't require much work: they can scroll up to the
> beginning of the module and look at the first few lines. Th
Gregory Piñero wrote:
> On 14 Feb 2006 06:44:02 -0800, [EMAIL PROTECTED]
>
>
>>5./2.=2.5 is floating point math, with all the round off errors that
>>incorporates.
>
> Thanks Curtis, I never knew that trick. I guess for variables do have
> true division you have to make them floats? e.g.
> flo
Erik Max Francis wrote:
> If a 4-tuple is a quadruple, a 3-tuple is a triple, a
> 2-tuple is an pair, then I guess a 1-tuple would be a single. Granted
> that's not nearly as gruesome enough a name to go with the special
> lopsided Pythonic creature mentioned above. I suggest we name it a
> h
Simon Faulkner wrote:
> Pardon me if this has been done to death but I can't find a simple
> explanation.
>
> I love Python for it's ease and speed of development especially for the
> "Programming Challenged" like me but why hasn't someone written a
> compiler for Python?
>
> I guess it's not
JerryB wrote:
> Hi,
> I have a dictionary, a string, and I'm creating another string, like
> this:
>
> dict = {}
> dict[beatles] = "need"
> str = "love"
>
> mystr = """All you %(dict[beatles])s is %(str)s""" % locals()
>
> Why do I get
> keyerror: 'dict[one]'?
>
> Is there a way to reference th
Ivan Voras wrote:
> It's not a far-out idea. I stumbled about a year ago on a programming
> language that INSISTED on unicode characters like ≤ as well as the rest
> of mathematical/logical symbols; I don't remember its name but the
> source code with characters like that looked absolutely beau
Paul Boddie wrote:
> With the nice font they've used, I don't understand why they didn't
> turn the "p" into a snake itself. I'm sure I've seen that done
> somewhere before.
You're probably thinking of PyPy:
http://codespeak.net/pypy/dist/pypy/doc/news.html
--
http://mail.python.org/mailman/lis
Mr.Rech wrote:
> All in all it seems that the implementation that uses isinstance() is
> better in this case...
Well what's "better" depends on what you want to happen when you compare
an unrelated class that also defines 'an_attribute'. Unlike in
statically typed languages, certain things are m
Peter Maas wrote:
> - The logo does indeed resemble a cross. How about rotating it at 45 deg
> to make it look like an x? Or give it a circular shape? Please note
> that there are no religious motives in this remark :)
It looks like a plus sign to me. Do you also advocate renaming "C++" to
"
Dave Benjamin wrote:
> On Thu, 26 Jan 2006, Mr.Rech wrote:
>
>> Suppose I'm writing a base class with an __eq__ special methods, using
>> isinstance() I would have wrote:
>>
>> class foo(object):
>>...
>>def __eq__(self, other):
>> return isinstance(other, type(self)) and self.an_at
Terry Hancock wrote:
> One thing that I also think would be good is to open up the
> operator set for Python. Right now you can overload the
> existing operators, but you can't easily define new ones.
> And even if you do, you are very limited in what you can
> use, and understandability suffers.
Robert Kern wrote:
> Rocco Moretti wrote:
>
> [James Stroud wrote:]
>
>>>>>I can't find "?, ?, or ?" on my keyboard.
>>
>>Posting code to newsgroups might get harder too. :-)
>
>
> His post made it through fine. Your newsreader
Giovanni Bajo wrote:
> Robert Kern wrote:
>
>
>>>I can't find "?, ?, or ?" on my keyboard.
Posting code to newsgroups might get harder too. :-)
--
http://mail.python.org/mailman/listinfo/python-list
Antoon Pardon wrote:
> Well we could have list(a) return [a], and have a list_from_iterable.
> Although I would prefer a different name.
Or reverse it - list() always takes a single iterable, and
list_from_scalars() is defined something like follows:
>>> def list_from_scalars(*args):
retu
Alex Martelli wrote:
> Terry Hancock <[EMAIL PROTECTED]> wrote:
>...
>
>>due to the Evil Conspiracy of region-coding, I couldn't
>>watch the British DVD even if I were to import it (Well,
>>yeah I could, but it would be painful, and probably illegal,
>
>
> I have a region-free DVD player her
Johannes Zellner wrote:
> Hi,
>
> can I make an object read-only, so that
>
> x = new_value
>
> fails (and x keeps it's orginal value)?
Simon gave you a way of doing it when x is an attribute access (e.g.
p.x). I am unaware of a way of doing it when x is a straight global or
local. Unlike
LordLaraby wrote:
> If 'bankers rounding' is HALF_ROUND_EVEN, what is HALF_ROUND_UP? I
> confess to never having heard the terms.
There was a Slashdot article on rounding a short while back:
http://developers.slashdot.org/article.pl?sid=06/01/05/1838214
--
http://mail.python.org/mailman/listinfo
Roy Smith wrote:
> Steve Holden <[EMAIL PROTECTED]> wrote:
>
>>http://beta.python.org
>
> All I can say is, "Wow!". If nothing else, it will forever eliminate the
> idea that the web site doesn't look professional. It's almost *too* slick.
I agree with the "too slick" impression. The "learn w
Max wrote:
> Harlin Seritt wrote:
>
>> How can I take a time given in milliseconds (I am doing this for an
>> uptime script) and convert it to human-friendly time i.e. "4 days, 2
>> hours, 25 minutes, 10 seonds."? Is there a function from the time
>> module that can do this?
>>
>> Thanks,
>>
>> Ha
Riko Wichmann wrote:
> hi everyone,
>
> I'm googeling since some time, but can't find an answer - maybe because
> the answer is 'No!'.
>
> Can I call a function in python inline, so that the python byte compiler
> does actually call the function, but sort of inserts it where the inline
> call
Damien Wyart wrote:
> * Efrat Regev <[EMAIL PROTECTED]> in comp.lang.python:
>
>>Suppose I have some non-numerical Foo and would like to create a list
>>of 20 Foo-s. Is there a one-step method (not a loop) of doing so?
>
>
> Maybe :
>
> [ Foo ] * 20
>
> or, more verbose,
>
> [ Foo for _ in ra
Rocco Moretti wrote:
> Damien Wyart wrote:
>
>> * Efrat Regev <[EMAIL PROTECTED]> in comp.lang.python:
>>
>>> Suppose I have some non-numerical Foo and would like to create a list
>>> of 20 Foo-s. Is there a one-step method (not a loop) of doing so?
>&
rbt wrote:
> The TV show on NBC in the USA running this week during primetime (Deal
> or No Deal). I figure there are roughly 10, maybe 15 contestants. They
> pick a briefcase that has between 1 penny and 1 million bucks and then
> play this silly game where NBC tries to buy the briefcase from
Jack Diederich wrote:
> On Wed, Dec 21, 2005 at 01:36:42PM -0500, rbt wrote:
>
>>Alex Martelli wrote:
>>
>>>I don't think there was any official announcement, but it's true -- he
>>>sits about 15 meters away from me;-).
>>
>>For Americans: 15 meters is roughly 50 feet.
>
>
> Right, so that is ab
[EMAIL PROTECTED] wrote:
> Chris Mellon wrote:
>
>>Any time you want to write something in any way other than the obvious
>>way, ask yourself why? Is it more obvious *to you*, which is a good
>>reason as long as you're only writing code for yourself? Or is it just
>>to be different, or because you
[EMAIL PROTECTED] wrote:
thisisastring = "1"
thisisanint = 1
type(thisisastring)
>
>
>
type(thisisanint)
>
>
>
thisisastring = int(thisisastring)
thisisanint = str(thisisanint)
type(thisisastring)
>
>
>
type(thisisanint)
>
>
>>> print repr(thisisastring)
Fredrik Lundh wrote:
> Rocco Moretti wrote:
>
>
>>Insert punctuation & capitalization to make the following a correct and
>>coherent (if not a little tourtured).
>>
>>fred where guido had had had had had had had had had had had a better
>>effect on the
>>>One of my favourite examples of obfuscated English is this grammatically
>>>correct sentence:
>>>
>>>"Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo."
>
> The punctuation is important.
Reminds me of this old classic:
Insert punctuation & capitalization to make the following
A.M. Kuchling wrote:
> There's another struggle within the LibRef: is it a reference or a
> tutorial? Does it list methods in alphabetical order so you can look
> them up, or does it list them in a pedagogically useful order? I
> think it has to be a reference; if each section were to be a tutor
josh wrote:
>
> hello,
>
> i am interested in doing an undergraduate major in computer science
> that mainly focuses on python as a programming language..
It's your life, so you can live it as you choose, but I think you're
missing the point of an undergraduate education if you focus too much o
Fredrik Lundh wrote:
> Rocco Moretti wrote:
>
>>>>I'm sure Antoon wouldn't object if lists were to be allowed as
>>>>dictionary keys, which would eliminate the multiple castings for
>>>>that situation. I wouldn't, either.
>>
Fredrik Lundh wrote:
> Rick Wotnaz wrote:
>
>
>>I'm sure Antoon wouldn't object if lists were to be allowed as
>>dictionary keys, which would eliminate the multiple castings for
>>that situation. I wouldn't, either.
>
> so what algorithm do you suggest for the new dictionary im-
> plementation?
mojosam wrote:
> I've been watching the flame war about licenses with some interest.
> There are many motivations for those who participate in this sector, so
> disagreements over licenses reflect those agendas.
One point that frequently gets ignored in licensing debates:
The value of a license i
Steven D'Aprano wrote:
> On Fri, 25 Nov 2005 11:30:46 -0800, mojosam wrote:
>
>>I guess I don't care too much about how other people use it.
>
> Then probably the best licence to use is just to follow the lead of
> Python. For that sort of small program of limited value, I put something
> like th
tim wrote:
> ok, but if i do
>
> >>> n=66
> >>> m=hex(n)
> >>> m
> '0x42'
> >>> h=int(m,16)
> >>> h
> 66
> >>>
>
> I end up with 66 again, back where I started, a decimal, right?
> I want to end up with 0x42 as being a hex value, not a string, so i can
> pas it as an argument to a function
[EMAIL PROTECTED] wrote:
> There is problaly a really simple answer to this, but why does this
> function print the correct result but return "None":
>
> def add(x, y):
> if x == 0:
> print y
> return y
> else:
> x -= 1
> y += 1
> add(x, y)
>
> prin
Pierre Barbier de Reuille wrote:
> Rocco Moretti a écrit :
> [...]
>
>>
>>I did, but I still don't see why it is an argument against using
>>strings. The point you may not appreciate is that (C)Python already uses
>>strings to represent names, as an important
Björn Lindström wrote:
> Steven D'Aprano <[EMAIL PROTECTED]> writes:
>
>
>>Why does the byte string "\x6f\x70\x65\x6e\x65\x64" have intrinsic
>>meaning when the int 0 doesn't? It certainly doesn't mean anything to
>>non-English speakers.
>>
>>If all you want is human readable byte strings, then j
marduk wrote:
> On Tue, 2005-11-15 at 11:01 -0800, py wrote:
>
>>I have function which takes an argument. My code needs that argument
>>to be an iterable (something i can loop over)...so I dont care if its a
>>list, tuple, etc. So I need a way to make sure that the argument is an
>>iterable befo
Pierre Barbier de Reuille wrote:
> Please, note that I am entirely open for every points on this proposal
> (which I do not dare yet to call PEP).
I still don't see why you can't just use strings. The only two issues I
see you might have with them are a) two identical strings might not be
identi
[EMAIL PROTECTED] wrote:
> Rocco Moretti wrote:
>
>>It's also a testament to the limited value of physically locating people
>>by internet addresses - If you zoom in on the San Fransico bay area, and
>>click on the southern most bubble (south of San Jose), you'l
Paul McGuire wrote:
> "Claire McLister" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> We've been working with Google Maps, and have created a web service to
> map origins of emails to a group. As a trial, we've developed a map of
> emails to this group at:
>
> http://www.zees
[EMAIL PROTECTED] wrote:
> i m losing my motivation with python because there are sooo many
> modules, that i cant just learn them all,
As other's have said, don't bother.
If you ever need to use a module that you don't know, just go to
http://docs.python.org/lib/lib.html (easily accessable fr
Alex Martelli wrote:
> The Eternal Squire <[EMAIL PROTECTED]> wrote:
>...
>
>>2) Consider what he really wants for a supervisor of software
>>engineers. Ideally such a person should be a software engineer with
>>at least 3 times the experience of the most junior member. Such a
>
>
> I li
n always reply to the original
post, or reply to one, and just treat the topics from all of them.)
> 2) Rocco Morreti wrote:
First off, let me say that my message wasn't meant to scare you off - it
was constructive criticism, appraising you of what would be necessary if
you actually want
[EMAIL PROTECTED] wrote:
> So the first thing you do when you go to a web page is to google if
> they are going to redesign it?
I think the implication was "The first thing to do before *suggesting
that a redesign is nessasary* is to Google to see if such a redesign is
taking place."
--
http://
Sori Schwimmer wrote:
> Hi,
>
> I think that would be useful to have an improved
> version of the "try" statement, as follows:
>
> try(retrys=0,timeout=0):
> # things to try
> except:
> # what to do if failed
>
> and having the following semantic:
>
> for i in range(retrys):
> try:
>
James Stroud wrote:
> I propose that any time anyone suggests switching to Windows, the reasons for
> such should be explicitly described, and not left to interpretation.
I propose that any time anyone suggests switching to Linux ...
I propose that any time anyone suggests switching to Mac ...
I
Laszlo Zsolt Nagy wrote:
> Laszlo Zsolt Nagy wrote:
>
>> I have a program with this code fragment:
>>
>>print len(data)
>>print data[:50]
>>raise SystemExit
>>
>> This prints:
>>
>> 20381
>> >
>> But if I change 50 to 51
>>
>>print len(data)
>>print data[:51]
>>raise System
Duncan Smith wrote:
> Steve Holden wrote:
>
>>There are special rules for the monarchs, who are expected to refer to
>>themselves in the first person plural.
>>
>
> Yes, although I'm not actually sure where the 'royal we' comes from;
I was under the (probably misinformed) impression that since
Steve Holden wrote:
>> On Fri, 07 Oct 2005 00:33:43 -, Grant Edwards <[EMAIL PROTECTED]>
>> wrote:
>>> For example: In British English one uses a plural verb when the
>>> subject consists of more than one person. Sports teams,
>>> government departments, states, corporations etc. are gramma
Roel Schroeven wrote:
> Peter Decker wrote:
>
>>On 10/3/05, Roel Schroeven <[EMAIL PROTECTED]> wrote:
>>
>>On lists like this, where everyone benefits by sharing information, it
>>seems pretty lame to hide behind purist arguments about Reply-To:
>>headers. The default behavior should be the one mo
Reinhold Birkenfeld wrote:
> Hi,
>
> after Guido's pronouncement yesterday, in one of the next versions of Python
> there will be a conditional expression with the following syntax:
>
> X if C else Y
Any word on chaining?
That is, what would happen with the following constructs:
A if B else C
Paul Rubin wrote:
> I don't know of a single program that's actually relying on the
> non-enforcement. I've asked for examples but have only gotten
> theoretical ones. As far as I can tell, the feature is useless.
I'd like to turn the question around on you - can you come up with an
instance w
Antoon Pardon wrote:
>>What if the class author removes a non-private variable or changes a
>>method's documented parameters in the next version of the class, because
>>he think it'll work better, or just because he can?
>
> Changing an interface is different from changing the implementation.
fraca7 wrote:
> Richie Hindle a écrit :
>
>> [Peter]
>>
>>> http://www.pick.ucam.org/~ptc24/yvfc.html
>>
>>
>>
>> [Jeff]
>>
>>> Yuma Valley Agricultural Center?
>>> Yaak Valley Forest Council?
>>
>>
>>
>> I went through the same process. My guess is "Yes, Very F'ing Clever."
>> Peter?
>>
>
> pri
[EMAIL PROTECTED] wrote:
> On Fri, 30 Sep 2005 00:16:02 +1000
> Steven D'Aprano wrote:
>
>>Say you have written a class, with a private variable. I decide that I
>>need access to that variable, for reasons you never foresaw.
>
> What if the access to that variable was forbidden for reasons you ne
[EMAIL PROTECTED] wrote:
> So how do I define the function such as to discrimate wheter I call it by
> f(a1) or f(a2) ?
I don't want to sound rude, but I think you'll be better served by
telling us why you would want to do such a thing - ten to one someone
can suggest a better way to acomplish
Paul Dale wrote:
>
> Hi everyone,
>
> I'm writing an exception that will open a trouble ticket for certain
> events. Things like network failure. I thought I would like to have it
> only open a ticket if the exception is not caught. Is there a way to do
> this inside the Exception? As far as I
Terry Reedy wrote:
> But that, I admit, would be an invalid conclusion. And that, I claim, is
> also invalid when 'iteration' and 'recursion' are reversed, no matter how
> often repeated in texts and articles. The difference is between the
> algorithms, not the differing syntactic expressions
Rubinho wrote:
> I can't imagine one being much faster than the other except in the case
> of a huge list and mine's going to typically have less than 1000
> elements.
To add to what others said, I'd imagine that the technique that's going
to be fastest is going to depend not only on the lengt
[EMAIL PROTECTED] wrote:
> On Tue, 06 Sep 2005 12:19:21 +0200
> Torsten Bronger wrote:
>
>
>>"talin at acm dot org" <[EMAIL PROTECTED]> writes:
>>
>>>Anyway, here's an example, then, of how 'def' could be used:
>>>
>>>add = def( a, b ):
>>> return a + b
>>
>>I'm really not an expert in function
Colin J. Williams wrote:
> Rocco Moretti wrote:
>
>> Terry Hancock wrote:
>>
>>> On Thursday 01 September 2005 07:28 am, Fuzzyman wrote:
>>>
>>>> What's the difference between this and ``isinstance`` ?
>>>
>>> I must confess t
Terry Hancock wrote:
> On Thursday 01 September 2005 07:28 am, Fuzzyman wrote:
>
>>What's the difference between this and ``isinstance`` ?
>
> I must confess that an "isa" operator sounds like it would
> have been slightly nicer syntax than the isinstance() built-in
> function. But not enough nic
wen wrote:
> due to the work reason, i have to learn python since last month. i have
> spent 1 week on learning python tutorial and felt good. but i still don't
> understand most part of sourcecode of PYMOL(http://pymol.sourceforge.net/)
> as before.
Well, last time I checked, a good chunk of PyMo
Steve Holden wrote:
> Every page of the docs links to "About this document", which contains
> the following: """If you are able to provide suggested text, either to
> replace existing incorrect or unclear material, or additional text to
> supplement what's already available, we'd appreciate the
[EMAIL PROTECTED] wrote:
> I have a java program in a package called 'cmd'. This of course
> conflicts with the builtin python package of the same name. The thing
> is, I need to be able to import from both of these packages in the same
> script. I can import either one first, but any future attemp
Simon Brunning wrote:
> On 8/15/05, Terry Hancock <[EMAIL PROTECTED]> wrote:
>
>>On Monday 15 August 2005 09:54 am, Simon Brunning wrote:
>>
>>>If you call its code, it's a library. If it calls yours, it's a framework.
>>
>>Such concision deserves applause. ;-)
>
>
> Thank you. ;-)
>
> As other
Simon Brunning wrote:
> On 8/15/05, Rocco Moretti <[EMAIL PROTECTED]> wrote:
>
>>Which lead me to the question - what's the difference between a library
>>and a framework?
>
>
> If you call its code, it's a library. If it calls yours, it's a fra
Cameron Laird wrote:
> Andy Smith rails against "frameworks":
> http://an9.org/devdev/why_frameworks_suck?sxip-homesite=&checked=1
>
Slapdash Summary: Libraries good, frameworks bad - they are a
straightjackets and limit sharing.
Which lead me to the question - what's the dif
Christopher Subich wrote:
> Rocco Moretti wrote:
>
>> Variables in Python are names. They aren't the cubbyholes into which
>> you put values, they are sticky notes on the front of the cubby hole.
>
>
> +1 MOTW (Metaphor of the Week)
Thanks, but please note it&
Dennis Lee Bieber wrote:
> On Tue, 09 Aug 2005 10:39:29 -0500, Rocco Moretti
> <[EMAIL PROTECTED]> declaimed the following in comp.lang.python:
>
>
>>Change it to "the object referenced by y is assigned to the name of x",
>>and you're closer to th
Gregory Piñero wrote:
> Ahh, so it's a mutable thing. That makes sense that I can't change a
> mutable object and thus can't affect it outside of the function.
If you meant "immutable" for the second mutable, you're right.
> Does
> that mean Python functions aren't always byref, but are someti
Christopher Subich wrote:
> Gregory Piñero wrote:
>
>> Hey guys, would someone mind giving me a quick rundown of how
>> references work in Python when passing arguments into functions? The
>> code below should highlight my specific confusion:
This URL is always tossed out:
http://starship.pytho
Adriano Varoli Piazza wrote:
> As far as I recall from Math Analysis, which I studied two months ago,
> you can't sort complex numbers. It makes no sense. The reason being
> (reading from my book), it's not possible to define an order that
> preserves the properties of arithmetical operations o
Asad Habib wrote:
> Well, even if you are a hobbyist, that does not excuse you from being
> civil. After all, we are all humans beings that deserve to be treated with
> respect. Professional, hobbyist, vagabond, ogre, instigator, troll ...
> THERE IS NO EXCUSE ... please treat others with respect.
Asad Habib wrote:
> I agree with Mustafa. After all, we are a bunch of professionals and not
> vagabonds hired to take pot shots at one another.
Except that we're not all professionals. There are a large number of
hobbyists who use Python and this list.
At any rate, my suggestion was not to fors
1 - 100 of 168 matches
Mail list logo