Re: John Bokma harassment

2006-05-24 Thread Rune Strand
Xah Lee wrote: > I'm sorry to trouble everyone. But as you might know, due to my > controversial writings and style, recently John Bokma lobbied people to > complaint to my web hosting provider. After exchanging a few emails, my > web hosting provider sent me a 30-day account cancellation notice l

Re: John Bokma harassment

2006-05-24 Thread olsongt
John Bokma wrote: > "Ant" <[EMAIL PROTECTED]> wrote: > > > I have no particular affinity for Xah's views, but what does get up my > > nose is usenet Nazism. > > That's because you're clueless. > > -- > John MexIT: http://johnbokma.com/mexit/ >

Re: John Bokma harassment

2006-05-24 Thread Timo Stamm
John Bokma schrieb: > Timo Stamm <[EMAIL PROTECTED]> wrote: > >> Tim N. van der Leeuw schrieb: > [...] >>> but since I've stopped following threads originated by him >> That's all you need to do if you are not interested in his posts. > > You're mistaken. All you need to do is report it. Why the

Re: How to find out a date/time difference

2006-05-24 Thread [EMAIL PROTECTED]
And if you want the number of days: py> d = datetime.datetime(2006,5,24,16,34) - datetime.datetime(2006,5,23,12,1) py> d.days 1 py> d = datetime.datetime(2006,5,24,16,34) - datetime.datetime(2006,5,23,19,1) py> d.days 0 -- http://mail.python.org/mailman/listinfo/python-list

Re: How to find out a date/time difference

2006-05-24 Thread Klaus Alexander Seistrup
Nico Grubert skrev: > you could do this: > > >>> a = datetime.datetime(2006, 5, 24, 16, 1, 26) > >>> b = datetime.datetime(2006, 5, 20, 12, 1, 26) > >>> a-b > datetime.timedelta(4) > # 4 days Or #v+ >>> print (a-b).days 4 >>> #v- Mvh, -- Klaus Alexander Seistrup SubZeroNet, Copenhagen, De

Re: John Bokma harassment

2006-05-24 Thread Robert Boyd
On 24 May 2006 08:29:57 -0700, Rune Strand <[EMAIL PROTECTED]> wrote: > > I can just declare my support. Reading Mr. Bokmas comments below [*] > certainly makes my suport stronger. > I sent an email in support of Xah, which I wouldn't have bothered to do had I not read the rapid-fire posts from B

Re: John Bokma harassment

2006-05-24 Thread Stormcoder
Five is not excessive when they are on topic and they are on topic. If you don't like his posts ignore them, killfile them, whatever. I took the time to write his ISP a supporting email because it is important to keep unpopular speech, even more than popular speech, free. Censoring usenet serves no

Re: John Bokma harassment

2006-05-24 Thread Ant
John Bokma wrote: > That's because you're clueless. Well argued. No really. Not quite sure what you base the allegations on of course. John, you're well out of order getting this guy into problems with his ISP. Ken Tilton has it spot on - if everyone who wasn't interested in what he had to say ig

Re: John Bokma harassment

2006-05-24 Thread John Bokma
Bill Atkins <[EMAIL PROTECTED]> wrote: > Life is short, John Bokma. There are more important things in the > world than tattling on Xah to his host. Maybe you can start > experiencing them Maybe check out my site first before you make another silly remark. Typically that (almost?) everybody de

Re: John Bokma harassment

2006-05-24 Thread John Bokma
[EMAIL PROTECTED] wrote: > Both johnbokma.com and castleamber.com are hosted by seagull.net. Here > is a link to their TOS: > > http://www.seagull.net/tos.html > > Who can come up with the most violations that John is committing on > this thread? I count 4. Be my guest: hostmaster at seagull

Re: Web framework comparison video

2006-05-24 Thread Paul Boddie
AndyL wrote: > > Indeed it was. The headache factor is 1, for some reason my Mandrake > 2006 media players mute the sound. Had to boot to M$ :-(. Yes, these Web 2.0 pretenders just love their proprietary formats: Flash, QuickTime, etc. But then I guess Web 2.0 to them is all about compromising the

Re: Best way to handle exceptions with try/finally

2006-05-24 Thread Carl J. Van Arsdall
Zameer wrote: > That's it. But the return statement should not be a part of finally if > you want exceptions to propagate out of the function containing > try/finally. As mentioned multiple times in the thread. > Ah, great, that was it. Thanks to everyone for their help, I got a lot of really

Re: John Bokma harassment

2006-05-24 Thread George Sakkis
Robert Boyd wrote: > On 24 May 2006 08:29:57 -0700, Rune Strand <[EMAIL PROTECTED]> wrote: > > > > > I can just declare my support. Reading Mr. Bokmas comments below [*] > > certainly makes my suport stronger. > > > > I sent an email in support of Xah, which I wouldn't have bothered to > do had I

Re: Running script in __main__ shows no output in IDLE

2006-05-24 Thread Scott David Daniels
[EMAIL PROTECTED] wrote: > Thanks for your help! Shouldn't Idle have shown an error when trying to > read the string constant if it's not interpretable as a normal string, > then? I suspect it should. The error probably got lost in the start-script handling somewhere. --Scott David Daniels [EMA

Re: John Bokma harassment

2006-05-24 Thread Eli Gottlieb
[EMAIL PROTECTED] wrote: > John Bokma wrote: > >>"Ant" <[EMAIL PROTECTED]> wrote: >> >> >>>I have no particular affinity for Xah's views, but what does get up my >>>nose is usenet Nazism. >> >>That's because you're clueless. >> >>-- >>John MexIT: http://johnbokma.com/

Re: John Bokma harassment

2006-05-24 Thread John Bokma
fup-to poster "Ant" <[EMAIL PROTECTED]> wrote: > John Bokma wrote: >> That's because you're clueless. > > Well argued. No really. Not quite sure what you base the allegations > on of course. Like I said, clueless. > John, you're well out of order getting this guy into problems with his > ISP.

Re: John Bokma harassment

2006-05-24 Thread Ant
Getting eloquent isn't he? ;-) -- http://mail.python.org/mailman/listinfo/python-list

Re: John Bokma harassment

2006-05-24 Thread Mitch
John Bokma wrote: > Mitch <[EMAIL PROTECTED]> wrote: > >> John Bokma wrote: >> [...] >>> You're mistaken. All you need to do is report it. After some time Xah >>> will either walk in line with the rest of the world, or has found >>> somewhere else to yell. As long as it's not my back garden and no

Re: John Bokma harassment

2006-05-24 Thread Bill Atkins
John Bokma <[EMAIL PROTECTED]> writes: > If Xah posts to just one group, on topic, the problem is gone. But Xah > is spamvertizing his website, and hence posts to 5 groups (since I guess > that's a limit GG sets, not Xah), so he doesn't care that a post on > whitespace in Python ends up in a group

Re: John Bokma harassment

2006-05-24 Thread John Bokma
fup to poster Mitch <[EMAIL PROTECTED]> wrote: > John Bokma wrote: [...] >> Funny how people who always think they can "change Usenet" have no >> clue about what Usenet is and how it works in the first place. > > Who said anything about changing it? I like it just the way it is. You don't.

Rapyd: control variables

2006-05-24 Thread Cloudthunder
Okay, I'm just starting out with rapyd, so bear with me. I have one form and a label and I gave the label a controlvariable (textvariable). See:#--# # 

Conversion of perl based regex to python method

2006-05-24 Thread Andrew Robert
I have two Perl expressions If windows: perl -ple "s/([^\w\s])/sprintf(q#%%%2X#, ord $1)/ge" somefile.txt If posix perl -ple 's/([^\w\s])/sprintf("%%%2X", ord $1)/ge' somefile.txt The [^\w\s] is a negated expression stating that any character a-zA-Z0-9_, space or tab is ignored. The ()

Re: COM Server crashing when returning large arrays

2006-05-24 Thread Alastair Alexander
Thanks for the replies Tim & Stefan I'm using Python 2.3.5 on XP and the PythonWin build number seems to be 201 ... I'll see if I can find 207. The following blows up on both an XP and Win2k box ... both have same build of Python and PythonWin: import sys clas

Re: John Bokma harassment

2006-05-24 Thread Kay Schluehr
bradb wrote: > > C'mon, John Bokma (and everyone else dumb enough to crosspost their > > shushing to every group on the crosspost list -- why do they do that? So > > Xah will hear them six times? No, they want everyone to see how witty > > they are when they tell Xah off. Now /that/ is spam) is th

Re: Python Programming Books?

2006-05-24 Thread herraotic
If you don't mind could you send me an email to my address, John Salerno, and tell me whether "Python Programming: An Introduction to Computer Science" was good. Email preferably because it will take you a while to finish the book >500 pages and I probably won't look back on this topic. Thanks! --

RE: John Bokma harassment

2006-05-24 Thread Michael . Coll-Barth
! ! -Original Message- From: John Bokma And ain't it cool that reporting Xah's abuse might stop both? -- John Bokma Freelance software developer & Experienced Perl programmer: http://castleamber.com/ CRAP!

Re: Scipy: vectorized function does not take scalars as arguments

2006-05-24 Thread Robert Kern
ago wrote: > Once I vectorize a function it does not acccept scalars anymore. Es > > def f(x): return x*2 > vf = vectorize(f) > print vf(2) > > AttributeError: 'int' object has no attribute 'astype' > > Is this the intended behaviour? More or less. It would be nice if it transparently handled t

Re: John Bokma harassment

2006-05-24 Thread Mitch
John Bokma wrote: > fup to poster > > Mitch <[EMAIL PROTECTED]> wrote: > >> John Bokma wrote: > > [...] > >>> Funny how people who always think they can "change Usenet" have no >>> clue about what Usenet is and how it works in the first place. >> Who said anything about changing it? I like it

Re: John Bokma harassment

2006-05-24 Thread D H
Kay Schluehr wrote: > To make a witty comment: > Xah is the star, who undresses his mind. > But good and sensitive people don't like liking to > contribute in those nasty battles and believe their time is deserved to > something less wastefull. > I mildly disagree with attitude and tend to > t

Re: how to change sys.path?

2006-05-24 Thread Andrew Robert
Dennis Lee Bieber wrote: > On Wed, 24 May 2006 14:45:55 GMT, John Salerno > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > >> I just right-clicked on My Computer --> Properties --> Advanced --> >> Environment Variables, and added a new one called PYTHONPATH. I don't >> know i

Re: John Bokma harassment

2006-05-24 Thread Mumia W.
Xah Lee wrote: > I'm sorry to trouble everyone. But as you might know, due to my > controversial writings and style, recently John Bokma lobbied people to > complaint to my web hosting provider. After exchanging a few emails, my > web hosting provider sent me a 30-day account cancellation notice la

Re: John Bokma harassment

2006-05-24 Thread Mumia W.
SamFeltus wrote: > I was considering opening an account with Dreamhost. Can't say I agree > with all of Xah's writings, but they often raise important points. > Dreamhost is a company I will never spend money with. Usenet is full > of narrow minded group thinking that needs to be questioned. >

Re: John Bokma harassment

2006-05-24 Thread Mumia W.
Mitch wrote: > John Bokma wrote: > [...] >> You're mistaken. All you need to do is report it. After some time Xah >> will either walk in line with the rest of the world, or has found >> somewhere else to yell. As long as it's not my back garden and not >> around 4AM, I am ok with it. >> > > Wal

IronPython 1.0 Beta 7 Released

2006-05-24 Thread Luis M. González
Check it out: http://www.gotdotnet.com/workspaces/workspace.aspx?id=ad7acff7-ab1e-4bcb-99c0-57ac5a3a9742 -- http://mail.python.org/mailman/listinfo/python-list

Re: John Bokma harassment

2006-05-24 Thread olsongt
> > > > > > Time for a game! > > > > Both johnbokma.com and castleamber.com are hosted by seagull.net. Here > > is a link to their TOS: > > > > http://www.seagull.net/tos.html > > > > Who can come up with the most violations that John is committing on > > this thread? I count 4. > > > Let's not d

Re: how to change sys.path?

2006-05-24 Thread John Salerno
Dennis Lee Bieber wrote: > I may have gotten slightly confused That's my job. :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Python keywords vs. English grammar

2006-05-24 Thread defcon8
1. Does it matter? 2. Is it affecting your productivity. 3. Are you not trying to programme? 4. It is open source, change it and stop whining. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python keywords vs. English grammar

2006-05-24 Thread bruno at modulix
defcon8 wrote: > 1. Does it matter? > 2. Is it affecting your productivity. > 3. Are you not trying to programme? > 4. It is open source, change it and stop whining. > What about trying emacs +x doctor ? -- bruno desthuilliers python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]

Re: Python Programming Books?

2006-05-24 Thread Jerry
I think that Beginning Python: From Novice to Professional is a great book for beginners. It's probably a bit too simplistic for someone who already understands the language or who has a decent background in development. I just borrowed it from my brother and while I consider myself a pretty good

perl to python

2006-05-24 Thread Depcnb1
I'm looking for Steve Rumbalski    -- http://mail.python.org/mailman/listinfo/python-list

perl to python

2006-05-24 Thread Depcnb1
This is Jeff Hutchinson -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Programming Books?

2006-05-24 Thread gregarican
I third this opinion. This book gave me a lot of insight and helped me get comfortable using Python. I also recall looking at a document Guido published on how to get started with Python as well as reading the reference docs that come bundled with the language install. Of course I came from a backg

Re: Scipy: vectorized function does not take scalars as arguments

2006-05-24 Thread Travis E. Oliphant
ago wrote: > Once I vectorize a function it does not acccept scalars anymore. Es > > def f(x): return x*2 > vf = vectorize(f) > print vf(2) > > AttributeError: 'int' object has no attribute 'astype' > > Is this the intended behaviour? > Vectorize handles scalars in recent versions of NumPy. W

Re: Conversion of perl based regex to python method

2006-05-24 Thread Andrew Robert
Andrew Robert wrote: > I have two Perl expressions > > > If windows: > > perl -ple "s/([^\w\s])/sprintf(q#%%%2X#, ord $1)/ge" somefile.txt > > If posix > > perl -ple 's/([^\w\s])/sprintf("%%%2X", ord $1)/ge' somefile.txt > > > > The [^\w\s] is a negated expression stating that any charac

Re: John Bokma harassment

2006-05-24 Thread Geoffrey Summerhayes
"Bill Atkins" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > John Bokma <[EMAIL PROTECTED]> writes: > > [snip] > >> -- >> John MexIT: http://johnbokma.com/mexit/ >>personal page: http://johnbokma.com/ >> Exper

Re: Web framework comparison video

2006-05-24 Thread Adam Jones
Just as a note, TurboGears has added a lot that would change the scoring on this. The project has been moving pretty quickly towards 1.0 lately, and I would advise anyone interested in a comparison to check out the recent changes before making a final decision. The same will probably hold true for

Re: A critic of Guido's blog on Python's lambda

2006-05-24 Thread Kay Schluehr
Michele Simionato wrote: > Kay Schluehr wrote: > > http://www.fiber-space.de/EasyExtend/doc/EE.html > > Well, I have not read that page yet, but the name "fiber space" reminds > me of old > memories, when I was doing less prosaic things than now. Old times .. > ;) > > Michele Simionato

Xah Lee network abuse

2006-05-24 Thread PofN
Xah Lee wrote: > I'm sorry to trouble everyone. Liar. You were never sorry when you troubled us with your posting excrements in the past, you are not sorry now. > But as you might know, due to my > controversial writings and style, Liar. You are a net abuser, a kook and a troll. It has nothing

Re: John Bokma harassment

2006-05-24 Thread George Sakkis
Geoffrey Summerhayes wrote: > "Bill Atkins" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > John Bokma <[EMAIL PROTECTED]> writes: > > > > [snip] > > > >> -- > >> John MexIT: http://johnbokma.com/mexit/ > >>personal page:

Re: PEP 3102 for review and comment

2006-05-24 Thread gangesmaster
None is not currently a keyword -- http://mail.python.org/mailman/listinfo/python-list

Bind an instance of a base to a subclass - can this be done?

2006-05-24 Thread Lou Pecora
I've been scanning Python in a Nutshell, but this seems to be either undoable or so subtle that I don't know how to do it. I want to subclass a base class that is returned from a Standard Library function (particularly, subclass file which is returned from open). I would add some extra functio

simple print is not working..

2006-05-24 Thread lahirister
What is wrong with this script? #!/usr/bin/python fsfile = open('/tmp/fs_info.al', 'r') for line in fsfiles.readlines(): print line fsfile.close() #./get_fs_info.py File "./get_fs_info.py", line 4 print line ^ SyntaxError: invalid syntax Any ideas? Thanks AL -- http://mail.pyt

Finding Upper-case characters in regexps, unicode friendly.

2006-05-24 Thread possibilitybox
I'm trying to make a unicode friendly regexp to grab sentences reasonably reliably for as many unicode languages as possible, focusing on european languages first, hence it'd be useful to be able to refer to any uppercase unicode character instead of just the typical [A-Z], which doesn't include, f

Re: simple print is not working..

2006-05-24 Thread lahirister
[EMAIL PROTECTED] wrote: Sorry typo: Script is like this: #!/usr/bin/python fsfile = open('/tmp/fs_info.al', 'r') for line in fsfile.readlines(): print line fsfile.close() *not* fsfiles as I typed in original post. > What is wrong with this script? > > #!/usr/bin/python > fsfile = open('/tmp/f

Re: simple print is not working..

2006-05-24 Thread Carl J. Van Arsdall
[EMAIL PROTECTED] wrote: > What is wrong with this script? > > #!/usr/bin/python > fsfile = open('/tmp/fs_info.al', 'r') > for line in fsfiles.readlines(): > print line > fsfile.close() > > > Did you cut and paste that code? I see a couple typos First, on the line for line in fsfiles.readline

Re: Python Programming Books?

2006-05-24 Thread vbgunz
> Thanks vbgunz that was the reply I was looking for! > Do you think it is wise to hold back for a 3rd edition? No, 2nd edition is literally perfect. The reason why is because almost nothing significant enough has changed since it's publication. In other words, you will not learn any outdated mate

Re: simple print is not working..

2006-05-24 Thread Paul Osman
On 24-May-06, at 3:41 PM, [EMAIL PROTECTED] wrote: > What is wrong with this script? > > #!/usr/bin/python > fsfile = open('/tmp/fs_info.al', 'r') > for line in fsfiles.readlines(): > print line > fsfile.close() > > > #./get_fs_info.py > File "./get_fs_info.py", line 4 > print line >

Finding Upper-case characters in regexps, unicode friendly.

2006-05-24 Thread possibilitybox
I'm trying to make a unicode friendly regexp to grab sentences reasonably reliably for as many unicode languages as possible, focusing on european languages first, hence it'd be useful to be able to refer to any uppercase unicode character instead of just the typical [A-Z], which doesn't include, f

Pydev 1.0.8 released

2006-05-24 Thread Fabio Zadrozny
Hi All, Pydev and Pydev Extensions 1.0.8 have been released Check http://www.fabioz.com/pydev for details on Pydev Extensions and http://pydev.sf.net for details on Pydev This is a 'single-bugfix' release because of a major bug that could cause Pydev to hang when making a new line under

Re: Bind an instance of a base to a subclass - can this be done?

2006-05-24 Thread Diez B. Roggisch
Lou Pecora schrieb: > I've been scanning Python in a Nutshell, but this seems to be either > undoable or so subtle that I don't know how to do it. > > I want to subclass a base class that is returned from a Standard Library > function (particularly, subclass file which is returned from open). I

Re: Looking for help with Regular Expression

2006-05-24 Thread Roger Miller
Seem to be a lot of regular expression questions lately. There is a neat little RE demonstrator buried down in Python24/Tools/Scripts/redemo.py, which makes it easy to experiment with regular expressions and immediately see the effect of changes. It would be helpful if it were mentioned in the RE d

Re: PEP 3102 for review and comment

2006-05-24 Thread Kay Schluehr
molasses wrote: > I don't mind the naked star and will be happy if thats what we end up with. > > Though how about using *None? > I think that makes the intention of the function clearer. > > eg. > def compare(a, b, *None, key=None): > > Which to me reads as "no further positional arguments". > >

Python Version Testing Tool?

2006-05-24 Thread Michael Yanowitz
Hello: Is there a version testing tool available for Python such that I can check to see if my code will still run in versions 2.2, 2.3, 2.4.3, and 1.1 (for example) (or whatever) without having to install all these different versions on my computer? Thanks in advance: Michael Yanowitz -- ht

Re: Finding Upper-case characters in regexps, unicode friendly.

2006-05-24 Thread Tim Chase
> I'm trying to make a unicode friendly regexp to grab sentences > reasonably reliably for as many unicode languages as > possible, focusing on european languages first, hence it'd be > useful to be able to refer to any uppercase unicode character > instead of just the typical [A-Z], which doesn't

Re: Use of lambda functions in OOP, any alternative?

2006-05-24 Thread Scott David Daniels
Pablo wrote: > Second solution: This is what i want, but... > > class Base(object): > def __init__(self, attr): > self._attr = attr > def getattr(self): > return self._attr > attr = property(fget=lambda self: self.getattr()) > > class Derived(Base): > def getattr(

Re: Finding Upper-case characters in regexps, unicode friendly. (oh, bugger)

2006-05-24 Thread Tim Chase
Sorry...I somehow missed the key *uppercase* bit of that, and somehow got it in my head that you just wanted unicode letters, not numbers. Please pardon the brain-blink. I can't find anything in Python's regexp docs that do what you want. Vim's regexp engine has a "uppercase characters" and

Re: Python Version Testing Tool?

2006-05-24 Thread Serge Orlov
Michael Yanowitz wrote: > Hello: > >Is there a version testing tool available for Python > such that I can check to see if my code will still run in > versions 2.2, 2.3, 2.4.3, and 1.1 (for example) (or whatever) > without having to install all these different versions on my > computer? Such t

Re: Using python for a CAD program

2006-05-24 Thread Paddy
I guess the 'advanced O/R mapping tools' make it easier to map the data to an RDBMS, but their is still the performance issue. Since this has degenerated into a an issue of performance then I suggest the original poster create a clear interface between his data and its persistance method. This shou

how to use matplotlib contour()?

2006-05-24 Thread Grant Edwards
I downloaded examples/contour_demo.py, and it doesn't run. I've searched both the user guide and the Wiki for "contour" and got zero hits. http://matplotlib.sourceforge.net/matplotlib.pylab.html#-contour appears to be a good reference if you already know how to use contour(), but I could glean ze

Re: how to use matplotlib contour()?

2006-05-24 Thread Robert Kern
Grant Edwards wrote: > I downloaded examples/contour_demo.py, and it doesn't run. > > I've searched both the user guide and the Wiki for "contour" > and got zero hits. > > http://matplotlib.sourceforge.net/matplotlib.pylab.html#-contour > appears to be a good reference if you already know how to

Re: Python keywords vs. English grammar

2006-05-24 Thread Boris Borcic
Roy Smith wrote: > I noticed something interesting today. In C++, you write: > > try { >throw foo; > } catch { > } > > and all three keywords are verbs, so when you describe the code, you can > use the same English words as in the program source, "You try to execute > some code, but it thr

Request for comment: programmer starting page (micro knowledge base)

2006-05-24 Thread Paolo Pantaleo
I am writting down a pege with useful links for a Python programmer. That is reference, tutorials and anything that can be useful. I use it regulary when programming in Python and I can't do without it. I would be happy if you go and see that page, and tell me what you think about and suggest link

Compiling Python from Sources

2006-05-24 Thread rwr
As a newbie I am having problems/errors configuring Python after unpacking the Python archive: # ./configure checking MACHDEP... linux2 checking EXTRAPLATDIR... checking for --without-gcc... no checking for --with-cxx=... no checking for c++... no checking for g++... no checking for gcc... gcc che

Re: Bind an instance of a base to a subclass - can this be done?

2006-05-24 Thread Maric Michaud
Le Mercredi 24 Mai 2006 22:04, Diez B. Roggisch a écrit : > Nope, not in that way. But you might consider writing a proxy/wrapper > for an object. That looks like this (rouch sketch from head): > > class FileWrapper(object): >     def __init__(self, f): >        self._f = f > >     def __getattr__(

Why can't timedeltas be divided?

2006-05-24 Thread Dan Bishop
If I try to write something like: num_weeks = time_diff / datetime.timedelta(days=7) I get: TypeError: unsupported operand type(s) for /: 'datetime.timedelta' and 'datetime.timedelta' Of course, one could extend the timedelta class to implement division, def _microseconds(self):

Re: Compiling Python from Sources

2006-05-24 Thread [EMAIL PROTECTED]
rwr wrote: > As a newbie I am having problems/errors configuring Python after > unpacking the Python archive: > > # ./configure > checking MACHDEP... linux2 > checking EXTRAPLATDIR... > checking for --without-gcc... no > checking for --with-cxx=... no > checking for c++... no > checking for g++...

Re: Compiling Python from Sources

2006-05-24 Thread rwr
This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by python configure 2.3, which was generated by GNU Autoconf 2.59. Invocation command line was $ ./configure ## - ## ## Platform. ## ##

Re: Why can't timedeltas be divided?

2006-05-24 Thread Maric Michaud
Le Jeudi 25 Mai 2006 00:07, Dan Bishop a écrit : > If I try to write something like: > >     num_weeks = time_diff / datetime.timedelta(days=7) because it has no meaning, what you want is : num_weeks = time_diff.days / 7 or num_weeks = (time_diff / 7).days -- _ Maric Michaud _

Re: COM Server crashing when returning large arrays

2006-05-24 Thread Alastair Alexander
Bingo! Downloaded release 208 and the problem is solved! "Stefan Schukat" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hello Alistair, which version of pythoncom you are using? In the newer versions there is an support for a "native" safearray (the data type Excel is providing).

Re: Finding Upper-case characters in regexps, unicode friendly.

2006-05-24 Thread John Machin
On 25/05/2006 5:43 AM, [EMAIL PROTECTED] wrote: > I'm trying to make a unicode friendly regexp to grab sentences > reasonably reliably for as many unicode languages as possible, focusing > on european languages first, hence it'd be useful to be able to refer > to any uppercase unicode character ins

Re: Best way to handle exceptions with try/finally

2006-05-24 Thread Zameer
> I tend to put "return" > statements at the end of functions to make an attempt at being clean. I > realize that a lot of the time functions will just return but I was > hoping by explicitly stating my function returns that another person > reading my code would more easily see any exit points in

Re: Bind an instance of a base to a subclass - can this be done?

2006-05-24 Thread Ben Cartwright
Lou Pecora wrote: > I want to subclass a base class that is returned from a Standard Library > function (particularly, subclass file which is returned from open). I > would add some extra functionality and keep the base functions, too. > But I am stuck. > > E.g. > > class myfile(file): >def my

Re: Why can't timedeltas be divided?

2006-05-24 Thread John Machin
On 25/05/2006 8:25 AM, Maric Michaud wrote: > Le Jeudi 25 Mai 2006 00:07, Dan Bishop a écrit : >> If I try to write something like: >> >> num_weeks = time_diff / datetime.timedelta(days=7) > > because it has no meaning, what you want is : > > num_weeks = time_diff.days / 7 > or > num_weeks =

RE: PEP-xxx: Unification of for statement and list-comp syntax

2006-05-24 Thread Delaney, Timothy (Tim)
Heiko Wundram wrote: > Am Mittwoch 24 Mai 2006 06:12 schrieb Tim Roberts: >> At one time, it was said that the "%" operator was the fastest way to >> concatenate strings, because it was implemented in C, whereas the + >> operator was interpreted. However, as I recall, the difference was >> hardly

Re: Compiling Python from Sources

2006-05-24 Thread [EMAIL PROTECTED]
rwr wrote: > configure:1687: checking for gcc > configure:1703: found /usr/bin/gcc > configure:1713: result: gcc At this point, configure thinks you have the gcc compiler installed. > configure:1753: checking for C++ compiler default output file name > configure:1756: gccconftest.cc >&5

Re: Best way to handle exceptions with try/finally

2006-05-24 Thread Enigma Curry
We used to have a try..except..finally syntax in Python. It was taken out a while ago for reasons unknown to me. The good news is that it is back in Python 2.5. I haven't tested it, but Guido said so himself: http://video.google.com/videoplay?docid=60331183357868340 -- http://mail.python.org/mai

Re: John Bokma harassment

2006-05-24 Thread Larry Elmore
Bill Atkins wrote: > John Bokma <[EMAIL PROTECTED]> writes: > > >>Ken Tilton <[EMAIL PROTECTED]> wrote: >> >> >>>Ben Bullock wrote: >>> "Xah Lee" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >If you believe this lobbying to my webhosting provider is unjust, >

Re: Large Dictionaries

2006-05-24 Thread Klaas
Chris: > Berkeley DB is great for accessing data by key for things already > stored on disk (i.e. read access), but write performance for each > key-value pair is slow due to it being careful about flushing > writes to disk by default. This is absolutely false. -Mike -- http://mail.python.org/

Re: pickling multiple dictionaries

2006-05-24 Thread manstey
Thanks very much. How large is *really* large for making pytables worthwhile. Our python script generates an xml file of about 450Mb. Is pytables worth using then? -- http://mail.python.org/mailman/listinfo/python-list

Re: Large Dictionaries

2006-05-24 Thread Klaas
Chris: > class StorageBerkeleyDB(StorageTest): >def runtest(self, number_hash): >db = bsddb.hashopen(None, flag='c', cachesize=8192) >for (num, wildcard_digits) in number_hash.keys(): >key = '%d:%d' % (num, wildcard_digits) >db[key] = None >db.clo

Re: NEWB: how to convert a string to dict (dictionary)

2006-05-24 Thread manstey
Thanks. I didn't know eval could do that. But why do many posts say they want a solution that doesn't use eval? -- http://mail.python.org/mailman/listinfo/python-list

Web frameworks and credit cards

2006-05-24 Thread Ed Leafe
I may have an opportunity to develop an online ordering system for a client, and will have the ability to develop using any tool I choose. Given the fact that there are more web frameworks in Python than keywords ;-) , what I need to know is any experience anyone out there has had i

Re: Python keywords vs. English grammar

2006-05-24 Thread Roy Smith
In article <[EMAIL PROTECTED]>, Boris Borcic <[EMAIL PROTECTED]> wrote: > Roy Smith wrote: > > and all three keywords are verbs, so when you describe the code, you can > > use the same English words as in the program source, "You try to execute > > some code, but it throws a foo, which is caug

Re: Compiling Python from Sources

2006-05-24 Thread rwr
Thank you ever so much mensanator!!! Very much appreciated! rwr -- http://mail.python.org/mailman/listinfo/python-list

Re: Why can't timedeltas be divided?

2006-05-24 Thread Robert Kern
Maric Michaud wrote: > Le Jeudi 25 Mai 2006 00:07, Dan Bishop a écrit : > >>If I try to write something like: >> >>num_weeks = time_diff / datetime.timedelta(days=7) > > because it has no meaning, Yes, it does. > what you want is : > > num_weeks = time_diff.days / 7 > or > num_weeks = (tim

Re: John Bokma harassment

2006-05-24 Thread Peter Decker
On 24 May 2006 15:26:12 GMT, John Bokma <[EMAIL PROTECTED]> wrote: > "Ant" <[EMAIL PROTECTED]> wrote: > > > I have no particular affinity for Xah's views, but what does get up my > > nose is usenet Nazism. > > That's because you're clueless. Sounds like your one of those Bush ass-lickers who think

Re: John Bokma harassment

2006-05-24 Thread usenet
Xah Lee wrote: > I do not like to post off-topic messages Oh REALLY? That's strange, because I don't recall ever seeing an on-topic message (a Perl message in a Perl newsgroup) from Xah. Every one of the many Xah post I've ever seen (including the "Philosopher" message that this thread morphed i

Re: John Bokma harassment

2006-05-24 Thread Peter Decker
On 24 May 2006 15:54:56 GMT, John Bokma <[EMAIL PROTECTED]> wrote: > And ain't it cool that reporting Xah's abuse might stop both? C'mon - admit it! you hafta be a Republican with a hardon for Bush! -- # p.d. -- http://mail.python.org/mailman/listinfo/python-list

Re: Compiling Python from Sources

2006-05-24 Thread rwr
Due to my ignorance exactly what do you mean by "In my case, I had to run configure over and over againeach time going through the log finding a new missing file, re-install, and repeat until the errors stopped." My Why I ask is that I utilized "apt-get install gcc" to install gcc. Are there addi

Re: IronPython 1.0 Beta 7 Released

2006-05-24 Thread vbgunz
maybe I am a bit ignorant and love living in the bliss of it and maybe I am a bit tired on the subject but may I ask you a question? if i decided to use IronPython for strict cPython work, is this possible? probably dumb when I can use cPython but is it still possible in case maybe sometime down th

<    1   2   3   >