Re: Exception as the primary error handling mechanism?

2010-01-06 Thread Steve Holden
to write that if, and I suspect most people would choose if foo == bar() for that reason, though the difference is slight. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/ Holden Web LLC http

Re: Exception as the primary error handling mechanism?

2010-01-06 Thread Steve Holden
differences I think that Python is a *much* better language than C and most others. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/ Holden Web LLC http://www.holdenweb.com/ UPCOMING EVENTS

Re: Need help to pass self.count to other classes.

2010-01-06 Thread Steve Holden
Bruno Desthuilliers wrote: Steve Holden a écrit : (snip) This is untested code indeed !-) class kbInterface(object): def __init__(self): self.zxc = 0 def prompt1(self): self.count += 1 Ahem... (snip) Caveat emptor ... this code is worth what you paid

Re: Exception as the primary error handling mechanism?

2010-01-06 Thread Steve Holden
Phlip wrote: On Jan 6, 10:23 am, Lie Ryan lie.1...@gmail.com wrote: On 1/7/2010 3:41 AM, Phlip wrote: Steve Holden wrote: y'all just keep defending the approach to programming that *you* think is best. Speak for yourself... Everyone speaks for themselves, is that a problem? Of course

Re: creating tar file and streaming it over HTTP?

2010-01-06 Thread Steve Holden
Roger. ... though that does mean that the whole tar file has to be created before it can be sent, I suspect. If it will comfortably fit into memory that shouldn't matter, of course. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon is coming! Atlanta, Feb 2010

Re: TypeError

2010-01-06 Thread Steve Holden
, but most databases won't let you parameterize the table or column names, just the data values. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/ Holden Web LLC http://www.holdenweb.com/ UPCOMING EVENTS

Re: TypeError

2010-01-06 Thread Steve Holden
Steve Holden wrote: John Machin wrote: [...] I note that in the code shown there are examples of building an SQL query where the table name is concocted at runtime via the % operator ... key phrases: bad database design (one table per store!), SQL injection attack I'm not trying to defend

Re: TypeError

2010-01-06 Thread Steve Holden
John Machin wrote: On Jan 7, 1:38 pm, Steve Holden st...@holdenweb.com wrote: John Machin wrote: [...] I note that in the code shown there are examples of building an SQL query where the table name is concocted at runtime via the % operator ... key phrases: bad database design (one table per

Re: from datetime.datetime import today not working. python2.6.4 on windows

2010-01-06 Thread Steve Holden
a bit more by actually looking at the source of the module, which probably lives in C:\Python26\Lib\datetime.py regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/ Holden Web LLC http

Re: Exception as the primary error handling mechanism?

2010-01-06 Thread Steve Holden
-list/2007-August/thread.html#454510 Strangely the universe conspired to stamp on that thread, and it appears to have been lost to the python.org archives. A Google search for Steve Holden and not a fucking computer, however, reveals that my shame has not been totally expunged. [If only I could

Re: How to reduce the memory size of python

2010-01-06 Thread Steve Holden
floating point arithmetic, for example. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/ Holden Web LLC http://www.holdenweb.com/ UPCOMING EVENTS:http://holdenweb.eventbrite.com/ -- http

Re: Exception as the primary error handling mechanism?

2010-01-05 Thread Steve Holden
. Not true (he wrote, picking nits). Such programs are written all the time. The fact that they invariably get used more often than intended doesn't negate the intentions of the author. ;-) regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon is coming! Atlanta, Feb 2010

Re: Speeding up network access: threading?

2010-01-05 Thread Steve Holden
a Queue. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/ Holden Web LLC http://www.holdenweb.com/ UPCOMING EVENTS:http://holdenweb.eventbrite.com/ -- http://mail.python.org/mailman/listinfo

Re: twenty years ago Guido created Python

2010-01-05 Thread Steve Holden
. Though for its time it was an incredible system, its insistence on a SmallTalk-only VM environment seemed a little solipsistic. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/ Holden Web LLC http

Re: parsing an Excel formula with the re module

2010-01-05 Thread Steve Holden
. And don't forget about named ranges, which can reference cells without using anything but a plain identifier ... regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/ Holden Web LLC http

Re: twenty years ago Guido created Python

2010-01-04 Thread Steve Holden
fine I suppose. I'll continue to try improving the signal to noise ratio (modulo responses like this, sadly) by trying to emit more signal and less noise. And I, for one, offer you my thanks for your efforts. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon

Re: Question about an application

2010-01-04 Thread Steve Holden
time. You might also want to investigate Fabric, which was put together for such purposes. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/ Holden Web LLC http://www.holdenweb.com/ UPCOMING EVENTS

Re: Significant whitespace

2010-01-04 Thread Steve Holden
to be as hostile and snarky as you like. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/ Holden Web LLC http://www.holdenweb.com/ UPCOMING EVENTS:http://holdenweb.eventbrite.com/ -- http

Re: How do you configure IDLE on a Mac, seeing as there's no Configure Option...

2010-01-04 Thread Steve Holden
shortcomings and oddities to newcomers in my Introduction to Python classes. Who actually maintains IDLE nowadays? regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/ Holden Web LLC http

Re: Premature End Of Script Headers

2010-01-04 Thread Steve Holden
-rwxr-xr-x 1 beno beno 263 Jan 4 06:18 testmail.py What is this directory listing supposed to tell us? What gives? Perhaps, having defined that nice function, you shoudl call it to produce some output? The Apache server is complaining that there's nothing there! regards Steve -- Steve

Re: Newbie help- Can multiple instances with multiple names automatically created.

2010-01-04 Thread Steve Holden
the necessary arguments. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/ Holden Web LLC http://www.holdenweb.com/ UPCOMING EVENTS:http://holdenweb.eventbrite.com/ -- http://mail.python.org

Re: Safe file I/O to shared file (or SQLite) from multi-threaded web server

2010-01-03 Thread Steve Holden
its head while the Oracle takeover of Sun is pending. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/ Holden Web LLC http://www.holdenweb.com/ UPCOMING EVENTS:http

Re: HAppy New Year

2010-01-03 Thread Steve Holden
! What I want to know is why didn't he just write \ ... original long string ... .replace(6, _) But watch that snarkiness ... I'm a Windows user too! regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/ Holden Web LLC

Re: IOError - cannot create file (linux daemon-invoked script)

2010-01-03 Thread Steve Holden
Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/ Holden Web LLC http://www.holdenweb.com/ UPCOMING EVENTS:http://holdenweb.eventbrite.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Safe file I/O to shared file (or SQLite) from multi-threaded web server

2010-01-03 Thread Steve Holden
Lawrence D'Oliveiro wrote: In message mailman.367.1262529266.28905.python-l...@python.org, Steve Holden wrote: Yes, but not to MySQL, please. Particularly since there is a sword of Damocles hanging over its head while the Oracle takeover of Sun is pending. Ah, I see the FUDsters

Re: Trying to run a sudo command from script

2010-01-02 Thread Steve Holden
think it so much that you can't catch stdout. Rather, sudo ensures it is talking to the user by explicitly reading the password from /dev/tty. Consequently there is no way to send the password value over the process's stdin, hence the need to use pexpect. regards Steve -- Steve Holden +1

Re: Append Problem

2010-01-02 Thread Steve Holden
feeling, but we'll overlook the horrors induced by your lack of programming experience) is a testament to your persistence (and this list's tolerance) I can't help feeling that it leaves you no better qualified to supervise programmers. regards Steve -- Steve Holden +1 571 484 6266 +1

Re: Append Problem

2010-01-02 Thread Steve Holden
(and this list's tolerance) I can't help feeling that it leaves you no better qualified to supervise programmers. Ah, but you aren't a businessman, are you? You wouldn't know... beno See the .sig. Of course I'm a businessman. regards Steve -- Steve Holden +1 571 484

Re: IOError - cannot create file (linux daemon-invoked script)

2010-01-02 Thread Steve Holden
. This is on a Debian squeeze system, with python 2.5. Thanks for any insights! Take a closer look at the exception, that might stimulate a thought or two. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/ Holden Web LLC

Re: Any Swisses here?

2010-01-02 Thread Steve Holden
Zhu Sha Zang wrote: [stuff and nonsense from a third party] WTF? We do get the occasional bigot dropping in from time to time. Best to ignore them 'til they go away. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon is coming! Atlanta, Feb 2010 http

Re: whoops: create a splash window in python

2009-12-31 Thread Steve Holden
netiquette), but here is a picture of how your post gets positioned in my Thunderbird reader: it's still part of the original thread, and will therefore be missed completely by anyone who's chosen to ignore that thread. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon

Re: Create attribute from string

2009-12-31 Thread Steve Holden
to 0.05 setattr(obj, SIGNIFICANT, 0.05) This bald reply, however, hides the simple fact that this is ALMOST NEVER what you actually want to do. Look at using a dict to store these values against string keys rather than playing with the namespace in this way. regards Steve -- Steve Holden

Re: Cookies

2009-12-30 Thread Steve Holden
-- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/ Holden Web LLC http://www.holdenweb.com/ UPCOMING EVENTS:http://holdenweb.eventbrite.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Bare Excepts

2009-12-30 Thread Steve Holden
your brain. Good thinking! regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/ Holden Web LLC http://www.holdenweb.com/ UPCOMING EVENTS:http://holdenweb.eventbrite.com/ -- http

Re: How to test a URL request in a while True loop

2009-12-30 Thread Steve Holden
there is only ever one value of type 'NoneType'. Be careful not to use it when there can be several different but equal values, though. I see now that pass is redundant -- thanks for catching that. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon is coming

Re: Cookies

2009-12-30 Thread Steve Holden
needed to be told because you would have known that the cookies were transmitted as HTTP headers and that you had to somehow put that information into the headers (in other words, that creating a cookie was not sufficient to insert it into the HTTP output stream). regards Steve -- Steve Holden

Re: Bare Excepts

2009-12-30 Thread Steve Holden
belittling others to make themselves feel important. beno So turn the mirror in yourself, and ask yourself why you just made that comment? It takes all sorts to make a world, and we all need to run along. Surely it's easier to ignore that kind of stuff than to perpetuate it? regards Steve -- Steve

Re: subprocess returncode is masked

2009-12-29 Thread Steve Holden
when you call math.float(-3.5)? regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/ Holden Web LLC http://www.holdenweb.com/ UPCOMING EVENTS:http://holdenweb.eventbrite.com/ -- http

Re: Another Sets Problem

2009-12-29 Thread Steve Holden
Victor Subervi wrote: On Mon, Dec 28, 2009 at 4:23 PM, Steve Holden st...@holdenweb.com mailto:st...@holdenweb.com wrote: There is only one way for the piece of code you quote to print nothing (unless you suspect a bug in the Python interpreter, but the probability of that is so

Re: Difference Between Two datetimes

2009-12-29 Thread Steve Holden
, it means producing an equivalent value of some other type which can be used instead of the original object for some specific purpose. In this case, printing. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/ Holden

Re: Another Sets Problem

2009-12-29 Thread Steve Holden
Victor Subervi wrote: On Tue, Dec 29, 2009 at 9:33 AM, Steve Holden st...@holdenweb.com mailto:st...@holdenweb.com wrote: That's a bit like being told you have to produce something green, and then when you do, being told no, not that green, a light green. So you produce

Re: getting name of passed reference

2009-12-29 Thread Steve Holden
woefully inept IS BASICALLY YOUR FIRST SOLUTION RECONFIGURED. You also apparently can't read. Whereas you appear to have a problem maintaining good manners. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/ Holden Web

Re: Another Sets Problem

2009-12-29 Thread Steve Holden
Victor Subervi wrote: On Tue, Dec 29, 2009 at 10:16 AM, Steve Holden st...@holdenweb.com mailto:st...@holdenweb.com wrote: Victor Subervi wrote: On Tue, Dec 29, 2009 at 9:33 AM, Steve Holden st...@holdenweb.com mailto:st...@holdenweb.com mailto:st...@holdenweb.com

Re: getting name of passed reference

2009-12-29 Thread Steve Holden
Joel Davis wrote: On Dec 29, 10:08 am, Steve Holden st...@holdenweb.com wrote: Joel Davis wrote: On Dec 29, 2:04 am, Steven D'Aprano ste...@remove.this.cybersource.com.au wrote: On Mon, 28 Dec 2009 19:28:32 -0800, Joel Davis wrote: my thanks go out to Emile and Mr Hanson for their responses

Re: detect interactivity

2009-12-29 Thread Steve Holden
-interactive use you can consider refactoring the code so that the non-interactive programs don't need to import the stuff that's exclusively for interactive use. But frankly I wouldn't waste your time. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon is coming

Re: Author of a Python Success Story Needs a Job!

2009-12-28 Thread Steve Holden
in the USA. Do you follow the Python Job Board? It's a resource that not everyone knows about, where employers are allowed to post free for the benefit of Python community members who may be looking for a job. http://www.python.org/community/jobs/ Hope this helps. regards Steve -- Steve

Re: Another Sets Problem

2009-12-28 Thread Steve Holden
value in the field. Is this intentional? It doesn't matter. The code ceases to execute with the line: for f in field: beno Well it looks to me like types[x][0:3] == 'set' and f is empty. That wouldn't produce any printed output. regards Steve -- Steve Holden +1 571 484

Re: Another Sets Problem

2009-12-28 Thread Steve Holden
Victor Subervi wrote: On Mon, Dec 28, 2009 at 3:07 PM, Steve Holden st...@holdenweb.com [...] However, when I try that in my current script, the script fails. It throws no error, but rather just quits printing to the screen. Here's the code snippet

Re: How do I install GMPY 1.11 on a Mac with OS X 10.6 and Python 3.1? -SOLVED!

2009-12-27 Thread Steve Holden
the problem is and on which page(s) it occurs. Thanks Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/ Holden Web LLC http://www.holdenweb.com/ UPCOMING EVENTS:http://holdenweb.eventbrite.com

Re: How to tailor output of help()

2009-12-24 Thread Steve Holden
in the output from help()? Thanks, Try setting the __all__ variable in your module to a list of the names you want your module to export. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/ Holden Web LLC

Re: Problem with Dynamically unloading a module

2009-12-23 Thread Steve Holden
. So you can write code that uses the appropriate module for each input. It's possible, of course, that I am misunderstanding your requirements, but I hope that helps. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon is coming! Atlanta, Feb 2010 http

Re: Line indexing in Python

2009-12-22 Thread Steve Holden
(index 0)... a = 20 GOTO 10 int( a.split(' ',1)[0] ) 20 nit those are brackets, not angle brackets /nit regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/ Holden Web LLC http://www.holdenweb.com

Re: How to validate the __init__ parameters

2009-12-21 Thread Steve Holden
your program when it goes wrong is a valid alternative to trying to anticipate every single last thing that might go wrong. This philosophy might not be appropriate for extra-terrestrial exploration, but most Python programmers aren't doing that. regards Steve -- Steve Holden +1 571 484

Re: How Do I...?

2009-12-20 Thread Steve Holden
Victor Subervi wrote: On Sat, Dec 19, 2009 at 8:04 PM, Steve Holden, Chairman, PSF chair...@python.org mailto:chair...@python.org wrote: Well, if we were looking for arrogance we could easily interpret that last statement as such. Please remember that although we are mainly left

Re: Creating Classes

2009-12-20 Thread Steve Holden
first super() call? How many programs behave differently with old-style vs. new-style classes? regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/ Holden Web LLC http://www.holdenweb.com/ UPCOMING EVENTS

Re: Creating Classes

2009-12-19 Thread Steve Holden
not necessary to explicitly inherit from object to get new-style classes because, as you correctly point out, old-style classes don't exist in Python 3. I have no idea why you think you should always derive a class from some other class. That's pretty unnecessary. regards Steve -- Steve Holden

Re: how do I set a Python installation as the default under windows ?

2009-12-19 Thread Steve Holden
to Windows 7. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/ Holden Web LLC http://www.holdenweb.com/ UPCOMING EVENTS:http://holdenweb.eventbrite.com/ -- http://mail.python.org/mailman

Please Help Publicize PyCon

2009-12-19 Thread Steve Holden, Chairman, PSF
the community. regards Steve -- Steve HoldenChairman, Python Software Foundation The Python Community Conference http://python.org/psf/ PyCon 2010 Atlanta Feb 19-21http://us.pycon.org/ Watch PyCon on video now! http://pycon.blip.tv/ -- http://mail.python.org/mailman

Re: How Do I...?

2009-12-19 Thread Steve Holden, Chairman, PSF
). regards Steve -- Steve HoldenChairman, Python Software Foundation The Python Community Conference http://python.org/psf/ PyCon 2010 Atlanta Feb 19-21http://us.pycon.org/ Watch PyCon on video now! http://pycon.blip.tv/ -- http://mail.python.org/mailman/listinfo/python

Re: I look for proxy cache like apt-proxy (for Debian Package) but for python eggs package…

2009-12-19 Thread Steve Holden
backed-up available even if PyPI or the actual package go away. Diez Time that software came out of beta! What needs fixing before a release? regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/ Holden Web LLC

Eclipse Carriage Return Workaround

2009-12-18 Thread Steve Holden
, but that only affects interactive interpreter instances. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ UPCOMING EVENTS:http://holdenweb.eventbrite.com/ -- http://mail.python.org/mailman/listinfo/python

Re: Line indexing in Python

2009-12-18 Thread Steve Holden
a single letter that you know? You might express it more readably as for line in file: if line.startswith(0): a.write(line) This seems to express the intent of your code somewhat more directly. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 Holden Web LLC

Re: share dictionary between processes

2009-12-18 Thread Steve Holden
completely unrelated processes. Is it possible? Take a look at pyro, though it may be overkill for your needs. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ UPCOMING EVENTS:http

Re: Design question about pretree classifier

2009-12-18 Thread Steve Holden
classifications it should have N elements. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ UPCOMING EVENTS:http://holdenweb.eventbrite.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Creating Classes

2009-12-18 Thread Steve Holden
instance - in other words, it knows which instance it's a method *of*. Does this clarify it or make it more obscure? regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ UPCOMING EVENTS:http

Introduction ot Python: Change of Dates

2009-12-14 Thread Steve Holden
Please note that the dates of our upcoming Introduction to Python three-day class in New York city have been changed to avoid the federal holiday on Martin Luther King Day. The class will now run from January 19-21. Details at http://hwebpyintnyc01.eventbrite.com/ regards Steve -- Steve

Introduction to Python: Change of Dates

2009-12-13 Thread Steve Holden
Please note that the dates of our upcoming Introduction to Python three-day class have been changed to avoid the federal holiday on Martin Luther King Day. The class will now run from January 19-21. Details at http://hwebpyintnyc01.eventbrite.com/ regards Steve -- Steve Holden +1

Re: Object Relational Mappers are evil (a meditation)

2009-12-11 Thread Steve Holden
thread. It's a pun on First Normal Form. To transform a schema into First Normal Form you remove repeating groups from the entity and place them in a newly-created entity, leaving a copy of the identifier column behind to express a relationship between the two. regards Steve -- Steve Holden

Re: Object Relational Mappers are evil (a meditation)

2009-12-11 Thread Steve Holden
they're using, not just the syntax but the underlying conceptual models as well. Hear, hear! regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ UPCOMING EVENTS:http://holdenweb.eventbrite.com/ -- http

Upcoming Python Classes in New York

2009-12-08 Thread Steve Holden
Holden Web is pleased to announce three upcoming classes in New York city the week of January 18. Jan 18-20Introduction to Python (3 days) - Steve Holden http://holdenweb.com/py/introclass/ Jan 21 .NET: IronPython from the Ground Up (1 day) - Michael Foord http://holdenweb.com/py/ironpython

Upcoming Python Classes in New York

2009-12-08 Thread Steve Holden
Holden Web is pleased to announce three upcoming classes in New York city the week of January 18. Jan 18-20Introduction to Python (3 days) - Steve Holden http://holdenweb.com/py/introclass/ Jan 21 .NET: IronPython from the Ground Up (1 day) - Michael Foord http://holdenweb.com/py/ironpython

Re: Object Relational Mappers are evil (a meditation)

2009-10-05 Thread Steve Holden
by the latter). But he'd have to confirm or deny that. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Watch PyCon on video now! http://pycon.blip.tv/ -- http://mail.python.org/mailman/listinfo/python

Upcoming Python/Django Classes

2009-09-15 Thread Steve Holden
Holden Web is please to announce a public Introduction to Python class, near Washington DC, on October 13-15, presented by Steve Holden. This is followed, on Friday October 16, by a one-day Django Master Class presented by Jacob Kaplan-Moss. Further details are available from http

Re: Need cleanup advice for multiline string

2009-08-18 Thread Steve Holden
Robert Dailey: [...] It's a figure of speech. And besides, why would I want programming advice from a woman? lol. Thanks for the help. Sorry, Robert, simply not acceptable. Whether designed to be funny or not it's the kind of inane remark I would be really happy never to see again. The

Not going to let this drop ...

2009-06-01 Thread Steve Holden
linked on the site, and help to make the world a better place. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Watch PyCon on video now! http://pycon.blip.tv/ -- Steve Holden +1 571 484 6266

Re: Not going to let this drop ...

2009-06-01 Thread Steve Holden
Leslie Hawthorn wrote: On Sun, May 31, 2009 at 9:35 PM, Steve Holden st...@holdenweb.com mailto:st...@holdenweb.com wrote: I don't know if Google are planning to run a Highly-Open Participation event this year, but if they are then maybe we could establish a few tasks

Re: Python syntax

2009-04-07 Thread Steve Holden
, but somewhat fatuous for a Windows user. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Watch PyCon on video now! http://pycon.blip.tv/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Style question - defining immutable class data members

2009-03-27 Thread Steve Holden
()``, which can access either an instance attribute or (if no instance attribute exists) a class attribute. The LHS target ``self.x`` is assigned with ``setattr()``, which *always* accesses an instance attribute, creating it if necessary. Thus, the two Steve Holden said

Re: Style question - defining immutable class data members

2009-03-25 Thread Steve Holden
Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Want to know? Come to PyCon - soon! http://us.pycon.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: What way is the best to check an empty list?

2009-03-25 Thread Steve Holden
is the only appropriate response. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Want to know? Come to PyCon - soon! http://us.pycon.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Does Python have certificate?

2009-03-24 Thread Steve Holden
foobar programmer is complete crap IMHO. The certification kind of comes out in the wash from the O'Reilly development process, it's not a primary goal. The above offer stands nontheless. I'll trade you for a Steve Holden Information Technology certification ... regards Steve -- Steve Holden

Re: Relative Imports, why the hell is it so hard?

2009-03-24 Thread Steve Holden
quickly and for that I appologise. People round here generally have broad shoulders and are slow to take offense. No need to worry - and welcome to c.l.py! regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Want to know

Re: file.read() doesn't read the whole file

2009-03-23 Thread Steve Holden
-- Steve Holden +1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Want to know? Come to PyCon - soon! http://us.pycon.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: what features would you like to see in 2to3?

2009-03-23 Thread Steve Holden
are supposed to produce code primarily, so a documentation project might not get support. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Want to know? Come to PyCon - soon! http://us.pycon.org/ -- http://mail.python.org

Re: splitting a large dictionary into smaller ones

2009-03-23 Thread Steve Holden
for that release is known to be slow, and this would have its effect on pickle dump/load performance. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Want to know? Come to PyCon - soon! http://us.pycon.org/ -- http

Re: Escaping optional parameter in WHERE clause

2009-03-23 Thread Steve Holden
being a tuple of data values. Some interfaces don't like an empty tuple when the query has no parameters. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Want to know? Come to PyCon - soon! http://us.pycon.org

Re: pickle.load() extremely slow performance

2009-03-23 Thread Steve Holden
. On 3.1a1 the unpickle step takes 2.4 seconds, an 1875% improvement. Surely you mean a 94.7% improvement? Well, since it's now running almost twenty times faster, the speed has increased by 1875%. Not sure what the mathematics of improvement are ... regards Steve -- Steve Holden +1

Re: Does Python have certificate?

2009-03-23 Thread Steve Holden
? If so, I certainly want to get one. I searched, and No, there is no certification for Python. Maybe in the future... O'Reilly School of Technology have plans to offer a Python certification. But I have to write the courses first :) regards Steve -- Steve Holden +1 571 484 6266 +1

Re: file.read() doesn't read the whole file

2009-03-21 Thread Steve Holden
in fifteen lines or less. Much easier for us to focus on the issue that way. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Want to know? Come to PyCon - soon! http://us.pycon.org/ -- http://mail.python.org/mailman

Re: nested classes

2009-03-20 Thread Steve Holden
is going to generate the second class on the fly. And even then you;d nest it inside a method of the class. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Want to know? Come to PyCon - soon! http://us.pycon.org

Re: Newbie: Limesurvey and... MySQLdb?

2009-03-20 Thread Steve Holden
in advance for your replies! MySQLdb is the easiest way, and has been receiving some developer attention recently. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Want to know? Come to PyCon - soon! http://us.pycon.org

Re: Another of those is issues.

2009-03-20 Thread Steve Holden
-- Steve Holden +1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Want to know? Come to PyCon - soon! http://us.pycon.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Smalltalk-like Python IDE ?

2009-03-20 Thread Steve Holden
), but Python is so much more hard-wired than SmallTalk I doubt it would be possible to write quite such a flexible environment as the SmallTalk VM. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Want to know? Come to PyCon

Re: newbie: precision question

2009-03-20 Thread Steve Holden
, or (to two decimal places) 11.97. So 12 - (sqrt(12)**2) != 0. Python uses doubles for all floating-point calculations. I hope this has cleared up your questions. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Want

Re: What happened to NASA at Python? :(

2009-03-19 Thread Steve Holden
. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Want to know? Come to PyCon - soon! http://us.pycon.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: What happened to NASA at Python? :(

2009-03-19 Thread Steve Holden
,... Sorry, randomly chosen whenever the front page is rebuilt by one of the web gnomes. It's not chosen randomly on each page fetch. Though of course it easily *could* be, and I hope it soon *will* be. More about that in my PyCon talk ... regards Steve -- Steve Holden +1 571 484 6266 +1

Re: What happened to NASA at Python? :(

2009-03-19 Thread Steve Holden
a bunch of scientists and engineers. I believe there are aerospace testing rigs that are controlled through a Python API. I have another client using them for airframe automation testing. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 Holden Web LLC http

Re: Neatest way to do a case insensitive in?

2009-03-19 Thread Steve Holden
? But then objects have to be explicitly created as subclasses of str. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Want to know? Come to PyCon - soon! http://us.pycon.org/ -- http://mail.python.org/mailman

Re: Style formating of multiline query, advise

2009-03-18 Thread Steve Holden
isn't performing a join to perform the query ... I agree the nested query was somewhat over the top. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Want to know? Come to PyCon - soon! http://us.pycon.org/ -- http

Re: How to add months to a date (datetime object)?

2009-03-15 Thread Steve Holden
? -- http://mail.python.org/mailman/listinfo/python-list OK, suppose I sign a contract on Nov 30 that requires me to make quarterly payments. When is my next payment due? The use case doesn't seem that unreasonable to me. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494

<    1   2   3   4   5   6   7   8   9   10   >