Re: system error - api-ms-win-crt-runtime-l1-1-0.dll

2015-10-28 Thread Terry Reedy
On 10/29/2015 1:02 AM, Nagu Koppula wrote: Hi Could you help me to resolve below error in my windows 7 laptop? I had tried re-installing / repair, still error persists. Error - screenshot Copy the relevant parts into your text message. Ever heard of a search bar? Google? This error messa

Re: Most space-efficient way to store log entries

2015-10-28 Thread Martin A. Brown
Hello Marc, I think you have gotten quite a few answers already, but I'll add my voice. > I'm writting an application that saves historical state in a log > file. If I were in your shoes, I'd probably use the logging module rather than saving state in my own log file. That allows the applic

system error - api-ms-win-crt-runtime-l1-1-0.dll

2015-10-28 Thread Nagu Koppula
Hi Could you help me to resolve below error in my windows 7 laptop? I had tried re-installing / repair, still error persists. Error - screenshot Regards, Nagu -- https://mail.python.org/mailman/listinfo/python-list

Re: Most space-efficient way to store log entries

2015-10-28 Thread Tim Chase
On 2015-10-29 00:21, Mark Lawrence wrote: > On 28/10/2015 22:53, Tim Chase wrote: >> If nobody is monitoring the logs, just write them to /dev/null >> for 100% compression. ;-) > > Can you get better than 100% compression if you write them to > somewhere other than /dev/null/ ? Well, /dev/null is

Re: UNABLE TO GET IDLE TO RUN

2015-10-28 Thread Michael Torrie
On 10/28/2015 12:21 PM, Peter Otten wrote: > PS: The shell people have learned their lesson and no longer include the > working directory in the PATH: > $ ls # the real thing > $ ./ls # use at your own risk Sure but this is a somewhat different genre. > > So maybe > import string # stdl

Re: Most space-efficient way to store log entries

2015-10-28 Thread Chris Angelico
On Thu, Oct 29, 2015 at 12:09 PM, Cameron Simpson wrote: > On 29Oct2015 11:39, Chris Angelico wrote: >>> >>> If it's only zipped, it's not opaque. Just `zcat` or `zgrep` and >>> process away. The whole base64+minus_newlines thing does opaquify >>> and doesn't really save all that much for the t

Re: Most space-efficient way to store log entries

2015-10-28 Thread Cameron Simpson
On 29Oct2015 11:39, Chris Angelico wrote: If it's only zipped, it's not opaque. Just `zcat` or `zgrep` and process away. The whole base64+minus_newlines thing does opaquify and doesn't really save all that much for the trouble. If you zip the whole file as a whole, yes. If you zip individual

Re: Most space-efficient way to store log entries

2015-10-28 Thread Chris Angelico
On Thu, Oct 29, 2015 at 11:21 AM, Mark Lawrence wrote: >> Though one also has to consider the speed of reading it off the drive >> for processing. If you have spinning-rust drives, it's pretty slow >> (and SSD is still not like accessing RAM), and reading zipped >> content can shovel a LOT more d

Re: Most space-efficient way to store log entries

2015-10-28 Thread Chris Angelico
On Thu, Oct 29, 2015 at 9:53 AM, Tim Chase wrote: > On 2015-10-29 09:38, Chris Angelico wrote: >> On Thu, Oct 29, 2015 at 9:30 AM, Marc Aymerich >> wrote: >> > I'm writting an application that saves historical state in a log >> > file. I want to be really efficient in terms of used bytes. >> >> W

Re: Most space-efficient way to store log entries

2015-10-28 Thread Mark Lawrence
On 28/10/2015 22:53, Tim Chase wrote: On 2015-10-29 09:38, Chris Angelico wrote: On Thu, Oct 29, 2015 at 9:30 AM, Marc Aymerich wrote: I'm writting an application that saves historical state in a log file. I want to be really efficient in terms of used bytes. Why, exactly? By zipping the st

Re: Most space-efficient way to store log entries

2015-10-28 Thread Tim Chase
On 2015-10-29 09:38, Chris Angelico wrote: > On Thu, Oct 29, 2015 at 9:30 AM, Marc Aymerich > wrote: > > I'm writting an application that saves historical state in a log > > file. I want to be really efficient in terms of used bytes. > > Why, exactly? > > By zipping the state, you make it utterl

Re: how to get python socket to use a specific interface

2015-10-28 Thread Cameron Simpson
On 28Oct2015 10:41, Robin Becker wrote: binding to the local IP seems to be a windows only thing. No, it is a pretty standard BSD socket layer thing. (Windows got its original TCP stack from there too). I just tested a Linux RHEL6 host binding to a specific address just now using telnet: /usr

Re: Most space-efficient way to store log entries

2015-10-28 Thread Chris Angelico
On Thu, Oct 29, 2015 at 9:30 AM, Marc Aymerich wrote: > I'm writting an application that saves historical state in a log file. > I want to be really efficient in terms of used bytes. Why, exactly? By zipping the state, you make it utterly opaque. It'll require some sort of tool to tease it apart

Most space-efficient way to store log entries

2015-10-28 Thread Marc Aymerich
Hi, I'm writting an application that saves historical state in a log file. I want to be really efficient in terms of used bytes. What I'm doing now is: 1) First use zlib.compress 2) And then remove all new lines using binascii.b2a_base64, so I have a log entry per line. but b2a_base64 is far fro

Re: List comprehension with if-else

2015-10-28 Thread Larry Martell
On Wed, Oct 28, 2015 at 12:36 PM, Zachary Ware wrote: > On Wed, Oct 28, 2015 at 11:25 AM, Larry Martell > wrote: >> I'm trying to do a list comprehension with an if and that requires an >> else, but in the else case I do not want anything added to the list. >> >> For example, if I do this: >> >>

Re: UNABLE TO GET IDLE TO RUN

2015-10-28 Thread Peter Otten
Michael Torrie wrote: > On 10/28/2015 10:10 AM, Peter Otten wrote: >> Terry Reedy wrote: >> >> Thank you for your patience. >> >>> Why do you think it a misfeature for IDLE to execute code the way Python >>> does? >> >> Sadly I wasn't aware that the interactive interpreter is also vulnerable. >

Re: UNABLE TO GET IDLE TO RUN

2015-10-28 Thread Michael Torrie
On 10/28/2015 10:10 AM, Peter Otten wrote: > Terry Reedy wrote: > > Thank you for your patience. > >> Why do you think it a misfeature for IDLE to execute code the way Python >> does? > > Sadly I wasn't aware that the interactive interpreter is also vulnerable. > I should have been, but failed t

Re: List comprehension with if-else

2015-10-28 Thread Carl Meyer
Hi Larry, On 10/28/2015 10:25 AM, Larry Martell wrote: > I'm trying to do a list comprehension with an if and that requires an > else, but in the else case I do not want anything added to the list. > > For example, if I do this: > > white_list = [l.control_hub.serial_number if l.wblist == > wbli

Re: List comprehension with if-else

2015-10-28 Thread Zachary Ware
On Wed, Oct 28, 2015 at 11:25 AM, Larry Martell wrote: > I'm trying to do a list comprehension with an if and that requires an > else, but in the else case I do not want anything added to the list. > > For example, if I do this: > > white_list = [l.control_hub.serial_number if l.wblist == wblist_e

List comprehension with if-else

2015-10-28 Thread Larry Martell
I'm trying to do a list comprehension with an if and that requires an else, but in the else case I do not want anything added to the list. For example, if I do this: white_list = [l.control_hub.serial_number if l.wblist == wblist_enum['WHITE'] else None for l in wblist] I end up with None in my

Re: UNABLE TO GET IDLE TO RUN

2015-10-28 Thread Peter Otten
Terry Reedy wrote: Thank you for your patience. > Why do you think it a misfeature for IDLE to execute code the way Python > does? Sadly I wasn't aware that the interactive interpreter is also vulnerable. I should have been, but failed to add one and one. Until now I have often started python i

Re: Pause and Resuming of a file upload process to AWS S3

2015-10-28 Thread Michiel Overtoom
Hi, > I wanted to know whether it is possible in python to pause and resume the > file upload process to AWS S3 Have a look at s3tools/s3cmd at http://s3tools.org/s3cmd, in http://s3tools.org/usage I read: --continue-put Continue uploading partially uploaded files Greetings, -- https:

Re: Windows 10 pip2.7.exe uninstall fails

2015-10-28 Thread Robin Becker
A message box is displayed:- "This app can't run on your PC To find a version for your PC, check with the software publisher". Close the message box and:- "Access is denied." Searching hasn't thrown up a single reference to uninstall errors like this, any ideas? FWIW on my 64bit w

Re: how to get python socket to use a specific interface

2015-10-28 Thread Robin Becker
.. binding to the local IP seems to be a windows only thing. No, it is a pretty standard BSD socket layer thing. (Windows got its original TCP stack from there too). I just tested a Linux RHEL6 host binding to a specific address just now using telnet: /usr/bin/telnet -b x.x.x.193 x.

Re: Pause and Resuming of a file upload process to AWS S3

2015-10-28 Thread dieter
ashw...@nanoheal.com writes: > I wanted to know whether it is possible in python to pause and resume the > file upload process to AWS S3 Have you checked that "AWS S3" supports it? If so, you will be able to do it with Python -- however, you likely need to use low level modules (such as "httplib