[Tutor] Installing the Numeric Module for 2.4 Again?

2008-11-26 Thread Wayne Watson
Title: Signature.html A fellow user of an application that I share with others may not have installed Numeric-24.2.win32-py2.4.exe. If I tell him to try it, will it replace the duplicate module if in fact he has already done it? -- Wayne Watson (Watson Adventures, Prop., Nevada C

Re: [Tutor] poll question]

2008-11-26 Thread Alan Gauld
"spir" <[EMAIL PROTECTED]> wrote Actually, my question is so trivial that it is difficult to let you understand what I want. Imagine you know there is a "char_range" function that returns a char string -- provided you properly inform it about the range you want. But, as you do not know exactly

[Tutor] [Fwd: Re: poll question]

2008-11-26 Thread spir
Alan Gauld a écrit : "spir" <[EMAIL PROTECTED]> wrote How would you call this function? e.g. digits = char_range(...) In other words: which is, for you personly, the most practicle or natural way of calling this func? Would you give me one or more calling example(s)? I'm not sure what yo

Re: [Tutor] accessing list from a string

2008-11-26 Thread Alan Gauld
"Kent Johnson" <[EMAIL PROTECTED]> wrote This works just as well: s = '__import__("os").system("rm -rf /")' I don' think it would since the eval would call tuple which would return a tuple of characters which would not unpack into x,y so throwing an error. Care to try it? It does raise an e

Re: [Tutor] poll question

2008-11-26 Thread spir
Holà, I forgot to ask for replies outside the list -- to avoid 'pollution' with off-topic posts. [EMAIL PROTECTED] Thank you, denis spir a écrit : Hello pythonistas, [...] ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/li

[Tutor] [Fwd: Re: Subprocess module]

2008-11-26 Thread David
-- Powered by Gentoo GNU/LINUX http://www.linuxcrazy.com --- Begin Message --- Judith Flores wrote: > Hello, > >A couple of weeks ago I posted a question about what documentation I > should read in order to implement a way to communicate Python and R. I read > about the module 'subprocess

Re: [Tutor] accessing list from a string

2008-11-26 Thread Kent Johnson
On Wed, Nov 26, 2008 at 2:46 PM, Alan Gauld <[EMAIL PROTECTED]> wrote: > > "Kent Johnson" <[EMAIL PROTECTED]> wrote > > e = "tuple(" + s + ")" > > x,y = eval(e)# x -> 2.5, y -> 2.8 >> >> This works just as well: >> s = '__import__("os").system("rm -rf /")' >> > > I don' think it

Re: [Tutor] poll question

2008-11-26 Thread Alan Gauld
"spir" <[EMAIL PROTECTED]> wrote How would you call this function? e.g. digits = char_range(...) In other words: which is, for you personly, the most practicle or natural way of calling this func? Would you give me one or more calling example(s)? I'm not sure what you are asking for. Do yo

[Tutor] Subprocess module

2008-11-26 Thread Judith Flores
Hello, A couple of weeks ago I posted a question about what documentation I should read in order to implement a way to communicate Python and R. I read about the module 'subprocess', but have not been able to do something very simple. I was wondering if you could tell me how to transfer a Py

Re: [Tutor] accessing list from a string

2008-11-26 Thread Alan Gauld
"Kent Johnson" <[EMAIL PROTECTED]> wrote e = "tuple(" + s + ")" x,y = eval(e)# x -> 2.5, y -> 2.8 This works just as well: s = '__import__("os").system("rm -rf /")' I don' think it would since the eval would call tuple which would return a tuple of characters which would not unpack

Re: [Tutor] poll question

2008-11-26 Thread Peter van der Does
On Wed, 26 Nov 2008 14:22:52 +0100 spir <[EMAIL PROTECTED]> wrote: > Hello pythonistas, > > I need some information about a topic. A list like python tutor is > the proper place to get it. Take this as a (stupid) game: would you > like to answer the following question? > > Imagine you are writin

Re: [Tutor] text file to excel csv file using python programming

2008-11-26 Thread Gilbert
Hi Kent, thanks for the valuable suggestion. to make it more clearer here is my example... Below is my input text file in dlg format. this dlg file contains 2 information. one is for coordinate x=50, y=55 and another is for coordinate x=60, y=65. **

[Tutor] poll question

2008-11-26 Thread spir
Hello pythonistas, I need some information about a topic. A list like python tutor is the proper place to get it. Take this as a (stupid) game: would you like to answer the following question? Imagine you are writing code. Then, you realise you need a tool function you have not yet written.

Re: [Tutor] How to get smooth, terminal-like interaction over the web

2008-11-26 Thread Kent Johnson
On Tue, Nov 25, 2008 at 6:50 PM, tchomby <[EMAIL PROTECTED]> wrote: > It's a simple text-based program, the interaction would work perfectly in a > terminal with the computer printing out lines of text to the user, and the > user > typing in lines of text and pressing return, and this is the kind

Re: [Tutor] How to get smooth, terminal-like interaction over the web

2008-11-26 Thread tchomby
On Wed, Nov 26, 2008 at 06:48:52AM -0500, bob gailer wrote: > > See http://code.google.com/p/pythoninthebrowser/. > >> I'm looking for simplicity and ease of use for a python programmer. I was just thinking that I'm sure I've seen Python and Ruby interpreters implemented in javascript or somethin

Re: [Tutor] accessing list from a string

2008-11-26 Thread Kent Johnson
On Wed, Nov 26, 2008 at 4:16 AM, Alan Gauld <[EMAIL PROTECTED]> wrote: > "John Fouhy" <[EMAIL PROTECTED]> wrote > >>> e = "tuple(" + e + ")" >>> >>> x,y = eval(e)# x -> 2.5, y -> 2.8 >>> >> If I, as an evildoer, can control e, it seems that I could set it to: >> >> ,), __import__('os').sys

Re: [Tutor] How to get smooth, terminal-like interaction over the web

2008-11-26 Thread bob gailer
tchomby wrote: I have an idea for a python program I want to write. I want to make this program accessible over the web for people to play with. And that's where I'm stuck -- I don't know what module, framework, protocol, or whatever to use to webify it. It's a simple text-based program, the

Re: [Tutor] accessing list from a string

2008-11-26 Thread Alan Gauld
"John Fouhy" <[EMAIL PROTECTED]> wrote e = "tuple(" + e + ")" x,y = eval(e)# x -> 2.5, y -> 2.8 If I, as an evildoer, can control e, it seems that I could set it to: ,), __import__('os').system('rm -rf /' I've never thought of myself as all that devious :-) Sorry John, too fast

Re: [Tutor] accessing list from a string

2008-11-26 Thread Alan Gauld
"John Fouhy" <[EMAIL PROTECTED]> wrote s = "[2.5,2.8]" # your string from the file e = "tuple(" + e + ")" This should of course be e = "tuple(" + s + ")" If I, as an evildoer, can control e, it seems that I could set it to: ,), __import__('os').system('rm -rf /' Assuming you