Re: ANN: Compyler 0.1

2007-08-13 Thread olsongt
> > + has the exact same semantics as compiler code. I was more > This "should read exact same semantics as python code" -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: Compyler 0.1

2007-08-13 Thread olsongt
> Grant Olson wrote: > > Compyler is a pre-alpha x86 native code compiler. > > In what ways is this similar or different to Shed > Skin?http://mark.dufour.googlepages.com/ > > --Irmen I've never actually downloaded shedskin, but my understanding is that it: + does type inference for speed, but

Re: Windows Debugging w/o MS

2007-05-24 Thread olsongt
> > Right, and this is what I would like to avoid having to do. > > Thanks, > Chris > > PS. Sorry for the duplicate olsongt Well I guess what I'm saying is, it's a pain to get a python debug environment up and running, regardless of your toolchain, but there isn&#x

Re: Windows Debugging w/o MS

2007-05-23 Thread olsongt
> > I've tried compiling python from source, and my extension module, > using MSVC8 (free express version), and I managed to get this to work. > The thing is, I don't want to have to recompile every single python > package I need (wxPython, SciPy, etc). > Debug builds are incompatible with releas

Re: Towards faster Python implementations - theory

2007-05-10 Thread olsongt
On May 9, 5:02 pm, John Nagle <[EMAIL PROTECTED]> wrote: > Paul Boddie wrote: > > Python has that capability mostly because it's free in an > "everything is a dictionary" implementation. ("When all you have > is a hash, everything looks like a dictionary".) But that limits > implementation p

Python at Google

2007-04-03 Thread olsongt
Here's an article about python at google. Apologies in advance. http://valleywag.com/tech/google/missing-python-tracked-down-249208.php -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3.0 unfit for serious work?

2007-02-21 Thread olsongt
On Feb 20, 9:04 pm, "Jeff Templon" <[EMAIL PROTECTED]> wrote: > yo, > > Bjorn, I am not sure I see why my post is bull crap. I think all you > are doing is agreeing with me. My post was entitled "Python 3.0 unfit > for serious work", you just indicated that the Linux distros will > agree with me,

Re: Help Required for Choosing Programming Language

2007-02-18 Thread olsongt
On Feb 16, 4:22 pm, [EMAIL PROTECTED] wrote: > I am VB6 programmer and wants to start new programming language but i > am unable to deciced. > > i have read about Python, Ruby and Visual C++. but i want to go > through with GUI based programming language like VB.net > > so will you please guide me

Re: Execute binary code

2007-01-08 Thread olsongt
impossible, that's basically what I did on a smaller scale in pyasm: http://mysite.verizon.net/olsongt/ A small C-stub executes arbirary asm that was originally built as a string. The tough part for you would be loading all of the referenced .dlls into memory and patching in all the relocation

Re: About alternatives to Matlab

2006-12-11 Thread olsongt
Paul Rubin wrote: > Jon Harrop <[EMAIL PROTECTED]> writes: > > F# runs under Linux with Mono. > > Interesting, where do I get it, and is there source? I've never been > interested in Mono but maybe this is a reason. How does the compiled > code compare to OCaml or MLton code? The source is aval

Re: good documentation about win32api ??

2006-12-01 Thread olsongt
__schronos__ wrote: > Hi all. > > Recently I've to developed a project in python that made operation > under win32 platform and I found a lot of problema to find good > information. The only one documentation is in ActivePython page > (http://aspn.activestate.com/ASPN/docs/ASPNTOC-APYTH2.4.0) bu

Re: profanity on comp.lang.python (was Re: Pyro stability)

2006-11-08 Thread olsongt
BartlebyScrivener wrote: > Chaz Ginger wrote: > > >> it is supposed to be about PYTHON. Get it? > > I agree. And Python is an extremely serious matter calling for decorum > and propriety. > > Don't say fuck, ni, peng, or ni-wom. > > http://en.wikipedia.org/wiki/Knights_who_say_Ni > > rd Does usin

Re: Looking for a Python-on-Windows person to help with SpamBayes

2006-10-23 Thread olsongt
[EMAIL PROTECTED] wrote: > I'm looking for some help with SpamBayes. It can be short-term or > long-term. I've implemented some OCR capability based on the open source > ocrad program that works reasonably well to extract text tokens from > image-based spam. Alas, I don't use Windows at all, so

Re: Restart a Python COM Server

2006-10-18 Thread olsongt
[EMAIL PROTECTED] wrote: > Hello all. > I am desperately in need for you help guys. Here is the story: > 1- I have created a small simple COM serve with python (along the lines > read in Win32 Programming with python). > 2- If I start the server and call a function from VBE everything works > fine

Re: building extensions for Windows Python

2006-10-13 Thread olsongt
JW wrote: > > My main problem is that I don't really grasp the big picture. Can someone > give me an overview of the requirements to build extensions for Windows > Python, circa 2.5? Or, can I tell my employer she'll just have to > hire/contract a Windows expert to do the mud wrestling? > > Jim

+1 QOTW

2006-09-22 Thread olsongt
Did anyone else crack up when Larry Wall described python with the statement: Python, as the "anti-Perl," is heavily invested in maintaining Order. In the state of the onion address? http://www.perl.com/pub/a/2006/09/21/onion.html -- http://mail.python.org/mailman/listinfo/python-list

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

2006-08-24 Thread olsongt
Peter Maas wrote: > Alex Martelli wrote: > > Indeed, it has been truthfully observed that Python's the only language > > with more web frameworks than keywords. > > > > I have already suggested to the BDFL that he can remedy this situation > > in Py3k: all he has to do, of course, is to add a LOT

Re: Clean way to not get object back from instantiation attempt gone bad

2006-08-18 Thread olsongt
tobiah wrote: > Suppose I do: > > > myfoo = Foo('grapes', 'oranges') > > And in the __init__() of Foo, there is > a real problem with the consumption of fruit. > Is there a clean way to ensure that myfoo > will be None after the call? Would the > __init__() just do del(self), or is there > a bett

Re: #!/usr/bin/python or #!/usr/bin/env python?

2006-08-09 Thread olsongt
Erik Max Francis wrote: > [EMAIL PROTECTED] wrote: > > > Basically, someone could inject an arbirtrary script called 'python' > > into your path that does whatever (rm -fr /) under your user context > > when you run the script. But the same thing would happen if you run > > 'python test.py' inste

Re: #!/usr/bin/python or #!/usr/bin/env python?

2006-08-09 Thread olsongt
Aahz wrote: > In article <[EMAIL PROTECTED]>, > John Salerno <[EMAIL PROTECTED]> wrote: > > > >I understand the difference, but I'm just curious if anyone has any > >strong feelings toward using one over the other? I was reading that a > >disadvantage to the more general usage (i.e. env) is that

Re: Info on continuations?

2006-08-08 Thread olsongt
vasudevram wrote: > Hi, > > I am Googling and will do more, found some stuff, but interested to get > viewpoints of list members on: > > Continuations in Python. > > Saw a few URLs which had some info, some of which I understood. But > like I said, personal viewpoints are good to have. > > Thanks

An interesting way to implement an abstract base class

2006-08-04 Thread olsongt
This one made me smile. From: http://aima.cs.berkeley.edu/python/utils.html#Queue class Queue: """Queue is an abstract class/interface. There are three types: Stack(): A Last In First Out Queue. FIFOQueue(): A First In First Out Queue. PriorityQueue(lt): Queue where i

Re: Comma is not always OK in the argument list?!

2006-07-28 Thread olsongt
Nick Vatamaniuc wrote: > Roman, > > According to the Python call syntax definition > (http://docs.python.org/ref/calls.html) commas should be allowed, so it > seems like a minor bug. Here are the lines in question: > -http://docs.python.org/ref/calls.html--- > call ::= primary "(" [a

Re: How to force a thread to stop

2006-07-25 Thread olsongt
Carl J. Van Arsdall wrote: > Jean-Paul Calderone wrote: > > On Mon, 24 Jul 2006 11:22:49 -0700, "Carl J. Van Arsdall" <[EMAIL > > PROTECTED]> wrote: > > > >> Steve Holden wrote: > >> > >>> Carl J. Van Arsdall wrote: > >>> [... rant ...] > >>> > >>> > So with this whole "hey mr. nice thread,

Re: attaching debugger to runinng python program

2006-07-14 Thread olsongt
alf wrote: > Bill Pursell wrote: > > Now, in another shell, > > % gdb > > (gdb) attach 54321 > > > > Thx for the reply. But I wish to debug the python program, not python > interpreter itself. I haven't used this, but it looks like it's worth a try: http://hapdebugger.sourceforge.net/ -- http:

Re: Multi-threaded FTP Question

2006-07-12 Thread olsongt
[EMAIL PROTECTED] wrote: > I'm trying to use ftp in python in a multi-threaded way on a windows > box - python version 2.4.3. Problem is that it appears that it's only > possible to have five instances/threads at one point in time. Errors > look like: > >File "C:\Python24\lib\ftplib.py", lin

Re: Running multiple versions of Python on the same host..

2006-07-10 Thread olsongt
Cowmix wrote: > For my day job I am forced to run RHEL3 (and Centos3 on my desktop). I > want to be able to use a few applications that require Python 2.4.X but > RHEL3 ships with Python 2.2.3. I have tried to install and upgrade > Python 2.4.X many ways like using PyVault and doing a source based

Re: Reddit broke - should have remained on Lisp?

2006-06-30 Thread olsongt
Kay Schluehr wrote: > > Please, since this is a Python+Lisp cross-thread and you seem to have > background info: can you explain why Lisp hackers have turned > themselves into Python newbies for Reddit impl. and finally complain > about the language switch? What was cause for their decision to use

Re: Bug reporting impossible

2006-06-29 Thread olsongt
> > I usually refrain from posting if I don't have anything to add to the > discussion, but that struck me as perverse and I was curious. > I certainly have no objection to having that bug fixed. : ) > If you find that sort of perversity strangely exciting, I would like to refer you to pages 67-

Re: Psyco tagging the same function multiple times

2006-06-28 Thread olsongt
[EMAIL PROTECTED] wrote: > I'm trying some stuff with Psyco and am confused about its apparent desire > to compile the same function (or method) multiple times). Here's an > abstract from a recent run: > > 12:45:15.99 tag function: __main__.Watcher.processUpdate% > 12:45:24.95 t

Re: Debugging C++ code called from Python 2.2 with Visual Studio.NET

2006-06-20 Thread olsongt
[EMAIL PROTECTED] wrote: > I can't seem to be able to download > http://www.python.org/ftp/python/2.2/Python-2.2.tgz. > Do you know if I can find it elsewhere? > Thanks, > Emmanuel The link you gave worked for me... -- http://mail.python.org/mailman/listinfo/python-list

Re: Debugging C++ code called from Python 2.2 with Visual Studio.NET

2006-06-20 Thread olsongt
[EMAIL PROTECTED] wrote: > Hi, > I'm trying to debug some VS native C++ code called from a python script > (version is 2.2). > For that, I added the _DEBUG macro in Setup.py but when I rebuild the > pyd file, I get a compilation error whereby it says that python22_d.lib > could not be found. > > I

Re: a good programming text editor (not IDE)

2006-06-15 Thread olsongt
John Salerno wrote: > Ant wrote: > > > jEdit is for me still the best text editor available. Very extensible > > with macros (which can be written in Jython with the appropriate plugin > > installed). > > I like the idea of being extensible, but of course I can only write in > Python. Are there an

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: 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 olsongt
Tim N. van der Leeuw wrote: > [EMAIL PROTECTED] wrote: > > I agree there are limits to you right to free speech, but I believe Xah > > Lee is not crossing > > any boundaries. If he starts taking over newspapers and TV stations be > > sure to notify me, > > I might revise my position. > > Immanuel

Re: Python Install

2006-05-18 Thread olsongt
Paul Osman wrote: > On 18-May-06, at 10:30 AM, D wrote: > > > I'm sure this is an easy question for most here, but it's throwing me > > for a loop at the moment - I need to upgrade RHEL 3 with the latest > > version of Python. I downloaded the source and installed, but we're > > still having prob

Re: Windows Registry Dump

2006-05-18 Thread olsongt
Dirk Hagemann wrote: > Hi! > > Does someone know how I can make a Text-Dump-File of a remote > Windows-Computer's Registry (not the whole registry - only a part of > it)? > > Thanks a lot for some code or a helpful link! > > regards > Dirk the win32api module has a bunch of Reg* functions that le

Did anyone get audio/video from PyCon 2006?

2006-05-16 Thread olsongt
The obvious link from google seems to indicate that no audio or video got captured. Is this true, or am I looking in the wrong place? http://tinyurl.com/zu9lo Thanks, Grant -- http://mail.python.org/mailman/listinfo/python-list

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

2006-05-07 Thread olsongt
Alex Martelli wrote: > Steve R. Hastings <[EMAIL PROTECTED]> wrote: >... > > > But the key in the whole thread is simply that indentation will not > > > scale. Nor will Python. > > > > This is a curious statement, given that Python is famous for scaling well. > > I think "ridiculous" is a bett

Re: Missing interfaces in Python...

2006-04-18 Thread olsongt
Rene Pijlman wrote: > [EMAIL PROTECTED]: > >If it looks like a duck, and quacks like a duck, then for all practical > >purposes it supports the 'duck' interface. > > The problem with that of course, is that there's much more to being a duck > than being called 'duck'. > > public interface JarFile

Re: Missing interfaces in Python...

2006-04-18 Thread olsongt
[EMAIL PROTECTED] wrote: > I'm coming from a Java background, so please don't stone me... > > I see that Python is missing "interfaces". The concept of an interface > is a key to good programming design in Java, but I've read that they > aren't really necessary in Python. I am wondering what techni

Re: how to comment lot of lines in python

2006-03-31 Thread olsongt
Eric Deveaud wrote: > [EMAIL PROTECTED] wrote: > > Like in C we comment like > > /* > > Bunch of lines of code > > */ > > > > Should we use docstring """ """ > > I would say NO. > docstring are displayed by pydoc, thus a pydoc on your code will display some > inconsistent information ;-) > d

Re: Validating Syntax only with PyParser_SimpleParseString ?

2006-03-29 Thread olsongt
[EMAIL PROTECTED] wrote: > I am seeking for a method to parse single lines of Python code (infact > they are only formulas, so I generate a line like RESULT=). I > do only want to know if the syntax is correct and if there is an error > best would be to know where. > > I did find PyParser_SimplePa

Re: in-place string reversal

2006-03-28 Thread olsongt
Sathyaish wrote: > How would you reverse a string "in place" in python? I am seeing that > there are a lot of operations around higher level data structures and > less emphasis on primitive data. I am a little lost and can't find my > way through seeing a rev() or a reverse() or a strRev() functio

Re: Python Debugger / IDE ??

2006-03-14 Thread olsongt
[EMAIL PROTECTED] wrote: > Is there any editor or IDE in Python (either Windows or Linux) which > has very good debugging facilites like MS VisualStudio has or something > like that. > > I like SPE but couldn't easily use winPDP. I need tips to debug my code > easily. > > Every help is greatly app

Advice from distutils experts?

2006-03-04 Thread olsongt
I'm doing something a little wierd in one of my projects. I'm generating a C source file based on information extracted from python's header files. Although I can just generate the file and check the result into source control, I'd rather have the file generated during the install process instead

Re: webbrowser module + urls ending in .py = a security hole?

2006-01-30 Thread olsongt
Http protocol give the content-type in the http headers, so the originating server determines how your browser is going to handle it, not the client browser. I think the problem is that the 'file://' protocol probably does use the registry keys above since it's not getting any HTTP headers. -- h

is this a unicode/string bug?

2005-12-09 Thread olsongt
I was going to submit to sourceforge, but my unicode skills are weak. I was trying to strip characters from a string that contained values outside of ASCII. I though I could just encode as 'ascii' in 'replace' mode but it threw an error. Strangely enough, if I decode via the ascii codec and then

Re: Python23.pdb

2005-04-25 Thread olsongt
Saravanan wrote: > Hello, > > 1) Is is possible to get the pdb files for the Python version 2.3.3? > > Python 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > on win32 > These don't exist. If you have access to VC 6.0 you could check out the appropriate tag from cvs and do your o

Re: Proposal: an unchanging URL for Python documentation

2005-04-20 Thread olsongt
Simon Brunning wrote: > > Yup, but it's not all unchanging. Take, for example, > . I have wanted to > steer people towards that page a number of times, and that node number > keeps changing. > Here's the code I've been using to translate the late

Re: terminate exectutioin in PythonWin

2005-04-13 Thread olsongt
> > > > > D'oh. I didn't think of that. > > Thanks > > Jim A little off-topic, but here's a little more fun with pythonwin. You can spawn the debugging environment from a normal python script running outside of pythonwin with: import pywin.debugger;pywin.debugger.set_trace() Also note that 'py

Re: I'm just an idiot when it comes logging

2005-03-23 Thread olsongt
Vinay Sajip wrote: > verizon.net> writes: > > > Handlers normally process all events passed to them, but you can set a level on > a handler to get it to drop events below a certain threshold. Since you haven't > done this, you will see an INFO message appear even though the root logger's > level

I'm just an idiot when it comes logging

2005-03-20 Thread olsongt
I'm trying to be a good boy and use the logging module but it's behaving rather counter-intuitively. I've posted a simplified test script below. To summarize, I've set the basic config to only log root level messages with >= ERROR level. I've created another named logger that logs on info level.

Re: pyasm 0.2 - dynamic x86 assembler for python

2005-03-13 Thread olsongt
[JanC] > The code below makes it possible to write assembler code for different > architectures (in case pyasm ever supports that ;) and also a Python > code version to use when running on a system where no assembler code > can be used. It prints: [Michael] > Another (perhaps wacky) approach woul

Re: PyAsm

2005-03-11 Thread olsongt
I haven't checked PyPy out lately. I was under the impression the Pyrex/C backend was still doing static compilation. Guess I'll have to take a look. -- http://mail.python.org/mailman/listinfo/python-list

Re: PyAsm

2005-03-10 Thread olsongt
Hey Roger, I didn't realize that Stefan replied to the list and sent a private email reply. There seemed to be a lag in google groups today. I basically told him that I might be crazy enough to write an assembler in python, but I'm not crazy enough to start using those function decorators. I'm

Re: pyasm 0.2 - dynamic x86 assembler for python

2005-03-08 Thread olsongt
> > # > ## helloWorld.py > ## assembly hello world script > # DOH! The example file got truncated. Here it is. # ## helloWorld.py ## assembly hello world script # fro

Re: OT: google groups bug, or worse?

2005-01-07 Thread olsongt
[EMAIL PROTECTED] wrote: > I'm concerned that google groups is not correctly reflecting the > python lists. A month ago I announced the xsdbXML framework to the > python list and the python-announce list. As you can see from the > links > below the python announce submission was approved by the

ANN: PyXR 0.9.4 - Cross-Referenced HTML from Python Source

2005-01-01 Thread olsongt
PyXR 0.9.4 - Cross-Referenced HTML from Python Source PyXR generates pretty-printed HTML pages from python source files to make source browsing easier. It provides extensive cross-referencenced hyperlinks that integrate with the Python Library Reference as well as other python source files. I