Re: cx_freeze_zipimporter_instance

2016-11-01 Thread Steven D'Aprano
On Wednesday 02 November 2016 14:55, the.ar...@gmail.com wrote: > can anybody help me in this problem... What problem? -- Steven git gets easier once you get the basic idea that branches are homeomorphic endofunctors mapping submanifolds of a Hilbert space. -- https://mail.python.org/mailm

Re: cx_freeze_zipimporter_instance

2016-11-01 Thread Nathan Ernst
No, because you've not provided anything resembling a question or a problem. Please provide a minimal example set of code that exposes the problem you are encountering, and describe the problem you are having. And note that we will not write code for you if it ends up looking like a homework proble

cx_freeze_zipimporter_instance

2016-11-01 Thread the . armsx
can anybody help me in this problem... -- https://mail.python.org/mailman/listinfo/python-list

Re: how to compile this code

2016-11-01 Thread meInvent bbird
>>> class ChangeAddToMultiply(ast.NodeTransformer, ast2.NodeTransformer): ... """Wraps all integers in a call to Integer()""" ... def visit_BinOp(self, node): ... print(dir(node)) ... print(dir(node.left)) ... if isinstance(node.op, ast.Add): ... ast.Call

Re: Announcement: PythonQL - An integrated query language for Python

2016-11-01 Thread Michael Torrie
On 11/01/2016 12:46 PM, Pavel Velikhov wrote: > Thanks for the feedback, will try to make the examples easier to find, > definitely! > Not too happy with the site layout myself... Was it obvious that you can play > around > with the examples - i.e. edit them and run modified versions? After I cl

[New Release] PyFTPD - an FTP server with GUI and CLI versions

2016-11-01 Thread Demosthenes Koptsis
Hello, i have just released the brand new FTP server based on pyftpdlib, named PyFTPD. You can run it from CLI with PyFTPD-cli.py or if you like GUIs run the PyFTPD.py It is written on PyQT4 and Python 2.7.12 More at https://github.com/demosthenesk/PyFTPD Regards, Dim -- https://mail.p

Re: Call a shell command from Python

2016-11-01 Thread Wildman via Python-list
On Tue, 01 Nov 2016 11:23:09 -0400, D'Arcy Cain wrote: > On 2016-11-01 01:23 AM, Ben Finney wrote: >> Wildman via Python-list writes: >> So the way your script was invoked has no bearing on whether Bash will >> get involved in what your script does. Your script is *directly* >> invoking programs,

Re: Announcement: PythonQL - An integrated query language for Python

2016-11-01 Thread Pavel Velikhov
On Tuesday, 1 November 2016 20:09:14 UTC+3, Peter Otten wrote: > Pavel Velikhov wrote: > > > On Tuesday, 1 November 2016 12:50:37 UTC+3, Peter Otten wrote: > >> Pavel Velikhov wrote: > >> > >> > We have released PythonQL, a query language extension to Python (we > >> > have extended Python’s

Re: Announcement: PythonQL - An integrated query language for Python

2016-11-01 Thread Pavel Velikhov
On Tuesday, 1 November 2016 20:16:43 UTC+3, Michael Torrie wrote: > On 11/01/2016 02:56 AM, Pavel Velikhov wrote: > > Hi Folks, > > > > We have released PythonQL, a query language extension to Python (we > > have extended Python’s comprehensions with a full-fledged query > > language, drawing fro

Re: Announcement: PythonQL - An integrated query language for Python

2016-11-01 Thread Michael Torrie
On 11/01/2016 02:56 AM, Pavel Velikhov wrote: > Hi Folks, > > We have released PythonQL, a query language extension to Python (we > have extended Python’s comprehensions with a full-fledged query > language, drawing from the useful features of SQL, XQuery and > JSONiq). Take a look at the project

Re: Announcement: PythonQL - An integrated query language for Python

2016-11-01 Thread Peter Otten
Pavel Velikhov wrote: > On Tuesday, 1 November 2016 12:50:37 UTC+3, Peter Otten wrote: >> Pavel Velikhov wrote: >> >> > We have released PythonQL, a query language extension to Python (we >> > have extended Python’s comprehensions with a full-fledged query >> > language, >> > drawing from the

Re: Announcement: PythonQL - An integrated query language for Python

2016-11-01 Thread Pavel Velikhov
On Tuesday, 1 November 2016 12:50:37 UTC+3, Peter Otten wrote: > Pavel Velikhov wrote: > > > We have released PythonQL, a query language extension to Python (we have > > extended Python’s comprehensions with a full-fledged query language, > > drawing from the useful features of SQL, XQuery and

Re: Call a shell command from Python

2016-11-01 Thread D'Arcy Cain
On 2016-11-01 01:23 AM, Ben Finney wrote: Wildman via Python-list writes: So the way your script was invoked has no bearing on whether Bash will get involved in what your script does. Your script is *directly* invoking programs, and if you don't ask for a shell to be involved you won't get it.

Re: Call a shell command from Python

2016-11-01 Thread Wildman via Python-list
On Tue, 01 Nov 2016 13:42:03 +, Grant Edwards wrote: > On 2016-11-01, Steve D'Aprano wrote: >> On Tue, 1 Nov 2016 04:00 pm, Wildman wrote: >> >>> You are correct about that but, in this case grep never "sees" the '$' >>> sign. Bash expands $USER to the actual user name beforehand. If you >>

Re: Call a shell command from Python

2016-11-01 Thread Wildman via Python-list
On Tue, 01 Nov 2016 16:52:18 +1100, Steve D'Aprano wrote: > On Tue, 1 Nov 2016 04:00 pm, Wildman wrote: > >> You are correct about that but, in this case grep never "sees" the '$' >> sign. Bash expands $USER to the actual user name beforehand. If you >> are on a Linux system, enter this into a

Re: Call a shell command from Python

2016-11-01 Thread Wildman via Python-list
On Tue, 01 Nov 2016 16:23:08 +1100, Ben Finney wrote: > Wildman via Python-list writes: > >> […] in this case grep never "sees" the '$' sign. Bash expands $USER to >> the actual user name beforehand. > > I understand how Bash substitutes variables on the command line. > > What I need to repeat

Re: Call a shell command from Python

2016-11-01 Thread Grant Edwards
On 2016-11-01, Steve D'Aprano wrote: > On Tue, 1 Nov 2016 04:00 pm, Wildman wrote: > >> You are correct about that but, in this case grep never "sees" the '$' >> sign. Bash expands $USER to the actual user name beforehand. If you >> are on a Linux system, enter this into a terminal to illustrate

Re: how to compile this code

2016-11-01 Thread Yann Kaiser
You want to replace the `Add` ast with a `Call` ast rather than just calling your function. Something like: if isinstance(node.op, ast.Add): return ast.Call(some_ast_expression_that_will_evaluate_to_op, [node.left, node.right], []) You'll have to replace some_ast_expression_... to so

Re: Need help with coding a function in Python

2016-11-01 Thread Andrea D'Amore
On 31 October 2016 at 23:09, wrote: > http://imgur.com/a/rfGhK#iVLQKSW > How do I code a function that returns a list of the first n elements > of the sequence defined in the link? I have no idea! For those who didn't open the page (that you should have linked at least as direct link to the

Re: Announcement: PythonQL - An integrated query language for Python

2016-11-01 Thread Peter Otten
Pavel Velikhov wrote: > We have released PythonQL, a query language extension to Python (we have > extended Python’s comprehensions with a full-fledged query language, > drawing from the useful features of SQL, XQuery and JSONiq). Take a look > at the project here: http://www.pythonql.org and le

Announcement: PythonQL - An integrated query language for Python

2016-11-01 Thread Pavel Velikhov
Hi Folks, We have released PythonQL, a query language extension to Python (we have extended Python’s comprehensions with a full-fledged query language, drawing from the useful features of SQL, XQuery and JSONiq). Take a look at the project here: http://www.pythonql.org and lets us know what you

Re: how to debug this distributed program?

2016-11-01 Thread meInvent bbird
i follow documentation and add keyfile to indicate the path of private key but still no response from program, what is the correct way to do? cluster = dispy.JobCluster(compute, nodes=['ec2-35-162-137-237.us-west-2.compute.amazonaws.com'], callback=job_callback, keyfile=r"C:\Users\martlee2\Dow

Re: how to debug this distributed program?

2016-11-01 Thread Steve D'Aprano
On Tue, 1 Nov 2016 06:40 pm, meInvent bbird wrote: > how to debug this distributed program? The same way you would debug any other program. http://sscce.org/ -- Steve “Cheer up,” they said, “things could be worse.” So I cheered up, and sure enough, things got worse. -- https://mail.pyth

how to debug this distributed program?

2016-11-01 Thread meInvent bbird
https://drive.google.com/open?id=0Bxs_ao6uuBDUSEc5S3U3Nko5ZjA A. i am not sure whether parameter start from 0 or 1 n[0] or n[1] in compute function B. it run a very long time and nothing to see in amazon linux instance there is no python program in top command C. in distributed programming web