Re: Doctest documentation?

2012-05-20 Thread Hans Mulder
On 20/05/12 17:55:52, Steven D'Aprano wrote: > Is this a bug in the doctest documentation, or is my browser broken? > > On this page: > > http://docs.python.org/library/doctest.html#option-flags-and-directives > > scroll down to the examples showing the doctest directives, e.g: > > [quote]

Re: 2.x, 3.x iOS static build: Fatal Python error: exceptions bootstrapping error.

2012-05-20 Thread Terry Reedy
On 5/20/2012 11:33 PM, angelja...@gmail.com wrote: I'm trying to embed a part of python (core+some modules) in my iOS application for internal scripting. I have not read that anyone has run under iOS yet ;-). Good luck. I started from compiling original unmodified Python source. Tried both

Re: Django: metaWeblog: dir() doesn't show methods

2012-05-20 Thread alex23
On May 21, 1:01 pm, "." wrote: > Is this a bug or some sort of encapsulation? More or less the latter. What you have is a server proxy, something that passes data back & forth between your app and the XMLRPC-providing server. So when you dir() it, it's showing you the methods of the proxy, not o

Re: calling a simple PyQt application more than once

2012-05-20 Thread Jonathan
Hello Jabba, Did you ever find a solution to the problem? If so, can you please post it? Thanks, Jonathan -- View this message in context: http://python.6.n6.nabble.com/calling-a-simple-PyQt-application-more-than-once-tp4335946p4975385.html Sent from the Python - python-list mailing list archi

Re: How to hide console with Popen on Windows?

2012-05-20 Thread alex23
On May 18, 6:22 pm, xliiv wrote: > Like the topic, more details in followed links.. > http://stackoverflow.com/questions/10637450/how-to-hide-console-with-... Try replacing all of your code with something simple, a 'pass' op will do. Run the script again. Does the console still open? Then it's no

2.x,3.x iOS static build: Fatal Python error: exceptions bootstrapping error.

2012-05-20 Thread angeljanai
Hello! I'm trying to embed a part of python (core+some modules) in my iOS application for internal scripting. I started from compiling original unmodified Python source. Tried both 2.7.3 and 3.x latest source code. As I found no easy way to configure it, just tried to run configure from Mac OS

Re: bash/shell to python

2012-05-20 Thread Cameron Simpson
On 19May2012 08:27, Michael Torrie wrote: | On 05/16/2012 08:16 PM, Rita wrote: | > I currently build a lot of interfaces/wrappers to other applications | > using bash/shell. One short coming for it is it lacks a good method | > to handle arguments so I switched to python a while ago to use | > 'a

Django: metaWeblog: dir() doesn't show methods

2012-05-20 Thread .
Hello, I'm using Django and metaWeblog. s = xmlrpclib.Server("http://localhost:8000/xmlrpc/";) # Let's call a method s.metaWeblog.test() "Test" # It works #But it won't output available methods if I try to use dir() for this purpose dir(s.metaWeblog) ['_Method__name', '_Method__send', '__call__'

Re: Are there any instrumentation widgets for wxpython or tkinter?

2012-05-20 Thread CM
On May 17, 5:00 pm, Peter wrote: > Or wxPython is another good alternative. Download the demo and have a look at > the widgets people have already used/created. I think there are some good > choices for instrumentation (from memory). Yes, wxPython has some that are applicable: LEDNumberCtrl Pe

Re: Doctest documentation?

2012-05-20 Thread Devin Jeanpierre
This was previously reported as http://bugs.python.org/issue12947 -- Devin -- http://mail.python.org/mailman/listinfo/python-list

Re: what do these mean

2012-05-20 Thread Terry Reedy
On 5/20/2012 1:16 PM, Ian Kelly wrote: On Sun, May 20, 2012 at 10:52 AM, e-mail mgbg25171 wrote: There's a little forth program written in python here #http://openbookproject.net/py4fun/forth/forth.py I'm struggling to understand what these lines mean. def rJnz (cod,p) : return (cod[p],p+1)[d

Re: Doctest documentation?

2012-05-20 Thread Terry Reedy
On 5/20/2012 12:33 PM, Vincent Vande Vyvre wrote: On 20/05/12 17:55, Steven D'Aprano wrote: Is this a bug in the doctest documentation, or is my browser broken? On this page: http://docs.python.org/library/doctest.html#option-flags-and-directives scroll down to the examples showing the doctes

Re: what do these mean

2012-05-20 Thread Ian Kelly
On Sun, May 20, 2012 at 10:52 AM, e-mail mgbg25171 wrote: > There's a little forth program written in python here > #http://openbookproject.net/py4fun/forth/forth.py > I'm struggling to understand what these lines mean. > > def rJnz (cod,p) : return (cod[p],p+1)[ds.pop()] > def rJz  (cod,p) : retu

Re: what do these mean

2012-05-20 Thread Chris Angelico
On Mon, May 21, 2012 at 2:52 AM, e-mail mgbg25171 wrote: > def rJnz (cod,p) : return (cod[p],p+1)[ds.pop()] > def rJz  (cod,p) : return (p+1,cod[p])[ds.pop()==0] > > Specifically I'm stuck on what (code[p], followed by p+1 does inside the > brackets (cod[p],p+1) is a two-item tuple with [0] equal

what do these mean

2012-05-20 Thread e-mail mgbg25171
There's a little forth program written in python here #http://openbookproject.net/py4fun/forth/forth.py I'm struggling to understand what these lines mean. def rJnz (cod,p) : return (cod[p],p+1)[ds.pop()] def rJz (cod,p) : return (p+1,cod[p])[ds.pop()==0] Specifically I'm stuck on what (code[p],

Re: Doctest documentation?

2012-05-20 Thread Vincent Vande Vyvre
On 20/05/12 17:55, Steven D'Aprano wrote: > Is this a bug in the doctest documentation, or is my browser broken? > > On this page: > > http://docs.python.org/library/doctest.html#option-flags-and-directives > > scroll down to the examples showing the doctest directives, e.g: > > [quote] > F

Doctest documentation?

2012-05-20 Thread Steven D'Aprano
Is this a bug in the doctest documentation, or is my browser broken? On this page: http://docs.python.org/library/doctest.html#option-flags-and-directives scroll down to the examples showing the doctest directives, e.g: [quote] For example, this test passes: >>> print range(20)

Re: Python and Tkinter by John E Grayson

2012-05-20 Thread python
> Tk has gone through some dramatic improvements since that time. > One which has seen a lot of love is http://www.tkdocs.com/>. I agree with Ben. Tkinter (with ttk) is now a viable GUI framework. Key benefits of Tkinter/ttk to consider when evaluating other tool kits: 1. Tkinter/ttk is bundle

Re: .py to .pyc

2012-05-20 Thread 88888 Dihedral
On Saturday, May 19, 2012 7:54:18 PM UTC+8, Colin J. Williams wrote: > On 18/05/2012 7:20 PM, Tony the Tiger wrote: > > On Sun, 13 May 2012 23:36:02 +0200, Irmen de Jong wrote: > > > >> Why do you care anyway? > > > > Wanna hide his code...? > > > > /Grrr > Curiosity. Perhaps there are st ack-ba

DjangoCon Europe 2012

2012-05-20 Thread D.M. Procida
DjangoCon Europe, the community's biggest European event this year, is only two weeks away now. The packed schedule of talks has been posted, the site has been updated with useful information about Zürich , and the conference no