Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !

2013-11-25 Thread Antoon Pardon
Op 25-11-13 21:05, Joel Goldstick schreef: >>> I'm not an expert on Indian English, but I understand that in that >>> dialect it is grammatically correct to say "the codes", just as in UK and >>> US English it is grammatically correct to say "the programs". >>> >>> In other words, in UK/US English,

Re: parsing nested unbounded XML fields with ElementTree

2013-11-25 Thread Stefan Behnel
larry.martell...@gmail.com, 25.11.2013 23:22: > I have an XML file that has an element called "Node". These can be nested to > any depth and the depth of the nesting is not known to me. I need to parse > the file and preserve the nesting. For exmaple, if the XML file had: > > > > >

Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !

2013-11-25 Thread Antoon Pardon
Op 25-11-13 21:00, Ethan Furman schreef: > On 11/25/2013 11:53 AM, Antoon Pardon wrote: >> Op 23-11-13 03:18, Steven D'Aprano schreef: >>> >>> As this is an international forum, it behoves us all to make allowances >>> for slight difference in dialect. >> >> I don't see how that follows. I would sa

Re: calculate part of solid circle in 2D array

2013-11-25 Thread Robert Voigtländer
Great discussion started here  To answer some of the questions and to give more background: - The grid resolution is 1x1cm. The problem starts when the distance of the readings gets high. Then a 1° resolution doesn’t cover all cells anymore. And cells get counted double on short distance

Re: Recursive generator for combinations of a multiset?

2013-11-25 Thread John O'Hagan
On Mon, 25 Nov 2013 12:15:15 + Oscar Benjamin wrote: > On 21 November 2013 13:01, John O'Hagan > wrote: > > In my use-case the first argument to multicombs is a tuple of words > > which may contain duplicates, and it produces all unique > > combinations of a certain length of those words, eg

RE: Cracking hashes with Python

2013-11-25 Thread Frank Cui
Hi, I'm assuming you are taking a computer/network security course. Md5 hashing operation is designed to be mathematically unidirectional, you can only attempt to find a collision situation but it's technically impossible to reverse the operation. With that said, it's possible to "crack" or "decr

Re: Excute script only from another file

2013-11-25 Thread Rick Johnson
On Monday, November 25, 2013 8:41:07 PM UTC-6, Chris Angelico wrote: > Totally sure-fire. Absolutely prevents any execution until it's > renamed. Doh! It seems Python's quite the sneaky little snake! > By the way, what does "associate" mean, and what does it have > to do with file names? Hmm,

Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !

2013-11-25 Thread Rick Johnson
On Monday, November 25, 2013 2:10:04 PM UTC-6, Ned Batchelder wrote: > Let's please avoid veering off into rants about language > and philosophy now. Hello Ned. I respect the fact that you want to keep threads on-topic, and i greatly appreciate the humbleness of your request. However, i feel as t

Re: Excute script only from another file

2013-11-25 Thread Steven D'Aprano
On Mon, 25 Nov 2013 18:28:42 -0800, Rick Johnson wrote: > On Monday, November 25, 2013 4:52:46 AM UTC-6, Himanshu Garg wrote: > >> My motive is "I will give scripts to somebody else and he should not >> run the script directly without running the parent script". > > The only sure fire method to

Re: Cracking hashes with Python

2013-11-25 Thread Steven D'Aprano
On Mon, 25 Nov 2013 15:32:41 -0800, TheRandomPast wrote: > Hi, > > I have a school project to do where I've to download MD5 Hashes from a > particular website and write a code that will crack them. A school project. Right. Heh. :-) And which website's hashes would this be? > Does anyone > kno

Re: Excute script only from another file

2013-11-25 Thread Chris Angelico
On Tue, Nov 26, 2013 at 1:28 PM, Rick Johnson wrote: > The only sure fire method to prevent a file containing > Python code from executing on a machine with Python > installed is to use an extension that the system will not > associate with Python. > > ScriptFolder/ >script.py >mod_1.igno

Re: Excute script only from another file

2013-11-25 Thread Rick Johnson
On Monday, November 25, 2013 4:52:46 AM UTC-6, Himanshu Garg wrote: > My motive is "I will give scripts to somebody else and he > should not run the script directly without running the > parent script". The only sure fire method to prevent a file containing Python code from executing on a machin

RE: Cracking hashes with Python

2013-11-25 Thread Marc
Hashes, by definition, are not reversible mathematically. The only way to figure out what they represent is to take plaintext that might be the plaintext based on anything you might know about the original plaintext (which is often nothing) and hash it; then see if the hash matches the one you hav

Re: general ConfigParser question [PS]

2013-11-25 Thread Tim Chase
On 2013-11-25 18:29, Tim Chase wrote: > On 2013-11-25 18:32, Rita wrote: > > I was wondering if the default ConfigParser can handle multi line > > strings (especially in the relate section) > > > > [Relate] > > data="parent process A child process B > > Parent process B child process C > > Yes, t

Re: general ConfigParser question

2013-11-25 Thread Tim Chase
On 2013-11-25 18:32, Rita wrote: > I was wondering if the default ConfigParser can handle multi line > strings (especially in the relate section) > > [Relate] > data="parent process A child process B > Parent process B child process C Yes, though I seem to recall that subsequent lines have to be

Re: Cracking hashes with Python

2013-11-25 Thread Chris Angelico
On Tue, Nov 26, 2013 at 11:01 AM, TheRandomPast wrote: > Hi, thanks for replying. I don't like google groups layout either I was just > unsure as to what to use. I already have some code on the go I just couldn't > figure out the best way to do what I wanted to do so I thought I'd ask and > see

Re: python for everyday tasks

2013-11-25 Thread Chris Angelico
On Tue, Nov 26, 2013 at 10:35 AM, Ben Finney wrote: > Chris Angelico writes: > >> (Fifteen years. It's seventeen years since Unicode 2.0, when 16-bit >> characters were outmoded. It's about time _every_ modern language >> followed Python's and Pike's lead and got its Unicode support right.) > > M

Re: Cracking hashes with Python

2013-11-25 Thread TheRandomPast
On Monday, 25 November 2013 23:47:52 UTC, Chris Angelico wrote: > On Tue, Nov 26, 2013 at 10:32 AM, TheRandomPast wrote: > > > I have a school project to do where I've to download MD5 Hashes from a > > particular website and write a code that will crack them. Does anyone know > > where I'll fin

Re: parsing nested unbounded XML fields with ElementTree

2013-11-25 Thread Larry Martell
On Mon, Nov 25, 2013 at 6:19 PM, Chris Angelico wrote: > On Tue, Nov 26, 2013 at 9:45 AM, Larry Martell > wrote: > > On Monday, November 25, 2013 5:30:44 PM UTC-5, Chris Angelico wrote: > > > >> First off, please clarify: Are there five corresponding tags > >> later on? If not, it's not XML, an

Re: Cracking hashes with Python

2013-11-25 Thread Chris Angelico
On Tue, Nov 26, 2013 at 10:32 AM, TheRandomPast wrote: > I have a school project to do where I've to download MD5 Hashes from a > particular website and write a code that will crack them. Does anyone know > where I'll find out more information on how to do this? There's only 4 hashes > that I n

Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !

2013-11-25 Thread Larry Martell
On Mon, Nov 25, 2013 at 6:12 PM, Gregory Ewing wrote: > Ned Batchelder wrote: > >> Let's please avoid veering off into rants about language >> > > and philosophy now. > > Philosophy is totally on topic for this group: > > http://www.youtube.com/watch?v=-2gJamguN04 > > A classic! I hadn't seen that

Re: How to determine whether client and server are on the same host

2013-11-25 Thread Ben Finney
Malte Forkel writes: > I have a Python application that communicates with a server via > telnet. Host and port of the server are supplied by the user when the > application is started. > > How can I determine from within the application whether the server's > host actually is the local host? (In

Re: python for everyday tasks

2013-11-25 Thread Ben Finney
Chris Angelico writes: > (Fifteen years. It's seventeen years since Unicode 2.0, when 16-bit > characters were outmoded. It's about time _every_ modern language > followed Python's and Pike's lead and got its Unicode support right.) Most languages that already have some support for Unicode have

Cracking hashes with Python

2013-11-25 Thread TheRandomPast
Hi, I have a school project to do where I've to download MD5 Hashes from a particular website and write a code that will crack them. Does anyone know where I'll find out more information on how to do this? There's only 4 hashes that I need to do so it doesn't have to be a large script just nee

general ConfigParser question

2013-11-25 Thread Rita
Hi, I was wondering if the default ConfigParser can handle multi line strings (especially in the relate section) For example, if i have system.ini [Global] memory = 1024 [Process A] command = sleep arguments = 100 [Process B] command = nslookup arguments = hostA output = data [Process C] comm

Re: parsing nested unbounded XML fields with ElementTree

2013-11-25 Thread Chris Angelico
On Tue, Nov 26, 2013 at 9:45 AM, Larry Martell wrote: > On Monday, November 25, 2013 5:30:44 PM UTC-5, Chris Angelico wrote: > >> First off, please clarify: Are there five corresponding tags >> later on? If not, it's not XML, and nesting will have to be defined >> some other way. > > Yes, there a

Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !

2013-11-25 Thread Gregory Ewing
Ned Batchelder wrote: Let's please avoid veering off into rants about language > and philosophy now. Philosophy is totally on topic for this group: http://www.youtube.com/watch?v=-2gJamguN04 -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: SetupTools

2013-11-25 Thread Ben Finney
Chandru Rajendran writes: > How can we set the target folder for the package in Setuptools? You do it at install time. In other words, it's not up to the author of ‘setup.py’ to decide; it's for the administrator installing your package (or whoever set the defaults on that specific machine) to d

Re: parsing nested unbounded XML fields with ElementTree

2013-11-25 Thread Larry Martell
On Monday, November 25, 2013 5:30:44 PM UTC-5, Chris Angelico wrote: > On Tue, Nov 26, 2013 at 9:22 AM, larry.mart...@gmail.com > > wrote: > > > I have an XML file that has an element called "Node". These can be nested > > to any depth and the depth of the nesting is not known to me. I need to

Re: How to determine whether client and server are on the same host

2013-11-25 Thread Chris Angelico
On Tue, Nov 26, 2013 at 6:35 AM, Malte Forkel wrote: > I have a Python application that communicates with a server via telnet. > Host and port of the server are supplied by the user when the > application is started. > > How can I determine from within the application whether the server's > host a

Re: cx_Oracle throws: ImportError: DLL load failed: This application has failed to start ...

2013-11-25 Thread Chris Angelico
On Tue, Nov 26, 2013 at 7:22 AM, Ruben van den Berg wrote: > I haven't the slightest clue why version 11 just - wouldn't - run but due to > backward compatibility it seems a stressful weekend got a happy ending anyway. Doesn't make particular sense to me either, but I don't know anything about O

Re: calculate part of solid circle in 2D array

2013-11-25 Thread Gregory Ewing
Gene Heskett wrote: Your 1 degree assumption is, generally speaking, an extremely coarse answer in terms of the accuracy needed, as we need accuracies a lot closer to an arc-second than to a whole degree in robotics. That may be true for some applications, but somehow I doubt that a sonar bea

Re: parsing nested unbounded XML fields with ElementTree

2013-11-25 Thread Chris Angelico
On Tue, Nov 26, 2013 at 9:22 AM, larry.mart...@gmail.com wrote: > I have an XML file that has an element called "Node". These can be nested to > any depth and the depth of the nesting is not known to me. I need to parse > the file and preserve the nesting. For exmaple, if the XML file had: > >

parsing nested unbounded XML fields with ElementTree

2013-11-25 Thread larry.mart...@gmail.com
I have an XML file that has an element called "Node". These can be nested to any depth and the depth of the nesting is not known to me. I need to parse the file and preserve the nesting. For exmaple, if the XML file had: When I'm parsing Node "E" I need to know I

Re: Getting the Appdata Directory with Python and PEP?

2013-11-25 Thread Mark Lawrence
On 25/11/2013 20:48, Eamonn Rea wrote: I've heard that there is a library that allows you to get the appdata directory for a given OS, but I'd like to do it myself, as a learning experience. Is there a built in way to get a users Appdata Directory? For example on OS X it's in '~/Library//Appli

Re: Getting the Appdata Directory with Python and PEP?

2013-11-25 Thread Andrew Berg
On 2013.11.25 14:48, Eamonn Rea wrote: > I've heard that there is a library that allows you to get the appdata > directory for a given OS, but I'd like to do it myself, as a learning > experience. > > Is there a built in way to get a users Appdata Directory? For example on OS X > it's in '~/Lib

Consumer level eye tracking - easy activation of virtual buttons without touchscreen - wxpython for buttons, & AutoIt for macros behind buttons?

2013-11-25 Thread Jeff Kang
(First off, sorry in advance, as I’m not sure if this is the right place to post my inquiry). *Consumer level eye tracking - easy activation of virtual buttons without touchscreen* After using Autohotkey for remapping, I soon didn't have enough keyboard buttons to attach macros and lines of co

Getting the Appdata Directory with Python and PEP?

2013-11-25 Thread Eamonn Rea
I've heard that there is a library that allows you to get the appdata directory for a given OS, but I'd like to do it myself, as a learning experience. Is there a built in way to get a users Appdata Directory? For example on OS X it's in '~/Library//Application Support/'. I can get the OS just f

Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !

2013-11-25 Thread Ethan Furman
On 11/25/2013 11:53 AM, Antoon Pardon wrote: Op 23-11-13 03:18, Steven D'Aprano schreef: As this is an international forum, it behoves us all to make allowances for slight difference in dialect. I don't see how that follows. I would say on the contrary. This being an international forum peopl

Re: cx_Oracle throws: ImportError: DLL load failed: This application has failed to start ...

2013-11-25 Thread Ruben van den Berg
Thx for all the suggestions! I hope this doesn't come as a disappointment but it seems the final solution was to install version 12 (instead of 11) of Oracle's instantclient and to include the inner folder (holding OCI.DLL and related files) to "Path" and "ORACLE_HOME". I haven't the slightes

Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !

2013-11-25 Thread Ned Batchelder
On Monday, November 25, 2013 2:32:12 PM UTC-5, Rick Johnson wrote: > On Saturday, November 23, 2013 7:38:47 PM UTC-6, Steven D'Aprano wrote: > > Where do you, an American, > > What the hell makes you believe I'm an American? Because i > speak fluent English? Because i embrace capitalism? Because >

Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !

2013-11-25 Thread Joel Goldstick
>> I'm not an expert on Indian English, but I understand that in that >> dialect it is grammatically correct to say "the codes", just as in UK and >> US English it is grammatically correct to say "the programs". >> >> In other words, in UK/US English, "code" in the sense of programming code >> is a

Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !

2013-11-25 Thread Antoon Pardon
Op 23-11-13 03:18, Steven D'Aprano schreef: > On Sat, 23 Nov 2013 01:55:44 +, Denis McMahon wrote: > >> On Fri, 22 Nov 2013 18:22:29 +0530, Bharath Kummar wrote: > >>> Could you PLEASE provide me with the codes (codes only for the asked >>> queries) ? >> >> The codes are: >> >> 1) 7373a28109a

How to determine whether client and server are on the same host

2013-11-25 Thread Malte Forkel
Hi, I have a Python application that communicates with a server via telnet. Host and port of the server are supplied by the user when the application is started. How can I determine from within the application whether the server's host actually is the local host? (In that case I could implement a

Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !

2013-11-25 Thread Rick Johnson
On Saturday, November 23, 2013 7:38:47 PM UTC-6, Steven D'Aprano wrote: > Where do you, an American, What the hell makes you believe I'm an American? Because i speak fluent English? Because i embrace capitalism? Because i wish to be free of tyranny? Well, if that's all it takes to be an American,

Re: SetupTools

2013-11-25 Thread Grant Edwards
On 2013-11-25, Chris ???Kwpolska??? Warrick wrote: > Tell your legal department that [...] Ha! good one! In my experience, corporate legal departments have an "ask only" API. All attempts to tell them things will be ignored. -- Grant Edwards grant.b.edwardsYow! Will t

Re: Python application for rpm creation

2013-11-25 Thread Andrew Heagle
On Mon, Nov 25, 2013 at 9:17 AM, Unix SA wrote: > Hello guys, > > Probably not right forum but I thought I should get some suggestions. > > I am looking for some tool written in python which can help users to > create rpm spec files and later help to build rpms, this will be for users > who are n

Re: Python application for rpm creation

2013-11-25 Thread Unix SA
Hey, sorry, this is something new for me and i am looking if something is already developed, btw i am not looking for python module creation packages .. what i am looking is for ex .. my users have their code written in C or Java or any other lang and they want to package it in Linux RPM and for t

Re: [Ann] pyBug - Python Belgian User Group

2013-11-25 Thread hendrikxi
Dear Jonas I need someone who knows to write Phyton programmes. The application is a controller for performing tests. Can you propose names or yourself? Best regards Ivan Hendrikx ESTH Lange Schouwenstraat 1B 3520 Zonhoven tel 0475 301978 -- https://mail.python.org/mailman/listinfo/python-list

Re: SetupTools

2013-11-25 Thread Chris “Kwpolska” Warrick
On Mon, Nov 25, 2013 at 9:35 AM, Chandru Rajendran wrote: > > Hi all, > How can we set the target folder for the package in Setuptools? The answer likely is *you are not allowed to do this*. It’s up to the user to set it. Unless you are the user, and want to have the packages you install go to

Re: Python application for rpm creation

2013-11-25 Thread Alister
On Mon, 25 Nov 2013 19:47:44 +0530, Unix SA wrote: > Hello guys, > > Probably not right forum but I thought I should get some suggestions. > > I am looking for some tool written in python which can help users to > create rpm spec files and later help to build rpms, this will be for > users who a

Re: Parallel Python x.y.A and x.y.B installations on a single Windows machine

2013-11-25 Thread Jurko Gospodnetić
Hi. On 25.11.2013. 17:38, Terry Reedy wrote: So far all tests seem to indicate that things work out fine if we install to some dummy target folder, copy the target folder to some version specific location & uninstall. If the dummy folder had 3.3.0, you should not need to uninstall to inst

Re: Python application for rpm creation

2013-11-25 Thread Terry Reedy
On 11/25/2013 9:17 AM, Unix SA wrote: Probably not right forum but I thought I should get some suggestions. I am looking for some tool written in python which can help users to create rpm spec files and later help to build rpms, this will be for users who are not aware of what spec file is and

Re: Parallel Python x.y.A and x.y.B installations on a single Windows machine

2013-11-25 Thread Terry Reedy
On 11/25/2013 8:42 AM, Jurko Gospodnetić wrote: So far all tests seem to indicate that things work out fine if we install to some dummy target folder, copy the target folder to some version specific location & uninstall. If the dummy folder had 3.3.0, you should not need to uninstall to in

Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !

2013-11-25 Thread Steven D'Aprano
On Mon, 25 Nov 2013 16:25:57 +, Grant Edwards wrote: > On 2013-11-23, Dave Angel wrote: > >> Try posting in text, as some of us see nothing in your message. This is >> a text newsgroup, not html. >> >> Also make a subject line that summarizes your issue, not the urgency. > > An exclamation

Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !

2013-11-25 Thread Grant Edwards
On 2013-11-23, Dave Angel wrote: > Try posting in text, as some of us see nothing in your message. This > is a text newsgroup, not html. > > Also make a subject line that summarizes your issue, not the urgency. An exclamation mark is a yellow flag, and three should definitly route a message to

Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !

2013-11-25 Thread Grant Edwards
On 2013-11-23, Steven D'Aprano wrote: > On Sat, 23 Nov 2013 01:55:44 +, Denis McMahon wrote: > >> On Fri, 22 Nov 2013 18:22:29 +0530, Bharath Kummar wrote: > >>> Could you PLEASE provide me with the codes (codes only for the asked >>> queries) ? >> >> The codes are: >> >> 1) 7373a28109a7c447

Re: python for everyday tasks

2013-11-25 Thread wxjmfauth
Le lundi 25 novembre 2013 16:11:22 UTC+1, Michael Torrie a écrit : > I only respond here, as unicode in general is an important concept that > > the OP will to make sure his students understand in Python, and I don't > > want you to dishonestly sow the seeds of uncertainty and doubt. > > > > O

Re: calculate part of solid circle in 2D array

2013-11-25 Thread Gene Heskett
On Monday 25 November 2013 10:18:29 Roy Smith did opine: > In article <1fc9a269-4847-4d29-a35e-5cf91731e...@googlegroups.com>, > > Robert Voigtlنnder wrote: > > Thanks a lot for the links. > > > > I don't need it to be drawn. I need the fields within the arc for some > > statistical calculatio

Re: Parallel Python x.y.A and x.y.B installations on a single Windows machine

2013-11-25 Thread Jurko Gospodnetić
Hi. On 25.11.2013. 15:15, Albert-Jan Roskam wrote: > Are you sure? http://stackoverflow.com/questions/1534210/use-different-python-version-with-virtualenv Yup, I'm pretty sure by now (based on reading the docs, not trying it out though). Virtualenv allows you to set up differen

Re: python for everyday tasks

2013-11-25 Thread Chris Angelico
On Tue, Nov 26, 2013 at 2:11 AM, Michael Torrie wrote: > Have you encountered a real-world situation > where you are impacted by Python's FSR? Python 3.3 was released back in September 2012, over a year ago. As far as python-list can be aware, nobody - but nobody - has had any problem with it exc

Re: [Savoynet] Festival

2013-11-25 Thread Chris Angelico
On Tue, Nov 26, 2013 at 1:43 AM, Chris Angelico wrote: > On Tue, Nov 26, 2013 at 1:39 AM, Musical Solutions > wrote: >> Have a look at >> http://buxtonoperahouse.org.uk/146/Calendar?startFrom=1404172800 >> and >> http://buxtonoperahouse.org.uk/146/Calendar?startFrom=1406851200 >> > > Huh, neat. L

Re: python for everyday tasks

2013-11-25 Thread Michael Torrie
I only respond here, as unicode in general is an important concept that the OP will to make sure his students understand in Python, and I don't want you to dishonestly sow the seeds of uncertainty and doubt. On 11/25/2013 03:12 AM, wxjmfa...@gmail.com wrote: > Your paragraph is mixing different co

Re: [Savoynet] Festival

2013-11-25 Thread Chris Angelico
On Tue, Nov 26, 2013 at 1:39 AM, Musical Solutions wrote: > Have a look at > http://buxtonoperahouse.org.uk/146/Calendar?startFrom=1404172800 > and > http://buxtonoperahouse.org.uk/146/Calendar?startFrom=1406851200 > Huh, neat. Looks like that uses time_t to identify start times. ChrisA -- http

Re: calculate part of solid circle in 2D array

2013-11-25 Thread Roy Smith
In article <1fc9a269-4847-4d29-a35e-5cf91731e...@googlegroups.com>, Robert Voigtländer wrote: > Thanks a lot for the links. > > I don't need it to be drawn. I need the fields within the arc for some > statistical calculations for an occupancy map. > So the target is a 2D array, not a picture.

Re: Parallel Python x.y.A and x.y.B installations on a single Windows machine

2013-11-25 Thread Chris Angelico
On Tue, Nov 26, 2013 at 1:15 AM, Albert-Jan Roskam wrote: > Below is a little terminal session. I often switch between python 3.3 and > python 2.7. My virtualenv for python 3.3 is called "python33". "workon" is a > virtualenv wrapper command. And check out the envlist in tox.ini on > http://to

Python application for rpm creation

2013-11-25 Thread Unix SA
Hello guys, Probably not right forum but I thought I should get some suggestions. I am looking for some tool written in python which can help users to create rpm spec files and later help to build rpms, this will be for users who are not aware of what spec file is and how to.create rpm. Anyone k

Re: Parallel Python x.y.A and x.y.B installations on a single Windows machine

2013-11-25 Thread Albert-Jan Roskam
On Mon, 11/25/13, Jurko Gospodnetić wrote: Subject: Re: Parallel Python x.y.A and x.y.B installations on a single Windows machine To: python-list@python.org Date: Monday, November 25, 2013, 2:57 PM   Hi. On 25.11.2013. 14:20, Albert-Jan Roska

Re: calculate part of solid circle in 2D array

2013-11-25 Thread Robert Voigtländer
Thanks a lot for the links. I don't need it to be drawn. I need the fields within the arc for some statistical calculations for an occupancy map. So the target is a 2D array, not a picture. Robert -- https://mail.python.org/mailman/listinfo/python-list

Re: Parallel Python x.y.A and x.y.B installations on a single Windows machine

2013-11-25 Thread Jurko Gospodnetić
Hi. On 25.11.2013. 14:20, Albert-Jan Roskam wrote: Check out the following packages: virtualenv, virtualenvwrapper, tox virtualenv + wrapper make it very easy to switch from one python version to another. Stricly speaking you don't need virtualenvwrapper, but it makes working with virtualenv a

Re: Parallel Python x.y.A and x.y.B installations on a single Windows machine

2013-11-25 Thread Jurko Gospodnetić
Hi. On 25.11.2013. 13:46, Ned Batchelder wrote: IIRC, Python itself doesn't read those registry entries, except when installing pre-compiled .msi or .exe kits. Once you have Python installed, you can move the directory someplace else, then install another version of Python. If you need to

Re: Parallel Python x.y.A and x.y.B installations on a single Windows machine

2013-11-25 Thread Chris Angelico
On Tue, Nov 26, 2013 at 12:42 AM, Jurko Gospodnetić wrote: > Yup, we could do that, but at first glance it really smells like an > overkill. Not to mention the potential licensing issues with Windows and an > unlimited number of Windows installations. :-) Ah, heh... didn't think of that. When I

Re: Parallel Python x.y.A and x.y.B installations on a single Windows machine

2013-11-25 Thread Jurko Gospodnetić
Hi. On 25.11.2013. 14:04, Chris Angelico wrote: Is it possible to set up virtualization to help you out? Create a virtual machine in something like VirtualBox, then clone it for every Python patch you want to support (you could have one VM that handles all the .0 releases and another that hand

Re: python for everyday tasks

2013-11-25 Thread Mark Lawrence
On 25/11/2013 10:12, wxjmfa...@gmail.com wrote: Le samedi 23 novembre 2013 03:01:26 UTC+1, Steven D'Aprano a écrit : * Python 3 (although not Python 2) is one of the few languages that get Unicode *right*. Strings in Python 3 are text, sequences of Unicode characters, not a thinly disguised b

Re: cx_Oracle throws: ImportError: DLL load failed: This application has failed to start ...

2013-11-25 Thread Albert-Jan Roskam
On Sun, 11/24/13, MRAB wrote: Subject: Re: cx_Oracle throws: ImportError: DLL load failed: This application has failed to start ... To: python-list@python.org Date: Sunday, November 24, 2013, 7:17 PM On 24/11/2013 17:12, Ruben van den Berg wrot

Re: Parallel Python x.y.A and x.y.B installations on a single Windows machine

2013-11-25 Thread Albert-Jan Roskam
On Mon, 11/25/13, Jurko Gospodnetić wrote: Subject: Parallel Python x.y.A and x.y.B installations on a single Windows machine To: python-list@python.org Date: Monday, November 25, 2013, 1:32 PM   Hi all.   I was wondering what is the best way

Re: Parallel Python x.y.A and x.y.B installations on a single Windows machine

2013-11-25 Thread Chris Angelico
On Mon, Nov 25, 2013 at 11:32 PM, Jurko Gospodnetić wrote: > Most of the advice seems to boil down to 'do not use such versions together, > use only the latest'. > > We would like to run automated tests on one of our projects (packaged as a > Python library) with different Python versions, and s

Re: Parallel Python x.y.A and x.y.B installations on a single Windows machine

2013-11-25 Thread Ned Batchelder
On Monday, November 25, 2013 7:32:30 AM UTC-5, Jurko Gospodnetić wrote: > Hi all. > >I was wondering what is the best way to install multiple Python > installations on a single Windows machine. > >Regular Windows installer works great as long as all your > installations have a separate

Parallel Python x.y.A and x.y.B installations on a single Windows machine

2013-11-25 Thread Jurko Gospodnetić
Hi all. I was wondering what is the best way to install multiple Python installations on a single Windows machine. Regular Windows installer works great as long as all your installations have a separate major.minor version identifier. However, if you want to have let's say 2.4.3 & 2.4.

Re: Recursive generator for combinations of a multiset?

2013-11-25 Thread Oscar Benjamin
On 21 November 2013 13:01, John O'Hagan wrote: > In my use-case the first argument to multicombs is a tuple of words > which may contain duplicates, and it produces all unique combinations > of a certain length of those words, eg: > > list(multicombs(('cat', 'hat', 'in', 'the', 'the'), 3)) > > [('

Re: Excute script only from another file

2013-11-25 Thread Dave Angel
On Mon, 25 Nov 2013 02:52:46 -0800 (PST), Himanshu Garg wrote: My motive is "I will give scripts to somebody else and he should not run the script directly without running the parent script". Perhaps it should be a module, not a script. Have it protect itself with the usual if __name__ == "_

Re: Periodic execution with asyncio

2013-11-25 Thread Phil Connell
On Sat, Nov 23, 2013 at 09:30:29PM +0100, Tobias M. wrote: > Now putting this into a PeriodicTask class that provides a similar interface > like our callback version, I get: > > > import asyncio > > class PeriodicTask2(object): > > def __init__(self, func, interval): > self.func =

Re: Excute script only from another file

2013-11-25 Thread Himanshu Garg
I was also thinking to add a sys argument when invoking script and check it. My motive is "I will give scripts to somebody else and he should not run the script directly without running the parent script". -- https://mail.python.org/mailman/listinfo/python-list

Re: python for everyday tasks

2013-11-25 Thread wxjmfauth
Le samedi 23 novembre 2013 03:01:26 UTC+1, Steven D'Aprano a écrit : > > > > * Python 3 (although not Python 2) is one of the few languages that get > > Unicode *right*. Strings in Python 3 are text, sequences of Unicode > > characters, not a thinly disguised blob of bytes. Starting with Pyt

Re: calculate part of solid circle in 2D array

2013-11-25 Thread Peter Otten
Robert Voigtländer wrote: > OK. Found a good one here: > http://www.daniweb.com/software-development/python/threads/321181/python- bresenham-circle-arc-algorithm > > Now only filling is needed. > Any help is welcome ... I think you shouldn't implement the algorithm directly. Rather look for a l

SetupTools

2013-11-25 Thread Chandru Rajendran
Hi all, How can we set the target folder for the package in Setuptools? Thanks & regards, Chandru CAUTION - Disclaimer * This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended rec

Re: calculate part of solid circle in 2D array

2013-11-25 Thread Robert Voigtländer
OK. Found a good one here: http://www.daniweb.com/software-development/python/threads/321181/python-bresenham-circle-arc-algorithm Now only filling is needed. Any help is welcome ... Thanks Robert Am Montag, 25. November 2013 08:26:19 UTC+1 schrieb Robert Voigtländer: > Hi, > > > > I wonder i

Re: Excute script only from another file

2013-11-25 Thread Peter Otten
Himanshu Garg wrote: > I want that a script should only be executed when it is called from > another script and should not be directly executable through linux command > line. > > Like, I have two scripts "scrip1.py" and "script2.py" and there is a line > in "script1.py" to call "script2.py" as

Re: Sine wave?

2013-11-25 Thread zaindar4
On Thursday, December 26, 2002 9:50:14 AM UTC-5, Bengt Richter wrote: > On Thu, 26 Dec 2002 12:38:56 -, cla...@lairds.com (Cameron Laird) wrote: > > >In article , Bengt Richter wrote: > > . > > . > > . > >>doing too many things. One