Re: Working around multiple files in a folder

2016-11-21 Thread Emile van Sebille
On 11/21/2016 11:27 AM, subhabangal...@gmail.com wrote: I have a python script where I am trying to read from a list of files in a folder and trying to process something. As I try to take out the output I am presently appending to a list. But I am trying to write the result of individual files

Re: Deviding N(1,2,3,..,N) part from numeric list as summation of each values(don't sorted) has highest as possible.

2016-10-10 Thread Emile van Sebille
On 10/10/2016 09:25 AM, Nuen9 wrote: Hi! Could it be, "Nuen9", that you would like to find a split where the split sums are close to each other? In other words, you define the number of splits (in your example: 3) and the algortihm should test all possible combinations and select the split

Re: working with ctypes and complex data structures

2016-10-05 Thread Emile van Sebille
On 10/05/2016 01:06 PM, Michael Felt wrote: On 02-Oct-16 19:50, Michael Felt wrote: I am trying to understand the documentation re: ctypes and interfacing with existing libraries. I am reading the documentation, and also other sites that have largely just copied the documentation - as well

Re: how to automate java application in window using python

2016-09-28 Thread Emile van Sebille
On 09/28/2016 02:52 PM, Lawrence D’Oliveiro wrote: On Thursday, September 29, 2016 at 4:57:10 AM UTC+13, Emile van Sebille wrote: My point was that it is possible to automate windows reliably as long as the programming is robust. Sounds like circular reasoning. Which worked for me! You

Re: how to automate java application in window using python

2016-09-28 Thread Emile van Sebille
On 09/23/2016 05:02 PM, Lawrence D’Oliveiro wrote: On Thursday, September 22, 2016 at 8:34:20 AM UTC+12, Emile wrote: Hmm, then I'll have to wait longer to experience the unreliability as the handful of automated gui tools I'm running has only been up 10 to 12 years or so. You sound like you

Re: subprocess startup error

2016-02-26 Thread Emile van Sebille
On 2/26/2016 6:49 AM, Oscar Benjamin wrote: On 26 February 2016 at 13:30, Peter Otten <__pete...@web.de> wrote: Shweta Dinnimani wrote: i saved my file as string.py since than i'm facing this error Rename that file to something that does not clash with the module names in the standard

Re: child.before taking almost 1 minute to execute

2016-02-24 Thread Emile van Sebille
On 2/24/2016 7:42 AM, pyfreek wrote: The following snippet alone is taking 1 minute to execute. is there any best way to find 'No such file' other than using child.before if not scrutinFile.startswith('/') : scrutinFile = '/'+ scrutinFile

Re: There has to be a better way to split this string!

2016-02-15 Thread Emile van Sebille
On 2/9/2016 10:50 PM, Cameron Simpson wrote: On 10Feb2016 07:34, srinivas devaki wrote: PS: trying to read mailing list when you are half woke, is a bad idea and trying reply to it is even bad idea. Regrettably, when one is half awake one is unable to realise

Re: How to resize an animated gif to fit the window

2016-02-05 Thread Emile van Sebille
Googling that finds https://cloud.google.com/appengine/docs/python/images/ which may be of some help. Emile On 1/29/2016 5:50 PM, kwe...@gmail.com wrote: Hi, I am able to display animated gif using pyglet using below code, but I would like the image to stretch and fit the window as i

Re: Stop writing Python 4 incompatible code

2016-01-15 Thread Emile van Sebille
On 1/14/2016 3:55 PM, Rick Johnson wrote: But, when you have almost infinitely deep pockets, like Google, you don't need to create *everything* yourself, no, you simply wait for someone else to build it, then wait a little longer for them to market it successfully, and when it's jt

Re: "Downloading"

2015-12-02 Thread Emile van Sebille
On 12/2/2015 8:37 AM, Marko Rauhamaa wrote: Grant Edwards : On 2015-12-01, Chris Angelico wrote: download is initiated by the recipient; an upload is initiated by the sender. Nope. It doesn't depend on who initiated the transfer, up/down is a

Re: Late-binding of function defaults (was Re: What is a function parameter =[] for?)

2015-11-25 Thread Emile van Sebille
On 11/25/2015 4:25 AM, Antoon Pardon wrote: I think there are reasons to find the above behaviour bizarre. I personnaly don't find it bizarre, but that is because I'm familiar with what is going on. Which I suspect is necessary. >but if someone expects the compilor to take a snapshot of L

Re: Late-binding of function defaults (was Re: What is a function parameter =[] for?)

2015-11-25 Thread Emile van Sebille
On 11/25/2015 5:20 AM, BartC wrote: it seems to be more lucrative to write thicker user manuals, and provide longer training courses, than to make software simpler. If that were true, certainly by now the sufficiently thick manual would provide crystal clear explanations. :)

Re: any practise site about python?

2015-11-04 Thread Emile van Sebille
On 11/4/2015 11:38 AM, alperen wrote: hi guys. i am computer engineering student and i want to practise the lectures that i saw at school. for example dictionaries tuples or some other topics. i know eulerproject but it is hard for starting. do you know any exercise sites for students or

Re: 2.7.9: PhotoImage get/put

2015-10-20 Thread Emile van Sebille
On 10/20/2015 3:05 PM, Randy Day wrote: I'm writing a simple image manipulation on a PhotoImage (tkinter), and running into an odd problem. The code below works, except for one thing: As the image is scanned, I'd like to observe the pixels getting inverted on the image (as a kind of progress

Re: Extended functions in embedded code

2015-10-13 Thread Emile van Sebille
On 10/13/2015 8:29 AM, Ervin Hegedüs wrote: Hi Chris, On Wed, Oct 14, 2015 at 02:05:43AM +1100, Chris Angelico wrote: Sounds to me like the easiest way would be to inject into the builtins. You should be able to import the builtins module from your C code, and then stuff some extra

Re: Extended functions in embedded code

2015-10-13 Thread Emile van Sebille
On 10/13/2015 1:32 PM, Ervin Hegedüs wrote: Hi, On Tue, Oct 13, 2015 at 08:55:42AM -0700, Emile van Sebille wrote: On 10/13/2015 8:29 AM, Ervin Hegedüs wrote: Hi Chris, On Wed, Oct 14, 2015 at 02:05:43AM +1100, Chris Angelico wrote: Sounds to me like the easiest way would be to inject

Re: Using pipe in a system call

2015-10-10 Thread Emile van Sebille
On 10/10/2015 4:42 AM, Cecil Westerhof wrote: >To avoid this, I have adopted this habit - > >export_spreekwoorden = ( >"SELECT spreekwoord " >"FROM spreekwoorden " >"ORDER BY spreekwoord COLLATE LOCALIZED" >) > >To my eye, the result is nicer, at virtually no extra effort. Just >don't forget the

Re: Recover data over the network

2015-10-09 Thread Emile van Sebille
On 10/9/2015 7:47 PM, Arshpreet Singh wrote: On Friday, 9 October 2015 22:51:16 UTC+5:30, Emile van Sebille wrote: without extensive clues as to the nature of the data to be recovered you're not going to get much further with this. It is mostly /home partition data on disk. Those are user

Re: Recover data over the network

2015-10-09 Thread Emile van Sebille
On 10/9/2015 10:12 AM, Arshpreet Singh wrote: Hello Python and People! I want to write a small Python application which will be able to 1.recover data from server and 2.send it to another server. For the 2nd part I can use scp(secure copy), Please let me know if any data-recovery library is

Re: reg multiple login python

2015-10-07 Thread Emile van Sebille
On 10/7/2015 2:24 AM, harirammanohar...@gmail.com wrote: On Thursday, 1 October 2015 12:35:01 UTC+5:30, hariramm...@gmail.com wrote: Hi All, Is there anyway i can login to remote servers at once and do the activity, i can do one by one using for loop.. Thanks in advance. how to handle

Re: Trouble running

2015-10-06 Thread Emile van Sebille
On 10/5/2015 11:06 AM, Cameroni123 ™ wrote: Hi I have recently installed python on windows 10 and I’m trying to save in order to run the module and I cant I don’t know why, could you please help? you might find the following helpful: http://www.cs.utexas.edu/~mitra/bytes/start.html emile

Re: Check if a given value is out of certain range

2015-10-01 Thread Emile van Sebille
On 10/1/2015 12:59 PM, Marko Rauhamaa wrote: John Gordon : I wasn't commenting directly to the "ask not..." quote; I was referring upthread to the choice between not 0 <= x <= 10 and x < 0 or x > 10 Both are of course understandable, but in my opinion, the

Re: Question about regular expression

2015-09-30 Thread Emile van Sebille
On 9/30/2015 11:34 AM, massi_...@msn.com wrote: Hi everyone, firstly the description of my problem. I have a string in the following form: s = "name1 name2(1) name3 name4 (1, 4) name5(2) ..." that is a string made up of groups in the form 'name' (letters only) plus possibly a tuple

Re: Question about regular expression

2015-09-30 Thread Emile van Sebille
On 9/30/2015 12:20 PM, Tim Chase wrote: On 2015-09-30 11:34, massi_...@msn.com wrote: I guess this problem can be tackled with regular expressions, b ... However, if you *want* to do it with regular expressions, you can. It's ugly and might be fragile, but

Re: Check if a given value is out of certain range

2015-09-29 Thread Emile van Sebille
On 9/29/2015 2:04 PM, Random832 wrote: On Tue, Sep 29, 2015, at 16:32, Mark Lawrence wrote: not (0 <= x <= 10) Yuck. How about x not in range(11)? x = 5.5 Emile -- https://mail.python.org/mailman/listinfo/python-list

Re: Hello

2015-09-19 Thread Emile van Sebille
On 9/17/2015 8:10 AM, moon khondkar wrote: Hello I have problem with python installation.I downloaded python 3.5 but I cannot use it on my computer.I can not open the idle. I get something like saying "users\local settings\Application data\programs\python\python35-32\pythonw.exe is not valid

Re: True == 1 weirdness

2015-09-16 Thread Emile van Sebille
On 9/16/2015 10:42 AM, Marko Rauhamaa wrote: Steven D'Aprano : The main reason for supporting arbitrary chained operators is that they could be overloaded and have some meaning that makes sense: Operator overloading is yet another unfortunate language feature. dunder

Re: True == 1 weirdness

2015-09-16 Thread Emile van Sebille
On 9/16/2015 5:53 PM, Chris Angelico wrote: On Thu, Sep 17, 2015 at 10:06 AM, Mark Lawrence wrote: On 16/09/2015 23:15, Sven R. Kunze wrote: On 16.09.2015 23:30, Mark Lawrence wrote: Barry John art is also art. So, why does Python not have Barry John art to define

Re: True == 1 weirdness

2015-09-16 Thread Emile van Sebille
On 9/16/2015 10:27 AM, Grant Edwards wrote: On 2015-09-16, Sven R. Kunze wrote: On 16.09.2015 18:57, Random832 wrote: I think that chaining should be limited to: A) all operators are "=" B) all operators are "is" C) all operators are either >= or > D) all operators are

Re: Terminology: "reference" versus "pointer"

2015-09-14 Thread Emile van Sebille
On 9/14/2015 10:34 AM, Random832 wrote: Personally I think it's a bit silly to insist on a diagram model where a box with an arrow in it pointing at an int object can't be represented by a box with an integer in it (where 'int' is any immutable type - string, tuple, even range), but people

Re: Terminology: "reference" versus "pointer"

2015-09-12 Thread Emile van Sebille
On 9/12/2015 12:58 PM, rurpy--- via Python-list wrote: The question is whether what "pointer" means in languages that use the word is*so* different than its meaning in the Python sense I can't find a single reference to pointer in the python docs outside of ctypes. What is its python

Re: Terminology: "reference" versus "pointer"

2015-09-12 Thread Emile van Sebille
On 9/12/2015 9:54 AM, Rustom Mody wrote: On Saturday, September 12, 2015 at 10:02:40 PM UTC+5:30, Steven D'Aprano wrote: On Sat, 12 Sep 2015 02:42 pm, Random832 wrote: Anyway, maybe we do need a term to distinguish Python/C#/Java pointers from C/C++ pointers - maybe call it a "non-arithmetic"

Re: Python handles globals badly.

2015-09-12 Thread Emile van Sebille
On 9/11/2015 10:22 PM, Skybuck Flying wrote: I didn't learn anything from this posting, sorry ! ;) I'm seeing a pattern here... Emile -- https://mail.python.org/mailman/listinfo/python-list

Re: monospaced font in MS Windows with wxpython

2015-09-11 Thread Emile van Sebille
On 9/11/2015 3:16 PM, Javier wrote: I am trying to use a monospaced font (preferably small) in MS Windows with wxpython. I have tried txtctrl.SetFont(wx.Font(10, wx.MODERN, wx.NORMAL, wx.NORMAL, False, u'Consolas')) but no success, I still get a proportional font. You may also want to

Re: Python handles globals badly.

2015-09-10 Thread Emile van Sebille
On 9/10/2015 3:25 PM, t...@freenet.de wrote: > Who decides it? The BDFL or his delegate. It's simplest that way. Emile -- https://mail.python.org/mailman/listinfo/python-list

Re: Hi am new to python

2015-09-09 Thread Emile van Sebille
On 9/9/2015 3:35 PM, Denis McMahon wrote: On Tue, 08 Sep 2015 17:44:26 -0500, Nassim Gannoun wrote: My question is in a while loop; how do l sum all the numbers in the given list (list_a)? You don't normally use a while loop or a counter to iterate over a list. Such a question should only be

Re: Python handles globals badly.

2015-09-09 Thread Emile van Sebille
On 9/9/2015 10:55 AM, Steven D'Aprano wrote: (I wanted to link to the "Everything Is Broken" essay on The Medium, but the page appears to be gone. Is this it? http://www.sott.net/article/280956-Everything-is-broken-on-the-Internet -- https://mail.python.org/mailman/listinfo/python-list

Re: Python handles globals badly.

2015-09-02 Thread Emile van Sebille
On 9/2/2015 11:47 AM, t...@freenet.de wrote: I therefore would like to see a PEP which allows also writing global module vars inside module functions without the need for explicit setting the keyword "global" in more or less each(!) module function as the first line of code. If you're feeling

Re: Why Python is not both an interpreter and a compiler?

2015-08-31 Thread Emile van Sebille
On 8/31/2015 10:48 AM, Mahan Marwat wrote: Python programs *could* easily be compiled the same way, but it generally hasn't been considered all that useful. If it hasn't been considered all that useful, then why the tools like cx_freeze, pytoexe are doing very hard! People scratching their

Re: Hi am new to python

2015-08-31 Thread Emile van Sebille
On 8/31/2015 4:27 PM, Chubasco Diranga wrote: Can anyone please help me with the following please? My question is in a while loop; how do l sum all the numbers in the given list (list_a)? list_a = [8, 5, 2, 4] sum_a = 0 # for storing the sum of list_a i = 0 # for looping through the list_a#

Re: Please don't make unfounded legalistic demands (was: [a, b, c, d] = 1, 2, 3, 4)

2015-08-27 Thread Emile van Sebille
On 8/26/2015 2:14 PM, Grant Edwards wrote: On 2015-08-26, Emile van Sebille em...@fenx.com wrote: On 8/26/2015 9:06 AM, Grant Edwards wrote: It's also unfortunate that there's no way to to access the mailing list via an NNTP server Huh? -- gmane.comp.python.general at news://nntp.gmane.com

Re: Please don't make unfounded legalistic demands (was: [a, b, c, d] = 1, 2, 3, 4)

2015-08-26 Thread Emile van Sebille
On 8/26/2015 9:06 AM, Grant Edwards wrote: It's also unfortunate that there's no way to to access the mailing list via an NNTP server Huh? -- gmane.comp.python.general at news://nntp.gmane.com:119/gmane.comp.python.general Or do you mean by the OP? Emile --

Re: AttributeError

2015-08-12 Thread Emile van Sebille
On 8/12/2015 1:38 PM, Denis McMahon wrote: On Wed, 12 Aug 2015 12:05:37 -0700, Ltc Hotspot wrote: Have a look at assignment_10_2_v_06.py. What should I look at assignment_10_2_v_06.py.: You shouldn't. You should instead approach your tutor and tell him you are too stupid to learn computer

Re: AttributeError

2015-08-12 Thread Emile van Sebille
On 8/12/2015 4:05 PM, Ltc Hotspot wrote: On Wed, Aug 12, 2015 at 3:35 PM, MRAB pyt...@mrabarnett.plus.com wrote: On 2015-08-12 22:16, Denis McMahon wrote: [snip] c = [0 for i in range(24)] f = open(filename,'r') for l in f: h = int(l.strip().split()[X].split(':')[Y]) c[h] = c[h] +

Re: AttributeError

2015-08-12 Thread Emile van Sebille
On 8/12/2015 10:24 AM, MRAB wrote: What is it _actually_ trying to split? Aah, reading. Such an underused skill. Emile -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Developer- Houston, TX

2015-08-10 Thread Emile van Sebille
On 8/10/2015 2:24 PM, appthoug...@gmail.com wrote: Hi, Hope you are doing well !!! My name is Siva and I'm a recruiter at TheAppliedthought , a global staffing and IT consulting company. You really shouldn't post job offerings on this list. Please use the Python Job Board at

Re: Pipes

2015-08-09 Thread Emile van Sebille
On 8/9/2015 10:55 AM, rogerh...@gmail.com wrote: On Sunday, August 9, 2015 at 8:11:18 AM UTC-6, roge...@gmail.com wrote: Just learning Python and have a question. Is it possible for Python to pass information to another program (in Windows), wait for that program to finish and then resume

Re: Python Scheduling

2015-08-07 Thread Emile van Sebille
On 8/6/2015 11:06 AM, sairam kumar wrote: Hi Experts, I am Automating some repetitive works through Sikuli and Python scripting languages.I have multiple workflows.i need to schedule this script for every two hours.can anyone guide me how to schedule the scripts for every two hours. is

Re: Python Scheduling

2015-08-07 Thread Emile van Sebille
On 8/7/2015 7:17 AM, Laura Creighton wrote: In a message of Fri, 07 Aug 2015 06:48:32 -0700, Emile van Sebille writes: On 8/6/2015 11:06 AM, sairam kumar wrote: Hi Experts, I am Automating some repetitive works through Sikuli and Python scripting languages.I have multiple workflows.i

Re: Uninstall

2015-08-05 Thread Emile van Sebille
On 8/4/2015 6:51 PM, Mario Figueiredo wrote: On Tue, Aug 4, 2015 at 9:01 PM, Mark Lawrence breamore...@yahoo.co.uk snip The simple solution is not to subscribe. Yes -- it's about gotten to that point. Or even better, tell you to fuck off. Now that's a first to my recollection. I must

Re: Linux script to get most expensive processes

2015-08-04 Thread Emile van Sebille
On 8/4/2015 2:30 PM, Cecil Westerhof wrote: On Tuesday 4 Aug 2015 22:52 CEST, Emile van Sebille wrote: My platform shows as linux2 and it worked fine for me when checking for that. I heard that that was possible also, but none of my systems gives this. I should change it. You could also

Re: Linux script to get most expensive processes

2015-08-04 Thread Emile van Sebille
On 8/4/2015 1:19 PM, Cecil Westerhof wrote: Under Linux I like to get the most expensive processes. The two most useful commands are: ps -eo pid,user,pcpu,args --sort=-pcpu and: ps -eo pid,user,pcpu,args --sort=-vsize In my case I am only interested in the seven most expensive

Re: I'm a newbie and I'm stumped...

2015-08-01 Thread Emile van Sebille
On 7/30/2015 6:22 PM, Dwight GoldWinde wrote: I am running Python 3.4 on my Mac mini, OS X 10.10.2, using Coderunner 2 as my editor. Here¹s the code: #!/usr/bin/env python3 word = (input('Enter a word Œ)) When running this inside of Coderunner, I get the follow error, after entering the word

Re: Which Python do I need for the below?

2015-08-01 Thread Emile van Sebille
On 7/29/2015 10:52 AM, Joe Sanders wrote: Hello- Which Python do I need for the below? with instructions please! [cid:image001.png@01D0C9FD.677CDED0] Seeing that you have no responses yet I'm guessing most potential responders along with me are not opening attachments. If the image is of

Re: Which Python do I need for the below?

2015-08-01 Thread Emile van Sebille
On 8/1/2015 10:09 AM, Rustom Mody wrote: On Saturday, August 1, 2015 at 10:07:37 PM UTC+5:30, Emile van Sebille wrote: Seeing that you have no responses yet I'm guessing most potential responders along with me are not opening attachments. Most recipients are not receiving at all! [I only

Re: Most pythonic way of rotating a circular list to a canonical point

2015-08-01 Thread Emile van Sebille
On 8/1/2015 1:34 PM, Lukas Barth wrote: Hi! I have a list of numbers that I treat as circular, i.e. [1,2,3] and [2,3,1] should be the same. Now I want to rotate these to a well defined status, so that I can can compare them. If all elements are unique, the solution is easy: find the minimum

Re: Most pythonic way of rotating a circular list to a canonical point

2015-08-01 Thread Emile van Sebille
On 8/1/2015 2:12 PM, Lukas Barth wrote: On Saturday, August 1, 2015 at 10:51:03 PM UTC+2, Emile van Sebille wrote: Is the problem to determine if one list of circular numbers 'matches' another one despite rotation status? If so, I'd do something like: Well.. no. I actually really need

Re: Most pythonic way of rotating a circular list to a canonical point

2015-08-01 Thread Emile van Sebille
On 8/1/2015 2:24 PM, Lukas Barth wrote: Perhaps I should clarify a bit: - I definitely need a canonical rotation - just a comparison result is not enough Well, it looks to me that I don't know what a 'canonical rotation' is -- there's no wikipedia article and googling yields all sorts of

Re: Error: valueError: ordinal must be = 1

2015-07-27 Thread Emile van Sebille
On 7/27/2015 4:13 PM, ryguy7272 wrote: SNIP It seems to work perfectly find when I see the results in the book, but all I'm getting is this . . . *** ValueError: ordinal must be = 1 (Pdb) Does anyone have any idea what I'm doing wrong? You've been dropped into the python debugger. I'd

Re: Hi

2015-07-25 Thread Emile van Sebille
On 7/24/2015 10:30 PM, 김지훈 wrote: Hi. I recently changed my path to be a programmer so I decided to learn python. I downloaded files(Python 2.7.10 - 2015-05-23 https://www.python.org/downloads/release/python-2710/) to setup on your website. (also got the version of x64 because of my cpu) But

Re: Stripping sRGB profile from PNGs in python

2015-07-23 Thread Emile van Sebille
On 7/23/2015 10:31 AM, Ryan Holmes wrote: We're getting this error when trying to load some of out projects images: libpng warning: iCCP: known incorrect sRGB profile The source files that we have some with incorrect sRGB profiles. We don't have control over the source files, but what we

Re: Can I copy/paste Python code?

2015-07-22 Thread Emile van Sebille
On 7/21/2015 5:10 PM, Grant Edwards wrote: On 2015-07-21, Emile van Sebille em...@fenx.com wrote: On 7/21/2015 2:47 PM, Grant Edwards wrote: 1) You can't copy/paste text from evince _at_all_. Hmm, i just copied Acorsa Artichoke Heart - Quarter, Water, Can from a catalog pdf, so _at_all_

Re: Can I copy/paste Python code?

2015-07-22 Thread Emile van Sebille
On 7/22/2015 12:35 PM, Grant Edwards wrote: On 2015-07-22, Emile van Sebille em...@fenx.com wrote: On 7/21/2015 5:10 PM, Grant Edwards wrote: On 2015-07-21, Emile van Sebille em...@fenx.com wrote: On 7/21/2015 2:47 PM, Grant Edwards wrote: 1) You can't copy/paste text from evince

Re: Find Minimum for element in multiple dimensional array

2015-07-22 Thread Emile van Sebille
On 7/22/2015 3:54 PM, Robert Davis wrote: I have an array of arrays that have a origin zip code, origin latitude, origin longitude, destination zip code, destination latitude, destination longitude, and miles between the two points. I need to keep only those combinations that represent the

Re: Integers with leading zeroes

2015-07-21 Thread Emile van Sebille
On 7/21/2015 10:58 AM, sohcahto...@gmail.com wrote: IMO, leading zeroes just looks like visual noise, and if I wanted to align numbers, I'd just use spaces. Aligning numbers using spaces doesn't always align -- using zeros does. Emile --

Re: Can I copy/paste Python code?

2015-07-21 Thread Emile van Sebille
On 7/21/2015 1:32 PM, Grant Edwards wrote: But, it apears foxit reader is Windows-only so it's a moot point for Linux/Unix/Mac users. I've been happy with https://wiki.gnome.org/Apps/Evince on linux. Emile -- https://mail.python.org/mailman/listinfo/python-list

Re: Can I copy/paste Python code?

2015-07-21 Thread Emile van Sebille
On 7/21/2015 2:47 PM, Grant Edwards wrote: On 2015-07-21, Emile van Sebille em...@fenx.com wrote: On 7/21/2015 1:32 PM, Grant Edwards wrote: But, it apears foxit reader is Windows-only so it's a moot point for Linux/Unix/Mac users. I've been happy with https://wiki.gnome.org/Apps/Evince

Re: Need Help w. Getting the Eclipse Python Add-On.

2015-07-17 Thread Emile van Sebille
On 7/17/2015 11:22 AM, Steve Burrus wrote: I Need immediate Help w. Getting the Eclipse Python Add-On. I looked all around the Eclipse website to try to get this but didn't see the add-on for this. Can someone please help me to find it? Thanx. Googling 'python ecplise' certainly yields a lot

Re: Noob in Python. Problem with fairly simple test case

2015-07-17 Thread Emile van Sebille
On 7/17/2015 3:45 PM, Terry Reedy wrote: Now my question for you or anyone else: If the vast majority of Python programmers are focused on 2.7, I consider myself in this group. why are volunteers to help fix 2.7 bugs so scarce? perhaps the bugs that are show stoppers are providing the

Re: Noob in Python. Problem with fairly simple test case

2015-07-16 Thread Emile van Sebille
On Thursday, July 16, 2015 at 3:11:56 PM UTC-5, Chris Angelico wrote: Where's the latest survey results? I think the numbers don't agree with you any more. Not that there's a source for that info, but a quick survey of yahoo results certainly continues to show more v2 activity. --anytime--

Re: Pure Python Data Mangling or Encrypting

2015-06-24 Thread Emile van Sebille
On 6/24/2015 7:02 AM, Grant Edwards wrote: And how does writing unmangled data to disk expose anybody to anything? I've never heard of an exploit where writing an evilly crafted bit-pattern to disk causes a any sort of problem. Unless that code is executed at boot. Mangling would at least

Re: Pure Python Data Mangling or Encrypting

2015-06-24 Thread Emile van Sebille
On 6/24/2015 8:55 AM, Chris Angelico wrote: On Thu, Jun 25, 2015 at 1:52 AM, Emile van Sebille em...@fenx.com wrote: On 6/24/2015 7:02 AM, Grant Edwards wrote: And how does writing unmangled data to disk expose anybody to anything? I've never heard of an exploit where writing an evilly

Re: anomaly

2015-05-11 Thread Emile van Sebille
On 5/11/2015 8:34 AM, Grant Edwards wrote: Yow! YOU PICKED KARL MALDEN'S NOSE!! I'd bet most people familiar with Karl Malden wouldn't have a problem picking his from a selection of twenty random noses. :) Emile -- https://mail.python.org/mailman/listinfo/python-list

Re: Encrypt python files

2015-05-06 Thread Emile van Sebille
On 5/6/2015 12:23 AM, Palpandi wrote: On Wednesday, May 6, 2015 at 12:07:13 PM UTC+5:30, Palpandi wrote: Hi, What are the ways to encrypt python files? No, I just want to hide the scripts from others. See http://stackoverflow.com/questions/261638/how-do-i-protect-python-code Emile --

Re: Is it normal to cry when given XML?

2015-05-05 Thread Emile van Sebille
On 5/5/2015 9:54 AM, Michael Torrie wrote: On 05/05/2015 03:28 AM, Sayth Renshaw wrote: Hi Just checking if the reaction to cry when given XML is normal. I'd say it is normal. XML is like violence. If it doesn't solve your problems, you're not using enough of it[1]. [1] Can anyone tell me

Re: Python re to extract useful information from each line

2015-04-29 Thread Emile van Sebille
On 4/29/2015 1:49 PM, Kashif Rana wrote: pol_elements =

Re: Problem running Python 2.7 on Ubuntu 10.04

2015-04-20 Thread Emile van Sebille
On 4/20/2015 8:31 AM, David Aldrich wrote: Cannot import: GTK+ No module named gi So I need to install the gtk package and do so in such a way that it is visible to /usr/local/bin/python2.7. How would I do that please? This should get you going: See

Re: Failed to import a pyd: File When python intepreter embed in C++ project

2015-04-17 Thread Emile van Sebille
On 4/17/2015 10:17 AM, saadaouijihed1...@gmail.com wrote: I have a swig module (.pyd).I followed the steps but it doesn't work please help me. Start here: http://catb.org/~esr/faqs/smart-questions.html Emile -- https://mail.python.org/mailman/listinfo/python-list

Re: Working with Access tables and python scripts

2015-04-14 Thread Emile van Sebille
On 4/14/2015 3:20 PM, accessnew...@gmail.com wrote: I have an existing extensive python script that I would like to modify slightly to run a different variation on a process. I also have all the variables I need to run this script (about 20 in total)stored in an Access 2010 64 bit database.

Re: OOP for System Administrator

2015-04-04 Thread Emile van Sebille
On 4/4/2015 8:56 AM, pankaj sharma wrote: Hi, I'm a Linux system administrator and my work requires me to write bash scripts (100-500 lines) for process monitoring, server health check and automate some manual processes. Now I've started to learn python as I want to write scripts in python

Re: test1

2015-03-26 Thread Emile van Sebille
On 3/25/2015 12:49 PM, Tiglath Suriol wrote: On Tuesday, March 24, 2015 at 11:04:48 PM UTC-4, Chris Angelico wrote: On Wed, Mar 25, 2015 at 1:47 PM, Tiglath Suriol wrote: PLONK -- https://mail.python.org/mailman/listinfo/python-list

Re: Best way to calculate fraction part of x?

2015-03-26 Thread Emile van Sebille
On 3/24/2015 6:39 PM, Jason Swails wrote: On Mon, Mar 23, 2015 at 8:38 PM, Emile van Sebille em...@fenx.com snip float ((%6.3f % x)[-4:]) ​In general you lose a lot of precision this way...​ Even more if you use %6.1 -- but feel free to flavor to taste. :) Emile -- https

Re: Best way to calculate fraction part of x?

2015-03-23 Thread Emile van Sebille
On 3/23/2015 5:52 AM, Steven D'Aprano wrote: Are there any other, possibly better, ways to calculate the fractional part of a number? float ((%6.3f % x)[-4:]) Emile -- https://mail.python.org/mailman/listinfo/python-list

Re: Automation of Windows app?

2015-03-22 Thread Emile van Sebille
On 3/20/2015 10:55 AM, Grant Edwards wrote: I need to automate operation of a Windows application. I've been productively using python to create macro scheduler [1] scripts to automate windows programs for years. A sample script: Press Alt Send Character/Textcu Release Alt

Re: http: connection reset by peer

2015-03-06 Thread Emile van Sebille
On 3/5/2015 12:18 PM, Chris Angelico wrote: On Fri, Mar 6, 2015 at 5:37 AM, Ethan Furman et...@stoneleaf.us wrote: After mucking about with it with no results, I went on to another job -- when I came back to this one it was working. Huh. Well, if it recurs, see what you can find out about

Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices]

2015-03-04 Thread Emile van Sebille
On 3/4/2015 12:40 PM, Tim Delaney wrote: A related thing is when you have multiple multi-lingual people talking together where at least two of their languages match (or are close enough for most uses e.g. Spanish and Portuguese). They'll slip in and out of multiple languages depending on which

Re: Sort list of dictionaries

2015-03-02 Thread Emile van Sebille
On 3/2/2015 10:17 AM, Charles Heizer wrote: Hello, I'm new to python and I'm trying to find the right way to solve this issue I have. I'm trying to sort this list by name and then by version numbers. The problem I'm having is that I can not get the version numbers sorted with the highest at

Re: fuzzysearch: find not exactly what you're looking for!

2015-02-12 Thread Emile van Sebille
On 2/12/2015 11:51 AM, Tal Einat wrote: Hi everyone, I'd like to introduce a Python library I've been working on for a while: fuzzysearch. I would love to get as much feedback as possible: comments, suggestions, bugs and more are all very welcome! I adapt difflib's SequenceMatcher for my

Re: Odd version scheme

2015-02-12 Thread Emile van Sebille
On 2/12/2015 11:16 AM, Ian Kelly wrote: Things break down again when we get to Python XIX. 'XVIII' 'XIX' False Looks to me like you better check if your PEP313 patch is installed properly. :) Emile -- https://mail.python.org/mailman/listinfo/python-list

Re: __pycache__

2015-02-03 Thread Emile van Sebille
On 2/3/2015 6:21 AM, Dennis Lee Bieber wrote: The second is to use Google... https://www.google.com/?gws_rd=ssl#q=python+idle+can%27t+make+connection but the first page of results isn't helping -- lots of reports of the problem, but no firm remedy listed. it was suggested to me

Re: __pycache__

2015-02-03 Thread Emile van Sebille
On 2/3/2015 8:31 AM, Mark Lawrence wrote: On 03/02/2015 14:34, Emile van Sebille wrote: On 2/3/2015 6:21 AM, Dennis Lee Bieber wrote: The second is to use Google... https://www.google.com/?gws_rd=ssl#q=python+idle+can%27t+make+connection but the first page of results isn't helping

Re: CSV and number formats

2015-02-01 Thread Emile van Sebille
On 1/31/2015 10:45 PM, Frank Millman wrote: snip If the opening balance is positive, it appears as '+0021.45' If it is negative, it appears as '+0-21.45' My advise is to get cash in payment. :) Emile -- https://mail.python.org/mailman/listinfo/python-list

Re: dunder-docs (was Python is DOOMED! Again!)

2015-02-01 Thread Emile van Sebille
On 2/1/2015 12:45 PM, Chris Angelico wrote: Simple answer: You write dunder methods and the interpreter calls them. You don't call them yourself. I can't currently think of any situation where it's appropriate to call a dunder method manually (cue the swamping of such situations on the list);

Re: Is there a more elegant way to spell this?

2015-01-27 Thread Emile van Sebille
On 1/27/2015 9:49 AM, Rob Gaddi wrote: Or the somewhat less indenty for x in seq: if not some_predicate: continue do_something_to(x) ... or shorter and equally less indenty for x in seq: if some_predicate: do_something_to(x) --

Re: What killed Smalltalk could kill Python

2015-01-23 Thread Emile van Sebille
On 1/23/2015 2:48 PM, sohcahto...@gmail.com wrote: On Thursday, January 22, 2015 at 9:39:53 PM UTC-8, alex23 wrote: I seem to recall an interview with someone from Blizzard Entertainment mentioning that the first Warcraft game (Released in 1994) was developed by passing around floppy disks

Re: Python is DOOMED! Again!

2015-01-22 Thread Emile van Sebille
On 1/21/2015 8:30 PM, Steven D'Aprano wrote: snip Here's an example from PEP 484: def greeting(name: str) - str: return 'Hello ' + name I've been lightly scanning and following the PEP 484 discussion, and one point I don't think I've seen mentioned is how you might hint a function

Re: Python is DOOMED! Again!

2015-01-22 Thread Emile van Sebille
On 1/22/2015 5:00 PM, Chris Angelico wrote: On Fri, Jan 23, 2015 at 11:40 AM, Sturla Molden sturla.mol...@gmail.com wrote: Type hinting will be mandatory because of bad managers. But then someone is going to ask what benefit Python has to offer: Type hinting will never be mandatory, I'm

Re: How to wow someone new to Python

2015-01-16 Thread Emile van Sebille
On 1/16/2015 9:44 AM, Chris Angelico wrote: snip exact line of code that would show off Python's awesomeness. a,b = b,a Emile -- https://mail.python.org/mailman/listinfo/python-list

Re: Reg: scrappring error

2015-01-12 Thread Emile van Sebille
On 1/11/2015 9:27 PM, Sushanth wrote: SNIP urllib2.HTTPError: HTTP Error 302: The HTTP server returned a redirect error that would lead to an infinite loop. Looks like the server has a link on this page pointing back to itself or somesuch. Does this help? Emile --

  1   2   3   4   5   6   >