Re: What minimum should a person know before saying "I know Python"

2013-09-22 Thread Gene Heskett
On Sunday 22 September 2013 23:41:10 Dennis Lee Bieber did opine: > On Sun, 22 Sep 2013 14:55:24 -0400, Gene Heskett > > declaimed the following: > >Then it seems to me that work in the direction should be an active > >feature request. Unforch, as I've said before, I'm rowing this barge > >with

Re: python, pythontex and plots

2013-09-22 Thread rusi
Take a look at babel http://www.cs.unm.edu/~eschulte/data/CISE-13-3-SciProg.pdf http://orgmode.org/worg/org-contrib/babel/intro.html Its my impression that babel supports everything and more that pylatex does ...the catch is that its under emacs...!! -- https://mail.python.org/mailman/listinfo/p

Re: Python Interview Questions

2013-09-22 Thread elisha . java
On Tuesday, October 30, 2007 12:24:04 PM UTC-7, Tim Chase wrote: > > I have used Python for a couple of projects last year and > > I found it extremely useful. I could write two middle size > > projects in 2-3 months (part time). Right now I am a bit > > rusty and trying to catch up again with P

Re: python, pythontex and plots

2013-09-22 Thread Steven D'Aprano
chitturk, you will probably get better answers if you actually explain your question rather than writing as if we can read your mind. More comments below: On Sun, 22 Sep 2013 19:16:35 -0700, chitturk wrote: > 1) The file is LaTeX > 2) the % means LaTeX will ignore it. Shouldn't you ask this on

Functional Programming and python

2013-09-22 Thread rusi
Combining your two questions -- Recently: What minimum should a person know before saying "I know Python" And earlier this On Sunday, August 4, 2013 10:00:35 PM UTC+5:30, Aseem Bansal wrote: > If there is an issue in place for improving the lambda forms then that's > good. I wanted a link about f

Re: python, pythontex and plots

2013-09-22 Thread chitturk
1) The file is LaTeX 2) the % means LaTeX will ignore it. 3) The question was about using pythontex with LaTeX 4) I included the file so you (OK, others) could see what I was trying 5) The problem had to do with accessing a file name within the python script using \py{outputfile} 6) pythontex

Re: Directory Web Site

2013-09-22 Thread worthingtonclinton
On Sunday, September 22, 2013 9:59:14 PM UTC-4, Dave Angel wrote: > On 22/9/2013 21:14, worthingtonclin...@gmail.com wrote: > > > > > Was hoping to get some tips or advice on scripting a program that would > > sort through my many links on my directory website and print out to me the > > ones

Re: Directory Web Site

2013-09-22 Thread worthingtonclinton
On Sunday, September 22, 2013 9:36:25 PM UTC-4, Joel Goldstick wrote: > On Sun, Sep 22, 2013 at 9:14 PM, wrote: > > Was hoping to get some tips or advice on scripting a program that would sort > through my many links on my directory website and print out to me the ones > that are broken or no

Re: Directory Web Site

2013-09-22 Thread Dave Angel
On 22/9/2013 21:14, worthingtonclin...@gmail.com wrote: > Was hoping to get some tips or advice on scripting a program that would sort > through my many links on my directory website and print out to me the ones > that are broken or no longer functioning so that I could fix or remove them > fro

Re: Why do I have to use "global" so much when using Turtle?

2013-09-22 Thread rusi
On Monday, September 23, 2013 12:27:50 AM UTC+5:30, John Ladasky wrote: > All right, never mind! > > > I hacked around this morning, making some changes to parts of my program that > I thought were unrelated to my namespace issues. I was paring it down to a > minimal example, to post here as N

Re: Directory Web Site

2013-09-22 Thread Joel Goldstick
On Sun, Sep 22, 2013 at 9:14 PM, wrote: > Was hoping to get some tips or advice on scripting a program that would > sort through my many links on my directory website and print out to me the > ones that are broken or no longer functioning so that I could fix or remove > them from the site. Any he

Re: Tryign to send mail via a python script by using the local MTA

2013-09-22 Thread alex23
On 21/09/2013 11:29 PM, William Ray Wing wrote: Νίκος , You CLEARLY don't understand. Just a public service reminder that Nikos' behaviour is _consistently_ that of his prefered nom de plume: "Ferrous Cranus is utterly impervious to reason, persuasion and new ideas, and when engaged in b

Directory Web Site

2013-09-22 Thread worthingtonclinton
Was hoping to get some tips or advice on scripting a program that would sort through my many links on my directory website and print out to me the ones that are broken or no longer functioning so that I could fix or remove them from the site. Any help, ideas, advice will be greatly appreciated.

Re: python, pythontex and plots

2013-09-22 Thread Steven D'Aprano
I don't usually top post, but for this I'll make an exception because I have *no idea* what any of your post means. Are you actually asking a question? I can't see a question mark in it, so there's no explicit question. Are you just sharing something interesting you have learned? Expecting us t

Re: Why does it have red squiggly lines under it if it works perfectly fine and no errors happen when I run it?

2013-09-22 Thread alex23
On 20/09/2013 5:01 PM, William Bryant wrote: I have one more question, is there any way I can make my program work on android tablets and ipads? Because I'd like to use it in school because we are learning statistics and we are allowed our devices in school. I'd recommend taking a look at kiv

Re: Sphinx Doctest: test the code without comparing the output.

2013-09-22 Thread Steven D'Aprano
On Sun, 22 Sep 2013 09:39:07 -0400, Ned Batchelder wrote: > On 9/22/13 12:09 AM, Luca Cerone wrote: >> Hi Chris, >> actually my priority is to check that the code is correct. I changed >> the syntax during the development, and I want to be sure that my >> tutorial is up to date. >> >> > If you do

Re: I want to print entry and exit message for functions , i have bunch of such function . How can i do it in decorator.

2013-09-22 Thread Terry Reedy
On 9/22/2013 2:57 PM, bab mis wrote: def funlog(f): def g(*args,**kw): print "enter", f.__name__ try: return f(*args, **kw) finally: print "exit", f.__name__ return g class Action: def __init__(self): pass @funlog

python, pythontex and plots

2013-09-22 Thread chitturk
\documentclass[12pt]{article} \usepackage{graphicx} \usepackage{wrapfig} % Allows in-line images \usepackage{pythontex} \setpythontexworkingdir{.} \begin{document} This is an example of using pythontex \begin{pycode} import pylab as p import numpy as np x = np.linspace(0.0,1.0,10) y = 2.0*x +

Re: What minimum should a person know before saying "I know Python"

2013-09-22 Thread Gene Heskett
On Sunday 22 September 2013 15:46:52 Gene Heskett did opine: > On Sunday 22 September 2013 14:49:21 Dennis Lee Bieber did opine: > > On Sat, 21 Sep 2013 02:22:59 -0400, Gene Heskett > > > > declaimed the following: > > >I was quite pleased to see that there was a Rexx/Regina for linux, > > >and

Re: Why do I have to use "global" so much when using Turtle?

2013-09-22 Thread John Ladasky
All right, never mind! I hacked around this morning, making some changes to parts of my program that I thought were unrelated to my namespace issues. I was paring it down to a minimal example, to post here as Ned requested. As an experiment, I also commented out the global declaration line in

Re: I want to print entry and exit message for functions , i have bunch of such function . How can i do it in decorator.

2013-09-22 Thread bab mis
On Friday, September 20, 2013 6:29:55 PM UTC+5:30, bab mis wrote: > def fun: > > print "entry" > > . > > . > > print " On Friday, September 20, 2013 6:29:55 PM UTC+5:30, bab mis wrote: > def fun: > > print "entry" > > . > > . > > print "exit" On Friday,

Re: What minimum should a person know before saying "I know Python"

2013-09-22 Thread Gene Heskett
On Sunday 22 September 2013 14:49:21 Dennis Lee Bieber did opine: > On Sat, 21 Sep 2013 02:22:59 -0400, Gene Heskett > > declaimed the following: > >I was quite pleased to see that there was a Rexx/Regina for linux, and > >for about 10 minutes thought I could make use of the library of ARexx > >

Re: Animations and images with use for commercial license

2013-09-22 Thread Terry Reedy
On 9/22/2013 1:09 PM, and...@zoho.com wrote: I am designing a roleplay game, right now i think i might go into the anime direction and style it accordingly... how do i get animations and images to give it a nice feeling. Where do you get your graphics from for such kind of games do you paint the

Animations and images with use for commercial license

2013-09-22 Thread andypu
Hello all, I am designing a roleplay game, right now i think i might go into the anime direction and style it accordingly... how do i get animations and images to give it a nice feeling. Where do you get your graphics from for such kind of games do you paint them yourself? -- https://mail.pyth

Re: Sphinx Doctest: test the code without comparing the output.

2013-09-22 Thread Luca Cerone
On Sunday, 22 September 2013 14:39:07 UTC+1, Ned Batchelder wrote: > On 9/22/13 12:09 AM, Luca Cerone wrote: > > > Hi Chris, > > > actually my priority is to check that the code is correct. I changed the > > syntax > > > during the development, and I want to be sure that my tutorial is up to

Re: Sphinx Doctest: test the code without comparing the output.

2013-09-22 Thread Luca Cerone
> This makes no sense. If you ignore the output, the code could do ANYTHING > > and the test would still pass. Raise an exception? Pass. SyntaxError? > > Pass. Print "99 bottles of beer"? Pass. > if you try the commands, you can see that the tests fail.. for example .. doctest:: >>> rais

Re: Why do I have to use "global" so much when using Turtle?

2013-09-22 Thread Nobody
On Sat, 21 Sep 2013 21:39:07 -0700, John Ladasky wrote: > However, neither Screen.ontimer() not Screen.onkeypress() appear to give > me a way to pass arguments to functions of my own. Why don't they? Is > this some limitation of Tk? I have worked with other GUI's before, and I > don't remember

Re: reload and work flow suggestions

2013-09-22 Thread rusi
On Sunday, September 22, 2013 3:13:13 AM UTC+5:30, Peter Cacioppi wrote: > This is an idea brought over from another post. > > When I write Python code I generally have 2 or 3 windows open simultaneously. > > > 1) An editor for the actual code. > 2) The interactive interpreter. > 3) An editor fo

Re: Sphinx Doctest: test the code without comparing the output.

2013-09-22 Thread Ned Batchelder
On 9/22/13 12:09 AM, Luca Cerone wrote: Hi Chris, actually my priority is to check that the code is correct. I changed the syntax during the development, and I want to be sure that my tutorial is up to date. If you do manage to ignore the output, how will you know that the syntax is correct?

Re: Sphinx Doctest: test the code without comparing the output.

2013-09-22 Thread Steven D'Aprano
On Sat, 21 Sep 2013 21:15:48 -0700, Luca Cerone wrote: > I am looking for a way to test the code while ignoring the output. This makes no sense. If you ignore the output, the code could do ANYTHING and the test would still pass. Raise an exception? Pass. SyntaxError? Pass. Print "99 bottles of

Re: [Savoynet] My sorrow, that I may share it with you

2013-09-22 Thread Chris Angelico
On Sun, Sep 22, 2013 at 8:25 PM, Steven D'Aprano wrote: > On Sun, 22 Sep 2013 19:32:49 +1000, Chris Angelico wrote: > >> On Sun, Sep 22, 2013 at 7:02 PM, Derrick McCLURE >> wrote: >>> Seriously, folks - a performing group which calls itself a Gilbert and >>> Sullivan Society but doesn't perform G

Re: Why do I have to use "global" so much when using Turtle?

2013-09-22 Thread Ned Batchelder
On 9/22/13 12:39 AM, John Ladasky wrote: For a while, I had a "quit" function that I bound to the q key: sc.onkeypress(quit, "q") The quit function simply printed a message, and then called sc.bye(). As with move_balls, quit wouldn't work unless I had a "global sc" declaration in it. (My sh

Re: Why do I have to use "global" so much when using Turtle?

2013-09-22 Thread Steven D'Aprano
On Sat, 21 Sep 2013 21:39:07 -0700, John Ladasky wrote: > Hi, folks, > > Some of you may remember that I am teaching some high school students > how to program. Because they all love graphics, I have been > investigating the turtle module, which I gather is built on top of Tk. > I can see that

Re: [Savoynet] My sorrow, that I may share it with you

2013-09-22 Thread Steven D'Aprano
On Sun, 22 Sep 2013 19:32:49 +1000, Chris Angelico wrote: > On Sun, Sep 22, 2013 at 7:02 PM, Derrick McCLURE > wrote: >> Seriously, folks - a performing group which calls itself a Gilbert and >> Sullivan Society but doesn't perform Gilbert and Sullivan is in the >> same category as a fool who doe

Re: Antispam measures circumventing

2013-09-22 Thread Jugurtha Hadjar
On 09/20/2013 08:02 PM, Joel Goldstick wrote: Last year I was playing around with django forms and wrote some code that required the user to add some numbers before the form was submitted. Here is the article: http://www.joelgoldstick.com/blog/2012/sep/30/django-forms/ This isn't exactly what

Re: [Savoynet] My sorrow, that I may share it with you

2013-09-22 Thread Chris Angelico
On Sun, Sep 22, 2013 at 7:02 PM, Derrick McCLURE wrote: > Seriously, folks - a performing group which calls itself a Gilbert and > Sullivan Society but doesn't perform Gilbert and Sullivan is in the same > category as a fool who doesn't follify or a cock who doesn't crow, and > should get the same

Re: Why do I have to use "global" so much when using Turtle?

2013-09-22 Thread Peter Otten
John Ladasky wrote: > Hi, folks, > > Some of you may remember that I am teaching some high school students how > to program. Because they all love graphics, I have been investigating the > turtle module, which I gather is built on top of Tk. I can see that > real-time applications are possible.