computer language python

2007-11-14 Thread balu
computer language python http://www.bidvertiser.com http://bigchurch.com/go/g906803-pmem http://indianfriendfinder.com/go/g906803-pmem -- http://mail.python.org/mailman/listinfo/python-list

Seeking Python Developer

2007-11-14 Thread sbix
Hi, I work for an IT company in Phoenix, AZ and am trying to find an experienced python developer in the area. Can anyone help? -- http://mail.python.org/mailman/listinfo/python-list

Re: How to evaluate the code object returned by PyParser_SimplePa rseString function?

2007-11-14 Thread Gabriel Genellina
En Wed, 14 Nov 2007 23:20:14 -0300, Borse, Ganesh <[EMAIL PROTECTED]> escribió: > Py_CompileString takes the source code from file, isn't it? > As can be seen from the syntax of this function: PyObject* > Py_CompileString(char *str, char *filename, int start) > > I want to parse the code which

Re: SPAM

2007-11-14 Thread Ben Finney
Arne Vajhøj <[EMAIL PROTECTED]> writes: > Lew wrote: > > SPAM is a registered trademark of Hormel Foods Corporation for a > > canned pork product. > > > > Spam is unwanted messages or email. > > Why not leave it to Hormel to complain ? Because it's better to deal with incorrect terminology at a s

Re: Magic class member variable initialization with lists

2007-11-14 Thread marek . rocki
This is the expected behaviour. The reference on classes (http:// docs.python.org/ref/class.html) says: > Variables defined in the class definition are class variables; > they are shared by all instances. To define instance variables, > they must be given a value in the __init__() method or in > a

no __len__ attribute in NodeList or the list base?

2007-11-14 Thread sndive
i extract class object from an instance of NodeList (minicompat.py) like so PyObject *pclass = PyObject_GetAttrString( nodelistinsance, "__class__"); but PyObject_GetAttrString(pclass, "__len__") returns NULL. i naively added __len__ = _get_length to NodeList but that ends up in endless r

Magic class member variable initialization with lists

2007-11-14 Thread neoone
Hi, I reported a bug to the bugtracker (issue 1443), but it was rejected with the comment: "Go ask on c.l.py why this is not a bug" After decrypting c.l.py to the name of this group, I'll do as I was told so nicely, because I really think it is a misconcept, and cost me two days because I couldn'

RE: How to evaluate the code object returned by PyParser_SimplePa rseString function?

2007-11-14 Thread Borse, Ganesh
Hi, Thanks for this information. I would like to know few more things. Py_CompileString takes the source code from file, isn't it? As can be seen from the syntax of this function: PyObject* Py_CompileString(char *str, char *filename, int start) I want to parse the code which is in memory - loa

Re: SPAM

2007-11-14 Thread Arne Vajhøj
Lew wrote: > Yes, but it's not SPAM. > > SPAM is a registered trademark of Hormel Foods Corporation for a canned > pork product. > > Spam is unwanted messages or email. It should be rather obvious what is was. Why not leave it to Hormel to complain ? Arne -- http://mail.python.org/mailman/li

Re: pyopenglcontext binaries for 2.5 on win32

2007-11-14 Thread kyosohma
On Nov 13, 12:03 am, gz <[EMAIL PROTECTED]> wrote: > no, I don't have them... I need them :) > > I'd like to thank Giovanni Bajo for providing binaries for the various > package dependencies, and geting me going with pyopengl. > > Unfortunately I only menaged to run a basic example, where there's n

Re: Unicode: matching a word and unaccenting characters

2007-11-14 Thread rndblnch
On Nov 15, 1:21 am, Jeremie Le Hen <[EMAIL PROTECTED]> wrote: > (Mail resent with the proper subject. > > Hi list, > > (Please Cc: me when replying, as I'm not subscribed to this list.) Don't know your mail, hope you will come back to look at the list archive... > I'm working with Unicode strings

Re: Unicode: matching a word and unaccenting characters

2007-11-14 Thread Gabriel Genellina
En Wed, 14 Nov 2007 21:21:55 -0300, Jeremie Le Hen <[EMAIL PROTECTED]> escribió: > (Please Cc: me when replying, as I'm not subscribed to this list.) Not a good thing. *I* may CC you now, but any further replies and comments from other people may leave the CC out. You can always browse this

problem calling ElementTree._ElementInterface.find with PyObject_CallObject

2007-11-14 Thread sndive
I have a weid problem. If i do this: import elementtree.ElementTree as ET ... tree = ET.parse("whatever") root = tree.getroot() r = root.find('last') print r return root where last is not an immediate child of root node i get back None. However if i comment the r = root.find('la

Re: webbrowser

2007-11-14 Thread Antonio Ceballos
Dennis, Cameron, You are absolutely right. I was not aware that the cgi was trying to open the new browser on the server -I am a beginner with cgi, python and javascript. This simple javascript does the job perfectly: window.open("http://www.google.com";); Thanks a lot, Antonio "Antonio Ceb

Unicode: matching a word and unaccenting characters

2007-11-14 Thread Jeremie Le Hen
(Mail resent with the proper subject. Hi list, (Please Cc: me when replying, as I'm not subscribed to this list.) I'm working with Unicode strings to handle accented characters but I'm experiencing a few problem. The first one is with regular expression. If I want to match a word composed of c

Re: cross-platform c questions

2007-11-14 Thread Gabriel Genellina
En Wed, 14 Nov 2007 20:49:35 -0300, Martin v. Löwis <[EMAIL PROTECTED]> escribió: >> Is there any rules/criteria to decide when to use Py_ssize_t, int, or >> long? I've seen them somewhat mixed and don't know when exactly to use >> Py_ssize_t. > > You should use Py_ssize_t when you are counting

Re: making a typing speed tester

2007-11-14 Thread Gabriel Genellina
En Wed, 14 Nov 2007 14:56:25 -0300, <[EMAIL PROTECTED]> escribió: >> 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

Unicode: matching a

2007-11-14 Thread Jeremie Le Hen
Hi list, (Please Cc: me when replying, as I'm not subscribed to this list.) I'm working with Unicode strings to handle accented characters but I'm experiencing a few problem. The first one is with regular expression. If I want to match a word composed of characters only. One can easily use '[a

Re: dependency algorithm

2007-11-14 Thread Henry
Hi - You want to linearise a dependency graph. The standard way to do this is to do a depth first search on the graph and output the nodes in reverse order of their finishing times (although your example looks like you want them in the reverse order, that is starting with the node on which nothing

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

2007-11-14 Thread Gabriel Genellina
En Wed, 14 Nov 2007 06:48:41 -0300, Borse, Ganesh <[EMAIL PROTECTED]> escribió: > `struct _node* PyParser_SimpleParseString(char *str, int start)' > Parse Python source code from STR using the start token START. The > result can be used to create a code object which can be evaluated > e

Re: cross-platform c questions

2007-11-14 Thread Martin v. Löwis
> Is there any rules/criteria to decide when to use Py_ssize_t, int, or > long? I've seen them somewhat mixed and don't know when exactly to use > Py_ssize_t. You should use Py_ssize_t when you are counting things, and when there is no small limit (e.g. 66536) to the maximum number of things you c

os.system() not returning

2007-11-14 Thread Yang
I have a Python program that does the following (pseudo-code): while True: is_downloading = True use ftplib to download any new files from a server is_downloading = False os.system('make') sleep(60) To deal with intermittent connectivity/failures (this is running on a mobile device), /e

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: 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

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: 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

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: 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

Embedded Python - Blocking Python Function

2007-11-14 Thread andy
I embed multiple interpreters. I create the interpreter and modules in the primary thread of my application: PyEval_AcquireLock(); thread = Py_NewInterpreter(); PyThreadState_Swap(thread); ...initialize modules, etc PyThreadState_Swap(maininterpreter); PyEval_ReleaseLock(); Then I create a

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

Re: dependency algorithm

2007-11-14 Thread Robert Kern
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 > c

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: 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: 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: 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

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

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

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

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: 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: 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: 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: 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: 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: 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: 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: 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

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 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

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: 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: 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

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: 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

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: 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

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

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: 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. >>

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: 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

SPAM

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

Fender Guitars

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

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: 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,

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: 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

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: 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: 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

Ultimate Guitars!!!!!

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

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: 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

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/

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: 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: 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: 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: 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: 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 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: 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 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: 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

[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: 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

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: 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: 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

  1   2   >