Error see image

2015-10-14 Thread laverdure02
hello I have this error while trying to re-install the program and it’s still show can you please help me ? Thanks!-- https://mail.python.org/mailman/listinfo/python-list

Re: request

2015-10-14 Thread udhay prakash pethakamsetty
Yes! it is working, and do you have any idea about pylauncher. If possible, could you brief something about it. *UDHAY PRAKASH* Ph:+91-9533787794 udhayprakash.blogspot.com On Wed, Oct 14, 2015 at 1:01 AM, Mathew Carrick wrote: > Hi Uday, > > Pip should support using the pip{version} command t

Re: Error see image

2015-10-14 Thread Laura Creighton
In a message of Wed, 14 Oct 2015 03:03:31 -, laverdur...@gmail.com writes: >hello I have this error >while trying to re-install the program and it’s still show >can you please help me ? 1. If you are running XP, you cannot run 3.5. XP is not supported. 2. Otherwise The api-ms-win-crt-runt

Python for Dummies exaple

2015-10-14 Thread NewsLeecher User
Hello, I have the book Python for Dummies and i downloaden from the Dummiesite some python examples. But with this script i get an error: But i have not so many experience to see what the error is. Good someone help me with this ? #Chapter 3 #Basic Elements and Syntax #= #SHORT EXAMPLES #

Re: Python for Dummies exaple

2015-10-14 Thread Chris Angelico
On Wed, Oct 14, 2015 at 8:55 PM, NewsLeecher User wrote: > But with this script i get an error: > But i have not so many experience to see what the error is. > Good someone help me with this ? You need to tell us what the error is :) But, looking in my crystal ball, I find a hint that you're usi

Re: Python for Dummies exaple

2015-10-14 Thread edmondo . giovannozzi
Il giorno mercoledì 14 ottobre 2015 12:04:30 UTC+2, Chris Angelico ha scritto: > On Wed, Oct 14, 2015 at 8:55 PM, NewsLeecher User wrote: > > But with this script i get an error: > > But i have not so many experience to see what the error is. > > Good someone help me with this ? > > You need to te

Re: Python for Dummies exaple

2015-10-14 Thread Chris Angelico
On Wed, Oct 14, 2015 at 8:55 PM, NewsLeecher User wrote: > #class example > class SayMyName: > def __init__(self, myname): > self.myname = myname > def say(self): > print "Hello, my name is", self.myname Side point: This is a poor example for _any_ Python. In Py2, that mak

Re: Python for Dummies exaple

2015-10-14 Thread NewsLeecher User
In reply to "edmondo.giovanno...@gmail.com" who wrote the following: > Il giorno mercoled=EC 14 ottobre 2015 12:04:30 UTC+2, Chris Angelico ha scr= > itto: > > On Wed, Oct 14, 2015 at 8:55 PM, NewsLeecher User wrote: > > > But with this script i get an error: > > > But i have not so many experienc

Re: Python for Dummies exaple

2015-10-14 Thread Peter Otten
Chris Angelico wrote: > On Wed, Oct 14, 2015 at 8:55 PM, NewsLeecher User > wrote: >> #class example >> class SayMyName: >> def __init__(self, myname): >> self.myname = myname >> def say(self): >> print "Hello, my name is", self.myname > > Side point: This is a poor examp

Re: Python for Dummies exaple

2015-10-14 Thread Chris Angelico
On Wed, Oct 14, 2015 at 11:47 PM, Peter Otten <__pete...@web.de> wrote: > Chris Angelico wrote: > >> On Wed, Oct 14, 2015 at 8:55 PM, NewsLeecher User >> wrote: >>> #class example >>> class SayMyName: >>> def __init__(self, myname): >>> self.myname = myname >>> def say(self): >>>

Python printing as a service - migration from WinXP to Win7/8 - issue with Win service privileges?

2015-10-14 Thread Kristof Keßler
Dear all, this is my first post to the list, so if I am not sufficiently detailed let me know. Not even sure if this is the best list to send this to as it seems to be an issue with Windows service privileges. We have been running a package of python scripts as services on a Windows XP machi

Execute Python Scripts

2015-10-14 Thread Cai Gengyang
So I am going through this article on Python for newbies ---http://askpython.com/execute-python-scripts/ Managed to create a file with these contents : 1 #!/usr/bin/env python3 2 3 print('hello world') and saved it as hello.py Next step, I wanted to open the 'command line' so I can type 'pyth

Re: Execute Python Scripts

2015-10-14 Thread paul.hermeneutic
> Where do I find the "command line" ? Welcome to Python. Starting a command shell depends on which operating system you are running. If you are on Microsoft Windows, choose the Start button, then type "cmd" into the edit control, then press Enter. -- https://mail.python.org/mailman/listinfo/py

Re: Execute Python Scripts

2015-10-14 Thread Cai Gengyang
On Thursday, October 15, 2015 at 1:18:27 AM UTC+8, paul.her...@gmail.com wrote: > > Where do I find the "command line" ? > > Welcome to Python. > > Starting a command shell depends on which operating system you are running. > > If you are on Microsoft Windows, choose the Start button, then type

Problem with copy.deepcopy and multiprocessing.Queue

2015-10-14 Thread James DeVincentis
I've got a bit of a problem with copy.deepcopy and using multiprocessing.Queue. I have an HTTPAPI that gets exposed to add objects to a multiprocessing.Qeue. Source code here: https://github.com/jmdevince/cifpy3/blob/master/lib/cif/api/handler.py#L283 The trouble is, even using deepcopy, m

Problem with copy.deepcopy and multiprocessing

2015-10-14 Thread James DeVincentis
I've got a bit of a problem with copy.deepcopy and using multiprocessing.Queue. I have an HTTPAPI that gets exposed to add objects to a multiprocessing.Qeue. Source code here: https://github.com/jmdevince/cifpy3/blob/master/lib/cif/api/handler.py#L283 The trouble is, even using deepcopy, m

Re: Execute Python Scripts

2015-10-14 Thread Ian Kelly
On Wed, Oct 14, 2015 at 11:04 AM, Cai Gengyang wrote: > So I am going through this article on Python for newbies > ---http://askpython.com/execute-python-scripts/ That looks like a terrible resource. There are plenty of tutorials and books out there that are actually good. I suggest starting wit

Re: Python for Dummies exaple

2015-10-14 Thread Steve Hayes
On Wed, 14 Oct 2015 12:32:33 GMT, NewsLeecher User wrote: >In reply to "edmondo.giovanno...@gmail.com" who wrote the following: > >> Il giorno mercoled=EC 14 ottobre 2015 12:04:30 UTC+2, Chris Angelico ha scr= >> itto: >> > On Wed, Oct 14, 2015 at 8:55 PM, NewsLeecher User wrote: >> > > But with

Re: Execute Python Scripts

2015-10-14 Thread Cai Gengyang
Ok thanks ... this --- https://docs.python.org/3/tutorial/index.html looks like a way more comprehensive resource. Paul Graham has written an excellent essay called "The Python Paradox" : http://www.paulgraham.com/pypar.html. Putting it here for sharing and discussion ... On Thursday, October

Installed 3.5.0 successfully on Windows 10, but where is DDLs, Doc, Lib, etc?

2015-10-14 Thread John S. James
I installed 3.5.0 today and it's working fine -- either from the command prompt, or running a .py script. But the Python 3.4 that was previously installed on the computer had a Python34 folder, which contained DDLs, Doc, include, Lib, and various other folders and files. I haven't found a compa

Re: Problem with copy.deepcopy and multiprocessing.Queue

2015-10-14 Thread MRAB
On 2015-10-14 18:41, James DeVincentis wrote: I’ve got a bit of a problem with copy.deepcopy and using multiprocessing.Queue. I have an HTTPAPI that gets exposed to add objects to a multiprocessing.Qeue. Source code here: https://github.com/jmdevince/cifpy3/blob/master/lib/cif/api/handler.py#L28

Re: Python for Dummies exaple

2015-10-14 Thread Terry Reedy
I found all the Python books available dealt with version 2.x, I searched "python 3 book" and immediately come up with Programming in Python 3 Dive Into Python 3 Python 3 for Absolute Beginners + 'free' Non-Programmer's Tutorial for Python 3 https://en.wikibooks.org/wiki/Non-Programmer's_Tuto

Re: Installed 3.5.0 successfully on Windows 10, but where is DDLs, Doc, Lib, etc?

2015-10-14 Thread Zachary Ware
On Wed, Oct 14, 2015 at 2:05 PM, John S. James wrote: > I installed 3.5.0 today and it's working fine -- either from the command > prompt, or running a .py script. > > But the Python 3.4 that was previously installed on the computer had a > Python34 folder, which contained DDLs, Doc, include, Li

Re: Installed 3.5.0 successfully on Windows 10, but where is DDLs, Doc, Lib, etc?

2015-10-14 Thread paul.hermeneutic
> Where can I find that folder? Or can I just ignore it for now (and get the documentation elsewhere)? If the install was done for "all users" on the machine, then the Python installation directory will be under " %SystemRoot%\Program Files\" for 64-bit or "%SystemRoot%\Program Files (x86)\" for 3

Re: Installed 3.5.0 successfully on Windows 10, but where is DDLs, Doc, Lib, etc?

2015-10-14 Thread MRAB
On 2015-10-14 20:05, John S. James wrote: I installed 3.5.0 today and it's working fine -- either from the command prompt, or running a .py script. But the Python 3.4 that was previously installed on the computer had a Python34 folder, which contained DDLs, Doc, include, Lib, and various other f

Sets vs lists loop behaviour if size changes

2015-10-14 Thread candide via Python-list
If set size changes during a for loop, a runtime exception is raised: ~~ S = {2015} for z in S: S.add(42) ~~ ~~ Traceback (most recent call last): File "_.py", line 2, in for z in S: RuntimeError: Set

Re: Sets vs lists loop behaviour if size changes

2015-10-14 Thread Ian Kelly
On Wed, Oct 14, 2015 at 3:11 PM, candide via Python-list wrote: > If set size changes during a for loop, a runtime exception is raised: > > [SNIP] > > Surprisingly, if a for loop changes the size of a list it is iterating on, no > exception is raised : > > [SNIP] > > So why lists and sets don't r

Re: Sets vs lists loop behaviour if size changes

2015-10-14 Thread Michiel Overtoom
> On 14 Oct 2015, at 23:11, candide via Python-list > wrote: > > If set size changes during a for loop, a runtime exception is raised A set is a kind of dictionary (without values). And why it can't be resized, is explained by Brandon Rhodes in his excellent talk 'The Mighty Dictionary', htt

Re: Sets vs lists loop behaviour if size changes

2015-10-14 Thread candide via Python-list
Thanks for the response and the reference, indeed sets and lists behave differently... -- https://mail.python.org/mailman/listinfo/python-list

Re: Installed 3.5.0 successfully on Windows 10, but where is DDLs, Doc, Lib, etc?

2015-10-14 Thread eryksun
On 10/14/15, Zachary Ware wrote: > > You can find where Python is installed using Python itself: try `py > -3.5 -c "import sys, os;os.system('explorer ' + sys.prefix)"` at the > Command Prompt, Here's a slightly simpler way to open the folder: py -3.5 -c "import os, sys; os.startfile(sys.pre

Re: Execute Python Scripts

2015-10-14 Thread Larry Hudson via Python-list
On 10/14/2015 10:04 AM, Cai Gengyang wrote: So I am going through this article on Python for newbies ---http://askpython.com/execute-python-scripts/ Managed to create a file with these contents : 1 #!/usr/bin/env python3 2 3 print('hello world') and saved it as hello.py You did write that f

Stylistic question regarding no-op code and tests

2015-10-14 Thread Jason Swails
Hi everyone, I'd like to get some opinions about some coding constructs that may seem at first glance to serve no purpose, but does have *some* non-negligible purpose, and I think I've come to the right place :). The construct is this: def my_function(arg1, arg2, filename=None): """ Some fun

Re: Stylistic question regarding no-op code and tests

2015-10-14 Thread Chris Angelico
On Thu, Oct 15, 2015 at 12:49 PM, Jason Swails wrote: > My question is, what do you think of the "else: pass" statement? It is a > complete no-op and is syntactically equivalent to the same code with those > lines removed. Up until earlier today, I would look at that and cringe (I > still do, a

Re: Stylistic question regarding no-op code and tests

2015-10-14 Thread Ben Finney
Jason Swails writes: > What I recently realized, though, that what this construct allows is > for the coverage testing package (which I have recently started > employing for my project... thanks Ned and others!) to detect whether > or not both code paths are covered in the test suite. Coverage.p

Re: Python for Dummies exaple

2015-10-14 Thread Steve Hayes
On Wed, 14 Oct 2015 15:23:25 -0400, Terry Reedy wrote: > >> I found all the Python books available dealt with version 2.x, > >I searched "python 3 book" and immediately come up with >Programming in Python 3 >Dive Into Python 3 >Python 3 for Absolute Beginners > >+ 'free' >Non-Programmer's Tutoria

write csv to object and read into pandas

2015-10-14 Thread Vincent Davis
I have a csv file I have to make some changes to before I read it into pandas. Currently I open the csv read each row, make changes and save it to a new file. Then read it into pandas with pandas.read_csv(). How do I skip writing the file to disk? Using python3.5. This is what I am doing now. wit