Re: Newbie - ? get IDLE going on cygwin

2006-09-13 Thread David J. Braden
Jason Tishler wrote: > Dave, > > On Wed, Sep 13, 2006 at 03:33:01PM +, David J. Braden wrote: >> I can now confirm that, yes, IDLE pops up w/o menus under cygwin. > > You should be able to workaround this problem by executing idle with the > "-n" option: > > $ idle -n > > Jason > Work

Re: time-based point system

2006-09-13 Thread Jay
That function is absolutely no good for this situation. 1. Take a small number. 5.4348809719085693 2. Put it in the function. f(5.4348809719085693) = 1/5.4348809719085693 3. Get a large number??? 0.18399666987533483 That number is even smaller. I want a large one coming out. Erik Max Francis

Re: How to build extensions on Windows?

2006-09-13 Thread Martin v. Löwis
John Machin schrieb: > Hi Martin, I do hope you don't regret opening Pandora's box :-) > > Does the following look about right? Technically, yes. I wonder whether it will generate unreadable error messages, though (one would have to try). > I was somewhat bemused by the limit of 200 bytes on the

Re: FtpUtils Progress Bar

2006-09-13 Thread George Sakkis
[EMAIL PROTECTED] wrote: > Hi, > I can successfully upload and download files using Stefan's Schwarzer's > ftputil script. > > The problem is that as some of the files are quite large you cannot see > how much has been downloaded/uploaded. > Even a percentage or just dots going across the screen wo

Re: How do I converted a null (0) terminated string to a Python string?

2006-09-13 Thread John Machin
Michael wrote: > Hi All, > > I've received (via UDP) a null terminated string and need to convert it > into a Python string. Can anyone tell me how this is done? If it helps, > I know the number of characters in the string. > I think you mean NUL, not null. What have you received it into, if it's

Re: parameter files

2006-09-13 Thread Russ
> I would try a configuration file, instead of a python module. > See ConfigParser: > . > You can save values for each "run" in a separate [section]. > Execfile is a pretty big hammer for this. Hey, that looks interesting, but those docs don't

Re: time-based point system

2006-09-13 Thread Erik Max Francis
Jay wrote: > That function is absolutely no good for this situation. > > 1. Take a small number. > 5.4348809719085693 > > 2. Put it in the function. > f(5.4348809719085693) = 1/5.4348809719085693 > > 3. Get a large number??? > 0.18399666987533483 > > That number is even smaller. I want a larg

Re: time-based point system

2006-09-13 Thread Gabriel Genellina
At Thursday 14/9/2006 00:46, Jay wrote: Okay, this is a game. So the points are abstract. It's like an arcade game in respect to the points. They don't actually mean or represent anything. The only point is to get a high score. The idea is that the faster the user acts (or reacts) the great

Re: time-based point system

2006-09-13 Thread Jay
I'm sorry. I never considered what you said about the relationship about the input and output. I'll take my thread elsewhere to a math board. Erik Max Francis wrote: > Jay wrote: > > > That function is absolutely no good for this situation. > > > > 1. Take a small number. > > 5.4348809719085693

Re: parameter files

2006-09-13 Thread Gabriel Genellina
At Thursday 14/9/2006 01:10, Russ wrote: > I would try a configuration file, instead of a python module. > See ConfigParser: > . > You can save values for each "run" in a separate [section]. > Execfile is a pretty big hammer for this. Hey, th

Re: How do I converted a null (0) terminated string to a Python string?

2006-09-13 Thread Michael
Thank you very much for your responses. To answer some of the questions... Yes, I am in Python receiving a C language 0 terminated string that was sent to my Python program in a UDP packet (which is how I know the count). Are your responses still correct given this clarification? Thanks much, MDM

Re: FtpUtils Progress Bar

2006-09-13 Thread Justin Ezequiel
[EMAIL PROTECTED] wrote: > > Does anyone have an example on how to show the progress of the > upload/download when using ftputil? > haven't used ftputil in quite a while ... but using ftplib... import ftplib class Callback(object): def __init__(self, totalsize, fp): self.totalsize =

Re: stock quotes

2006-09-13 Thread Bryan
Donlingerfelt wrote: > I would like to download stock quotes from the web, store them, do > calculations and sort the results. However I am fairly new and don't have a > clue how to parse the results of a web page download. I can get to the > site, but do not know how to request the certain data

Re: How do I converted a null (0) terminated string to a Python string?

2006-09-13 Thread John Machin
Michael top-posted [corrected]: > John Machin wrote: > > Michael wrote: > > > Hi All, > > > > > > I've received (via UDP) a null terminated string and need to convert it > > > into a Python string. Can anyone tell me how this is done? If it helps, > > > I know the number of characters in the strin

[ANN] IronPython Community Edition 1.0r1

2006-09-13 Thread Sanghyeon Seo
I am happy to announce IronPython Community Edition (IPCE for short) 1.0 revision 1, based on IronPython 1.0, to the world. Get it here: http://sparcs.kaist.ac.kr/~tinuviel/download/IPCE-1.0r1.zip Binary is built with Mono 1.1.17.1. Benefits of this edition: 1. You don't need to fight Mono with

Re: [ANN] IronPython Community Edition 1.0r1

2006-09-13 Thread Sanghyeon Seo
2006/9/14, Sanghyeon Seo <[EMAIL PROTECTED]>: > I am happy to announce IronPython Community Edition (IPCE for short) > 1.0 revision 1, based on IronPython 1.0, to the world. I haven't included Python standard library or my DB-API for IronPython modules or useful third party modules like ElementTre

Re: How do I converted a null (0) terminated string to a Python string?

2006-09-13 Thread Michael
John, Thanks for your reply. Just wondering... how are Python strings formatted? Evidently they're not 0 terminated. Thanks again, MDM John Machin wrote: > Michael top-posted [corrected]: > > John Machin wrote: > > > Michael wrote: > > > > Hi All, > > > > > > > > I've received (via UDP) a null t

Re: Are Python's reserved words reserved in places they dont need to be?

2006-09-13 Thread Cliff Wells
On Wed, 2006-09-13 at 10:30 +0200, Fredrik Lundh wrote: > Antoon Pardon wrote: > > > One place where I would use such a feature is in a unittest > > package. I think being able to write self.assert or self.raise > > looks better than having to append an underscore. > > patch here: > > http://ma

Re: [IronPython] [ANN] IronPython Community Edition 1.0r1

2006-09-13 Thread M. David Peterson
http://www.oreillynet.com/windows/blog/2006/09/seo_sanghyeonipce_ironpython_c.htmlSeo, do you have a blog I can point people to? Either way, Thanks!  This will make things TONS easier in regards to running IronPython on Mono. :)On 9/13/06, Sanghyeon Seo < [EMAIL PROTECTED]> wrote:I am happy to anno

Re: Refactor a buffered class...

2006-09-13 Thread lh84777
thanks a lot to all, i help me to learn a lot ! (i finally use the generator trick, it is great...) best regards. -- http://mail.python.org/mailman/listinfo/python-list

Re: How do I converted a null (0) terminated string to a Python string?

2006-09-13 Thread John Machin
Michael top-posted [again]: > > John Machin wrote: > > Michael top-posted [corrected]: > > > John Machin wrote: > > > > Michael wrote: > > > > > Hi All, > > > > > > > > > > I've received (via UDP) a null terminated string and need to convert > > > > > it > > > > > into a Python string. Can anyone

<    1   2   3