Re: function call problem in class?

2007-11-14 Thread Gabriel Genellina
En Wed, 14 Nov 2007 04:51:57 -0300, Davy <[EMAIL PROTECTED]> escribió: > I have write a simple class, I want the function two() to call private > function __one(), but there is an error : > NameError: global name '_simple__one' is not defined, how to work > around it > > class simple: > def __

Re: function call problem in class?

2007-11-14 Thread Davy
On Nov 14, 4:10 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Wed, 14 Nov 2007 04:51:57 -0300, Davy <[EMAIL PROTECTED]> escribió: > > > I have write a simple class, I want the function two() to call private > > function __one(), but there is an error : > > NameError: global name '_simple_

Re: cross-platform c questions

2007-11-14 Thread Martin v. Löwis
> When writing a python c extension for needs to be compiled for > Windows, Linux, and the Mac, > what cross-platform differences need to be accounted for?# >From a Python point of view, it's primarily the difference in the size of types. For example, long may vary across platforms, and so chan

re: mpmath puzzle

2007-11-14 Thread Fredrik Johansson
Dick Moores wrote: > For 1234 ** 10.9, why the wrong result from mpmath.power()? > > > #!/usr/bin/env python > #coding=utf-8 > from mpmath import * > > mpf.dps = 32 > > x = mpf(1234) > y = mpf(10.9) > > print power(x,y) > print "4.95832786481550414774152344

Re: Arrays

2007-11-14 Thread cokofreedom
On Nov 14, 3:51 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Modules contain objects. When you want to import a specific set of > objects contained in a module into the local namespace, you use: > from import > For example: > from math import sqrt > from math import sin, cos > > If

How to use the evaluate the code object returned by PyParser_Simp leParseString function?

2007-11-14 Thread Borse, Ganesh
Hi, Can someone please help me in the following question? On the web page http://olympus.het.brown.edu/cgi-bin/info2www?(python2.3-api)Very+High+Level+Layer, I got the following information: `struct _node* PyParser_SimpleParseString(char *str, int start)' Parse Python source code from STR

Re: Using Python To Change The World :)

2007-11-14 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > Hello, I'm a teen trying to do my part in improving the world, and me > and my pal came up with some concepts to improve the transportation > system. > > I have googled up and down for examples of using python to create a > city street but I can not find any. > > my o

Re: Equivalent of TCL's "subst" ?

2007-11-14 Thread Loic Mahe
gamename a écrit : > Hi, > > In TCL, you can do things like: > set foobar "HI!" > set x foo > set y bar > subst $$x$y > HI! > > Is there a way to do this type of evaluation in python? > > TIA, > -T > you can also try using eval: >>> foobar = "HI!" >>> x = 'foo' >>> y = 'bar' >>> print eva

Re: Using Python To Change The World :)

2007-11-14 Thread ingoogni
On Nov 14, 4:09 am, [EMAIL PROTECTED] wrote: > my question to YOU is: > can you point me in the right direction? I will search on my own, but > I would greatly appreciate any help :) have a look at http://simpy.sourceforge.net/ for the simulation part -- http://mail.python.org/mailman/listinfo/

Re: Using Python To Change The World :)

2007-11-14 Thread Marc 'BlackJack' Rintsch
On Wed, 14 Nov 2007 11:01:40 +0100, Diez B. Roggisch wrote: > [EMAIL PROTECTED] wrote: > >> Hello, I'm a teen trying to do my part in improving the world, and me >> and my pal came up with some concepts to improve the transportation >> system. > > […] > > Of course if you want to have more or l

Re: Populating a dictionary, fast [SOLVED]

2007-11-14 Thread Francesc Altet
A Tuesday 13 November 2007, Steven D'Aprano escrigué: > On Tue, 13 Nov 2007 17:27:11 +0100, Francesc Altet wrote: > > I don't know exactly why do you need a dictionary for keeping the > > data, but in case you want ultra-fast access to values, there is no > > replacement for keeping a sorted list o

Re: Populating a dictionary, fast [SOLVED]

2007-11-14 Thread Francesc Altet
A Wednesday 14 November 2007, Istvan Albert escrigué: > On Nov 13, 11:27 am, Francesc Altet <[EMAIL PROTECTED]> wrote: > > Another possibility is using an indexed column in a table in a DB. > > Lookups there should be much faster than using a dictionary as > > well. > > I would agree with others wh

Re: Convert some Python code to C++

2007-11-14 Thread Loic Mahe
[EMAIL PROTECTED] a écrit : > For those that understand algorithms and can talk Python, I want to > convert the Python code in the section "Reading out all LCSs" into C++ > code but I don't understand some of the syntax. Can anyone give me a > hand? > > def backTrackAll(C, X, Y, i, j): > if i

Re: ctypes pointers

2007-11-14 Thread Diez B. Roggisch
Giorgos Giagas wrote: > Hi all, > I have started using ctypes and I am having some questions I can't > seem to find the answers to. > > There is a structure referenced by a pointer in an other structure and > I want to see if it is one of the structures I have pointers to. > So what I think I nee

Re: Arrays

2007-11-14 Thread Steven D'Aprano
On Tue, 13 Nov 2007 20:25:07 -0500, Gordon C wrote: > OK Steve, But why do we say "from array import array" and NOT "from > math import math"? Why the difference in syntax? It isn't different syntax. The difference is that there is a function "array" (technically, a type rather than a function

ctypes pointers

2007-11-14 Thread Giorgos Giagas
Hi all, I have started using ctypes and I am having some questions I can't seem to find the answers to. There is a structure referenced by a pointer in an other structure and I want to see if it is one of the structures I have pointers to. So what I think I need is a way to compare 2 pointer's mem

Google's tolerance of spam

2007-11-14 Thread Paul Boddie
On 13 Nov, 23:03, Ben Finney <[EMAIL PROTECTED]> wrote: > > Their messages are an abuse of Google Groups's terms of service, and > Google will likely act on complaints that include a *full* copy of the > offending message. Unless things have changed recently, I doubt that Google can be bothered to

Re: Using Python To Change The World :)

2007-11-14 Thread Ant
On Nov 14, 3:09 am, [EMAIL PROTECTED] wrote: ... > so here is MY question: > how would you replicate a street intersection in python? and > furthermore, how would you do you have the cars move up and down those > "streets". I've never used it, but I'd have thought that pygame would satisfy the gra

Re: Arrays

2007-11-14 Thread Steven D'Aprano
On Tue, 13 Nov 2007 22:31:57 -0200, Jorge Godoy wrote: > Steven D'Aprano wrote: > >> "The only intuitive interface is the nipple. After that, it's all >> learned." -- Bruce Ediger on user interfaces. > > And after we learn its other "uses", not even the nipple is so easy... > Who haven't hear

pygobject replacement?

2007-11-14 Thread Linan
Hi, I have a python library which is written years ago and heavily using pygobject in binding signal/events (No GUI stuffs involve). Now I have to use it in a totally different environment which doesnot allow to install glib, gtk and gobject. Surely I don't want to change the whole structure of ha

Re: pygobject replacement?

2007-11-14 Thread Jarek Zgoda
Linan napisał(a): > I have a python library which is written years ago and heavily using > pygobject in binding signal/events (No GUI stuffs involve). Now I have > to use it in a totally different environment which doesnot allow to > install glib, gtk and gobject. Surely I don't want to change the

Re: cx_Oracle: Non-ASCII characters handling with different versions

2007-11-14 Thread Benjamin Hell
Benjamin Hell wrote: > On a computer with cx_Oracle version 4.1 (Python 2.4.3, Oracle 10g) > I can get query results consisting of strings including non-ASCII > characters, e.g. the code example below outputs "é 0xe9" (which is > the correct ISO-8859-1 hex code for "é"). On a newer installation > w

Re: ctypes pointers

2007-11-14 Thread Giorgos Giagas
On Nov 14, 2:00 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > Giorgos Giagas wrote: > > Hi all, > > I have started using ctypes and I am having some questions I can't > > seem to find the answers to. > > > There is a structure referenced by a pointer in an other structure and > > I want to se

Re: Using Python To Change The World :)

2007-11-14 Thread Eric S. Johansson
[EMAIL PROTECTED] wrote: > Hello, I'm a teen trying to do my part in improving the world, and me > and my pal came up with some concepts to improve the transportation > system. > > I have googled up and down for examples of using python to create a > city street but I can not find any. http://www

RE: Using Python To Change The World :)

2007-11-14 Thread Sells, Fred
It sounds as if this project is a major task based on your current level of experience. That being said, all we "pythonistas" encourage and support anyone who is trying to learn/apply python. Break the problem into 2 parts: --simulation math of what you're trying to do --cool visual display (2D

Re: Using Python To Change The World :)

2007-11-14 Thread Scott David Daniels
[EMAIL PROTECTED] wrote: > my objective is to replicate a section of los angeles using python, > and program the street lights and cars and whatnot. Should I be > looking towards 3D to do this? > > so here is MY question: > how would you replicate a street intersection in python? and > furthermore

Re: Looking for a good Python environment

2007-11-14 Thread Eric S. Johansson
[EMAIL PROTECTED] wrote: > Hey, I'm looking for a good Python environment. That is, at least an editor > and a debugger, and it should run on Windows. Does anyone have any idea? I've been looking for the equivalent although I want the IDE to run on Windows and to be able to edit/debug/bzr files on

Re: A JEW hacker in California admits distributing malware that let him steal usernames and passwords for Paypal accounts.

2007-11-14 Thread Don Bowey
On 11/14/07 3:30 AM, in article [EMAIL PROTECTED], "ChairmanOfTheBored" <[EMAIL PROTECTED]> wrote: > On Tue, 13 Nov 2007 20:32:10 -0800, Don Bowey <[EMAIL PROTECTED]> wrote: > >> Notice that I... > > acted like a total retard... again. > > Good job, retard boy. No problem. I'm glad I could he

[SOLVED] Re: os walk() and threads problems (os.walk are thread safe?)

2007-11-14 Thread Marcus Alves Grando
Ok. I found the problem. That's because in for i test "if EXIT" and break loop if it's true. In main part i'm wait Queue to be empty and set EXIT after that, with this subdirectories in for loop does not process and program exit. Because that output are not same. Removing "if EXIT" all works f

Creating Installer or Executable in Python

2007-11-14 Thread DanielJohnson
I have a small project which has around 10 .py files and I run this project using command line arguments. I have to distribute this project to somebody. I was wondering how can I make an executable or some kind of installer, so that end user doesn't need to compile and worry if he/ she has Python

Re: Creating Installer or Executable in Python

2007-11-14 Thread Shane Geiger
A few candidate solutions: http://nsis.sourceforge.net/Main_Page http://www.jrsoftware.org/isinfo.php DanielJohnson wrote: > I have a small project which has around 10 .py files and I run this > project using command line arguments. I have to distribute this > project to somebody. > > I was won

Re: Populating a dictionary, fast [SOLVED SOLVED]

2007-11-14 Thread Aaron Watters
On Nov 12, 12:46 pm, "Michael Bacarella" <[EMAIL PROTECTED]> wrote: > > > It takes about 20 seconds for me. It's possible it's related to > > int/long > > unification - try using Python 2.5. If you can't switch to 2.5, try > > using string keys instead of longs. > > Yes, this was it. It ran *very*

Re: Creating Installer or Executable in Python

2007-11-14 Thread Laszlo Nagy
DanielJohnson wrote: > I have a small project which has around 10 .py files and I run this > project using command line arguments. I have to distribute this > project to somebody. > > I was wondering how can I make an executable or some kind of > installer, so that end user doesn't need to compile

Re: Creating Installer or Executable in Python

2007-11-14 Thread J. Clifford Dyer
On Wed, Nov 14, 2007 at 03:34:14PM +0100, Laszlo Nagy wrote regarding Re: Creating Installer or Executable in Python: > > DanielJohnson wrote: > > I have a small project which has around 10 .py files and I run this > > project using command line arguments. I have to distribute this > > project to

Re: Creating Installer or Executable in Python

2007-11-14 Thread kyosohma
On Nov 14, 8:34 am, Laszlo Nagy <[EMAIL PROTECTED]> wrote: > DanielJohnson wrote: > > I have a small project which has around 10 .py files and I run this > > project using command line arguments. I have to distribute this > > project to somebody. > > > I was wondering how can I make an executable o

Re: Creating Installer or Executable in Python

2007-11-14 Thread DanielJohnson
Thanks for telling about py2exe. Is there any utility that will help to make it as a .deb or .rpm file (for Linux)? -- http://mail.python.org/mailman/listinfo/python-list

Re: why there is no pythonscript insine web browsers?

2007-11-14 Thread Piet van Oostrum
> [EMAIL PROTECTED] (k) wrote: >k> On Nov 12, 12:07 pm, Timuçin K z lay <[EMAIL PROTECTED]> wrote: >>> I'm an old programmer coming from a cobol background and started to >>> learn python. I'm using javasript for web based applications but after I >>> started to learn python, the javascript la

Re: Problem using os.environ.get

2007-11-14 Thread J. Robertson
[EMAIL PROTECTED] wrote: > > > # echo $HOSTTYPE > x86_64 > # python import os print os.environ.get('HOSTTYPE') > None > > If I do the same thing with a different variable (XILINX, in this > case), it works fine. bash documentation indicates that HOSTTYPE (and a few others: OSTYPE, MA

Re: Problem using os.environ.get

2007-11-14 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > Hello, > > I am trying to retrieve a linux environment variable using > os.environ.get, however it does not appear to be working properly. It > returns none for a variable that does, in fact exist. > > # echo $HOSTTYPE > x86_64 > # python import os print os.

Problem using os.environ.get

2007-11-14 Thread paragon . john
Hello, I am trying to retrieve a linux environment variable using os.environ.get, however it does not appear to be working properly. It returns none for a variable that does, in fact exist. # echo $HOSTTYPE x86_64 # python >>> import os >>> print os.environ.get('HOSTTYPE') None If I do the same

Re: Creating Installer or Executable in Python

2007-11-14 Thread sturlamolden
On 14 Nov, 16:17, DanielJohnson <[EMAIL PROTECTED]> wrote: > Thanks for telling about py2exe. Also note that you should build an MSI installer e.g. using InnoSetup after applying py2exe. You could skip the py2exe part and only use InnoSetup to create an MSI. Most likely your client will not care

Re: Using python as primary language

2007-11-14 Thread sturlamolden
On 13 Nov, 22:39, [EMAIL PROTECTED] wrote: > The wxPython user's group mentions charting quite a bit. I think they > use matplotlib among others. You might contact them for suggestions as > well. Indeed, use NumPy/SciPy and matplotlib if you are using Python for numerical computing and data visua

RE: Creating Installer or Executable in Python

2007-11-14 Thread Adam Pletcher
I'd second InnoSetup for Windows installers, it's easy and powerful (and free). However, I don't think it can create actual .MSI files, only .EXE installers. I wish it would create .MSIs, since those are easier to automatically deploy for large user groups. I'm not aware of any free tools for bu

Re: Global variables within classes.

2007-11-14 Thread Bruno Desthuilliers
Donn Ingle a écrit : (snip) > I have been hearing about "new classes" for a while but there's no clarity > in the Python docs (that I can find). Then you perhaps should have a closer look at the entries in the 'documentation' sub-menu of python.org !-) Anyway, here's a direct link: http://python

Re: pygobject replacement?

2007-11-14 Thread Linan
Thanks. It's very helpful. On Nov 14, 12:50 pm, Jarek Zgoda <[EMAIL PROTECTED]> wrote: > Linan napisa³(a): > > > I have a python library which is written years ago and heavily using > > pygobject in binding signal/events (No GUI stuffs involve). Now I have > > to use it in a totally different envi

Ultimate Guitars!!!!!

2007-11-14 Thread nutsbreaker
See all about it... http://guitarspirit.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Creating Installer or Executable in Python

2007-11-14 Thread Shawn O'Shea
Adam Pletcher wrote: > I'd second InnoSetup for Windows installers, it's easy and powerful (and > free). However, I don't think it can create actual .MSI files, only > .EXE installers. I wish it would create .MSIs, since those are easier > to automatically deploy for large user groups. > > I'm

Re: Using python as primary language

2007-11-14 Thread sturlamolden
On 14 Nov, 01:07, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > I'm not sure if you mean both above "compared to Java" - but I won't > call Swing/AWT "good" - eclipse doesn't come with SWT for nothing. Swing vs. SWT is a matter of taste and religion. The main complaint against Swing was how it

Re: Populating a dictionary, fast [SOLVED SOLVED]

2007-11-14 Thread Hrvoje Niksic
Aaron Watters <[EMAIL PROTECTED]> writes: > On Nov 12, 12:46 pm, "Michael Bacarella" <[EMAIL PROTECTED]> wrote: >> >> > It takes about 20 seconds for me. It's possible it's related to >> > int/long >> > unification - try using Python 2.5. If you can't switch to 2.5, try >> > using string keys inst

RE: current script path via execfile?

2007-11-14 Thread Adam Pletcher
That works well, thank you! - Adam > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Gabriel Genellina > Sent: Wednesday, November 14, 2007 12:34 AM > To: python-list@python.org > Subject: Re: current script path via execfile? > > En Tue, 13 Nov 20

Re: Using python as primary language

2007-11-14 Thread sturlamolden
On 8 Nov, 08:52, Michel Albert <[EMAIL PROTECTED]> wrote: > In our company we are looking for one language to be used as default > language. So far Python looks like a good choice (slacking behind > Java). A few requirements that the language should be able cope with > are: > > * Database access

Re: Creating Installer or Executable in Python

2007-11-14 Thread kyosohma
On Nov 14, 9:17 am, DanielJohnson <[EMAIL PROTECTED]> wrote: > Thanks for telling about py2exe. > > Is there any utility that will help to make it as a .deb or .rpm file > (for Linux)? You'll probably want to take a look at PyInstaller. It can be found here: http://pyinstaller.python-hosting.com/

making a typing speed tester

2007-11-14 Thread tavspamnofwd
Referred here from the tutor list. > I'm trying to write a program to test someones typing speed and show > them their mistakes. However I'm getting weird results when looking > for the differences in longer (than 100 chars) strings: > > import difflib > > # a tape measure string (just makes it ea

Building python packages for the correct architecture on OSX 10.5

2007-11-14 Thread Arnaud Delobelle
Hi fellow python enthusiasts. Having recently acquired a MacBook Pro (Intel Core 2 Duo) which comes with python2.5, I have been installing some modules that I need (PIL, psycopg2, PyXML ...). The problem is that [$python setup.py build] compiles all the binaries to universal files for i386 and pp

Re: private data stashed in local/global execution context of PyEval_EvalCode disappears down the execution stack

2007-11-14 Thread sndive
On Nov 14, 12:57 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Tue, 13 Nov 2007 19:59:56 -0300, <[EMAIL PROTECTED]> escribió: > > > working on a smaller example. i could not get pyNode_root invoked yet > > and > > PyRun_String("import node\nprint node.root()\n", > > Py_fi

Re: Loop three lists at the same time?

2007-11-14 Thread Michael J. Fromberger
In article <[EMAIL PROTECTED]>, Davy <[EMAIL PROTECTED]> wrote: > Hi all, > > I have three lists with the same length. Is there any method to loop > the three lists without a loop counter? > > Best regards, > Davy Davy, Look at the "zip" function,

Re: python - an eggs...

2007-11-14 Thread Bruno Desthuilliers
bruce a écrit : > hey dietz... (snip) > but yeah, you are a jerk (snip) you ignorant slut I don't think that insulting a more than helpful poster is the best way to get some help here in a near future. -- http://mail.python.org/mailman/listinfo/python-list

Re: mpmath puzzle

2007-11-14 Thread [EMAIL PROTECTED]
On Nov 13, 11:55 pm, Dick Moores <[EMAIL PROTECTED]> wrote: > For 1234 ** 10.9, why the wrong result from mpmath.power()? > > > #!/usr/bin/env python > #coding=utf-8 > from mpmath import * > > mpf.dps = 32 > > x = mpf(1234) > y = mpf(10.9) > > print power(x,

Trouble building pywin32 with Visual Studio 2005

2007-11-14 Thread danfike
Hi everybody... I'm hoping one of you reading this can help me out here. I'm having trouble getting pywin32 to build with Visual Studio 2005. But first, some background. I'm embedding Python in an MFC application. I've manually built Python .lib and .dll files using Visual Studio 2005 from the so

Re: Trouble building pywin32 with Visual Studio 2005

2007-11-14 Thread kyosohma
On Nov 14, 12:41 pm, [EMAIL PROTECTED] wrote: > Hi everybody... > > I'm hoping one of you reading this can help me out here. I'm having > trouble getting pywin32 to build with Visual Studio 2005. But first, > some background. > > I'm embedding Python in an MFC application. I've manually built > Pyt

Re: webbrowser.open still gives problem with file://

2007-11-14 Thread Greg Couch
"Gabriel Genellina" <[EMAIL PROTECTED]> writes: >En Mon, 12 Nov 2007 16:18:06 -0300, krishnakant Mane ><[EMAIL PROTECTED]> escribió: >> some days bac I posted a problem about webbrowser.open() not opening >> the file on the local machine. >> I get a few responses and I tryed working it out. >>

Feeding data into MySQLdb LOAD DATA from Python

2007-11-14 Thread John Nagle
Is it possible to feed data into a LOAD DATA command in MySQL without writing out the data to a file? It's possible to do this using the MySQL command line and a UNIX FIFO, but that's kind of clunky. I have to load a few gigabytes of data, and using INSERT takes a whole day for each update. An

Re: Looking for a good Python environment

2007-11-14 Thread Simon Pickles
Well, I am recent Windows escapee, and was dismayed by lack of Pyscripter for Linux. Hold on... there is hope! Pyscripter works great using WINE. search http://groups.google.com/group/PyScripter?hl=en for "Linux" Enjoy! Paul Rudin wrote: > jwelby <[EMAIL PROTECTED]> writes: > > > >> This

Re: Trouble building pywin32 with Visual Studio 2005

2007-11-14 Thread Martin v. Löwis
> Now, my theory on this issue is that DLLs like win32api.pyd, which I > acquired pre-built, were built with Visual Studio 2003, and they > depend on msvcr71.dll. My Python/MFC application, on the other hand, > was built with Visual Studio 2005, and is linking with msvcr80.dll. If > memory gets all

Fender Guitars

2007-11-14 Thread arturklis2
Best off http://fender-guitars-review.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

SPAM

2007-11-14 Thread just bob
-- http://mail.python.org/mailman/listinfo/python-list

Re: making a typing speed tester

2007-11-14 Thread kyosohma
On Nov 14, 11:56 am, [EMAIL PROTECTED] wrote: > Referred here from the tutor list. > > > I'm trying to write a program to test someones typing speed and show > > them their mistakes. However I'm getting weird results when looking > > for the differences in longer (than 100 chars) strings: > > > imp

Re: Building python packages for the correct architecture on OSX 10.5

2007-11-14 Thread Kevin Walzer
Arnaud Delobelle wrote: > Hi fellow python enthusiasts. > > Having recently acquired a MacBook Pro (Intel Core 2 Duo) which comes > with python2.5, I have been installing some modules that I need (PIL, > psycopg2, PyXML ...). > > The problem is that [$python setup.py build] compiles all the binar

Re: mpmath puzzle

2007-11-14 Thread kyosohma
On Nov 14, 3:20 am, "Fredrik Johansson" <[EMAIL PROTECTED]> wrote: > Dick Moores wrote: > > For 1234 ** 10.9, why the wrong result from mpmath.power()? > > > > > #!/usr/bin/env python > > #coding=utf-8 > > from mpmath import * > > > mpf.dps = 32 > > > x = mp

daemon under windows

2007-11-14 Thread Nikola Skoric
I wrote a simple UNIX daemon (using 2 forks) which does a simple job: it executes a function, waits for some time, and then executes it again. Now I'd like to port that to Windows. How do I create daemon on Windows (since I can't use fork)? -- "Now the storm has passed over me I'm left to drif

Re: SPAM

2007-11-14 Thread just bob
"John Bean" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Wed, 14 Nov 2007 11:04:35 -0800, "just bob" > <[EMAIL PROTECTED]> wrote: > >> > > Your SPAM appears to be non-existent. Vapourware. Not real. > > Shame, I fancied a Spam fritter. > The guy gets Google dollars when peopl

Re: SPAM

2007-11-14 Thread John Bean
On Wed, 14 Nov 2007 11:04:35 -0800, "just bob" <[EMAIL PROTECTED]> wrote: > Your SPAM appears to be non-existent. Vapourware. Not real. Shame, I fancied a Spam fritter. -- John Bean -- http://mail.python.org/mailman/listinfo/python-list

Re: Using Python To Change The World :)

2007-11-14 Thread scripteaze
On Nov 14, 7:42 am, Scott David Daniels <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > my objective is to replicate a section of los angeles using python, > > and program the street lights and cars and whatnot. Should I be > > looking towards 3D to do this? > > > so here is MY question:

Re: Building python packages for the correct architecture on OSX 10.5

2007-11-14 Thread Arnaud Delobelle
On Nov 14, 7:40 pm, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > This means the modules need to be compiles for at least both i386 and > > x86_64 in my case. > > Building Python in 64-bit mode as a universal (fat) binary is not > supported in Python 2.5, period. So any solution you come necessa

general information

2007-11-14 Thread [EMAIL PROTECTED]
hi my friends ; i keep one's mind; can i read this document ?? http://rapidshare.com/files/69725750/MTU.TRK pls somebody tell me it -- http://mail.python.org/mailman/listinfo/python-list

Re: Building python packages for the correct architecture on OSX 10.5

2007-11-14 Thread Martin v. Löwis
> This means the modules need to be compiles for at least both i386 and > x86_64 in my case. Building Python in 64-bit mode as a universal (fat) binary is not supported in Python 2.5, period. So any solution you come necessarily has to be a work-around. The only solution I can see is to make a pl

Re: general information

2007-11-14 Thread [EMAIL PROTECTED]
yyyyyyyyyyGyUykypy{yˆy‹y™y¢y ¥yµyºy½yÂyÔyäyçyêyêyzzz)z,zƒz»z¾zÃzÆz†{‰ {||g|l|l|l|l|l|r|·|·|Â|Ø| Û|}닁 '·› ¢¨ʁρԁU,˜,›, ,¡,¤ ,½,À,Å,Ë,ƒ ƒFƒ³ƒ¶ƒ¶ƒ¶ƒσσԃõƒùƒüƒ$,,',,l,,g...k...n

Re: mpmath puzzle

2007-11-14 Thread Fredrik Johansson
On Nov 14, 2007 8:21 PM, <[EMAIL PROTECTED]> wrote: > You could also use the Decimal module to keep things accurate. Some > people like numpy or scipy for the more complex math problems they do. Unlike mpmath, the decimal module doesn't support non-integer powers (except for square roots), and no

Re: SPAM

2007-11-14 Thread Lew
just bob wrote: > "John Bean" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> On Wed, 14 Nov 2007 11:04:35 -0800, "just bob" >> <[EMAIL PROTECTED]> wrote: >> >> Your SPAM appears to be non-existent. Vapourware. Not real. >> >> Shame, I fancied a Spam fritter. >> > > The guy gets

Re: daemon under windows

2007-11-14 Thread Martin v. Löwis
> I wrote a simple UNIX daemon (using 2 forks) which does a simple job: it > executes a function, waits for some time, and then executes it again. Now > I'd like to port that to Windows. How do I create daemon on Windows (since > I can't use fork)? On Windows, you develop "services". They are u

Re: Trouble building pywin32 with Visual Studio 2005

2007-11-14 Thread danfike
> > In order to test this theory (and potentially fix it), I want to re- > > build the pywin32 stuff using Visual Studio 2005. > > That might not be sufficient. You have to rebuild Python itself as well. Either I misunderstand, or you do. If it wasn't clear, I have already rebuilt Python using Vis

Re: SPAM

2007-11-14 Thread Steve
You can do a little spamming of your own here... http://help.blogger.com/?page=troubleshooter.cs&problem=&ItemType=spam&contact_type=Spam&Submit=Continue Just enter the offending blogspot URL and hopefully they'll sort this guy out. Steve "just bob" <[EMAIL PROTECTED]> wrote in message news:[

Re: cmp and sorting non-symmetric types

2007-11-14 Thread Raymond Hettinger
On Nov 13, 1:18 pm, Carl Banks <[EMAIL PROTECTED]> wrote: > The right solution is to use comparison operators > only for ordered comparisons, not for subset and superset testing. The whole point of the rich comparisons PEP was to be able to override the operators for other purposes. Raymond --

Re: cmp and sorting non-symmetric types

2007-11-14 Thread Raymond Hettinger
On Nov 13, 2:54 pm, Paul Rubin wrote: > Carl Banks <[EMAIL PROTECTED]> > > > resurrecting the __cmp__ operator. > > I didnd't realize __cmp__ was going. Are we really supposed to > implement all the rich comparison methods to code an ordered class? > Or is there some kin

Re: Building python packages for the correct architecture on OSX 10.5

2007-11-14 Thread Martin v. Löwis
>> a) even if your extension module becomes x86_64 with that mechanism, >>the Python interpreter itself (i.e. the Python framework) will be >>purely 32-bit code. So it should not link correctly. > > My machine disagrees: I see. I guess Apple has implemented that somehow; the official Pyth

SoCal Youth Python User Group

2007-11-14 Thread exodus
best name I could come up with, but I'm open to suggestions :) current site: http://sypug.blogspot.com/ irc: irc://irc.p2p-network.net/sypug I could only find one other SoCal python user group, and the members seemed more adult, job oriented (one of the guys had worked at Disney already..). Don

Re: Trouble building pywin32 with Visual Studio 2005

2007-11-14 Thread Martin v. Löwis
> Either I misunderstand, or you do. If it wasn't clear, I have already > rebuilt Python using Visual Studio 2005. I see. I must have misunderstood then - if you already rebuilt Python itself, all is fine. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

ANN: Chandler 0.7.2

2007-11-14 Thread Heikki Toivonen
The Chandler Project is pleased to announce the 0.7.2 release of Chandler Desktop! Download links, information on mailing lists, and how to get the sources are available from the homepage[1]. The 0.7.2 release is the second in a series of quick, time-based releases since Chandler Preview 0.7.0.1

Re: mpmath puzzle

2007-11-14 Thread Mark Dickinson
On Nov 14, 2:45 pm, "Fredrik Johansson" <[EMAIL PROTECTED]> wrote: > Unlike mpmath, the decimal module doesn't support non-integer powers > (except for square roots), and nor does gmpy (though you can do them > indirectly as mensanator showed earlier in the thread). And numpy / > scipy don't suppo

Re: Using Python To Change The World :)

2007-11-14 Thread dominiquevalentine
On Nov 14, 5:38 am, "Sells, Fred" <[EMAIL PROTECTED]> wrote: > It sounds as if this project is a major task based on your current level of > experience. That being said, all we "pythonistas" encourage and support > anyone who is trying to learn/apply python. > > Break the problem into 2 parts: >

Re: private data stashed in local/global execution context of PyEval_EvalCode disappears down the execution stack

2007-11-14 Thread Gabriel Genellina
En Wed, 14 Nov 2007 15:08:42 -0300, <[EMAIL PROTECTED]> escribió: > thank you. > result is the same however: > pyt: main.cpp:17: PyObject* pyNode_root(PyObject*, PyObject*): > Assertion `co' failed. Well, "is the same" in the sense that the code still doesn't do what you want... But the previou

dependency algorithm

2007-11-14 Thread Tom Jones
Hi, Consider tuples of the above numbers in the form: (a,b) Suppose this relation means: a depends on b Given a list of tuples, I would like an algorithm to return the proper ordering of the elements...and if the ordering has a loop (which in this case, prevents a proper ordering), then

Re: Distributed RVS, Darcs, tech love

2007-11-14 Thread Joachim Durchholz
Marc Espie schrieb: > Apart from the fact that Knuth wrote a book series that is still THE > definitive series on computer algorithms I don't wish to diminish Knuth's work, but it's definitely not timeless. For an alternative, see Sedgewick's "Algorithms in C/Pascal/whatever". Not as rigorous ab

Re: cross-platform c questions

2007-11-14 Thread Gabriel Genellina
En Wed, 14 Nov 2007 05:36:04 -0300, Martin v. Löwis <[EMAIL PROTECTED]> escribió: >> When writing a python c extension for needs to be compiled for >> Windows, Linux, and the Mac, >> what cross-platform differences need to be accounted for?# > > Not functions, no, but macros and typedefs. For

Re: Embedded Python - Blocking Python Function

2007-11-14 Thread Gabriel Genellina
En Wed, 14 Nov 2007 20:02:42 -0300, <[EMAIL PROTECTED]> escribió: > The problem is that the function "Main" in the Python script can take > up to 60 seconds to execute. How can I terminate this thread (and > therefore the Main function in python) cleanly from the primary thread > of my application

Re: dependency algorithm

2007-11-14 Thread Mike C. Fletcher
Tom Jones wrote: > Hi, > > Consider tuples of the above numbers in the form: >(a,b) > > Suppose this relation means: >a depends on b > > Given a list of tuples, I would like an algorithm to return the proper > ordering of the elements...and if the ordering has a loop (which in this > case

Custom Tkinter scrollbar

2007-11-14 Thread Hunter . lennon
I want to create a custom scrollbar using particular images, which will then be placed on a canvas to control another window on the canvas. Right now I am inheriting from scrollbar, but I do the movement with custom functions. When I create it and put in into the canvas with "canvas.create_windo

Re: Populating a dictionary, fast [SOLVED SOLVED]

2007-11-14 Thread Steven D'Aprano
On Wed, 14 Nov 2007 18:16:25 +0100, Hrvoje Niksic wrote: > Aaron Watters <[EMAIL PROTECTED]> writes: > >> On Nov 12, 12:46 pm, "Michael Bacarella" <[EMAIL PROTECTED]> wrote: >>> >>> > It takes about 20 seconds for me. It's possible it's related to >>> > int/long >>> > unification - try using Pyth

Re: Feeding data into MySQLdb LOAD DATA from Python

2007-11-14 Thread Larry Bates
John Nagle wrote: > Is it possible to feed data into a LOAD DATA command in MySQL without > writing out the data to a file? It's possible to do this using the > MySQL command line and a UNIX FIFO, but that's kind of clunky. > I have to load a few gigabytes of data, and using INSERT takes > a who

Re: dependency algorithm

2007-11-14 Thread Diez B. Roggisch
Tom Jones schrieb: > Hi, > > Consider tuples of the above numbers in the form: > (a,b) > > Suppose this relation means: > a depends on b > > Given a list of tuples, I would like an algorithm to return the proper > ordering of the elements...and if the ordering has a loop (which in this > c

  1   2   >