Re: Microsoft Hatred FAQ

2005-10-18 Thread joe
John W. Kennedy [EMAIL PROTECTED] writes: Michael Heiming wrote: Let's not forget about the Internet, they invented together with Al Gore and of course the wheel! No fair picking on Al Gore. All he ever claimed was that he was the Congressional point man for the Information Superhighway,

Using scons zip builder to create zip

2005-10-18 Thread Chris Becker
What I am looking for is how to call the builder so that it does not recurse directories and does not add paths: zipFile = env.Zip(outputFile, sourcePath) I seen something in the docs about ZIPFLAGS env var, but there is no documentation on what the options are. Anyone have any help or links?

Re: [wxPython-users] Web based applications are possible with wxPython?

2005-10-18 Thread Grant Edwards
On 2005-10-18, Ruben Charles [EMAIL PROTECTED] wrote: Can i have a wxPython GUI app available on a web browser? I don't believe so. I think it would be icnredibly difficult to map a web API into wxWidgets API. If not, can you suggest me any kind oh method for have something similar? I

Re: Web based applications are possible with wxPython?

2005-10-18 Thread Brett Hoerner
I don't think this is possible, unless I am grossly misunderstanding. For the web, pretty much every UI is build with some variation of HTML (XHTML is the new standard) with JavaScript thrown in for fancy GUI-like interfaces. You can't use OS-native widgets in the web browser, no. --

Re: A little help with time calculations

2005-10-18 Thread Diez B. Roggisch
iminal wrote: I am trying to make a very simple program and am very new to the whole programming thing. my program is supposed to ask a user for any time in the for format XX:XX:XX and then ask for a time corrrection to add or subtract to this. my only problem is that once the user inputs the

Re: Microsoft Hatred FAQ

2005-10-18 Thread David Schwartz
Roedy Green [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Mon, 17 Oct 2005 22:21:55 -0700, David Schwartz [EMAIL PROTECTED] wrote or quoted : I don't think any of it bordered on force or fraud. However, their obligation to their shareholders requires them to do anythign

Re: Microsoft Hatred FAQ

2005-10-18 Thread John Bokma
Roedy Green [EMAIL PROTECTED] wrote: On 18 Oct 2005 06:57:47 GMT, John Bokma [EMAIL PROTECTED] wrote or quoted : That an HTML standard (ISO/IEC 15445:2000) and an HTML recommendation by w3c (4.01 for example) are two different things, and mixing them up by calling both standards is a bad

Re: Microsoft Hatred FAQ

2005-10-18 Thread John Bokma
Eike Preuss [EMAIL PROTECTED] wrote: John Bokma wrote: [snip] I see little difference with other big companies. You're right that there is no excuse for such behaviour, but if MS isn't doing it, another company will take their place. And if companies are allowed to behave this way

Re: A little help with time calculations

2005-10-18 Thread Steve Holden
iminal wrote: I am trying to make a very simple program and am very new to the whole programming thing. my program is supposed to ask a user for any time in the for format XX:XX:XX and then ask for a time corrrection to add or subtract to this. my only problem is that once the user inputs the

Re: Microsoft Hatred FAQ

2005-10-18 Thread John W. Kennedy
[EMAIL PROTECTED] wrote: John W. Kennedy [EMAIL PROTECTED] writes: Michael Heiming wrote: Let's not forget about the Internet, they invented together with Al Gore and of course the wheel! No fair picking on Al Gore. All he ever claimed was that he was the Congressional point man for the

Re: override a property

2005-10-18 Thread Robin Becker
Kay Schluehr wrote: Robin Becker wrote: Is there a way to override a data property in the instance? Do I need to create another class with the property changed? -- Robin Becker It is possible to decorate a method in a way that it seems like property() respects overridden methods. The

Re: Microsoft Hatred FAQ

2005-10-18 Thread joe
John W. Kennedy [EMAIL PROTECTED] writes: [EMAIL PROTECTED] wrote: John W. Kennedy [EMAIL PROTECTED] writes: Michael Heiming wrote: Let's not forget about the Internet, they invented together with Al Gore and of course the wheel! No fair picking on Al Gore. All he ever claimed was

Re: override a property

2005-10-18 Thread Steven Bethard
Robin Becker wrote: ## my silly example class ObserverProperty(property): def __init__(self,name,observers=None,validator=None): self._name = name self._observers = observers or [] self._validator = validator or (lambda x: x) self._pName = '_' + name

Re: Microsoft Hatred FAQ

2005-10-18 Thread Michael Heiming
In comp.os.linux.misc Peter T. Breuer [EMAIL PROTECTED]: In comp.os.linux.misc Richard Steiner [EMAIL PROTECTED] wrote: John Wingate [EMAIL PROTECTED] spake unto us, saying: Peter T. Breuer [EMAIL PROTECTED] wrote: It seems to me that I was using 3.x. Maybe it was 3.1? I seem to remember an

Re: Why asci-only symbols?

2005-10-18 Thread Scott David Daniels
Bengt Richter wrote: on tracking the encodings of literal generated astrings The big problem you'll hit is figuring out how to use these strings. Which string ops preserve the encoding? Even the following is problematic: #-*- coding: utf-8 -*- name = 'Martin Löwis' brokenpart =

Re: List of strings to list of floats ?

2005-10-18 Thread Alex Martelli
Madhusudan Singh [EMAIL PROTECTED] wrote: ... Say I have two lists of floats. And I wish to generate a list of floats that is a user defined function of the two lists. result = [sqrt(x**2 + y**2) for x, y in zip(xs, ys)] Works perfectly. Thanks ! If zip works and map doesn't, most

Re: Why asci-only symbols?

2005-10-18 Thread Martin v. Löwis
Bengt Richter wrote: Others reject it because of semantic difficulties: how would such strings behave under concatenation, if the encodings are different? I mentioned that in parts you snipped (2nd half here): This could also support s1+s2 to mean generate a concatenated string that has the

Re: Microsoft Hatred FAQ

2005-10-18 Thread John W. Kennedy
Mike Meyer wrote: David Schwartz [EMAIL PROTECTED] writes: It is not Microsoft's obligation to be fair. It is Microsoft's obligation to push their vision of the future of computing, one with Microsoft's products at the center, using anything short of force or fraud. Wrong. The only

Python script produces sem_trywait: Permission denied

2005-10-18 Thread Mark E. Hamilton
Hi, I've seen this question posted many places arount the Internet, but I've not seen any answers. We've been seeing this same error for some time, probably as long as Hudson has (given that it's now mid-October 2005); we just ignored it, since it didn't seem to cause problems. However, if

Re: Microsoft Hatred FAQ

2005-10-18 Thread John W. Kennedy
Jeroen Wenting wrote: And were later forced to rescind. The judge who wrote that opinion is well known for his anti-Microsoft activism. That's an outright lie. -- John W. Kennedy Read the remains of Shakespeare's lost play, now annotated!

Re: Microsoft Hatred FAQ

2005-10-18 Thread David Schwartz
John W. Kennedy [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Mike Meyer wrote: David Schwartz [EMAIL PROTECTED] writes: It is not Microsoft's obligation to be fair. It is Microsoft's obligation to push their vision of the future of computing, one with Microsoft's

Re: Microsoft Hatred FAQ

2005-10-18 Thread John W. Kennedy
Rhino wrote: John W. Kennedy [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Rhino wrote: Everyone else was still using typewriters - which was IBM's bread and butter in those days - for their business needs. Oh dear, no. Not quite. There were, going back decades, machines

Re: Microsoft Hatred FAQ

2005-10-18 Thread Mike Schilling
John Bokma [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Mike Schilling [EMAIL PROTECTED] wrote: John Bokma [EMAIL PROTECTED] wrote in message [ w3c standard v.s. ISO ] You haven't said why you thinbk standards are more valuable than recommendations. We apparently both agree

Re: Microsoft Hatred FAQ

2005-10-18 Thread Mike Schilling
John Bokma [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Roedy Green [EMAIL PROTECTED] wrote: On 18 Oct 2005 06:57:47 GMT, John Bokma [EMAIL PROTECTED] wrote or quoted : That an HTML standard (ISO/IEC 15445:2000) and an HTML recommendation by w3c (4.01 for example) are two

Re: Microsoft Hatred FAQ

2005-10-18 Thread Mike Schilling
Mike Meyer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Mike Schilling [EMAIL PROTECTED] writes: Mike Meyer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Mike Schilling [EMAIL PROTECTED] writes: Mike Meyer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]

Re: UI toolkits for Python

2005-10-18 Thread Mike Meyer
Mark Roseman [EMAIL PROTECTED] writes: Mike Meyer [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] (Alex Martelli) writes: Maybe that's the key difference between the mindset of a mathematician and that of an engineer -- I consider reaching over 95% of visitors to be _quite good indeed_, What

Re: wxPython question

2005-10-18 Thread Will McGugan
vpr wrote: I've had some problems, it seems that they dont render well in Linux. I tried it with Ubuntu Breezy. I suspect that the animation may cause problems because of all the refreshes. Perhaps you can render the window first then save it as a bitmap. A simple blit should be better for

Re: UI toolkits for Python

2005-10-18 Thread Mike Meyer
[EMAIL PROTECTED] (Alex Martelli) writes: Mike Meyer [EMAIL PROTECTED] wrote: What surprises me is that marketing types will accept turning away - what's the current internet user base? 200 million? - 10 million potential customers without a complaint. Or maybe they just don't get told that

Re: UI toolkits for Python

2005-10-18 Thread Mark Roseman
You elided the paragraph where I pointed out the third alternative: provide a better experience for the 95%, and an ok experience for the 5%. WWW technologies are designed to degrade gracefully - it's easy to take advantage of that. What I'm suggesting is taking the effort you'd put to the

Python script produces sem_trywait: Permission denied

2005-10-18 Thread Mark E. Hamilton
Sorry, I probably should have re-stated the problem: We're using Python 2.3.5 on AIX 5.2, and get the follow error messages from some of our code. I haven't yet tracked down exactly where it's coming from: sem_trywait: Permission denied sem_wait: Permission denied sem_post: Permission denied

Re: Vim capable IDE?

2005-10-18 Thread Chris Lasher
Thanks again for your responses, guys. To answer the question,the features I'd love to see in a Python IDE are: * First and foremost, Vim editing behavior. Let me keep my fingers on the homerow. I'm lazy. Point and click and CTRL + SHIFT has its moments, but text editing is not one of them. *

Re: Microsoft Hatred FAQ

2005-10-18 Thread John Bokma
Mike Schilling [EMAIL PROTECTED] wrote: John Bokma [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Roedy Green [EMAIL PROTECTED] wrote: On 18 Oct 2005 06:57:47 GMT, John Bokma [EMAIL PROTECTED] wrote or quoted : That an HTML standard (ISO/IEC 15445:2000) and an HTML

Re: Microsoft Hatred FAQ

2005-10-18 Thread John Bokma
Mike Schilling [EMAIL PROTECTED] wrote: Now, once more, why are standards *more valuable* than recommendations? standards are written by internationally recognized independent organisations, v.s. everyone can write a recommendation. For you, and others this doesn't matter, for others it

Re: example of using urllib2 with https urls

2005-10-18 Thread Larry Bates
snipped from working code to upload a file to https: site---WARNING not tested after snipping import httplib import base64 import sys import random # # Get the length of the file from os.stat # username='username' password='password' file='path to file to be uploaded' size=os.stat(file)[6] # #

Re: unittest of file-reading function

2005-10-18 Thread shafran
Hi! You can use tempfile.mktemp(), then write test contents to this temp file, pass it to your function, unlink tempfile. you can create / unlink temp file in setUp() / tearDown() methods. Alexander. -- http://mail.python.org/mailman/listinfo/python-list

Re: Question on class member in python

2005-10-18 Thread Aahz
In article [EMAIL PROTECTED], Alex Martelli [EMAIL PROTECTED] wrote: Johnny Lee [EMAIL PROTECTED] wrote: ... Thanks for your help, maybe I should learn how to turn an attibute into a property first. Easy -- in your class's body, just code: def getFoo(self): ... def setFoo(self, value):

Re: wierd threading behavior

2005-10-18 Thread Tim Peters
[Qun Cao] import thread def main(): thread.start_new(test.()) def test(): print 'hello' main() this program doesn't print out 'hello' as it is supposed to do. while if I change main() [Neil Hodgson] The program has exited before the thread has managed to run. It is

nested escape chars in a shell command

2005-10-18 Thread Eli Criffield
I'm try run an ssh command in pexpect and I'm having trouble getting everything escaped to do what i want. Here's a striped down script showing what i want to do. -- #!/usr/bin/env python import pexpect import sys if len(sys.argv) 3: print ssh.py host command sys.exit(1) host =

Re: Microsoft Hatred FAQ

2005-10-18 Thread Mike Meyer
Mike Schilling [EMAIL PROTECTED] writes: Mike Meyer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Mike Schilling [EMAIL PROTECTED] writes: Mike Meyer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Mike Schilling [EMAIL PROTECTED] writes: Mike Meyer [EMAIL PROTECTED]

Vim IS a capable IDE [was Re: Vim capable IDE?]

2005-10-18 Thread Chris Lambacher
Most of this stuff can be done in Vim or Emacs. I only know the details for Vim, see below. I don't know why people are insistant on claiming that Vim and Emacs can't do these kinds of things. They are, it just may take a bit more work to set up. The advantage to this extra work is that you

Re: Microsoft Hatred FAQ

2005-10-18 Thread Mike Schilling
John Bokma [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Mike Schilling [EMAIL PROTECTED] wrote: Now, once more, why are standards *more valuable* than recommendations? standards are written by internationally recognized independent organisations, v.s. everyone can write a

Re: Microsoft Hatred FAQ

2005-10-18 Thread Mike Schilling
Mike Meyer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] One alternative, as I've said, is to write to the standards, and then work around bugs in the popular browsers. If the public whim changes which browser is most popular - I am not holding my breath. it only has minimal

Re: Web based applications are possible with wxPython?

2005-10-18 Thread Eli Criffield
http://www.nomachine.com/companion_screenshots.php While not exacly what your talking about, its about as close as i can think of. This allows you to run any X applications inside a web browser. Eli -- http://mail.python.org/mailman/listinfo/python-list

Re: wierd threading behavior

2005-10-18 Thread dcrespo
Hello, I am just starting to play threading in python, here is a really interesting problem I am very curious about: import thread def main(): thread.start_new(test.()) First, delete the dot after test. Second, is possibly that the Main() finishes before you can see the print out of

Re: Hygenic Macros

2005-10-18 Thread Robert Kern
Steven D'Aprano wrote: On Mon, 17 Oct 2005 22:23:43 -0700, David Pokorny wrote: Hi, Just wondering if anyone has considered macros for Python. I have one good use case. In R, the statistical programming language, you can multiply matrices with A %*% B (A*B corresponds to pointwise

Re: Microsoft Hatred FAQ

2005-10-18 Thread Mike Meyer
Mike Schilling [EMAIL PROTECTED] writes: Mike Meyer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] One alternative, as I've said, is to write to the standards, and then work around bugs in the popular browsers. If the public whim changes which browser is most popular - I am not

Irish Python Meetup (Dublin)

2005-10-18 Thread Darragh Sherwin
Hi, The Irish Python Meetup will take place this Thursday, in Dublin at the SchoolHouse Hotel + Bar at 7.30pm Location is marked on the map at http://www.dublin-hotels.net/hotel-images/schoolhouse-hotel-map.jpg For more details see http://python.meetup.com/13/events/4766301/ Regards, Darragh

Dealing with Excel

2005-10-18 Thread Robert Hicks
I need to pull data out of Oracle and stuff it into an Excel spreadsheet. What modules have you used to interface with Excel and would you recommend it? Robert -- http://mail.python.org/mailman/listinfo/python-list

Re: A little help with time calculations

2005-10-18 Thread iminal
what i have so far is : # Get values needed to make time calculations CT = input(input your chronometer time (ex. 07:21:46): ) CE = input(input your chronometer correction (ex. 00:01:32): ) CEfastslow = raw_input(is your chronometer correction fast or slow: ) #decide either

Re: Perl-Python-a-Day: Sorting

2005-10-18 Thread Lucas Raab
[snip] Thanks. I didn't know there's also a sort function in Python (2.4), besides the method. (i've mentioned your name as acknowledgement at my website essay) [snip] With his permission, of course... -- -- Lucas Raab lvraab@earthlink.net dotpyFE@gmail.com AIM:

Intersection of lists/sets -- with a catch

2005-10-18 Thread James Stroud
Hello All, I find myself in this situation from time to time: I want to compare two lists of arbitrary objects and (1) find those unique to the first list, (2) find those unique to the second list, (3) find those that overlap. But here is the catch: comparison is not straight-forward. For

Re: bug in os.system?

2005-10-18 Thread nicksjacobson
OK, I give up. Why does workaround #2 work? Also, I didn't realize this before, but when you call os.spawnv, the argument list you pass starts with the name of the executable you're calling! When you call a program from cmd.exe, that program name is the first parameter automatically. But with

Re: Dealing with Excel

2005-10-18 Thread McBooCzech
Robert Hicks wrote: I need to pull data out of Oracle and stuff it into an Excel spreadsheet. What modules have you used to interface with Excel and would you recommend it? It is possible to control Excel directly from the Python code (you do not need to write Excel macros within the Excel).

write a loopin one line; process file paths

2005-10-18 Thread Xah Lee
is there a way to condense the following loop into one line? # -*- coding: utf-8 -*- # python import re, os.path imgPaths=[u'/Users/t/web/Periodic_dosage_dir/lanci/t4/oh/DSCN2059m-s.jpg', u'/Users/t/web/Periodic_dosage_dir/lanci/t4/oh/DSCN2062m-s.jpg',

Re: Dealing with Excel

2005-10-18 Thread Robert Hicks
I just want to be and maybe I am not reading your response right. I am talking about reading in bunch of rows out of Oracle and writing them to an excel file, not using macros. Robert -- http://mail.python.org/mailman/listinfo/python-list

Re: unittest of file-reading function

2005-10-18 Thread André Malo
* Helge Stenstroem wrote: Say I have a function def f(filename): result = openFileAndProcessContents(filename) return result Can that function be unit tested without having a real file as input? Something along the lines of import unittest class tests(unittest.TestCase):

Re: Dealing with Excel

2005-10-18 Thread Thomas Bartkus
Robert Hicks [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I need to pull data out of Oracle and stuff it into an Excel spreadsheet. What modules have you used to interface with Excel and would you recommend it? What does one use to bind Microsoft libraries to Python? I think it

Re: HTTPResponse.read() returns an empty string?

2005-10-18 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], Christoph Söllner wrote: ok got it: One cannot close the connection before reading the answer. Yep, because the answer is read over the connection. Seems that in my original source the new assigned variable 'answ' is destroyed or emptied with the connection.close()

Re: Intersection of lists/sets -- with a catch

2005-10-18 Thread Carl Banks
James Stroud wrote: Hello All, I find myself in this situation from time to time: I want to compare two lists of arbitrary objects and (1) find those unique to the first list, (2) find those unique to the second list, (3) find those that overlap. But here is the catch: comparison is not

Re: Dealing with Excel

2005-10-18 Thread Carl Friedrich Bolz
Hi! Robert Hicks wrote: I need to pull data out of Oracle and stuff it into an Excel spreadsheet. What modules have you used to interface with Excel and would you recommend it? if it is enough to produce a file that excel can read (in contrast to a real .xls file), you could use the csv

how best to split into singleton and sequence

2005-10-18 Thread Randy Bush
l = [] s = 'a|b' t, l = s.split('|') t 'a' l 'b' s = 'a|b|c|d' t, l = s.split('|') Traceback (most recent call last): File stdin, line 1, in ? ValueError: too many values to unpack so, i imagine what is happening is the lhs, t,l, is really (t, (l)), i.e. only two items. so how should

Re: write a loopin one line; process file paths

2005-10-18 Thread Jp Calderone
On 18 Oct 2005 14:56:32 -0700, Xah Lee [EMAIL PROTECTED] wrote: is there a way to condense the following loop into one line? There is.

Re: Vim IS a capable IDE [was Re: Vim capable IDE?]

2005-10-18 Thread [EMAIL PROTECTED]
Chris Lambacher wrote: * Usage tips/tooltips: Also something I found in PythonWin. During the writing of the method, a little tip box pops up advising me what the inputs are for a method or an instance construction for a class. Very nice, very productive. VIm 7 may support that out of the

Re: write a loopin one line; process file paths

2005-10-18 Thread Xah Lee
Xah Lee wrote: is there a way to condense the following loop into one line? # -*- coding: utf-8 -*- # python import re, os.path imgPaths=[u'/Users/t/web/Periodic_dosage_dir/lanci/t4/oh/DSCN2059m-s.jpg', u'/Users/t/web/Periodic_dosage_dir/lanci/t4/oh/DSCN2062m-s.jpg',

Re: Dealing with Excel

2005-10-18 Thread McBooCzech
Robert Sorry I was not more clear in my posting. I am solving similar problem as you are. 1) I am getting my data from the Firebird SQL database - directly, using SQL commands (kinterbasdb module), not using ODBC, or ADODB or what ever - some people here can suggest you how to connect directly to

RE: How to get listed on planet.python.org

2005-10-18 Thread Robert Brewer
Shane Hathaway wrote: I've been writing Python-related articles on my weblog, and I thought planet.python.org might be interested in including them. Does anyone know how to submit a feed to the aggregator? http://hathawaymix.org/Weblog/rss20.xml?categories:list=Python I'm pretty sure you

Re: Intersection of lists/sets -- with a catch

2005-10-18 Thread George Sakkis
Carl Banks [EMAIL PROTECTED] wrote: Howabout something like this (untested): class CmpProxy(object): def __init__(self,obj): self.obj = obj def __eq__(self,other): return (self.obj.att_a == other.obj.att_b and self.obj.att_b == other.obj.att_b)

Re: how best to split into singleton and sequence

2005-10-18 Thread George Sakkis
Randy Bush [EMAIL PROTECTED] wrote: l = [] s = 'a|b' t, l = s.split('|') t 'a' l 'b' s = 'a|b|c|d' t, l = s.split('|') Traceback (most recent call last): File stdin, line 1, in ? ValueError: too many values to unpack so, i imagine what is happening is the lhs, t,l, is

Re: Microsoft Hatred FAQ

2005-10-18 Thread Steven D'Aprano
On Tue, 18 Oct 2005 11:53:29 -0700, David Schwartz wrote: Wrong. The only obligation Microsoft has is to their shareholders. If you genuinely believe that, you are a psychopath. That's almost as convincing as that's what you think. DS When you are repeating a fact with as much

Re: Hygenic Macros

2005-10-18 Thread Steven D'Aprano
On Tue, 18 Oct 2005 13:42:21 -0700, Robert Kern wrote: Steven D'Aprano wrote: On Mon, 17 Oct 2005 22:23:43 -0700, David Pokorny wrote: Hi, Just wondering if anyone has considered macros for Python. I have one good use case. In R, the statistical programming language, you can multiply

Re: Microsoft Hatred FAQ

2005-10-18 Thread John Bokma
Steven D'Aprano [EMAIL PROTECTED] wrote: Oh, and if you think I'm saying something shocking by suggesting that somebody is a psychopath, I'm not. Something like one in five of the general population are psychopaths, psychopaths according to DSM IV, or just some silly test from a magazine?

Re: Dealing with Excel

2005-10-18 Thread Robert Hicks
No, I have to format fields and everything sad to say. Another poster up the chain of this posting gave me the nudge in the direction I needed. Thanks all, Robert -- http://mail.python.org/mailman/listinfo/python-list

how to return correct value of update stmt

2005-10-18 Thread eight02645999
hi i use odbc to update a table in a database but i always get return value of -1 even though i tried to return an integer. the table is updated though ... sql = update table set column = 0 where col = %s select @@rowcount %

Re: Microsoft Hatred FAQ

2005-10-18 Thread David Schwartz
Steven D'Aprano [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Tue, 18 Oct 2005 11:53:29 -0700, David Schwartz wrote: Wrong. The only obligation Microsoft has is to their shareholders. With training and/or a good dose of enlightened self-interest, most psychopaths are

Re: Microsoft Hatred FAQ

2005-10-18 Thread Aragorn
On Wednesday 19 October 2005 01:24, Steven D'Aprano stood up and spoke the following words to the masses in /comp.os.linux.misc...:/ On Tue, 18 Oct 2005 11:53:29 -0700, David Schwartz wrote: Wrong. The only obligation Microsoft has is to their shareholders. If you genuinely believe that,

Re: Microsoft Hatred FAQ

2005-10-18 Thread Aragorn
On Wednesday 19 October 2005 01:41, John Bokma stood up and spoke the following words to the masses in /comp.os.linux.misc...:/ Steven D'Aprano [EMAIL PROTECTED] wrote: Oh, and if you think I'm saying something shocking by suggesting that somebody is a psychopath, I'm not. Something like one

Re: Microsoft Hatred FAQ

2005-10-18 Thread David Schwartz
Aragorn [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Wrong. The only obligation Microsoft has is to their shareholders. If you genuinely believe that, you are a psychopath. A psychopath is someone who lacks ethics and/or the ability to respect his fellow human being. They

Re: UI toolkits for Python

2005-10-18 Thread Claudio Grondi
Steve Holden [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Claudio Grondi wrote: Steve Holden [EMAIL PROTECTED] schrieb im Newsbeitrag [...] [Claudio] I don't fully understand your attitude here. The Web Browser interface has all I can imagine is required for a GUI,

Re: Microsoft Hatred FAQ

2005-10-18 Thread Mike Meyer
On Tue, 18 Oct 2005 11:53:29 -0700, David Schwartz wrote: Wrong. The only obligation Microsoft has is to their shareholders. If you genuinely believe that, you are a psychopath. If you genuinely believe that, you are delusional. mike - Mike Meyer [EMAIL PROTECTED]

Re: Dealing with Excel

2005-10-18 Thread Chris Smith
Robert == Robert Hicks [EMAIL PROTECTED] writes: Robert I need to pull data out of Oracle and stuff it into an Robert Excel spreadsheet. What modules have you used to interface Robert with Excel and would you recommend it? Robert Robert For simple enough tasks, I think you can

Python Doc Error: os.makedirs

2005-10-18 Thread Xah Lee
Python doc problem: http://python.org/doc/2.4.2/lib/os-file-dir.html makedirs( path[, mode]) Recursive directory creation function. Like mkdir(), but makes all intermediate-level directories needed to contain the leaf directory. Throws an error exception if the leaf directory already

Jargons of Info Tech industry

2005-10-18 Thread Steve
Just passin' through Xah Lee, on Aug 22, 2:43 pm wrote: Unix, RFC, and Line Truncation [snippage] There is no reason for a paragraph encoding to be splattered with end of line characters, nor the human labor expended. There is reason for paragraphs to be displayed not too wide, and that is

Re: how best to split into singleton and sequence

2005-10-18 Thread Erik Max Francis
Randy Bush wrote: so, i imagine what is happening is the lhs, t,l, is really (t, (l)), i.e. only two items. so how should i have done this readably and simply? Your question isn't at all clear. You're trying to assign a 4-element tuple to two elements. That generates a ValueError. Did

Re: how best to split into singleton and sequence

2005-10-18 Thread [EMAIL PROTECTED]
what you wrote is the most readable to me: just asign the first 2 element to t, l respectively and forget about the rest. I assume that is what you want. I think perl may do it this way. A solution which I think looks uglier is : t, l = s.split('|')[:2] Randy Bush wrote: l = [] s = 'a|b'

How to organize Python files in a (relatively) big project

2005-10-18 Thread toki doki
Hello there, I have been programming python for a little while, now. But as I am beginning to do more complex stuff, I am running into small organization problems. It is possible that what I want to obtain is not possible, but I would appreciate the advice of more experienced python programmers.

Re: bug in os.system?

2005-10-18 Thread [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote: OK, I give up. Why does workaround #2 work? Well, there was a time when the cmd prompt treated all spaces as delimiters, so cd My Documents would fail. Nowadays you can do that successfully and even cd My Documents\My Pictures works. In the old days, if a

Re: [newbie]Is there a module for print object in a readable format?

2005-10-18 Thread James Gan
Hi, Steven :) width parameter do the magic : pprint.pprint([1,2,3,4,[0,1,2,[3,4]],5], width=1,indent=4) [ 1, 2, 3, 4, [ 0, 1, 2, [ 3, 4]], 5] Steven D'Aprano wrote: On Mon, 17 Oct 2005 11:31:46 +0200,

Re: [newbie]Is there a module for print object in a readable format?

2005-10-18 Thread James Gan
Yes, that's what I need! Thank you all bruno modulix wrote: James Gan wrote: I want the object printed in a readable format. For example, x =[a, b, c, [d e]] will be printed as: x--a |_b |_c |___d |_e I tried pickled, marshel. They do different work. Is there another module which do

Re: Dealing with Excel

2005-10-18 Thread Peter Hansen
Robert Hicks wrote: No, I have to format fields and everything sad to say. Another poster up the chain of this posting gave me the nudge in the direction I needed. Doesn't Excel also support (in addition to binary .xls and simple text .csv files) an XML format, which allows full access to

Tkinter or Python issue?

2005-10-18 Thread Ron Provost
Hello, I'm using python 2.4.2 on Win XP Pro. I'm trying to understand a behavior I'm seeing in some Tkinter code I have. I've reduced my question to a small piece of code: #BEGIN CODE # import Tkinter as Tk import tkFont sampleText = Here is a test string. This is more

Re: write a loopin one line; process file paths

2005-10-18 Thread Peter Hansen
Xah Lee wrote: If you think i have a point, ... You have neither that, nor a clue. (Newsgroups line trimmed to reduce the effects of cross-posting trolls.) -Peter -- http://mail.python.org/mailman/listinfo/python-list

Re: How to get a raised exception from other thread

2005-10-18 Thread Peter Hansen
dcrespo wrote: Before, after, or during the .start() call, or somewhere else? I'd like to catch *just after* the .start() call. Excellent. That makes it pretty easy then, since even though you are spawning a thread to do the work, your main thread isn't expected to continue processing in

Re: Microsoft Hatred FAQ

2005-10-18 Thread Roedy Green
On 18 Oct 2005 18:02:53 GMT, John Bokma [EMAIL PROTECTED] wrote or quoted : If you think you can direct the development of human behaviour by not buying a Microsoft product, be my guest. Refusing to take any action against them is also immoral. I think you are morally obligated to take some

Re: Microsoft Hatred FAQ

2005-10-18 Thread Roedy Green
On Tue, 18 Oct 2005 11:53:29 -0700, David Schwartz [EMAIL PROTECTED] wrote or quoted : The only obligation Microsoft has is to their shareholders. If you genuinely believe that, you are a psychopath. That's almost as convincing as that's what you think. Taken literally, you think MS has

Re: Microsoft Hatred FAQ

2005-10-18 Thread Richard Steiner
Here in comp.os.linux.misc, Peter T. Breuer [EMAIL PROTECTED] spake unto us, saying: In comp.os.linux.misc Richard Steiner [EMAIL PROTECTED] wrote: Here in comp.os.linux.misc, John Wingate [EMAIL PROTECTED] spake unto us, saying: Peter T. Breuer [EMAIL PROTECTED] wrote: It seems to me that

Re: Microsoft Hatred FAQ

2005-10-18 Thread Roedy Green
On Tue, 18 Oct 2005 11:53:29 -0700, David Schwartz [EMAIL PROTECTED] wrote or quoted : Wrong. The only obligation Microsoft has is to their shareholders. If you genuinely believe that, you are a psychopath. That's almost as convincing as that's what you think. If your only obligation is

Re: Microsoft Hatred FAQ

2005-10-18 Thread Roedy Green
On 18 Oct 2005 12:34:18 -0500, [EMAIL PROTECTED] wrote or quoted : During my service in the United States Congress, I took the initiative in creating the Internet. He did just that. Think about it. Without Gore, the Internet would never have been delayed perhaps indefinitely. Without any

Re: Upgrading 2.4.1 to 2.4.2

2005-10-18 Thread [EMAIL PROTECTED]
Not sure that is a good idea on a linux system. MS should be fine, but I actually tried that on linux. Didn't realize how much on a linux system depends on Python. Basically ended up doing a full re-install. I'll never do that again. -- http://mail.python.org/mailman/listinfo/python-list

Re: Microsoft Hatred FAQ

2005-10-18 Thread Roedy Green
On 18 Oct 2005 13:21:19 -0500, [EMAIL PROTECTED] wrote or quoted : existed then. Yes, he deserves credit for what he did. He nevertheless created a false impression in what he said. If he hadn't created that false impression, there would not have been any jokes about him. If all he said was what

Re: Microsoft Hatred FAQ

2005-10-18 Thread David Schwartz
Roedy Green [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Tue, 18 Oct 2005 11:53:29 -0700, David Schwartz [EMAIL PROTECTED] wrote or quoted : The only obligation Microsoft has is to their shareholders. If you genuinely believe that, you are a psychopath. That's almost

<    1   2   3   >