Hi Chris, thanks for your reply.
Chris Rebert a écrit :
> Quoting http://docs.python.org/library/subprocess.html , emphasis mine:
> """
> On Unix, with shell=True: [...] If args is a sequence, ***the first
> item*** specifies the command string, and any additional items will be
> treated as additi
Use *kargs to pass all the informatio that you need if u want in the
future extended this will be usefull
2010/11/14, Micah Carrick :
> I'm writing a little API that other people will use. There are up to 3
> "objects" that get passed around. One of them has some validation methods,
> the other tw
On 14/11/2010 19:07, Becky Kern wrote:
Hi users,
I'm using Python 2.5 (in concert with ArcGIS 9.3) to convert a raster to
an ASCII file. I used the code (listed below) several weeks ago to
successfully do the conversion, but when I tried to replicate it a few
days ago, I got an error message.
imp
On 11/14/2010 01:07 PM, Becky Kern wrote:
import arcgisscripting
gp = arcgisscripting.create(9.3)
InRaster = "C:/data/raster1"
OutAsciiFile = "C:/data/raster2ascii.asc"
gp.RasterToASCII_conversion(InRaster, OutAsciiFile)
The error message:
arcgisscripting.ExecuteError: Failed to execute. Parame
On 2010-11-14, Camille Harang wrote:
> # pg_dump prompts for password so I inject it in stdin.
> pgsql.stdin.write('MY_PASSWORD' + '\n')
For security reasons, some programs use direct access to the TTY system
for password entry rather then reading from stdin. Most of these programs
provide anoth
On 2010-11-14, Tim Harig wrote:
> On 2010-11-14, Camille Harang wrote:
>> # pg_dump prompts for password so I inject it in stdin.
>> pgsql.stdin.write('MY_PASSWORD' + '\n')
>
> For security reasons, some programs use direct access to the TTY system
> for password entry rather then reading from st
In article ,
Chris Rebert wrote:
> On Sun, Nov 14, 2010 at 8:58 AM, ernest wrote:
> > I have seen both forms and I'm not sure if they're
> > both correct, or one is right and the other wrong.
>
> They're both acceptable (although obviously you should always raise a
> more specific error than E
Tim Harig a écrit :
> On 2010-11-14, Camille Harang wrote:
>> # pg_dump prompts for password so I inject it in stdin.
>> pgsql.stdin.write('MY_PASSWORD' + '\n')
>
> For security reasons, some programs use direct access to the TTY system
> for password entry rather then reading from stdin. Most o
Tim Harig a écrit :
> On 2010-11-14, Camille Harang wrote:
>> # pg_dump prompts for password so I inject it in stdin.
>> pgsql.stdin.write('MY_PASSWORD' + '\n')
>
> For security reasons, some programs use direct access to the TTY system
> for password entry rather then reading from stdin. Most o
On 11/14/2010 8:29 AM, Emile van Sebille wrote:
[...]
> We all know that _everything_ is a disguised method call and we call the
> disguised method call that resembles a statement where the LHS is
> separated from the RHS by a single equals sign assignment.
I think your elided attempt to reconcile
Op 2010-11-14 21:23, Steve Holden schreef:
> What method of a does the statement
>
> a = something
>
> call? I ask in genuine ignorance, and in the knowledge that you may
> indeed be able to point me to such a method.
It wouldn't call a method of a. I'm not an expert in these matters, but
I
On Nov 14, 11:08 am, Artur Siekielski
wrote:
> Hi.
> I'm using CPython 2.7 and Linux. In order to make parallel
> computations on a large list of objects I want to use multiple
> processes (by using multiprocessing module). In the first step I fill
> the list with objects and then I fork() my work
On 11/14/2010 12:23 PM Steve Holden said...
On 11/14/2010 8:29 AM, Emile van Sebille wrote:
[...]
We all know that _everything_ is a disguised method call and we call the
disguised method call that resembles a statement where the LHS is
separated from the RHS by a single equals sign assignment.
On Sun, 14 Nov 2010 12:23:03 -0800, Steve Holden wrote:
> What method of a does the statement
>
> a = something
>
> call? I ask in genuine ignorance, and in the knowledge that you may
> indeed be able to point me to such a method.
I know the question wasn't directed at me, but here's my 2 c
Steve Holden writes:
> On 11/14/2010 8:29 AM, Emile van Sebille wrote:
> [...]
>> We all know that _everything_ is a disguised method call and we call the
>> disguised method call that resembles a statement where the LHS is
>> separated from the RHS by a single equals sign assignment.
>
> I think
On Sun, Nov 14, 2010 at 5:00 AM, Martin Gregorie
wrote:
> On Sat, 13 Nov 2010 22:05:57 -0600, Tim Daneliuk wrote:
>
> > I am putting together a comparison & intro to each of sh, perl, python
> > with a view towards addressing:
> >
> Add awk / gawk to that list. IME its often the easiest and most
Hello all.
Quick question. I know some of you are with Python since started,
some other maybe later.
I was wondering if you can share what was the strategy you followed
to master Python (Yes I know I have to work hard study and practice a
lot). I mean did you use special books, special sites,
On 11/14/2010 05:32 PM, Aahz wrote:
> In article <[email protected]>,
> News123 wrote:
>> >
>> >Is there a simple way in Python to identify all active Threads /
>> >QThreads when trying, such that I can locate the thread, itls related
>> >python code and fix it?
> threading.e
On 2010-11-14, Jorge Biquez wrote:
> I was wondering if you can share what was the strategy you followed
> to master Python (Yes I know I have to work hard study and practice a
> lot). I mean did you use special books, special sites, a plan to
> learn each subject in a special way. I would like
On Sun, Nov 14, 2010 at 11:20 AM, Chris Rebert wrote:
> On Sun, Nov 14, 2010 at 11:00 AM, Micah Carrick
> wrote:
> > I'm writing a little API that other people will use. There are up to 3
> > "objects" that get passed around. One of them has some validation
> methods,
> > the other two simply st
On Nov 14, 10:32 pm, Jorge Biquez wrote:
> Hello all.
> Quick question. I know some of you are with Python since started,
> some other maybe later.
>
> I was wondering if you can share what was the strategy you followed
> to master Python (Yes I know I have to work hard study and practice a
> lot)
Hey all, I'm trying to read a library of my company's PDFs, but about a
third of them can't be opened. PyPDF (v1.12) spits out this error:
pyPdf.utils.PdfReadError: EOF marker not found
I searched for the answer via google, but all I found was this link:
http://lindaocta.com/?tag=pypdf. She sug
Steven D'Aprano wrote:
It
only becomes your problem if you have advised people that the right way
to use your module is with import *.
And if you're advising people to do that, it would be an
extremely good idea to give your functions different names
so that they don't conflict with the builti
On Sun, Nov 14, 2010 at 11:08 AM, Artur Siekielski <
[email protected]> wrote:
> Hi.
> I'm using CPython 2.7 and Linux. In order to make parallel
> computations on a large list of objects I want to use multiple
> processes (by using multiprocessing module). In the first step I fill
> the
On 14-11-2010 23:32, Jorge Biquez wrote:
> Hello all.
> Quick question. I know some of you are with Python since started, some other
> maybe later.
>
> I was wondering if you can share what was the strategy you followed to master
> Python (Yes I know I
> have to work hard study and practice a lot
Jorge Biquez writes:
> I was wondering if you can share what was the strategy you followed to
> master Python (Yes I know I have to work hard study and practice a
> lot). I mean did you use special books, special sites, a plan to learn
> each subject in a special way.
I find that my strategy wit
Does Komodo have to be shut down individually every time I want to
restart Windows XP? Is there some way to eliminate the persistent
Workspace Restore error after every restart? I have tried setting it
to restore files without asking, but that does not seem to work.
Thanks.
--
http://mail.pyth
Artur Siekielski writes:
> Hi.
> I'm using CPython 2.7 and Linux. In order to make parallel
> computations on a large list of objects I want to use multiple
> processes (by using multiprocessing module). In the first step I fill
> the list with objects and then I fork() my worker processes that d
On 14/11/2010 23:53, Ben Finney wrote:
Jorge Biquez writes:
I was wondering if you can share what was the strategy you followed to
master Python (Yes I know I have to work hard study and practice a
lot). I mean did you use special books, special sites, a plan to learn
each subject in a special
Careers in Management work. Careers for your future.
http://managementjobs.webs.com/hrm.htm
http://topcareer.webs.com/businessmanagement.htm
Fresh coming up complete government career, computer jobs.
http://rojgars1.webs.com/gov.htm http://printmediajobs.webs.com/fl.htm
--
http://mail.python.org
I am attempting to open a window on mouse activity which works, but
the window fails to stay open.
I set it to terminate when the escape key is pressed even when the
program is not currently selected. This works fine. Originally I had
it create the window only with a right click, but when I noticed
Jorge Biquez writes:
> I was wondering if you can share what was the strategy you followed to
> master Python (Yes I know I have to work hard study and practice a lot).
1. Read the tutorial http://docs.python.org/tutorial/
2. Start writing code, and encounter various issues as usually happens.
Jorge Biquez writes:
> I was wondering if you can share what was the strategy you followed to
> master Python (Yes I know I have to work hard study and practice a lot).
One of the basic mistakes that folks (kids?) studying a language do is
to study *only* the language. I guess the mistake happe
On Nov 15, 10:00 am, John Doe wrote:
> Does Komodo have to be shut down individually every time I want to
> restart Windows XP? Is there some way to eliminate the persistent
> Workspace Restore error after every restart? I have tried setting it
> to restore files without asking, but that does not
On 2010-11-14 17:37 , Gregory Ewing wrote:
Steven D'Aprano wrote:
It only becomes your problem if you have advised people that the right way to
use your module is with import *.
And if you're advising people to do that, it would be an
extremely good idea to give your functions different names
On Sun, Nov 14, 2010 at 1:03 AM, Franck Ditter wrote:
> Pardon my noobness (?) but why is there a 2.x and 3.x development
> teams working concurrently in Python ? I hardly saw that in other
> languages. Which one should I choose to start with, to cope with
> the future ? Isn't 3.x supposed to ext
alex23 wrote:
> John Doe wrote:
>> Does Komodo have to be shut down individually every time I want
>> to restart Windows XP? Is there some way to eliminate the
>> persistent Workspace Restore error after every restart? I have
>> tried setting it to restore files without asking, but that do
John Doe wrote:
> UseNet would be better off if Google Groups didn't exist, IMO.
I'm sorry, are you cranky because you didn't get the answer you wanted
when you posted in a less relevant forum?
Why do you think comp.lang.python is more appropriate than the Komodo
forums?
What does Google Groups
Here are some proposals. They are quite useful at my opinion and I'm
interested for suggestions. It's all about some common patterns.
First of all: how many times do you write something like
t = foo()
t = t if pred(t) else default_value
? Of course we can write it as
t = foo() if pred(f
On Nov 15, 9:39 am, Dmitry Groshev wrote:
> Here are some proposals. They are quite useful at my opinion and I'm
> interested for suggestions. It's all about some common patterns.
> First of all: how many times do you write something like
> t = foo()
> t = t if pred(t) else default_value
>
On Sun, Nov 14, 2010 at 10:39 PM, Dmitry Groshev wrote:
> Here are some proposals. They are quite useful at my opinion and I'm
> interested for suggestions. It's all about some common patterns.
> Second, I saw a lot of questions about using dot notation for a
> "object-like" dictionaries and a lo
On Nov 15, 9:48 am, Chris Rebert wrote:
> On Sun, Nov 14, 2010 at 10:39 PM, Dmitry Groshev
> wrote:
> > Here are some proposals. They are quite useful at my opinion and I'm
> > interested for suggestions. It's all about some common patterns.
>
> > Second, I saw a lot of questions about using do
On Nov 15, 4:39 pm, Dmitry Groshev wrote:
> First of all: how many times do you write something like
> t = foo()
> t = t if pred(t) else default_value
> ? Of course we can write it as
> t = foo() if pred(foo()) else default_value
> but here we have 2 foo() calls instead of one. Why can
On Nov 15, 5:30 pm, alex23 wrote:
> t = foo(x) if else default
This should read 'test' instead of 'text', sorry.
--
http://mail.python.org/mailman/listinfo/python-list
On Nov 15, 10:30 am, alex23 wrote:
> On Nov 15, 4:39 pm, Dmitry Groshev wrote:
>
> > First of all: how many times do you write something like
> > t = foo()
> > t = t if pred(t) else default_value
> > ? Of course we can write it as
> > t = foo() if pred(foo()) else default_value
> > bu
Dennis Lee Bieber writes:
> On Sat, 13 Nov 2010 23:14:22 +, Arnaud Delobelle
> declaimed the following in gmane.comp.python.general:
>
>
>> Two occurences of the name "a" belong to the same namespace
>>
> Pardon? By definition, any given namespace can have only one
> occurence of a
Pardon my noobness (?) but why is there a 2.x and 3.x development
teams working concurrently in Python ? I hardly saw that in other
languages. Which one should I choose to start with, to cope with
the future ? Isn't 3.x supposed to extend 2.y ?
This situation is very strange...
Thanks for your expl
On Sun, Nov 14, 2010 at 1:03 AM, Franck Ditter wrote:
> Pardon my noobness (?) but why is there a 2.x and 3.x development
> teams working concurrently in Python ? I hardly saw that in other
> languages.
You haven't heard of the infamous Perl 6?
> Which one should I choose to start with, to cope
Hello,
On Fri, Nov 12, 2010 at 12:00:55PM -0800, Brett
Bowman wrote:
> MRAB -
> I've tried worker threads, and it kills the
> thread only and not the program as a whole. I
> could use that as a work-around, but I would
> prefer something more direct, in case other
> problems arise.
Looks like th
NAUGHTY GIRL, WANNA NAUGHTY WITH ME, COME ON...really free...
FREE GOLD MEMBER FOR FEMALE PROFILE, registar with female gender for
free access
http://goo.gl/1bour
http://www.benaughty.com/aff.php?a_aid=27340f40&a_bid=17a6530c
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, 13 Nov 2010 22:05:57 -0600, Tim Daneliuk wrote:
> I am putting together a comparison & intro to each of sh, perl, python
> with a view towards addressing:
>
Add awk / gawk to that list. IME its often the easiest and most concise
way to process a text file, e.g. a log file, while applying
Hi I'm working with several persons on a PyQT python application.
This application is using threads / QThreads in several places.
When trying to quit the application it doesn't stop.
I assume one thread / QThread did not stop. (wasn't declared as daemon
thread)
Is there a simple way in Pyth
Hi python geeks,
I have problem which i have been trying to find out for the past some
days, i have a device which feeds info to my fifo continuosly, and a thread
of mine reads the
fifo continuosly. Now when i change a parameter in the device, it sends me
different values. Now my problem is that
Hello Pythonistas!
I'm trying to get floating point division to work; I'm using Python
2.6.5. When I enter 'from _future_ import division' at the command
line, I get the ImportError, no module named _future_. How can I
rectify this?
Sorry for this basic question, but I don't know where else to turn
>From the error, you are importing wrong module which actually does not
exists
try importing something from maths
On Sun, Nov 14, 2010 at 8:21 PM, otenki wrote:
> Hello Pythonistas!
> I'm trying to get floating point division to work; I'm using Python
> 2.6.5. When I enter 'from _future_ import
On 14/11/2010 3:00 PM, Nitin Pawar wrote:
I'm trying to get floating point division to work; I'm using Python
2.6.5. When I enter 'from _future_ import division' at the command
line, I get the ImportError, no module named _future_. How can I
rectify this?
That should be two underscores, not one
otenki wrote:
> Hello Pythonistas!
> I'm trying to get floating point division to work; I'm using Python
> 2.6.5. When I enter 'from _future_ import division' at the command
> line, I get the ImportError, no module named _future_. How can I
> rectify this?
You need two leading/trailing underscore
On 15/11/2010, otenki wrote:
> When I enter 'from _future_ import division' at the command
> line, I get the ImportError, no module named _future_.
The module name is "__future__"
Notice that there are 2 underscore characters before the word "future"
and 2 after it. This is a common convention i
On Nov 14, 10:09 am, David wrote:
> On 15/11/2010, otenki wrote:
>
> > When I enter 'from _future_ import division' at the command
> > line, I get the ImportError, no module named _future_.
>
> The module name is "__future__"
>
> Notice that there are 2 underscore characters before the word "futu
It's about a week now I've been trying to convert a datetime object to
seconds since epoch; the object is set to current time by class Rep()
in Google App Engine:
class Rep(db.Model):
...
mCOUNT = db.IntegerProperty()
mDATE0 = db.DateTimeProperty(auto_now_add=True)
mWEIGHT = db.Flo
On 11/13/2010 3:28 PM Mark Wooding said...
Steven D'Aprano writes:
On Sat, 13 Nov 2010 20:01:42 +, Mark Wooding wrote:
Some object types are primitive, provided by the runtime system;
there are no `internal' variables to be assigned in these cases.
You seem to be making up your own term
In article <[email protected]>,
News123 wrote:
>
>Is there a simple way in Python to identify all active Threads /
>QThreads when trying, such that I can locate the thread, itls related
>python code and fix it?
threading.enumerate() or sys._current_frames()
--
Aahz (a...@py
In article ,
David wrote:
> On 15/11/2010, otenki wrote:
> > When I enter 'from _future_ import division' at the command
> > line, I get the ImportError, no module named _future_.
>
> The module name is "__future__"
>
> Notice that there are 2 underscore characters before the word "future"
>
Zeynel writes:
> It's about a week now I've been trying to convert a datetime object to
> seconds since epoch; the object is set to current time by class Rep()
> in Google App Engine:
>
> class Rep(db.Model):
> ...
> mCOUNT = db.IntegerProperty()
> mDATE0 = db.DateTimeProperty(auto_no
2010/11/14 Zeynel :
> It's about a week now I've been trying to convert a datetime object to
> seconds since epoch; the object is set to current time by class Rep()
> in Google App Engine:
>
> class Rep(db.Model):
> ...
> mCOUNT = db.IntegerProperty()
> mDATE0 = db.DateTimeProperty(auto_no
I have seen both forms and I'm not sure if they're
both correct, or one is right and the other wrong.
In practical terms, the two of them seem to have
the same effect.
Cheers,
Ernest
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, Nov 14, 2010 at 8:58 AM, ernest wrote:
> I have seen both forms and I'm not sure if they're
> both correct, or one is right and the other wrong.
They're both acceptable (although obviously you should always raise a
more specific error than Exception).
`raise SomeException` is in fact equi
On 14/11/2010 14:48, ton ph wrote:
Hi python geeks,
I have problem which i have been trying to find out for the past
some days, i have a device which feeds info to my fifo continuosly, and
a thread of mine reads the
fifo continuosly. Now when i change a parameter in the device, it sends
me di
On 14/11/2010 16:40, Roy Smith wrote:
In article,
David wrote:
On 15/11/2010, otenki wrote:
When I enter 'from _future_ import division' at the command
line, I get the ImportError, no module named _future_.
The module name is "__future__"
Notice that there are 2 underscore characters be
Hi all,
I'm having a problem with subprocess.Popen. It seems that its unable to
capture the pg_dump's standard inputs & outputs in a non-shell mode:
from subprocess import Popen, PIPE
# fire pg_dump in order to read data from the file object pgsql.stdout
pgsql = Popen(['/usr/bin/pg_dump',
I'm writing a little API that other people will use. There are up to 3
"objects" that get passed around. One of them has some validation methods,
the other two simply store data and probably won't have any validation or
other methods. I only made them objects so that they are syntactically (is
that
Hi users,
I'm using Python 2.5 (in concert with ArcGIS 9.3) to convert a raster to an
ASCII file. I used the code (listed below) several weeks ago to successfully
do the conversion, but when I tried to replicate it a few days ago, I got an
error message.
import arcgisscripting
gp = arcgisscriptin
Hi.
I'm using CPython 2.7 and Linux. In order to make parallel
computations on a large list of objects I want to use multiple
processes (by using multiprocessing module). In the first step I fill
the list with objects and then I fork() my worker processes that do
the job.
This should work optimall
On Sun, Nov 14, 2010 at 10:50 AM, Camille Harang wrote:
> Hi all,
>
> I'm having a problem with subprocess.Popen. It seems that its unable to
> capture the pg_dump's standard inputs & outputs in a non-shell mode:
>
> from subprocess import Popen, PIPE
>
> # fire pg_dump in order to read data from
On Sun, Nov 14, 2010 at 11:00 AM, Micah Carrick wrote:
> I'm writing a little API that other people will use. There are up to 3
> "objects" that get passed around. One of them has some validation methods,
> the other two simply store data and probably won't have any validation or
> other methods.
75 matches
Mail list logo