.
Cheers
Jeremy
--
http://mail.python.org/mailman/listinfo/python-list
Thought I'm not sure (and don't have time to test) I'd guess it's
because you haven't explicitly called the __init__ method chain.
i.e., B calls A, C calls B, etc.
This is probably where the actual data gets pulled into scope.
On Wed, 2005-07-27 at 12:44 +0530, km wrote:
> Hi all,
>
> In the fo
Ignore my last response; just read it fully and realized how dumb my
response was. :)
On Wed, 2005-07-27 at 12:44 +0530, km wrote:
> Hi all,
>
> In the following code why am i not able to access class A's object attribute
> - 'a' ? I wishto extent class D with all the attributes of its base cla
I wrote something real quick this morning that I thought might be
somewhat useful to someone else. It's just a bash script that lets you
do a few things do a "project directory" (in my case, python subversion
projects) in a decently sensible way. Usage is:
# cp pypadmin MyProjectDir/pypadmin
# ./p
On Wed, 2005-07-27 at 00:36 -0700, Frank Millman wrote:
> Hi all
>
> This is not strictly a Python question, but this newsgroup feels like a
> family to me, so I hope that someone will be kind enough to respond to
> this, or at least point me in the right direction.
>
> While developing under lin
Call the gtk.Widget method queue_draw(); if you derive from DrawingArea
then simply:
self.queue_draw()
Of if the DrawingArea is some kind of "has-a" member:
self.DrawableThing.queue_draw()
On Thu, 2005-07-28 at 02:52 -0700, ch424 wrote:
> Hi,
>
> Does anybody know the fastest way to trigger a
> He spends so much space on "Create Consistent Command-Line Interfaces,"
> a section that, in Python, could be replaced with a simple "Use optparse."
Haha... I don't know why but that really made me laugh. :) Might even
use it as a sig or something... :)
> --
> Michael Hoffman
--
http://ma
On Fri, 2005-07-29 at 17:59 +0200, Torsten Bronger wrote:
> Hallöchen!
>
> Michael Hoffman <[EMAIL PROTECTED]> writes:
>
> > Dark Cowherd wrote:
> >
> >> GUI, Web development, Application Framework - it is shambles.
> >
> > Yeah, I agree. When I finally make that GUI application I still
> > don't
On Fri, 2005-07-29 at 14:19 -0300, Jorge Godoy wrote:
> Jeremy Moles wrote:
>
> > Four?
> >
> > 1. wx
> > 2. PyGTK
> > 3. Tk (Are you including this one even?)
> > 4. ???
>
> PyQt / PyKDE.
Ah! Can't believe I forgot that one! :)
> >
Just a quick question before I waste time doing something that will
immediately be disregarded as unacceptable code... :)
When using the C API and writing extension modules, how do you normally
pass a structure up into the python module? For instance, if I have a
structure:
typedef struct Foo {
Hmmm--I would also be interested in knowing the answer to this. I get
the exact same behavior as the OP (probably because it's the intended
behavior?)
On Tue, 2005-08-09 at 14:38 -0700, J wrote:
> Hi,
>
>
> I am trying to add new data attributes to my extension classes from
> within a script. I
I am mostly done with writing an extension module in C that wraps (and
makes easier) interfacing with libiw (the library that powers iwconfig,
iwlist, and friends on Linux). We're using this internally for a tool to
manage wireless connectivity. This is a million times better than
hundreds of invoc
def debug(s):
print "s"
exec(s)
The line thing i'm not so sure about. Er. Hmmm.
On Thu, 2005-08-11 at 14:04 -0700, Rex Eastbourne wrote:
> Hi all,
>
> I've written the following simple macro called debug(aname, avalue)
> that prints out the name of an expression and its value:
>
st otherwise. See
http://psyco.sourceforge.net/psycoguide/req.html
Maybe you could recompile your python in 32 bit mode. You may find that
native 64 bit python is faster than 32 bit psyco however!
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
When I add an object created locally to a mapping or sequence (that will
be returned from a function into an running instance of the Python
interpreter), I need to call Py_DECREF on the object, right?
Unfortunately, I really feel like the following code leaks memory...
--- for example ---
PyObjec
If you want to get crazy you can poll() on one of the evdev nodes
(/dev/input/event*) and behave accordingly. I do this in a C application
we use to do the exact same thing you're talking about.
Each successful read from the device returns a 16-byte input_event
struct (or similar, I'm going from
I honestly don't know the answer to this and I am entirely guessing
but--does it work without using the new module? That is:
import _test
class Foo:
pass
foo = Foo()
foo.bar = _test.func2
foo.bar()
On Thu, 2005-08-18 at
necessity of X keyword or Y function or Z
module. Convenience - probably. Necessity - no.
>in the
>news-group as long as they are the principle keywords distinguished from
>the conventional languages like c/c++, pascal, etc.
>
>-James
>
>
So, if you have a question that's in line with Robert's advice, please
post it and it will have a much higher chance of getting answered. I
sincerely hope this helps.
Jeremy Jones
--
http://mail.python.org/mailman/listinfo/python-list
Diez B. Roggisch wrote:
>Kevin McGann wrote:
>
>
>>-Expert Java or C++
>>
>>
>
>Now why exactly do you post that in c.l.python?
>
>
>
>>THEY ARE LOCATED IN NEW YORK, THIS IS FULL-TIME ONLY, WILL NOT CONSIDER
>>ANYONE FROM OUTSIDE THE US! THIS TEAM IS AN ELITE TEAM, YOU BETTER BE
>>GOOD
Christopher DeMarco wrote:
>Hi all...
>
>...I've got a Python script running on a bunch of boxen sharing some
>common NFS-exported space. I need (not want :) to lock files for
>writing, and I need (not want :) to do it safely (i.e. atomically).
>I'm doing this in Linux; NFS4 is available. As I u
John Brawley wrote:
>Greetings, all.
>I have a program I'm trying to speed up by putting it on a new machine.
>The new machine is a Compaq W6000 2.0 GHz workstation with dual XEON
>processors.
>I've gained about 7x speed over my old machine, which was a 300 MHz AMD
>K6II, but I think there ought t
Paul Rubin wrote:
>Jeremy Jones <[EMAIL PROTECTED]> writes:
>
>
>>to pass data around between processes. Or an idea I've been tinkering
>>with lately is to use a BSD DB between processes as a queue just like
>>Queue.Queue in the standard library does bet
Xah Lee wrote:
>Python Doc Problem Example: os.system
>
>Xah Lee, 2005-09
>
>today i'm trying to use Python to call shell commands. e.g. in Perl
>something like
>
>output=qx(ls)
>
>in Python i quickly located the the function due to its
>well-named-ness:
>
>import os
>os.system("ls")
>
>
>however,
Michael Sparks wrote:
>Steve Jorgensen wrote:
>
>
>
>>On 05 Sep 2005 10:29:48 GMT, Nick Craig-Wood <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>>>Jeremy Jones <[EMAIL PROTECTED]> wrote:
>>>
>>>
>>>> On
Steve Jorgensen wrote:
>On Mon, 05 Sep 2005 21:43:07 +0100, Michael Sparks <[EMAIL PROTECTED]> wrote:
>
>
>
>>Steve Jorgensen wrote:
>>
>>
>>
>>>On 05 Sep 2005 10:29:48 GMT, Nick Craig-Wood <[EMAIL PROTECTED]> wrote:
>
Michael Sparks wrote:
>Jeremy Jones wrote:
>
>
>
>
>>And maybe
>>Steve's magical thinking programming language will have a ton of merit.
>>
>>
>
>I see no reason to use such derisory tones, though I'm sure you didn't mea
[EMAIL PROTECTED] wrote:
>Hi there,
>
> I have some scientific application written in python. There is a
>good deal of list processing, but also some "simple" computation such
>as basic linear algebra involved. I would like to speed things up
>implementing some of the functions in C. So I need p
Thierry Lam wrote:
>Let's say I have the following xml tag:
>
>1
>
>I can't figure out what kind of python xml.dom codes I should invoke to
>read the data 1? Any help please?
>
>Thanks
>Thierry
>
>
>
In [20]: import xml.dom.minidom
In [21]: s = '''1'''
In [22]: x = xml.dom.minidom.parseString(
Thomas Bellman wrote:
>"Xah Lee" <[EMAIL PROTECTED]> writes:
>
>
>
>>suppose i'm calling two system processes, one to unzip, and one to
>>tail to get the last line. How can i determine when the first
>>process is done?
>>
>>
>
>
>
>>Example:
>>
>>
>
>
>
>>subprocess.Popen([r"/sw/bin/
Andy Leszczynski wrote:
>Hi,
>I run Mandrake 10.0 with python 2.3 installed by default. I want to keep
>it as it is but need another, very customized Python installation based
>of 2.3 as well. I would prefer to have it the way it is on Windows, one
>folder e.g. /opt/mypython with all the stuff
Andy Leszczynski wrote:
>Jeremy Jones wrote:
>
>
>>Andy Leszczynski wrote:
>>
>>Download the source, untar, cd to the new directory, run:
>>
>>./configure --prefix=/opt/mypython
>>make
>>make install
>>
>>
>
>Is there any
[EMAIL PROTECTED] wrote:
>I am not sure to understand the big difference between "time spent in
>different areas of code" and "how long did this thing take to run?".
>Looking at python doc for deterministic profiling, I understand the
>implementation difference, and the performance implications,
Roel Schroeven wrote:
>Jeremy Jones wrote:
>
>
>
>>Andy Leszczynski wrote:
>>
>>
>>>Is there any way to pass the prefix to the "make install"? Why "make"
>>>depends on that?
>>>
>>>A.
>>>
>&g
;copyright", "credits" or "license" for more information.
>>> 0.0225
0.022499
See
http://www.python.org/doc/current/tut/node13.html#SECTION001380
If you need exact maths, then you're better off using integers or decimal
arithmet
enations.
Any code which relies on a particular behaviour is broken.
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
Will McGugan wrote:
>Tim Peters wrote:
>
>
>>[john basha]
>>
>>
>>
>>>send me the britney nude photos
>>>
>>>
>>Because they're a new feature, you'll have to wait for Python 2.5 to
>>be released.
>>
>>
>
>She has just spawned a child process. Give her to Python 2.6 to get back
>in
n in the eval statement.
Is this a bug? Does anyone have an idea for a workaround? I'm using
Python 2.3.3.
Thanks
Jeremy
--
http://mail.python.org/mailman/listinfo/python-list
Ed Hotchkiss wrote:
> I'm new to Python, not programming. I agree with the point regarding
> the interpreter. what is that? who uses that!? Why are most examples
> like that, rather than executed as .py files?
I think showing examples at the Python interpreter prompt is *very*
helpful and IMHO
yoda wrote:
>This feels like a stupid question but I'll ask it anyway.
>
>
Definitely not a stupid question.
>How can I process files chronologically (newest last) when using
>os.walk()?
>
>
>
Try this:
In [16]: file_list = [(os.stat(f)[8], f) for f in [os.path.join(i[0],
j) for i in os.w
On Sun, 06 Feb 2005 07:30:33 -0500, Arthur wrote:
> What if:
>
> There was a well conducted market survey conclusive to the effect that
> adding optional strict variable declaration would, in the longer run,
> increase Python's market share dramatically.
>
> It just would.
>
> Why would it?
Wha
ython/2.0/index.html#SECTION00060
Jeremy Jones
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, 08 Feb 2005 17:36:19 +0100, Bernhard Herzog wrote:
> Nick Vargish <[EMAIL PROTECTED]> writes:
>
>> "Xah Lee" <[EMAIL PROTECTED]> writes:
>>
>>> is it possible to write python code without any indentation?
>>
>> Not if Turing-completeness is something you desire.
>
> It's possible to impl
On Tue, 08 Feb 2005 18:18:13 +, Marc Huffnagle wrote:
> Jeff Epler wrote:
>>
>> There's another little-known fact about Python: No string is permitted
>> to end with a backslash! You might think that variations like
>> r'\'
>> or
>> ""\""
>> would allow you to create thi
On Tue, 08 Feb 2005 10:24:28 -0800, Michael Spencer wrote:
> How about:
>
> >>> def fact_ge(n):
> ... f = [1]
> ... f.extend(i*j for i,j in it.izip(xrange(1,1+n), f))
> ... return f
> ...
> >>> fact_ge(10)
> [1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800]
> >>>
>
> as a "
On Tue, 08 Feb 2005 10:50:24 -0800, Michael Spencer wrote:
> I see no difference between LCs and GEs in this respect:
>
> >>> import itertools as it
> >>>
> >>> def fact_ge(n):
> ... f = [1]
> ... f.extend(i*j for i,j in it.izip(xrange(1,1+n), f))
> ... return f
> ...
>
On Tue, 08 Feb 2005 19:55:01 +0100, Maciej MrÃz wrote:
> Unfortunately, GPL faq is extremely vague on such border cases, instead
> of simple "yes/no" answers faq is filled with some advocacy talks ...
To re-iterate a point I made on a thread last week, nobody really knows
what the GPL says and me
On Tue, 08 Feb 2005 20:47:06 +0100, Bernhard Herzog wrote:
> [x for L in [[[initial_state, 0]]]
>for state, pos in L
>if state is not None
> and (L.append([M[state][T.get(pos, 0)][2],
> pos + M[state][T.get(pos, 0)][1]])
>or T._
cussed, the Python
developper were more into multi-process systems when it comes to
multi-processors.
I think I even heard some discussion about efficient inter-process
messaging system, but I can't remember where :o)
Hope it'll help.
Pierre
Jeremy Jones
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, 09 Feb 2005 21:57:15 +, Jive Dadson wrote:
> But that works only if the exception happens to be derived from Exception.
> How do I handle the
> general case?
I believe the answer is that Exceptions not derived from Exception
shouldn't be thrown; it's basically a deprecated feature and
On Wed, 09 Feb 2005 15:57:10 -0800, has wrote:
> I'd say Python is somewhere in the middle, though moving slowly towards
> 'agglutination' in the last couple years.
But it feels really badly about that and promises to kick the habit
somewhere around the year 3000.
--
http://mail.python.org/mailma
On Thu, 10 Feb 2005 05:38:54 +, Ray Gibbon wrote:
> e.g. 2
> |while new_data, environment = get_more_data(source):
> |process_data(new_data, environment)
>
> is something I'm equally likely to want to do, but I can't express it's
> meaning.
I think we'd usually phrase that as
fo
ator (I think it's also called modulus).
107 % 4 == 3
because
107 / 4 == 26 R3
and 7 % 3 == 1
because 7 / 3 == 2 R1
HTH,
Jeremy Jones
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, 10 Feb 2005 11:56:45 -0700, Steven Bethard wrote:
> In the "empty classes as c structs?" thread, we've been talking in some
> detail about my proposed "generic objects" PEP. Based on a number of
> suggestions, I'm thinking more and more that instead of a single
> collections type, I shoul
On Thu, 10 Feb 2005 13:39:29 -0700, Steven Bethard wrote:
> Yeah, I guess that was really the motivation of this module. I
> personally wouldn't use it all that often -- certainly not with the
> frequency that I use, say, Python 2.4's set type -- but I think there
> are enough of us out here wh
On Fri, 11 Feb 2005 13:57:47 +0100, Josef Dalcolmo wrote:
> You can distribute GPL'ed code in binary form, you just have to make the
> sources available as well. And, yes I would use this as a test: if your
> program needs gpl-ed code for some of it's functionality, you have to
> licence your prog
On Fri, 11 Feb 2005 22:23:58 +1000, Nick Coghlan wrote:
> This is one of the reasons why Steven's idea of switching to proposing a
> new module is a good one. It then provides a natural location for any
> future extensions of the idea such as Records (i.e. namespaces with a
> defined set of legal f
On Fri, 11 Feb 2005 18:24:22 +0100, Damjan wrote:
> What you described is not ok according to the GPL - since you distributed
> a binary thats derived from GPL software (and you didn't publish it source
> code under the GPL too).
No you didn't. You distributed a binary completely free of any GPL c
On Fri, 11 Feb 2005 14:45:09 -0800, Robert Kern wrote:
> Until such matters are unequivocally determined in a court that has
> jurisdiction over you, do you really want to open yourself to legal risk
> and certain ill-will from the community?
Huh? What are you talking about?
I'm just pointing out
On Wed, 16 Feb 2005 15:18:57 +0900, Wonjae Lee wrote:
> I read the comment of
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/277753.
> (Title : Find and replace string in all files in a directory)
>
> "perl -p -i -e 's/change this/..to this/g'" trick looks handy.
> Does Python have a s
On Wed, 16 Feb 2005 14:53:22 +0100, Thomas Guettler wrote:
> The imported file is a config file, not a script.
You could use execfile() to read the file, and not import.
Jeremy
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, 17 Feb 2005 10:22:01 -0800, James Stroud wrote:
> It seems I need constructs like this all of the time
>
> i = 0
> while i < len(somelist):
> if oughta_pop_it(somelist[i]):
> somelist.pop(i)
> else:
> i += 1
>
> There has to be a better way...
>
> Any thoughts?
Others have p
On Thu, 17 Feb 2005 18:49:38 +, Stephen Kellett wrote:
> Incorrect analysis. This thread proves that you have no concept of how
> to interact with the community. If you had done what many people asked
> you to do, which is do some work yourself, then ask questions about the
> few answers you
On Thu, 17 Feb 2005 18:20:36 +, Will McGugan wrote:
> I'm accumulating a number of small functions, which I have sensibly put
> in a single file called 'util.py'. But it occurs to me that with such a
> generic name it could cause problems with other modules not written by
> myself. Whats the
On Fri, 18 Feb 2005 01:19:44 +1100, news.sydney.pipenetworks.com wrote:
> Thanks for the pointer. Let's see how many zen points are for the OP's
> idea vs against
Along with the fact that I agree with Nick that you've seriously
miscounted (most of your "fors" are simply irrelevant and I think you
On Thu, 17 Feb 2005 14:00:59 -0700, Dave Benjamin wrote:
> Jeremy Bowers wrote:
>> I'd point out that the Zen that can be comprehended by checking off items
>> in a list is not the true Zen.
>
> The Zen that can be imported is not the eternal Zen. =)
Yes, there
On Thu, 17 Feb 2005 15:51:47 -0800, elena wrote:
> I can go to my friends, however it occurred to me that it might be
> better to post in a newsgroup and get a larger, more diverse, and
> random sample.
Larger, yes, more diverse, yes, more random, probably not in the
statistical/scientific sense.
On Fri, 18 Feb 2005 14:14:55 +1100, news.sydney.pipenetworks.com wrote:
> I always wished computer science was more engineering then philosophy.
> That way there'd always be an obvious answer.
I hear that!
To be fair, computer *science* is more like mathematics than philosophy;
once a correctly-
On Wed, 23 Feb 2005 13:31:12 +1300, Blair Hall wrote:
> I have a requirement to prevent 'accidental' tampering
> with some software written in Python. If I ensure that all
> of the modules concerned are compiled into .pyc's, and remove
> the .py's to another location, then I should be safe until
>
ng it back using the file iterator, is there a
way to quickly iterate over the lines?
I tried using newpos=text.find('\n', pos), and returning the chopped text
text[pos:newpos+1], but this is much slower than splitlines.
Any ideas?
Thanks
Jeremy
--
http://mail.python.org/mailman/listinfo/python-list
e iteration
by a factor of 20!
Thanks
Jeremy
--
http://mail.python.org/mailman/listinfo/python-list
mmand()
Obviously this isn't the most efficient format, but it's nice to
encapsulate the data and the script into one file.
Jeremy
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, 01 Mar 2005 12:42:51 -0600, Skip Montanaro wrote:
> yield
yield *
(Mu-hu-ha-ha-ha!)
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, 02 Mar 2005 22:54:14 +1000, Nick Coghlan wrote:
> Douglas Alan wrote:
>> Steve Holden <[EMAIL PROTECTED]> writes:
>>>Guido has generally observed a parsimony about the introduction of
>>>features such as the one you suggest into Python, and in particular
>>>he is reluctant to add new keywo
On Thu, 03 Mar 2005 20:47:42 +, Paul Moore wrote:
> This can probably be tidied up and improved, but it may be a
> reasonable workaround for something like the original example.
This is why even though in some sense I'd love to see yield *expr, I can't
imagine it's going to get into the langua
gger - INFO - this is info
2005-03-09 12:28:33,401 - mylogger - CLIENT - this is client
2005-03-09 12:28:33,458 - mylogger - WARNING - this is warning
2005-03-09 12:28:33,460 - mylogger - ERROR - this is error
2005-03-09 12:28:33,518 - mylogger - CRITICAL - this is critical
HTH,
Jeremy Jones
--
http://mail.python.org/mailman/listinfo/python-list
on:
In [1]:phone = {'mike':10,'sue':8,'john':3, 'billy':3}
In [2]:phone.items()
Out[2]:[('billy', 3), ('mike', 10), ('john', 3), ('sue', 8)]
In [3]:[i[0] for i in phone.items() if i[1] == 3]
Out[3]:['billy
On Fri, 11 Mar 2005 08:38:36 -0500, Charles Hartman wrote:
> I'm still shaky on some of sre's syntax. Here's the task: I've got
> strings (never longer than about a dozen characters) that are
> guaranteed to be made only of characters 'x' and '/'. In each string I
> want to find the longest con
On Fri, 11 Mar 2005 17:27:06 -0700, Jeffrey Barish wrote:
> Most of my program lives in a class. My plan is to have a superclass
> that performs the generic functions and subclasses to define methods
> specific to each platform
> I'm just getting up to speed on Python and OOP, so I'm wondering
On Sat, 12 Mar 2005 09:48:42 -0800, Martin Miller wrote:
> I'm trying to create some read-only instance specific properties, but the
> following attempt didn't work:
I'm going to echo Steven's comment: "What's the situation in which you
think you want different properties for different instances
> What i want is to declare in the decorator some code that is common to all
> these functions, so the functions assume that the decorator will be there
> and wont need to duplicate the code provided by it, and the functions are
> not known ahead of time, it has to be dynamic.
This sounds like a c
On Sun, 13 Mar 2005 09:25:43 -0800, jrlen balane wrote:
> i am working on an MDIParentFrame and MDIChildFrame. Now, what i want
> to do is make the ChildFrame not that easy to close by removing the
> close button (the X on the right most corner of the window) if this is
> possible...
>
> how am i
On Tue, 15 Mar 2005 03:21:19 -0800, George Jempty wrote:
> I'm noticing that Javascript's array/"hash" literal syntax is EXACTLY the
> same as that for Python lists/dictionaries.
No it isn't, quite.
Two differences of note, one literally syntax and one technically not but
you probably still want
On Tue, 15 Mar 2005 03:21:48 -0800, Paul Boddie wrote:
> Well, I've been using Python for almost ten years, and I've managed to
> deliberately ignore descriptors and metaclasses quite successfully. I get
> the impression that descriptors in particular are a detail of the
> low-level implementation
On Wed, 16 Mar 2005 16:35:57 -0600, Mike Meyer wrote:
> The real problem is that newbies won't know which features are "meta"
> features best left to experts, and which features are ok for everyday
> programmers to use.
>
> We recently saw a thread (couldn't find it in google groups) where
> some
On Wed, 16 Mar 2005 17:28:51 -0800, James Stroud wrote:
> On Wednesday 16 March 2005 04:45 pm, Robert Kern wrote:
>> > This would be very unambiguous.
>>
>> Not entirely.
>>
>> > Then, the purity would manifest itself the naked comma being an empty
>> > tuple. Think about the zen of:
>> >
>> > Â Â
A two-fer.
On Mon, 29 Nov 2004 10:28:42 +0800, Isaac To wrote:
>> "Greg" == Greg Ewing <[EMAIL PROTECTED]> writes:
>
> >> The only punctuation you *need* is whitespace. See Forth
>
> Greg> You don't even need that... see FORTRAN. :-)
Well, I for one don't like reading large program
7;, f))]
['gconfd-root', '.X11-unix', '.ICE-unix', '.mozilla', '.font-unix']
Just as a side note, and just preference, but I typically (almost
always) prefer using os.path.join() rather than using the "+" operator
to put a path together.
Jeremy Jones
--
http://mail.python.org/mailman/listinfo/python-list
nting to do
that, but it's worth looking into and considering.
Jeremy Jones
--
http://mail.python.org/mailman/listinfo/python-list
ion
already happened), waiting to be notified from the main thread, and the
main thread is waiting on thread B (again, in this case) to call
mainCond.notify(). This approach is a deadlock just wanting to happen
(not waiting, because it already did happen). What is it exactly that
you are trying to accomplish? I'm sure there is a better approach.
Jeremy Jones
--
http://mail.python.org/mailman/listinfo/python-list
Alban Hertroys wrote:
Jeremy Jones wrote:
(not waiting, because it already did happen). What is it exactly
that you are trying to accomplish? I'm sure there is a better approach.
I think I saw at least a bit of the light, reading up on readers and
writers (A colleague showed up with a
many are interested, but cannot make it this round). I can
provide directions to anyone needing them.
Jeremy Jones
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, 05 Dec 2004 09:02:18 +0530, I.V. Aprameya Rao wrote:
> i have been wondering, how does python store its very long integers and
> perform aritmetic on it.
>
> i needed to implement this myself and was thinking of storing the digits
> of an integer in a list.
Uh, why? What possible enviro
On Sun, 05 Dec 2004 21:21:50 +0100, Fredrik Lundh wrote:
> Carlos Ribeiro wrote:
>
>> BTW, do bots have a sense of humour?
>
> it depends; it's not in the standard library:
>
import humour
> Traceback (most recent call last):
> etc.
Considering where the name "Python" came from, I conside
Out[17]: 'FOOBAR'
In [18]: a.stuff = "A.STUFF"
In [19]: a.stuff
Out[19]: 'A.STUFF'
In [20]: b.stuff
Out[20]: 'FOOBAR'
I re-set Tester.stuff to "FOOBAR". "a" and "b" attributes "stuff" were
pointing to that for a se
>>> foo = os.fdopen('foo.txt', 'w')
Traceback (most recent call last):
File "", line 1, in ?
TypeError: an integer is required
Thanks in advance!
Scott
If you just want to create a file for writing to, you probably want:
foo = open('foo.txt', 'w')
Jeremy Jones
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, 06 Dec 2004 13:01:47 -0800, fuzzylollipop wrote:
> yeah, but a lie unanswered by the truth becomes the truth.
You know, it's bad enough that somebody starts this thread anew about
every two months anyhow, do you really have to try to resurrect dead ones?
Be patient and I'm sure you'll ha
On Mon, 06 Dec 2004 14:11:04 -0800, Scott David Daniels wrote:
> Second, I was referring to code like:
>
> try:
> inner = table[state]
> except KeyError:
> table[state] = inner = {}
> inner[action] = whatever
>
> vs. code like this:
>
> table[state, ac
On Mon, 06 Dec 2004 21:38:16 -0800, johng2001 wrote:
> Anyone has any insights on REST Vs SOAP/XML-RPC? I have seen these debates
> else where on the web. Just want to know what the view point here is.
I've seen people argue this point a bajillion times, and honestly, I think
the best insight is t
database (like
PostgreSQL), to do the work for you.
Jeremy
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, 08 Dec 2004 16:49:34 -0900, Brian "bojo" Jones wrote:
> class a(object):
>
> def __init__(self):
> self.map = mapper()
> print 'called a'
What is the advantage of this over
def __init__(self):
self.map = []
?
--
http://mail.python.org/mailman/l
201 - 300 of 604 matches
Mail list logo