Re: Need advice on starting a Python group

2010-03-18 Thread Mike Orr
On Mar 11, 7:57 am, gb345 wrote: > I'm hoping to get advice from anyone with prior experience setting > up a Python group. > > A friend of mine and I have been trying to start a > scientific-programming-oriented Python group in our school (of > medecine and bio research), with not much success. >

Re: equivalent of Ruby's Pathname?

2010-03-09 Thread Mike Orr
I just saw this thread on the Python-URL. On Feb 14, 12:39 pm, a...@pythoncraft.com (Aahz) wrote: > >> Sean DiZazzo =A0 wrote: > > >>>Why did Path() get rejected? Is it the idea itself, or just the > >>>approach that was used? What are the complaints? > > >> You should search for the discussiona a

Re: database wrapper ?

2009-02-05 Thread Mike Orr
On Feb 1, 3:47 pm, Stephen Hansen wrote: > Googling, I found SQLalchemy, > which looks quit good. > SQLAlchemy is very good. I'm very slowly migrating our entire codebase to it. >   > > > But as I only want to choose once, > I googled for  "SQLalchemy alternatives", > but it didn't find many answe

Re: ClassName.attribute vs self.__class__.attribute

2008-06-11 Thread Mike Orr
s__ in these cases to allow users to extend my class. It's a little annoying that if you want to print a class's name in some unknown object, you have to use obj.__class__.__name__ if it's an instance, and obj.__name__ if it's a class. I sometimes wish classes had a .__cl

Re: Pycon disappointment

2008-03-18 Thread Mike Orr
On Mar 16, 6:10 am, Bruce Eckel <[EMAIL PROTECTED]> wrote: vendors: > But it gets worse. The lightning talks, traditionally the best, newest > and edgiest part of the conference, were also sold like commercial air > time. We introduced sponsor lighting talks last year. This year it got out of han

Re: OOP: How to implement listing al 'Employees'.

2007-12-31 Thread Mike Orr
On Dec 29, 1:53 am, Petar <[EMAIL PROTECTED]> wrote: > Let me explain how I got to this question. I had written een Article > class which handled the articles that I had. On a certain page I > wanted to show all the articles. That got me wondering about what to > do. Should I make a method in my A

Re: Normalize a polish L

2007-10-22 Thread Mike Orr
On Oct 16, 9:51 am, Roberto Bonvallet <[EMAIL PROTECTED]> wrote: > For example, in Spanish, "ü" (u with umlaut) should be represented as > "u", but in German, it should be represented as "ue". > > pingüino -> pinguino > Frühstück -> Fruehstueck > > I'd like that web applications (e.g. blogs

Re: if instance exists problem ..

2007-10-22 Thread Mike Orr
On Oct 17, 8:00 pm, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > On Wed, 17 Oct 2007 23:12:15 +, Paul Hankin wrote: > > 'if x' doesn't test if x exists, it tests if x when cast to a bool is > > True. > > To be pedantic: > > Python doesn't have type casts. bool(x) doesn't cast

Summarizing data by week

2007-01-09 Thread Mike Orr
What's the best way to summarize data by week? I have a set of timestamped records, and I want a report with one row for each week in the time period, including zero rows if there are weeks with no activity. I was planning to use ISO weeks because datetime has a convenient .isocalendar() method,

Re: Egg problem (~/.python-eggs)

2006-08-30 Thread Mike Orr
Mike Orr wrote: > I'm trying to install a program that uses Durus on a server. It > appears that if a Python program uses eggs, it creates a > ~/.python-eggs/ directory, so the home directory must be writeable. > This conflicts with server environments where you want to ru

Egg problem (~/.python-eggs)

2006-08-30 Thread Mike Orr
I'm trying to install a program that uses Durus on a server. It appears that if a Python program uses eggs, it creates a ~/.python-eggs/ directory, so the home directory must be writeable. This conflicts with server environments where you want to run a daemon with minimum privileges. Second, it a

Re: The decentralized nature of the Python community is driving me crazy

2006-08-18 Thread Mike Orr
[EMAIL PROTECTED] wrote: > hi everyone, > > I am the first of what may be hundreds of refugees from the Perl > community. Not only is Python a more productive language, with many > more nice apps, but the people are friendly as well... waaay more > friendly than the Perl crowd. > > But I must say t

'r' vs 'rb' in csv (was Re: Python SHA-1 as a method for unique file identification ? [help!])

2006-06-26 Thread Mike Orr
was the odd bit of sense? I know you end console input by typing ctrl-Z, but I thought it was just like Unix ctrl-D which ends the input but doesn't actually insert that character. -- Mike Orr <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking for resources for making the jump from Java to Python easier and more productive

2006-04-24 Thread Mike Orr
Lawrence D'Oliveiro wrote: > "ToddLMorgan" <[EMAIL PROTECTED]> wrote: > >Are there python specific equivalents to the common Patterns, > >Anti-Patterns and Refactoring books that are so prevalent as > >reccomended reading in C++ and Java? > I don't think they exist. Such books are targeted more to

Re: PEP 359: The "make" Statement

2006-04-17 Thread Mike Orr
> I think this PEP is going off the rails. It's primary virtue was that it was a simpler, clearer way to write: class Foo(args): __metaclass__ = some_metaclass #... And it doesn't even do that. What's wrong with "class Foo: __metaclass__ = blah"? Two lines of code, and the

Re: PEP on path module for standard library

2005-07-30 Thread Mike Orr
. I disagree. But it shows why a "literal" superclass in the stdlib and higher-level subclasses would be useful. I don't see why a little change to avoid an unnecessary IOError is a bad thing. The only programs it would hurt are those that really want to know whether the thing already

Re: PEP on path module for standard library

2005-07-29 Thread Mike Orr
s. Add .symlinks and .walksymlinks methods. This eliminates an 'if' for programs that want to treat symlinks specially. - I have a .move method that combines .rename, .renames, and .move; and a .copy method that combines .copy, .copy2, and .copytree . I'd appreciate a Cc on replies if your newsreader allows it. -- Mike Orr <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list