Re: How to link foreign keys & primary keys using python?

2006-06-12 Thread Steve Holden
refer to the code snippets in > my first query posted) > > Thanks & regards, > sonal > A lot depends on the data structure that the code uses to represent the "indexes". Perhaps you could explain how things are looked up in them? regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Love me, love my blog http://holdenweb.blogspot.com Recent Ramblings http://del.icio.us/steve.holden -- http://mail.python.org/mailman/listinfo/python-list

Re: An error ?

2006-06-12 Thread Steve Holden
Maric Michaud wrote: > Le Lundi 12 Juin 2006 09:07, Steve Holden a écrit : > >>print "Content-Type: text\plain\n" > > a typo I guess, > print "Content-Type: text/plain\n" > Good eye! regards Steve -- Steve Holden +44 150 684 7255 +1 8

Re: Function to remove elements from a list working, but Python Hangs :((

2006-06-12 Thread Steve Holden
values should be). If all else fails try the "stuffed bear" technique: sit an inanimate object in front of you and explain the code, and exactly why it can't possibly be going wrong. Amazingly often, halfway through your explanation you realise what your error is. regards

Re: Searching and manipulating lists of tuples

2006-06-12 Thread Steve Holden
ideas? > [Nit: try not to use built-in names like "list" and "str" for your own purposes, as it stops you from using the bult-ins]. There are many ways you could do this more efficiently. The most efficient solution doesn't use a list at all, but a dictionary (the following c

Re: [newbie]apache authentication questions

2006-06-12 Thread Steve Holden
by raising a 401 (not authorised) error response, which is what makes the browser bring up its little popup. I could write a book about this stuff ... regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Love me, love my blog http://holdenweb.blogspot.com Recent Ramblings http://del.icio.us/steve.holden -- http://mail.python.org/mailman/listinfo/python-list

Re: Writing PNG with pure Python

2006-06-12 Thread Steve Holden
en, for example, with contributions to Python. The PSF doesn't care how you license it to anyone else, only that you license it to the PSF under the Free Academic Licence or v2 of the Apache License. We then re-license it to Python users (under the Python license, naturally). If t

Re: [newbie]apache authentication questions

2006-06-12 Thread Steve Holden
[EMAIL PROTECTED] wrote: > Steve Holden wrote: > >>[EMAIL PROTECTED] wrote: >>Since HTTP authentication is managed by the browser it's difficult to >>integrate it with web application authentication: basically you have to >>choose between the two. There&

Re: [newbie]apache authentication questions

2006-06-13 Thread Steve Holden
Michael Ströder wrote: > Steve Holden wrote: > >>[EMAIL PROTECTED] wrote: >> >> >>>It is not impossible though and in cases where you don't have a choice >>>but to use a HTTP authentication scheme, use of AJAX may be the >>>answer

Re: Decimals

2006-06-13 Thread Steve Holden
more modern modules will convert it to a decimal). That's where the scaling factor gets lost, as until fairly recently Python only *had* floats (well, and complex numbers)to represent non-integral numbers. So basically you are likely to be stuck with formatting the data the way you want t

Re: Python 411.

2006-06-13 Thread Steve Holden
e often numbered 101 (i.e. Computer Science 101). So, that > number has acquired a slang meaning of basic and introductory information. > > Where I did my undergrad studies, a few Departments had 001 classes. > Somehow that felt more honest ;-) > Surely 000 would have been more c

Re: Earthquake and Tornado Forecasting Programs June 13, 2006

2006-06-14 Thread Steve Holden
e will just do the plonking without feeling a necessity to add fuel to the fire ... ? -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Love me, love my blog http://holdenweb.blogspot.com Recent Ramblings http://del.icio.us/steve.holden -- http://mail.python.org/mailman/listinfo/python-list

Re: Tuple Syntax and ()

2006-06-14 Thread Steve Holden
vide a single tuple argument to a function. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Love me, love my blog http://holdenweb.blogspot.com Recent Ramblings http://del.icio.us/steve.holden -- http://mail.python.org/mailman/listinfo/python-list

Re: better Python IDE? Mimics Maya's script editor?

2006-06-14 Thread Steve Holden
cks" are pretty different IMO. All I stated is that > it's very different from how I'm used to working. I didn't mean any > disrespect, but I do appreciate your info! > No offence taken - I was clearly reading too much into your words. regards Steve -- Stev

Re: prog1 | prog2 . How not to make prog2 block if not piped?

2006-06-14 Thread Steve Holden
a terminal or a redirected file. When you run it "standalone" you should give it some input - type some text then enter ^D (on Unix-like systems) or ^Z (on Windows). How else do you expect read() to return anything? It *has* to read to the end fo the file before it returns a v

Re: GUI in Python using wxGlade

2006-06-15 Thread Steve Holden
g time to go into a full, the way to proceed with Glade (unless I am mistaken) is to design each window independently of the others, and to use a button press in one window to create an instance of another type of window. Good luck! regards Steve -- Steve Holden +44 150 684 7255

Re: GUI in Python using wxGlade

2006-06-15 Thread Steve Holden
IL PROTECTED] There's a fairly friendly community who will take your code as evidence you are trying to help yourself and explain the basics as necessary. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com L

Re: Which compiler will Python 2.5 / Windows (Intel) be built with?

2006-06-15 Thread Steve Holden
ontribute (say) mingw support, but I'm not aware that anyone has yet stood up for the challenge of getting that into the distributions (and anyway I suspect that VC 200X will remain the default). regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LL

Re: TypeError: Cannot create a consistent method resolution order (MRO) for bases object

2006-06-26 Thread Steve Holden
tance and I can see the problem clearly. Ruby doesn't have this > problem because it uses a single inheritance model complemented by the > power of mixins (modules of functionality mixed into classes as > needed). So what's the Pythonic solution to this problem? > Technically

Re: SWIG problems with gcc and Cygwin?

2006-06-26 Thread Steve Holden
in making these two co-exist? > The only C/C++ compiler I have presently is Cygwin gcc. > I wouldn't claim to be an expert but it looks like you are missing libraries. Shouldn't you at least be loading -l c to get functions defined in libc? regards Steve -- Steve Holden

Re: Unbound Local error? How?

2006-06-27 Thread Steve Holden
g to use the local variable > re_skip_top_dirs which doesn't exist, that's why I'm getting a > traceback, commenting out this line it runs fine. > > -h > > The error is simply that you are making an assignment *somewhere* inside your function body, so the compile

Re: [W2k, wxPython 2.6.1.0] - MDISashDemo bug?

2006-06-27 Thread Steve Holden
wx.LayoutAlgorithm().LayoutMDIFrame(self) > > all is ok. > > Small improvement in demo :) > Well done! Do you know how to feed this information on to the developers (probably Robin Dunn)? All such changes are valuable. regards Steve -- Steve Holden +44 150 684 72

Re: Python database access

2006-06-28 Thread Steve Holden
Damjan wrote: >>The odbc module is part of the Python Standard Library. > > > Since when? > > Nope, it's a standard part of Mark Hammond's win32all extensions. As such it probably comes with ActivePython for Windows, which many people use as their standard dis

Re: to py or not to py ?

2006-06-28 Thread Steve Holden
lf-discipline and attention to details, looking at the way you spell > I think it will be a challenge ;) This doesn't distinguish Python: are there any languages that you can write high-performance applications in *without* self-discipline and attention to details? regards S

Re: [W2k, wxPython 2.6.1.0] - MDISashDemo bug?

2006-06-28 Thread Steve Holden
w.p. wrote: > Steve Holden wrote: > > >>Well done! Do you know how to feed this information on to the developers >>(probably Robin Dunn)? All such changes are valuable. >> > > > Hmm... i dont know. wxpython.org -> "submit a patch" or "Repo

Re: Function to prune dictionary keys not working

2006-06-28 Thread Steve Holden
rt them before comparison, but that's only a win if you need them sorted elsewhere. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Love me, love my blog http://holdenweb.blogspot.com Recent Ramblings http:/

Re: error in ConfigParser

2006-06-28 Thread Steve Holden
>> config.set('test', 'haha', 'hehe') >>> print config.sections() ['test'] >>> config.write(fp) >>> >>> Adding a seel to the start of the file before the failing statement seems to fix the pr

Re: a class variable question

2006-06-28 Thread Steve Holden
Erik Max Francis wrote: [...] > All you're doing in your example is setting a local variable inside the > func1 method, which has no effect. > I think EMF was thinking, but failed to write, "outside the function" at the end of that sentence ;-) regards Steve -- St

Re: global name is not defined - error - but for array

2006-06-28 Thread Steve Holden
27; is not defined > The questions you are asking make it likely you would get better help on the Python-tutor list ([EMAIL PROTECTED], if memory serves me right). It would seem you are new not just to Python but also to programming, and that list is specifically for those who might find a littl

Re: Immutability

2006-06-28 Thread Steve Holden
I have even found its documentation! >>Whatsnew2.2. The 2.4.2 reference is, er, unhelpful. > > > Is it? > > http://docs.python.org/lib/built-in-funcs.html > > documents "property" quite well. > I can't really agree that "quite good" documen

Re: Immutability

2006-06-29 Thread Steve Holden
*why* property's use as a decorator is not advised. Or is it stylistically and semantically acceptable in the case of a read-only property? Would it make sense, in the single argument case, to default the doc value to fget.__doc__ to support that use case, or should we just not create re

Re: Immutability

2006-06-29 Thread Steve Holden
Georg Brandl wrote: > Steve Holden wrote: [...] > >>Would it make sense, in the single argument case, to default the doc >>value to fget.__doc__ to support that use case, or should we just not >>create read-only properties by using property as a decorator? > >

Re: Import Issue

2006-06-29 Thread Steve Holden
7;printable', 'punctuation', 'replace', 'rfind', 'rindex', 'rjust', 'rsplit', 'rstrip', 'split', 'splitfields', 'strip', 'swapcase', 'translate', 'upper', &

Re: New to Python: Do we have the concept of Hash in Python?

2006-06-29 Thread Steve Holden
little involved with Perl now). And since the boss signs the cheques, one should mollify them when ethically possible. > Even so, the idea of using python across the company is actually a very > sensible one, so I expect > it's programmer's enthusiasm fuelling things in this

Re: Widget access

2006-06-29 Thread Steve Holden
ment into which function places widget references, or c) return references to widgets as (part of) function value. It usually boils down to a choice between b) and c). regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Love me

Re: to py or not to py ?

2006-06-29 Thread Steve Holden
nstitutes an atomic operation in Python, anyway? > Standard (and excellent) advice to those new to Python: use threading, not thread, and have threads communicate using Queue.Queue(s). regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://ww

Re: Execute Commands on Remote Computers over Network

2006-06-29 Thread Steve Holden
stems these days. You can set up a trust > relationship between particular accounts on two systems, so one can > connect to the other without a password. All communication is encrypted > to lock out eavesdroppers. Also note that Cygwin gives you openssh in a Unix-shell-lik

Re: first book about python

2006-07-10 Thread Steve Holden
tac-tics wrote: > Philippe Martin wrote: > >>I don't know, if I were the genious that made up Python I would not believe >>in any bible (small b) > > > Take it to alt.religion please. > > Take it to alt.narrow-mondedness please. regards Steve -- Steve

Re: language design question

2006-07-10 Thread Steve Holden
. For instance, no one will be forced to replace the > procedural expression 'a+b' with the strict OO equivalent 'a .__add__(b)'. > But anyone is free to do so in their own code, just as with ob.__len__() > for len(ob). In other words: "because it is". re

Re: language design question

2006-07-11 Thread Steve Holden
base class ? >> >> >> > > in this hypothetical case, i was assuming len() would be put in object and > every > class subclasses object implicitly or explicitly (ie, new style classes > only). > if it was done that way, would len(obj) == obj.len() in all

Re: Global "except" condition

2006-07-11 Thread Steve Holden
eption message to appear? If so then I'm not sure that what you want is possible. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Skype: holdenweb http://holdenweb.blogspot.com Recent Ramblings http://

Re: Dr. Dobb's Python-URL! - weekly Python news and links (Aug 23)

2006-08-23 Thread Steve Holden
d Wahler got back? regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Skype: holdenweb http://holdenweb.blogspot.com Recent Ramblings http://del.icio.us/steve.holden -- http://mail.python.org/mailman/listinfo/python-list

Re: Accessing application data portably

2006-08-23 Thread Steve Holden
email address just so you won't be bothered by the spam plagie. Sorry, the question seems to have completely gone out of my head ... regards Steeve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Skype: holdenweb h

Re: Accessing application data portably

2006-08-23 Thread Steve Holden
email address just so you won't be bothered by the spam plagie. Sorry, the question seems to have completely gone out of my head ... regards Steeve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Skype: holdenweb h

Re: Modules... paths... newbie confusion

2006-08-25 Thread Steve Holden
Dennis Lee Bieber wrote: > On Tue, 22 Aug 2006 14:32:36 +0100, Steve Holden <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > > >>You won;t get MySQLdb to run without running the setup.py since IIRC >>there's a compile step for a C li

Re: how do you get the name of a dictionary?

2006-08-25 Thread Steve Holden
Fredrik Lundh wrote: > Steve Holden wrote: > > >>Right. Plus it's fun to imagine the effbot hitting itself as hard as >>some people would obviously have liked to hit it in the past :-) > > > you mean the guy who's spent the last six months downratin

Re: Python + Java Integration

2006-08-27 Thread Steve Holden
beats writing Cobol" -- James Gosling > > > "Java is Object-Oriented COBOL": http://www.artima.com/weblogs/viewpost.jsp?thread=42242 regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Skype: holden

Re: Python + Java Integration

2006-08-27 Thread Steve Holden
Python distribution is "a no-brainer", as a brief perusal of either the python-checkins or the python-dev lists will confirm. This is engineering work, and release engineering is neither simple nor straightforward. Just as a first issue, can you provide a version of JPype that will work out o

Re: Problem of function calls from map()

2006-08-27 Thread Steve Holden
Fredrik Lundh wrote: > Steve Holden wrote: > > >>Well I guess if people wanted to argue for keeping the functionals this >>should be on the list ... > > > who's arguing ? > Please note that word "if", but you are surely aware that ther

Re: dictionaries vs. objects

2006-08-28 Thread Steve Holden
d that the names are given as attributes rather than as strings. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Skype: holdenweb http://holdenweb.blogspot.com Recent Ramblings http://del.icio.us/steve.holden -- http://mail.python.org/mailman/listinfo/python-list

Re: Segmentation Fault

2006-08-28 Thread Steve Holden
egfault isn't among them. A segfault is a trap to the hardware, and generally indicates that a program is so badly hosed that it wouldn't make much sense to rely on any further computation in it. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd

Re: Truly platform-independent DB access in Python?

2006-08-28 Thread Steve Holden
gt;shared area changes? > > > And what if Python is not installed on it ?-) > > Seriously, do you think that hosting companies swap OS very often ? > Well, GoDaddy just switched enough domains from Linux to Windows to make a significant difference to the Inte

Re: M$ windows python libs installed in arbitrary directories forcustomized python distributions

2006-08-28 Thread Steve Holden
the name of the MSI creator, please say "Martin's installer" :-). > > > > ok, let me clarify, by M$ I meant Micro$oft. > I suspect that's the significance of the smiley. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd

Re: Pros/Cons of Turbogears/Rails?

2006-08-28 Thread Steve Holden
od" meme is not that viral. I wonder why... > > And, since when do hard facts matter anyway? I've met a number of > people who've told me they'd program in Eiffel if they could. And hey, > perhaps in its day Eiffel *was* the best OO language out there. > Cer

Re: how to varify if a URL is valid in python?

2006-08-28 Thread Steve Holden
fegge wrote: > what module should i import? > You probably want urllib. If you have the Tools directory in your Python distro you can take a look at the webchecker.py application for an example of how it might be done. regards Steve -- Steve Holden +44 150 684 7255 +1 800 49

Re: How to let a loop run for a while before checking for break condition?

2006-08-28 Thread Steve Holden
Claudio Grondi wrote: > Sorin Schwimmer wrote: [...] > It doesn't. > > Claudio Sometimes silence is preferable to a concrete response. It takes less time and occupies less bandwidth. regards Steve who should perhaps have followed his own advice -- Steve Holden +44

Re: Is this a good idea or a waste of time?

2006-08-29 Thread Steve Holden
> That doesn't contradict that in other situations good things can be > done by enforcing specific type or at least limiting to a subset > of specific types. > Indeed it doesn't, but perhaps in future we could leave others to work out the glaringly obvious for themselves r

Re: The lib email parse problem...

2006-08-29 Thread Steve Holden
rarily complex message structures, including oddities like attachments which are themselves email messages containing their own attachments. Read the documentation and look for sample code, then get back to the list with questions about how to make email do what you want it to. Please don'

Re: refering to base classes

2006-08-29 Thread Steve Holden
ature): > def __init__(self): > self.noise="bark" > > then I get this outcome... > >>>>import animal >>>>beagle=animal.dog [...] Shouldn't that be beagle = animal.dog() to create an instance? We've all done it ... rega

Re: Coding style and else statements

2006-08-29 Thread Steve Holden
riting it. Of course, optimising will remove the assertions ... regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Skype: holdenweb http://holdenweb.blogspot.com Recent Ramblings http://del.icio.us/steve.holden -- http://mail.python.org/mailman/listinfo/python-list

Re: What do you want in a new web framework?

2006-08-29 Thread Steve Holden
Alex Martelli wrote: [...] > > <http://www.youtube.com/watch?v=hFGz-t5R0BE?> > [...] youtube says: The url contained a malformed video id. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com S

Re: NumPy 1.0b4 now available

2006-08-30 Thread Steve Holden
ou volunteering to maintain the site? > > Sure. [...] Good for you! The open source world *needs* to encourage more involvement from (forgive me, but you imply the same yourself) "clueless" users. That way, the software will become more widely available, as it won't speak

Re: What do you want in a new web framework?

2006-08-30 Thread Steve Holden
any of them is that all of them > suck badly? > Absolutely not. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Skype: holdenweb http://holdenweb.blogspot.com Recent Ramblings http://del.icio.us/steve.h

Re: TNEF decoder

2006-08-30 Thread Steve Holden
talia? " > When you think about it, the top of your lungs is a very strange place to keep a workstation! regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Skype: holdenweb http://holdenweb.blogspot.com Rece

Re: Python web service ...

2006-08-30 Thread Steve Holden
s the main clas defining your own (?) handle_request() (?) method. This server is not design for industrial-strength networking but it's fine if you need either a low-volume server or something to experiment with. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 311

Re: Managing database tables through web-forms (automatically)

2006-08-30 Thread Steve Holden
gt; not to rewrite the whole thing again. > > Big thanks if you can help me! > Django is the usual suggestion for this: once you have defined your database structures it will produce an administration interface automatically. regards Steve -- Steve Holden +44 150

Re: How to run Python file?

2006-09-03 Thread Steve Holden
.org/doc/faq/windows.html regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Skype: holdenweb http://holdenweb.blogspot.com Recent Ramblings http://del.icio.us/steve.holden -- http://mail.python.org/mailman/listinfo/python-list

Re: Find the best price on gas in your local area for FREE....

2006-09-03 Thread Steve Holden
to add links to other things you dislike? regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Skype: holdenweb http://holdenweb.blogspot.com Recent Ramblings http://del.icio.us/steve.holden -- http://mail.python.org/mailman/listinfo/python-list

Re: Client-side TCP socket receiving "Address already in use" upon connect

2006-09-03 Thread Steve Holden
00 ports, the real question seems to be why his client runs out after about 4,000. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Skype: holdenweb http://holdenweb.blogspot.com Recent Ramblings http://del.ic

Re: python loops

2006-09-03 Thread Steve Holden
ce of such > compelling reasoning, I shall have to concede that we should all > generate our range lists up front. > I'm impressed that you think any of this will be news to the effbot, whose sagacity is exceeded only by his irritability in the face of ignorance. regards Stev

Re: Client-side TCP socket receiving "Address already in use" upon connect

2006-09-03 Thread Steve Holden
it >>takes care to close the connection. This should eliminate the problem as >>it is the peer closing the connection that enters the TIME_WAIT state... >> >>I will report my experiences... > > > Well... my idea does not work as expected. Even though the server

Re: What does mod_python.publisher handler do?

2006-09-03 Thread Steve Holden
and-pub.html make it any clearer? There the examples show you exactly how to use the handler, and the point of providing it is to allow you to use mod_python without going to the trouble of writing your own handler. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC

Re: upgrade 2.4 -> 2.5 HowTo

2006-09-04 Thread Steve Holden
Technically you should be able to copy the pure Python packages and midules across, althought eh .pyc file format alos differs between releases. However, the .pyc files will all be rebuilt automatically when they are required. regards Steve -- Steve Holden +44 150 684 7255 +1 800 4

Re: This seems to crash my program and gives me errors on the #include statements

2006-09-04 Thread Steve Holden
are hiding the very information that is needed to help you solve your problem. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Skype: holdenweb http://holdenweb.blogspot.com Recent Ramblings http://del.icio.us/steve.holden -- http://mail.python.org/mailman/listinfo/python-list

Re: Web queries in Python

2006-09-04 Thread Steve Holden
n easy way to get hold of the raw data. Look at htmllib or BeautifulSoup to parse it intot he structures you want. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Skype: holdenweb http://holdenweb.blogspot.com Recent Ramblings http://del.icio.us/steve.holden -- http://mail.python.org/mailman/listinfo/python-list

Re: What are super()'s semantics?

2006-09-04 Thread Steve Holden
True > > In [29]: type(A()) > Out[29]: > > In [30]: type(A()).mro() > Out[30]: [, ] > > You are beginning to appreciate the meaning of the phrase "Python is a language for use by consenting adults". The general philosophy is to provide a coherent and easily-used frame

Re: threading support in python

2006-09-04 Thread Steve Holden
abandoning Python because of the GIL might be premature optimisation. But since you appear to be sticking with it, that might have been unnecessary advice. > Will the madness never end? This reveals an opinion of the development team that's altogether too low. I believe the GIL was intro

Re: Is it just me, or is Sqlite3 goofy?

2006-09-04 Thread Steve Holden
27; goofy. > Language ... regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Skype: holdenweb http://holdenweb.blogspot.com Recent Ramblings http://del.icio.us/steve.holden -- http://mail.python.org/mailman/listinfo/python-list

Re: newbie pipe question

2006-09-05 Thread Steve Holden
ns would have been the way to do this. Nowadays one might prefer the subprocess module's facilities. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Skype: holdenweb http://holdenweb.blogspot.com Recent Ramblings

Re: CONSTRUCT -

2006-09-05 Thread Steve Holden
self, name): >>>>return sys._getframe(1).f_globals['__%s__' % name] >>>>identifier = _identifier() >>> >>>ok, I understand. >>> >>>this one would work with modules. >>> >>>but how would look a more general solu

Re: HTTP Server Root Folder

2006-09-05 Thread Steve Holden
ram. A simple way around this would be to have your program make an os.chdir() call to ensure the correct working directory before it starts the server. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Skype: holdenweb

Re: threading support in python

2006-09-05 Thread Steve Holden
IL from the core would be > correspondingly more difficult. > Given the effort that GIL-removal would take, I'm beginning to wonder if PyPy doesn't offer a better way forward than CPython, in terms of execution speed improvements returned per developer-hour. regards Steve --

Re: CONSTRUCT -

2006-09-06 Thread Steve Holden
out three months now. Why, did I miss > something? :-) > Yes: the previous posts from the same poster. Ilias Lazaridis' communications can be a little obscure, to say the least, and it's apparent that his approach to language evaluaation doesn't emphasize community exp

Re: Is it just me, or is Sqlite3 goofy?

2006-09-06 Thread Steve Holden
> thing like dynamic field typing will simply make it impossible to > migrate your Sqlite data to a *real* database. > > What I'll do is re-format my rant, suggest how *I* would do the > documentation, fix the errors I found in the examples and send it > off to the Python

Re: Is it just me, or is Sqlite3 goofy?

2006-09-06 Thread Steve Holden
little > thing like dynamic field typing will simply make it impossible to > migrate your Sqlite data to a *real* database. > > What I'll do is re-format my rant, suggest how *I* would do the > documentation, fix the errors I found in the examples and send it > off to the Python

Re: threading support in python

2006-09-06 Thread Steve Holden
use they can't collect garbage? "Could" covers a multitude of sins, and distributed garbage collection across shard memory is by no means a trivial problem. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenwe

Re: threading support in python

2006-09-06 Thread Steve Holden
x27;s reference to making it "look like every object stays around forever" doesn't exclude their being garbage-collected once the program no longer contains any reference to them. You simplify the problems involved with GC-triggered destructors to the point of triviality. There are

Re: any portable way to print? (and i mean on a printer)

2006-09-06 Thread Steve Holden
advance.. > ps: i prefer a Standard Library module. > No, there is no way to print any text (did yo also want to print graphics?) portably (by which I mean a way that will work on Windows, Linux, Solaris, HP-UX, AIX, ...). Sorry. This answer is final. regards Steve -- Steve Holden

Re: Removing from a List in Place

2006-09-06 Thread Steve Holden
array[slow] = array[fast] > slow += 1 > print "\n", array > del array[slow:] > print array > > Output: > 1 2 3 1 5 1 6 0 > [3, 5, 6, 1, 5, 1, 6, 0] > [3, 5, 6] > This would be a way-premature optimisation until you had proven the nee

Re: How to get all the file of a oppoint directory from a FTP

2006-09-06 Thread Steve Holden
. If you don't have Tools then you can extract them from the Python source tarball. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Skype: holdenweb http://holdenweb.blogspot.com Recent Ramblings http://

Re: Import a textfile to MS SQL with python

2006-09-06 Thread Steve Holden
find a reference on the web. The point of passing the tuple of data values as a second argument to the .execute() method is to have the DB module take care of any necessary quoting and representation issues. Otherwise values that (for example) include a singel quotes, such as "

Re: Path?

2006-09-06 Thread Steve Holden
search? Well, that depends. If you want your modules to take precedence over similarly-named modules in the standard library (which can be risky if unexpected name clashes occur) then use sys.path.insert(0, path) where "path" holds the path of your choice. If you want to search other

Re: iso creation for python backup script

2006-09-06 Thread Steve Holden
rn4Free (http://www.burn4free.com/) - this product wil also write ISO images should you choose to create them in Python. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Skype: holdenweb http://holdenweb.blog

Re: sending emails using python

2006-09-07 Thread Steve Holden
on. Unfortunately when I try to connect to a non-existent SMTP server on an existent host I see socket.error: (113, 'Software caused connection abort') under both 2.4.3 and 2.5b2. Alas I don't have ready access to a server that requires authentication (my servers authenticate senders

Re: getting quick arp request

2006-09-07 Thread Steve Holden
mp;url=downloads > > No idea if it works or if it's safe, but many people use it. > Is it relevant to point out that the ARP protocol is a connectionless network-layer protocol, so it would seem a little bogus of the Microsoft stack to apply TCP control parameters to it. regards

Re: sending emails using python

2006-09-07 Thread Steve Holden
ail module to construct your messages > with. Constructing messages by hand can lead you into so many traps. > Especially if you are using international characters in you messages. > > Good advice. However, since the error is occurring in the SMTP() call a malformed message is

Re: getting quick arp request

2006-09-07 Thread Steve Holden
Richard Brodie wrote: > "Steve Holden" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > >>Is it relevant to point out that the ARP protocol is a connectionless >>network-layer >>protocol. > > > Not really, since the pr

Re: sending emails using python

2006-09-07 Thread Steve Holden
Hari Sekhon wrote: [...] > > BOFH? > Bas**rd Operator From Hell > lol > Indeed. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Skype: holdenweb http://holdenweb.blogspot.com Recent Ram

Re: Method resolution for super(Class, obj).

2006-09-07 Thread Steve Holden
if super(B,self).met() is invoked as > a result of a call to D().met(), the effect is different from the effect > of a call to B().met(). But a documentation of a super() doesn't mention > anything like that (or at least I didn't find it), and it seems a > significant piece of informa

Re: Automate Web Configuration

2006-09-07 Thread Steve Holden
s of web tasks. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Skype: holdenweb http://holdenweb.blogspot.com Recent Ramblings http://del.icio.us/steve.holden -- http://mail.python.org/mailman/listinfo/python-list

Re: 3 Simple Questions About Python/IDLE

2006-09-07 Thread Steve Holden
AmigaBASIC required them either). > Well, there was Focal. Focal used floating-point line numbering, making it much easier to squeeze extra lines in at any point int he program. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.ho

<    13   14   15   16   17   18   19   20   21   22   >