Re: how to setup for localhost:8000

2016-04-22 Thread wrh8609
On Sunday, April 17, 2016 at 1:11:39 PM UTC-4, Pierre Quentel wrote: > > > 127.0.0.1 - - [15/Apr/2016 20:57:32] "GET / HTTP/1.1" 200 - > > Hi Pierre, > > > > When I type http://localhost:8000, I did not see anything in the console > > after the line "Serving HTTP on 0.0.0.0 port 8000 ... I belie

Re: A pickle problem!

2016-04-22 Thread Paulo da Silva
Às 21:33 de 22-04-2016, Ian Kelly escreveu: > On Fri, Apr 22, 2016 at 2:21 PM, Paulo da Silva > wrote: ... > > If they start with two underscores then you could use the name > mangling to find them. If the class name is MyClass then look for any > keys in the instance dict that start with '_MyCla

Re: How much sanity checking is required for function inputs?

2016-04-22 Thread Michael Selik
On Fri, Apr 22, 2016, 1:26 AM Stephen Hansen wrote: > On Thu, Apr 21, 2016, at 08:33 PM, Christopher Reimer wrote: > > On 4/21/2016 7:20 PM, Stephen Hansen wrote: > > > I... that... what... I'd forget that link and pretend you never went > > > there. Its not helpful. > > > > I found it on the Int

Re: A pickle problem!

2016-04-22 Thread Ian Kelly
On Fri, Apr 22, 2016 at 2:21 PM, Paulo da Silva wrote: > Às 17:27 de 22-04-2016, Ian Kelly escreveu: >> On Thu, Apr 21, 2016 at 7:52 PM, Paulo da Silva >> wrote: >>> Às 22:43 de 21-04-2016, Paulo da Silva escreveu: > ... > >> >> Probably this is necessary because the DataFrame class is already >>

Re: A pickle problem!

2016-04-22 Thread Paulo da Silva
Às 17:27 de 22-04-2016, Ian Kelly escreveu: > On Thu, Apr 21, 2016 at 7:52 PM, Paulo da Silva > wrote: >> Às 22:43 de 21-04-2016, Paulo da Silva escreveu: ... > > Probably this is necessary because the DataFrame class is already > customizing its pickle behavior without taking into account the >

Re: dbf remove fields.

2016-04-22 Thread Ethan Furman
On 04/22/2016 11:28 AM, Ethan Furman wrote: On 04/22/2016 10:34 AM, Ricardo Aguilar wrote: Hi there i try to remove to fields in dbf table, how I can remove two fields? I wanna to remove because I have this error "ValueError: could not convert string to float: " But I no need this field.

Re: Remove directory tree without following symlinks

2016-04-22 Thread eryk sun
On Fri, Apr 22, 2016 at 12:39 PM, Albert-Jan Roskam wrote: > FYI, Just today I found out that shutil.rmtree raises a WindowsError if the > dir is read- > only (or its contents). Using 'ignore_errors', won't help. Sure, no error is > raised, but the > dir is not deleted either! A 'force' option w

Re: dbf remove fields.

2016-04-22 Thread Ethan Furman
On 04/22/2016 10:34 AM, Ricardo Aguilar wrote: Hi there i try to remove to fields in dbf table, how I can remove two fields? I wanna to remove because I have this error "ValueError: could not convert string to float: " But I no need this field. Have you tried my dbf package? https://p

dbf remove fields.

2016-04-22 Thread Ricardo Aguilar
Hi there i try to remove to fields in dbf table, how I can remove two fields? I wanna to remove because I have this error "ValueError: could not convert string to float: " But I no need this field. How I can remove this fields o ignore this ValueError? Any advice. Ricardo Alfonso

RE: Remove directory tree without following symlinks

2016-04-22 Thread Albert-Jan Roskam
> From: st...@pearwood.info > Subject: Re: Remove directory tree without following symlinks > Date: Sat, 23 Apr 2016 03:14:12 +1000 > To: python-list@python.org > > On Sat, 23 Apr 2016 01:09 am, Random832 wrote: > > > On Fri, Apr 22, 2016, at 10:56, Steven D'Aprano wrote: > >> What should I use

Re: Remove directory tree without following symlinks

2016-04-22 Thread Steven D'Aprano
On Sat, 23 Apr 2016 01:09 am, Random832 wrote: > On Fri, Apr 22, 2016, at 10:56, Steven D'Aprano wrote: >> What should I use for "remove_tree"? Do I have to write my own, or does a >> solution already exist? > > In the os.walk documentation it provides a simple recipe and also > mentions shutil.r

Re: Can't run lpr from python on windows 2012 server

2016-04-22 Thread eryk sun
On Fri, Apr 22, 2016 at 9:26 AM, Random832 wrote: > The problem with your question is that it's not a standard command, so none > of the rest of us have it, which means we're half-blind trying to find your > problem. lpr is a Windows feature that you may be able to enable. It's under "Print and

Re: Running lpr on windows from python

2016-04-22 Thread eryk sun
On Fri, Apr 22, 2016 at 10:07 AM, loial wrote: > I finally found the solution here : > > http://www.tomshardware.co.uk/forum/240019-44-error-windows > > Copied lpr.exe, lprhelp.dll, and lprmonui.dll from the System32 folder to the > sysWOW64 folder Using the virtual "SysNative" directory should

Re: A pickle problem!

2016-04-22 Thread Ian Kelly
On Thu, Apr 21, 2016 at 7:52 PM, Paulo da Silva wrote: > Às 22:43 de 21-04-2016, Paulo da Silva escreveu: >> Hi. >> >> Why in this code fragment self.__name is not kept between pickle >> dumps/loads? How to fix it? >> >> Thanks. >> >> import pickle >> import pandas as pd >> import numpy as np >> >

Re: Can't run lpr from python on windows 2012 server

2016-04-22 Thread Random832
On Fri, Apr 22, 2016, at 11:06, loial wrote: > Yes it does. I finally found the solution here : > > http://www.tomshardware.co.uk/forum/240019-44-error-windows > > Copied lpr.exe, lprhelp.dll, and lprmonui.dll from the System32 folder to > the sysWOW64 folder A better solution might be to instal

Re: Can't run lpr from python on windows 2012 server

2016-04-22 Thread loial
Yes it does. I finally found the solution here : http://www.tomshardware.co.uk/forum/240019-44-error-windows Copied lpr.exe, lprhelp.dll, and lprmonui.dll from the System32 folder to the sysWOW64 folder On Friday, April 22, 2016 at 3:27:18 PM UTC+1, Random832 wrote: > On Fri, Apr 22, 2016, a

Re: Running lpr on windows from python

2016-04-22 Thread loial
I finally found the solution here : http://www.tomshardware.co.uk/forum/240019-44-error-windows Copied lpr.exe, lprhelp.dll, and lprmonui.dll from the System32 folder to the sysWOW64 folder Thanks for all your efforts -- https://mail.python.org/mailman/listinfo/python-list

Re: Remove directory tree without following symlinks

2016-04-22 Thread Random832
On Fri, Apr 22, 2016, at 10:56, Steven D'Aprano wrote: > What should I use for "remove_tree"? Do I have to write my own, or does a > solution already exist? In the os.walk documentation it provides a simple recipe and also mentions shutil.rmtree -- https://mail.python.org/mailman/listinfo/python-

Re: Detecting repeated subsequences of identical items

2016-04-22 Thread Steven D'Aprano
On Fri, 22 Apr 2016 12:12 am, Chris Angelico wrote: > On Fri, Apr 22, 2016 at 12:01 AM, Oscar Benjamin > wrote: >> In the recursive stack overflow case what you'll usually have is >> >> 1) A few frames leading up to the start of recursion >> 2) A long repetitive sequence of frames >> 3) A few fra

Remove directory tree without following symlinks

2016-04-22 Thread Steven D'Aprano
I want to remove a directory, including all files and subdirectories under it, but without following symlinks. I want the symlinks to be deleted, not the files pointed to by those symlinks. E.g. if I have this tree: parent/ +-- spam/ : +-- a.txt : +-- b.txt : +-- eggs/ : : +-- c.txt :

Re: Can't run lpr from python on windows 2012 server

2016-04-22 Thread Random832
On Fri, Apr 22, 2016, at 10:15, loial wrote: > I am reposting this question in a simpler form. > > I can run lpr from the command prompt but not from python > > os.system("notepad") works > os.system("lpr") does not work. Basically it says lpr is not a known > program or executable > > Why can I

Can't run lpr from python on windows 2012 server

2016-04-22 Thread loial
I am reposting this question in a simpler form. I can run lpr from the command prompt but not from python os.system("notepad") works os.system("lpr") does not work. Basically it says lpr is not a known program or executable Why can I run lpr from the windows command prompt but not from python(2

Re: help

2016-04-22 Thread vittorio maria iacullo
Done! Thank you! 2016-04-22 12:57 GMT+02:00 vittorio maria iacullo : > Hi > I've just installed on my laptop python 3.5.1 > > but I get a error message. I alredy ran the "repair session". May you tell > me please what should I do? > > Best, > > -- > > > *Vittorio Maria Iacullo​* > -- *Vittori

Re: a problem with importing pygame

2016-04-22 Thread Tim Golden
On 22/04/2016 09:07, Kiril Bard wrote: > I use python for my school work and I wanted to download it at home. I had > my teacher download the version to a flash drive and it still doesn't seem > to work. The version that I got from the flash drive was python 3.4.2 and > I think I got a 32 bit or a

Re: Running lpr on windows from python

2016-04-22 Thread loial
Nothing seems to work. Even doing import os os.system("lpr") still returns 'lpr' is not recognized as an internal or external command,operable program or batch file. Even though I can run lpr fine from the command prompt -- https://mail.python.org/mailman/listinfo/python-list

Re: delete from pattern to pattern if it contains match

2016-04-22 Thread Jussi Piitulainen
Peter Otten writes: > harirammano...@gmail.com wrote: > >> On Thursday, April 21, 2016 at 7:03:00 PM UTC+5:30, Jussi Piitulainen >> wrote: >>> harirammano...@gmail.com writes: >>> >>> > On Monday, April 18, 2016 at 12:38:03 PM UTC+5:30, >>> > hariram...@gmail.com wrote: >>> >> HI All, >>> >> >>>

Re: delete from pattern to pattern if it contains match

2016-04-22 Thread Peter Otten
harirammano...@gmail.com wrote: >> @peter yes here it is not xml, but real data is an xml..believe me.. > > @peter this is the similar xml i am having, you can correlate. > > https://tomcat.apache.org/tomcat-5.5-doc/appdev/web.xml.txt This is still too vague. If you post the code you actually

Re: delete from pattern to pattern if it contains match

2016-04-22 Thread Peter Otten
harirammano...@gmail.com wrote: > On Thursday, April 21, 2016 at 7:03:00 PM UTC+5:30, Jussi Piitulainen > wrote: >> harirammano...@gmail.com writes: >> >> > On Monday, April 18, 2016 at 12:38:03 PM UTC+5:30, >> > hariram...@gmail.com wrote: >> >> HI All, >> >> >> >> can you help me out in doing

Re: delete from pattern to pattern if it contains match

2016-04-22 Thread harirammanohar
On Friday, April 22, 2016 at 2:30:45 PM UTC+5:30, hariram...@gmail.com wrote: > On Thursday, April 21, 2016 at 4:55:18 PM UTC+5:30, Peter Otten wrote: > > harirammano...@gmail.com wrote: > > > > > On Monday, April 18, 2016 at 12:38:03 PM UTC+5:30, hariram...@gmail.com > > > wrote: > > >> HI All, >

Re: delete from pattern to pattern if it contains match

2016-04-22 Thread harirammanohar
On Thursday, April 21, 2016 at 4:55:18 PM UTC+5:30, Peter Otten wrote: > harirammano...@gmail.com wrote: > > > On Monday, April 18, 2016 at 12:38:03 PM UTC+5:30, hariram...@gmail.com > > wrote: > >> HI All, > >> > >> can you help me out in doing below. > >> > >> file: > >> > >> guava > >> frui

Re: delete from pattern to pattern if it contains match

2016-04-22 Thread harirammanohar
On Thursday, April 21, 2016 at 7:03:00 PM UTC+5:30, Jussi Piitulainen wrote: > harirammano...@gmail.com writes: > > > On Monday, April 18, 2016 at 12:38:03 PM UTC+5:30, > > hariram...@gmail.com wrote: > >> HI All, > >> > >> can you help me out in doing below. > >> > >> file: > >> > >> guava

a problem with importing pygame

2016-04-22 Thread Kiril Bard
I use python for my school work and I wanted to download it at home. I had my teacher download the version to a flash drive and it still doesn't seem to work. The version that I got from the flash drive was python 3.4.2 and I think I got a 32 bit or a 64 bit pygame for a windows machine. The prog