zeep, infinite recursion

2017-05-29 Thread Nagy László Zsolt
Running this command: python3.6 -m zeep exmaple.wsdl I get this (this is only the end of the traceback): part = element.signature(schema, standalone=False) File "/usr/local/lib/python3.6/dist-packages/zeep/xsd/elements/indicators.py", line 252, in signature parts.append(element.signat

Re: zeep, infinite recursion

2017-05-29 Thread Jussi Piitulainen
Nagy László Zsolt writes: > Running this command: > > python3.6 -m zeep exmaple.wsdl > > I get this (this is only the end of the traceback): > ... > from zeep.xsd import ComplexType > RecursionError: maximum recursion depth exceeded > > Looks like an infinite recursion to me. Due to a non-dis

Re: zeep, infinite recursion

2017-05-29 Thread Peter Otten
Nagy László Zsolt wrote: > Running this command: > > python3.6 -m zeep exmaple.wsdl This example is no more, we heave ceased to see it, it's gone to meet its maker... this is an ex-ex-ample. > line 259, in signature > from zeep.xsd import ComplexType > RecursionError: maximum recursion dep

repeat until keypressed

2017-05-29 Thread Poul Riis
In good old pascal there was this one-liner command: repeat until keypressed Apparently there is no built-in analogue for that in python. I have explored several different possibilities (pyglet, keyboard, curses, ginput (from matplotlib) and others) but not managed to find anything that works th

Re: repeat until keypressed

2017-05-29 Thread jmp
On 05/29/2017 03:14 PM, Poul Riis wrote: In good old pascal there was this one-liner command: repeat until keypressed Apparently there is no built-in analogue for that in python. I have explored several different possibilities (pyglet, keyboard, curses, ginput (from matplotlib) and others) but

Re: repeat until keypressed

2017-05-29 Thread Peter Otten
Poul Riis wrote: > In good old pascal there was this one-liner command: > repeat until keypressed > > Apparently there is no built-in analogue for that in python. I have > explored several different possibilities (pyglet, keyboard, curses, ginput > (from matplotlib) and others) but not managed to

error i m getting in line no 4

2017-05-29 Thread Mohd Gausul Abdeen
import util def run_test (test): if test == 0: grid = [] util.create_grid (grid) print (len (grid)) print (len (grid[0])) print (len (grid[1])) print (len (grid[2])) print (len (grid[3])) print (grid[0][0]) print (grid[1][2]) print (grid[2][1]) print (grid[3][3]) elif test == 1: grid = [[0,0,0,0],

Re: error i m getting in line no 4

2017-05-29 Thread Chris Angelico
On Tue, May 30, 2017 at 2:36 AM, Mohd Gausul Abdeen wrote: > import util > > def run_test (test): > if test == 0: > grid = [] > util.create_grid (grid) Is this your actual code, or did you lose formatting when you posted it? Either way, make sure you retain indentation in Python code. Also, you

Re: error i m getting in line no 4

2017-05-29 Thread woooee
And you can simplify the code with something like this for all of the "grid=" statements new_grid = [[], [0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0], [2,0,2,0],[0,4,0,8],[0,16,0,128],[2,2,2,2], [0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]], [2,0,2,0],[0,4,0,8

Three good posts on speeding up CPython

2017-05-29 Thread Steve D'Aprano
http://www.corsix.org/content/micro-optimisations-can-speed-up-cpython https://www.corsix.org/content/compilers-cpython-interpreter-main-loop https://www.corsix.org/content/why-are-slots-so-slow -- Steve “Cheer up,” they said, “things could be worse.” So I cheered up, and sure enough, things

pypinfo: CLI to easily view PyPI download statistics via Google's BigQuery.

2017-05-29 Thread ofekmeister
https://github.com/ofek/pypinfo -- https://mail.python.org/mailman/listinfo/python-list

SweetRegex

2017-05-29 Thread breamoreboy
Hi folks, First poor old Ethan Furman loses his job as a vastly superior Enum is set into the wild, but now it looks as if MRAB is out owing to this https://github.com/ac1235/python-SweetRegex. I believe tht we need to have a whip round to ensure that neither Ethan or MRAB lose out finacially.

[Ask for Review] Scalpl: A lightweight wrapper to operate on nested dictionaries (yet another)

2017-05-29 Thread guillaume . paulet
Hi everyone :) I wanted to share with you the work I have done for the past few days. It is the first time for me to make my code public, so I would really appreciate if some of you find time to give me feedbacks and tips regarding this project :) So, here is Scalpl ! https://github.com/ducd

embed a package for proper fun script

2017-05-29 Thread Mahmood Naderan via Python-list
Hello, How it is possible to embed a package in my project? I mean, in my python script I have written import openpyxl So, the user may not have installed that package and doesn't understand what is pip! Please let me know the instructions or any document regarding that. Regards, Mahmood --

Re: repeat until keypressed

2017-05-29 Thread Terry Reedy
On 5/29/2017 12:14 PM, Dennis Lee Bieber wrote: On Mon, 29 May 2017 06:14:46 -0700 (PDT), Poul Riis declaimed the following: In good old pascal there was this one-liner command: repeat until keypressed Apparently there is no built-in analogue for that in python. I have explored several diffe

Re: The argparse docs don't say who's responsible for closing FileType objects

2017-05-29 Thread Peter Otten
Bob Kline wrote: > The subject line pretty much says it all. Should the programmer close the > file? If the programmer does that, and the user has asked that the file > object be hooked up to standard in (or standard out) what will happen? If > the programmer doesn't close it, does it get closed c