Re: Copying files from sub folders under source directories into sub folders with same names as source directory sub folders in destination directories without overwriting already existing files of sa

2014-05-19 Thread Rustom Mody
On Monday, May 19, 2014 2:32:36 PM UTC+5:30, Satish ML wrote: > On Monday, May 19, 2014 12:31:05 PM UTC+5:30, Chris Angelico wrote: > > On Mon, May 19, 2014 at 4:53 PM, wrote: > Could you kindly help? Sure. Either start writing code and then post when you > have problems, or investigate some shel

Re: Need help with executing DB query in two different places in a test

2014-05-19 Thread Tim Roberts
Sunitha Byju wrote: > >I am trying to automate an ecom website. I need to run DB query after >placing each order. I don't know how to run different queries after >each order. Can someone help me out with having queries after each >order submission or test? Well, what's your primary key? Afte

Re: Psycopg2 : error message.

2014-05-19 Thread Tim Roberts
dandrigo wrote: > >I'm writing a python script for a web service. I have to connect to my >postgres/postgis databases via Psycopg2. > >I writed a little first script just to connect to my pg/postgis db and drop >a test db. > >But when i execute the python file, i have several error messages. R

Re: Clip Raster Image Pair by Overlapping Area using Python

2014-05-19 Thread Rustom Mody
On Tuesday, May 20, 2014 7:13:42 AM UTC+5:30, Chris Angelico wrote: > On a separate topic, you're posting through Google Groups with its > abhorrent bugs. Can you please either edit your posts before sending > (removing the blank lines, wrapping to a sane width, and trimming the > quoted text), or

Re: Python Internet Database

2014-05-19 Thread Joshua Landau
On 9 May 2014 22:06, Chris Angelico wrote: > On Sat, May 10, 2014 at 6:45 AM, wrote: >> 2 - Jit compiler for using from a web server. I mean, one has a web server >> running under Apache in a hosting service like Hostgator, Daddy Host or >> another inexpensive service. I decide to run a few ap

Re: Loading modules from files through C++

2014-05-19 Thread Michael Torrie
On 05/17/2014 08:01 AM, Stefan Behnel wrote: > please avoid top-posting. Trimming quoted material where appropriate is always welcome too! -- https://mail.python.org/mailman/listinfo/python-list

Re: Python CGI

2014-05-19 Thread Tim Chase
On 2014-05-19 20:32, Christian wrote: > I'd like to use Python for CGI-Scripts. Is there a manual how to > setup Python with Fast-CGI? I'd like to make sure that Python > scripts aren't executed by www-user, but the user who wrote the > script. While Burak addressed your (Fast-)CGI issues, once yo

Re: Clip Raster Image Pair by Overlapping Area using Python

2014-05-19 Thread Chris Angelico
On Tue, May 20, 2014 at 11:30 AM, wrote: > Thanks for your response. For my purpose, the images won't have to be > 'perfectly' matched, but hopefully as close as possible. Registration > algorithms won't work for this reason--the images aren't identical to each > other because of the differe

Re: Clip Raster Image Pair by Overlapping Area using Python

2014-05-19 Thread mikejohnryan08
On Monday, May 19, 2014 9:17:05 PM UTC-4, Chris Angelico wrote: > On Tue, May 20, 2014 at 11:05 AM, wrote: > > > I have a set of aerial images which I am trying to clip by their > > overlapping areas, for use in a more involved program I am writing with PIL. > > > > > > What would be the best

Re: Clip Raster Image Pair by Overlapping Area using Python

2014-05-19 Thread Chris Angelico
On Tue, May 20, 2014 at 11:05 AM, wrote: > I have a set of aerial images which I am trying to clip by their overlapping > areas, for use in a more involved program I am writing with PIL. > > What would be the best method with Python to extract the overlapping area > from a pair of images? I kn

Clip Raster Image Pair by Overlapping Area using Python

2014-05-19 Thread mikejohnryan08
Hello, I have a set of aerial images which I am trying to clip by their overlapping areas, for use in a more involved program I am writing with PIL. What would be the best method with Python to extract the overlapping area from a pair of images? I know there are libraries out there that could

RE: Exception problem with module

2014-05-19 Thread Joseph L. Casale
>> Well I am not sure what advantage this has for the user, not my code as >> I don't advocate the import to begin with it, its fine spelled as it was >> from where it was... > > The advantage for the user is: /snip Hey Steven, Sorry for the late reply (travelling). My comment wasn't clear, I wa

Re: Python and Math

2014-05-19 Thread Cameron Simpson
On 19May2014 12:07, wxjmfa...@gmail.com wrote: Le lundi 19 mai 2014 18:09:24 UTC+2, Rustom Mody a écrit : > Yesterday, I spent one hour attemepting to install IPython > for Py3.3 (win 7), I failed. I do not even succeed to > understand how. Pip, setuptools, whl or manualy with from the > zip...

Re: Problem in writing demands to the xml file

2014-05-19 Thread Rhodri James
On Mon, 19 May 2014 14:42:02 +0100, wrote: The problem I have is in writing the demands. I generate the necessary stuff for it but when I try and append it, it doesn't seem to work. I'd be glad to share my files if you need them. Could you please help me fix this? When you say, "It doesn

Need help with executing DB query in two different places in a test

2014-05-19 Thread Sunitha Byju
I am trying to automate an ecom website. I need to run DB query after placing each order. I don't know how to run different queries after each order. Can someone help me out with having queries after each order submission or test? If you notice, I'm calling self.database_verification() after

Re: Python and Math

2014-05-19 Thread Tim Golden
On 19/05/2014 20:07, wxjmfa...@gmail.com wrote: Yesterday, I spent one hour attemepting to install IPython for Py3.3 (win 7), I failed. I do not even succeed to understand how. Pip, setuptools, whl or manualy with from the zip... completely lost. There is always something not working.

Re: Python and Math

2014-05-19 Thread wxjmfauth
Le lundi 19 mai 2014 18:09:24 UTC+2, Rustom Mody a écrit : > On Monday, May 19, 2014 8:26:11 PM UTC+5:30, jmf wrote: > > > > > Yesterday, I spent one hour attemepting to install IPython > > > for Py3.3 (win 7), I failed. I do not even succeed to > > > understand how. Pip, setuptools, whl or ma

Re: Python CGI

2014-05-19 Thread Burak Arslan
On 05/19/14 21:32, Christian wrote: > Hi, > > I'd like to use Python for CGI-Scripts. Is there a manual how to setup > Python with Fast-CGI? Look for Mailman fastcgi guides. Here's one for gentoo, but I imagine it'd be easily applicable to other disros: https://www.rfc1149.net/blog/2010/12/30/co

Python CGI

2014-05-19 Thread Christian
Hi, I'd like to use Python for CGI-Scripts. Is there a manual how to setup Python with Fast-CGI? I'd like to make sure that Python scripts aren't executed by www-user, but the user who wrote the script. -- Gruß, Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Loading modules from files through C++

2014-05-19 Thread Roland Plüss
On 05/19/2014 03:40 AM, Chris Angelico wrote: > On Mon, May 19, 2014 at 5:41 AM, Roland Plüss wrote: >> This exec source_code in module.__dict__ , should this not also be doable >> with PyEval_EvalCode? > General principle: The more code you write in Python and the less in > C/C++, the happier an

Re: Bug in Decimal??

2014-05-19 Thread Mark Dickinson
isp.com> writes: > I've tested on all platforms I know of and confirmed it. The wrong digit > occurs in the middle of the number. Propagation error would have a bad digit > near the end, and garbage after that. Here there's a perfect sequence of > numbers, but with one single digit changed in th

Re: Python and Math

2014-05-19 Thread Rustom Mody
On Monday, May 19, 2014 8:26:11 PM UTC+5:30, jmf wrote: > Yesterday, I spent one hour attemepting to install IPython > for Py3.3 (win 7), I failed. I do not even succeed to > understand how. Pip, setuptools, whl or manualy with from the > zip... completely lost. There is always something not worki

Re: [Distutils] [ANN]: distlib 0.1.9 released on PyPI

2014-05-19 Thread Paul Moore
On 19 May 2014 15:24, Vinay Sajip wrote: > Fixed issue #47: Updated binary launchers to fix double-quoting bug > where script executable paths have spaces. Note that this issue affects pip / virtualenv in that creating a virtualenv in a path with spaces can result in pip not working in th

Re: Python and Math

2014-05-19 Thread Gene Heskett
On Monday 19 May 2014 09:24:18 Chris Angelico did opine And Gene did reply: > On Mon, May 19, 2014 at 11:15 PM, Rustom Mody wrote: > > On Monday, May 19, 2014 6:39:49 PM UTC+5:30, Chris Angelico wrote: > >> On Mon, May 19, 2014 at 10:46 PM, Rustom Mody wrote: > >> > The provers call the calculat

[RELEASED] Python 3.4.1

2014-05-19 Thread Larry Hastings
On behalf of the Python development community and the Python 3.4 release team, I'm pleased to announce the availability of Python 3.4.1. Python 3.4.1 has over three hundred bugfixes and other improvements over 3.4.0. One notable change: the version of OpenSSL bundled with the Windows instal

ANN: pdb-clone 1.6 - a fast clone of pdb with the remote debugging and attach features

2014-05-19 Thread Xavier de Gaye
pdb-clone 1.6 has been released at Pypi: https://pypi.python.org/pypi/pdb-clone Features: * Improve significantly pdb performance. With breakpoints, pdb-clone runs just above the speed of the interpreter while pdb runs at 10 to 100 times the speed of the interpreter. * Instrument the code

Re: Python and Math

2014-05-19 Thread wxjmfauth
Le lundi 19 mai 2014 12:15:22 UTC+2, Fabien a écrit : > Hi everyone, > > > > I am new on this forum (I come from IDL and am starting to learn python) > > > > This thread perfectly illustrates why Python is so scary to newcomers: > > one question, three answers: yes, no, maybe. > > > > Py

[ANN]: distlib 0.1.9 released on PyPI

2014-05-19 Thread Vinay Sajip
I've just released version 0.1.9 of distlib on PyPI [1]. For newcomers, distlib is a library of packaging functionality which is intended to be usable as the basis for third-party packaging tools. The main changes in this release are as follows:     Fixed issue #47: Updated binary launchers to

Problem in writing demands to the xml file

2014-05-19 Thread varun7rs
Hello Friends, I am still working on the script to write data onto the xml file and now I've got a problem. This is how my xml file looks now but I intend to add attributes to demands. I am not able to do it properly. substrate> My class for nodes. I have a class for DEMAND but I don't

Re: Python and Math

2014-05-19 Thread Chris Angelico
On Mon, May 19, 2014 at 11:15 PM, Rustom Mody wrote: > On Monday, May 19, 2014 6:39:49 PM UTC+5:30, Chris Angelico wrote: >> On Mon, May 19, 2014 at 10:46 PM, Rustom Mody wrote: >> > The provers call the calculators as "Just applied not pure mathematicians" >> > The calculators say of the provers

Re: Python and Math

2014-05-19 Thread Rustom Mody
On Monday, May 19, 2014 6:39:49 PM UTC+5:30, Chris Angelico wrote: > On Mon, May 19, 2014 at 10:46 PM, Rustom Mody wrote: > > The provers call the calculators as "Just applied not pure mathematicians" > > The calculators say of the provers: "They are not mathematicians but > > logicians" > > (or

Re: Python and Math

2014-05-19 Thread Chris Angelico
On Mon, May 19, 2014 at 10:46 PM, Rustom Mody wrote: > The provers call the calculators as "Just applied not pure mathematicians" > The calculators say of the provers: "They are not mathematicians but > logicians" > (or philosophers)" [Chris had a funny quote on this a few weeks ago] Which Chris

Re: Python and Math

2014-05-19 Thread Rustom Mody
On Monday, May 19, 2014 3:45:22 PM UTC+5:30, Fabien wrote: > Hi everyone, > I am new on this forum (I come from IDL and am starting to learn python) > This thread perfectly illustrates why Python is so scary to newcomers: > one question, three answers: yes, no, maybe. > Python-fans sure would a

Re: [RELEASED] Python 2.7.7 release candidate 1

2014-05-19 Thread Mark Lawrence
On 19/05/2014 13:20, Miki Tebeka wrote: (If you don't know what the strop module is, go ahead and forget it now.) +1 QOTW :) IIRC the strop module was targetted at users such as myself :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our languag

Re: [RELEASED] Python 2.7.7 release candidate 1

2014-05-19 Thread Miki Tebeka
> (If you don't know what the strop > module is, go ahead and forget it now.) +1 QOTW :) -- https://mail.python.org/mailman/listinfo/python-list

Re: Python and Math

2014-05-19 Thread Tim Golden
On 19/05/2014 11:15, Fabien wrote: > Hi everyone, > > I am new on this forum (I come from IDL and am starting to learn python) > > This thread perfectly illustrates why Python is so scary to newcomers: > one question, three answers: yes, no, maybe. Welcome to the Python world, Fabien. But I'm s

Re: Python and Math

2014-05-19 Thread Fabien
Hi everyone, I am new on this forum (I come from IDL and am starting to learn python) This thread perfectly illustrates why Python is so scary to newcomers: one question, three answers: yes, no, maybe. Python-fans sure would argue "freedom of choice" is the most important, but "being able to

Re: Copying files from sub folders under source directories into sub folders with same names as source directory sub folders in destination directories without overwriting already existing files of sa

2014-05-19 Thread Satish ML
On Monday, May 19, 2014 12:31:05 PM UTC+5:30, Chris Angelico wrote: > On Mon, May 19, 2014 at 4:53 PM, wrote: > Could > you kindly help? Sure. Either start writing code and then post when you have > problems, or investigate some shell commands (xcopy in Windows, cp in Linux, > maybe scp) that c

Re: Copying files from sub folders under source directories into sub folders with same names as source directory sub folders in destination directories without overwriting already existing files of sa

2014-05-19 Thread Satish ML
On Monday, May 19, 2014 12:31:05 PM UTC+5:30, Chris Angelico wrote: > On Mon, May 19, 2014 at 4:53 PM, wrote: > Could > you kindly help? Sure. Either start writing code and then post when you have > problems, or investigate some shell commands (xcopy in Windows, cp in Linux, > maybe scp) that c

Re: [python-committers] [RELEASED] Python 3.4.1

2014-05-19 Thread Victor Stinner
It's not easy to find the changelog. I found this page: https://docs.python.org/3.4/whatsnew/changelog.html Victor 2014-05-19 8:00 GMT+02:00 Larry Hastings : > > > On behalf of the Python development community and the Python 3.4 release > team, I'm pleased to announce the availability of Python 3

Re: Copying files from sub folders under source directories into sub folders with same names as source directory sub folders in destination directories without overwriting already existing files of sa

2014-05-19 Thread Chris Angelico
On Mon, May 19, 2014 at 4:53 PM, wrote: > Could you kindly help? Sure. Either start writing code and then post when you have problems, or investigate some shell commands (xcopy in Windows, cp in Linux, maybe scp) that can probably do the whole job. Or pay someone to do the job for you. ChrisA