On Oct 30, 6:35 am, "Emanuele D'Arrigo" <[EMAIL PROTECTED]> wrote:
> I noticed that this issue has been discussed in this newsgroup
> periodically over the years and I seem to understand that -
> comprehensive- safe/restricted execution of untrusted code in python
> is currently quite hard to achie
On 2008-10-30, fx5900 <[EMAIL PROTECTED]> wrote:
> Hi,
>i am trying to convert an .osm (openstreetmap) file into gml format and
> finally to shapefile given this wiki info
> http://wiki.openstreetmap.org/index.php/GML. I'm using windows and when i
> entered the following commands osm2gml.py
Hi,
I just went to go and get a coffee when i noticed a email, thought it was
just usual spam. Read your message, and it worked. it was because i did not
put they 'python' keyword infront. How did u figure it out?
Although, cos i nver worked with python, things are bound to go wrong on the
fi
On Thu, Oct 30, 2008 at 8:42 PM, Arnaud Delobelle
<[EMAIL PROTECTED]> wrote:
> On Oct 30, 8:07 pm, "Paulo J. Matos" <[EMAIL PROTECTED]> wrote:
>> Hi all,
>>
>> I guess this is a recurring issue for someone who doesn't really know
>> the python lib inside out. There must be a simple way to do this.
On 2008-10-30, fx5900 <[EMAIL PROTECTED]> wrote:
>I just went to go and get a coffee when i noticed a email, thought it was
> just usual spam. Read your message, and it worked. it was because i did not
> put they 'python' keyword infront. How did u figure it out?
It is some problem with the D
On 2008-10-30, Paulo J. Matos <[EMAIL PROTECTED]> wrote:
>> print ' 10 '.join(str(x) for x in lst)
>
> Thanks for the tip but that has an issue when dealing with potentially
> millions of objects. You are creating a string in memory to then dump
> to a file [or screen] while you could dump to the
I would like to write a function to write variables to a file and modify a
few 'counters'. This is to replace multiple instances of identical code in a
module I am writing.
This is my approach:
def write_vars(D):
""" pass D=locals() to this function... """
for key in D.keys():
e
On 30 Oct 2008, at 21:10, Paulo J. Matos wrote:
On Thu, Oct 30, 2008 at 8:42 PM, Arnaud Delobelle
<[EMAIL PROTECTED]> wrote:
On Oct 30, 8:07 pm, "Paulo J. Matos" <[EMAIL PROTECTED]> wrote:
Hi all,
I guess this is a recurring issue for someone who doesn't really
know
the python lib inside
On 2008-10-30, Paulo J. Matos <[EMAIL PROTECTED]> wrote:
> On Thu, Oct 30, 2008 at 8:42 PM, Arnaud Delobelle
><[EMAIL PROTECTED]> wrote:
>> On Oct 30, 8:07 pm, "Paulo J. Matos" <[EMAIL PROTECTED]> wrote:
>>> Hi all,
>>>
>>> I guess this is a recurring issue for someone who doesn't really know
>>> t
I need simple web crawler, I found Ruya, but it's seems not currently
maintained. Does anybody know good web crawler on python or with
python interface?
http://watch-me.890m.com
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, 30 Oct 2008 14:21:01 -0700, John [H2O] wrote:
> I would like to write a function to write variables to a file and modify
> a few 'counters'.
Are you talking about a function to generate Python source code?
> This is to replace multiple instances of identical
> code in a module I am wri
En Thu, 30 Oct 2008 16:50:22 -0200, Chuckk Hubbard
<[EMAIL PROTECTED]> escribió:
On Wed, Oct 29, 2008 at 10:32 PM, J Kenneth King <[EMAIL PROTECTED]>
wrote:
One also has access to nice-levels on unix systems.
True enough, but it's not so much a problem for me, as I'm pretty okay
at tuning m
On Fri, Oct 31, 2008 at 8:13 AM, yura <[EMAIL PROTECTED]> wrote:
> I need simple web crawler, I found Ruya, but it's seems not currently
> maintained. Does anybody know good web crawler on python or with
> python interface?
> http://watch-me.890m.com
http://hg.softcircuit.com.au/index.wsgi/project
On Thu, Oct 30, 2008 at 02:47:48AM -0700, gaurav kashyap wrote:
> Simply i want to open a shell prompt from a python program.
If this is literally true, then you just need to figure out what
command will open a terminal window from the shell prompt. Once you
figure that out, it's as simple as:
c
I was doing some testing with the different ways to pass arguments into
functions and ran into what looks like a bug.
Given function,
def foo(a,b,c):
print a
print b
print c
# Call function with named parameter list, leaving 'b' out
foo(a=1, c=3)
Traceback (most recent call last):
On approximately 10/30/2008 6:26 AM, came the following characters from
the keyboard of Jesse Noller:
On Wed, Oct 29, 2008 at 8:05 PM, Glenn Linderman <[EMAIL PROTECTED]> wrote:
On approximately 10/29/2008 3:45 PM, came the following characters from the
keyboard of Patrick Stinson:
If y
On Fri, Oct 31, 2008 at 8:49 AM, mark floyd <[EMAIL PROTECTED]> wrote:
> I was doing some testing with the different ways to pass arguments into
> functions and ran into what looks like a bug.
>
> Given function,
>
> def foo(a,b,c):
> print a
> print b
> print c
>
> # Call function with
On Fri, 2008-10-31 at 08:55 +1000, James Mills wrote:
> What you have discovered is not a bug :)
>
> cheers
> James
>
Are you sure? It looks like his complaint isn't that it doesn't work,
but that the error message is misleading.
With the setup:
Python 2.5.2 (r252:60911, Sep 22 2008, 12:08:38)
Steven D'Aprano-7 wrote:
>
> What you are actually trying to do is unclear to me. Perhaps you could
> try explaining better with a more concrete example?
>
> --
> Steven
> --
>
Actually, maybe a LACK of an example would make it simpler. What I'm after
is a function, to which I can pass a d
John [H2O] wrote:
> I would like to write a function to write variables to a file and modify a
> few 'counters'. This is to replace multiple instances of identical code in a
> module I am writing.
>
> This is my approach:
>
> def write_vars(D):
> """ pass D=locals() to this function... """
>
On Fri, Oct 31, 2008 at 9:18 AM, John Krukoff <[EMAIL PROTECTED]> wrote:
> Are you sure? It looks like his complaint isn't that it doesn't work,
> but that the error message is misleading.
>
> With the setup:
>
> Python 2.5.2 (r252:60911, Sep 22 2008, 12:08:38)
> [GCC 4.1.2 (Gentoo 4.1.2 p1.1)] on
Yeah, PyCrust is in wxPython now. But I take back my initial
excitement — it's freaking hard to use, despite its provision of a
"pywrap" script (batch file under Windows). You certainly can't just
replace "python /path/to/blah.py" with "pywrap /path/to/blah.py",
especially if your script requires k
Yeah, PyCrust is in wxPython now. But I take back my initial
excitement — it's freaking hard to use, despite its provision of a
"pywrap" script (batch file under Windows). You certainly can't just
replace "python /path/to/blah.py" with "pywrap /path/to/blah.py",
especially if your script requires k
Łukasz Ligowski <[EMAIL PROTECTED]> writes:
> 2.5 docs say that:
> "a.has_key(k) Equivalent to k in a, use that form in new code"
>
> 2.6 docs say that:
> "dict.has_key(key) is equivalent to key in d, but deprecated."
>
> which is true?
Both are true, and are different ways of saying the same
On approximately 10/30/2008 2:13 PM, came the following characters from
the keyboard of Bill McClain:
On 2008-10-30, fx5900 <[EMAIL PROTECTED]> wrote:
I just went to go and get a coffee when i noticed a email, thought it was
just usual spam. Read your message, and it worked. it was becaus
Douglas Alan wrote:
greg <[EMAIL PROTECTED]> writes:
Seems to me that (1) describes exactly how parameter passing
works in Python. So why insist that it's *not* call by value?
Because there's an important distinction to be made,
The distinction isn't about parameter passing, though, it's
ab
On Oct 30, 2:10 pm, "Paulo J. Matos" <[EMAIL PROTECTED]> wrote:
> On Thu, Oct 30, 2008 at 8:42 PM, Arnaud Delobelle
>
>
>
> <[EMAIL PROTECTED]> wrote:
> > On Oct 30, 8:07 pm, "Paulo J. Matos" <[EMAIL PROTECTED]> wrote:
> >> Hi all,
>
> >> I guess this is a recurring issue for someone who doesn't re
Gabriel Genellina wrote:
En Tue, 28 Oct 2008 00:58:10 -0200, greg <[EMAIL PROTECTED]>
escribió:
>
(1) Call by value: The actual parameter is an expression. It is
evaluated and the result is assigned to the formal parameter.
Subsequent assignments to the formal parameter do not affect
Excellent! Thank you.
Gerhard Häring wrote:
>
> John [H2O] wrote:
>> Is there a quick way to list the version of each installed module?
>
> $ sudo easy_install yolk
> $ yolk -l
>
> -- Gerhard
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
--
View this message in contex
Dale Roberts wrote:
Okay, you can have it that way, but every time you explain to someone
that Python passes "By Value", you will have to add the additional
baggage that, oh, by the way, there is a completely different meaning
for "value" in Python than what you are used to.
For what it's wort
On Thu, 30 Oct 2008 09:03:42 -0600, Joe Strout wrote:
> Python's behavior is exactly and always equivalent to the "ByVal"
> behavior of languages that have both behaviors.
Pascal has both ByVal and By Ref, and Python's behaviour is absolutely
not the same as Pascal's ByVal.
> It also matches th
On Fri, 31 Oct 2008 13:58:13 +1300, greg wrote:
> Dale Roberts wrote:
>
>> Okay, you can have it that way, but every time you explain to someone
>> that Python passes "By Value", you will have to add the additional
>> baggage that, oh, by the way, there is a completely different meaning
>> for "v
Speaking of the big picture, is this how it normally works when
someone says "Here's some code and a problem and I'm willing to pay
for a solution?" I've never really walked that path with a project of
this complexity (I guess it's the backwards-compatibility that makes
it confusing), but is this p
On Oct 30, 8:23 pm, "Patrick Stinson" <[EMAIL PROTECTED]>
wrote:
> Speaking of the big picture, is this how it normally works when
> someone says "Here's some code and a problem and I'm willing to pay
> for a solution?" I've never really walked that path with a project of
> this complexity (I guess
On Oct 30, 9:05 pm, Steven D'Aprano <[EMAIL PROTECTED]
cybersource.com.au> wrote:
> On Fri, 31 Oct 2008 13:58:13 +1300, greg wrote:
> > Dale Roberts wrote:
>
snip
>
> > If they understand how assignment works in Python, that tells them all
> > they need to know.
>
> Nonsense.
Maybe I missed this p
On Oct 30, 2008, at 6:38 PM, greg wrote:
The distinction isn't about parameter passing, though, it's
about the semantics of *assignment*. Once you understand
how assigment works in Python, all you need to know then
is that parameters are passed by assigning the actual
parameter to the formal par
On Oct 30, 2008, at 6:58 PM, greg wrote:
For what it's worth, I happen to agree that telling
someone that Python passes parameters "by value" without
being sure they understand exactly what "by value"
means, is not a good idea -- not because the term
isn't well-defined, but because of the widesp
On Oct 30, 2:22 pm, Michel Perez <[EMAIL PROTECTED]> wrote:
> Hi, am very newbie in Python, but as part of a project i need to load
> configuration -a settings.py file in the package dir- of my apps
> recursively, something like this:
>
> settings.load_config("project.test.app")
> settings.load_co
On Oct 30, 3:50 pm, Aaron Brady <[EMAIL PROTECTED]> wrote:
> On Oct 30, 6:35 am, "Emanuele D'Arrigo" <[EMAIL PROTECTED]> wrote:
>
>
>
> > I noticed that this issue has been discussed in this newsgroup
> > periodically over the years and I seem to understand that -
> > comprehensive- safe/restricted
greg <[EMAIL PROTECTED]> writes:
> Douglas Alan wrote:
>> greg <[EMAIL PROTECTED]> writes:
>>
>>>Seems to me that (1) describes exactly how parameter passing
>>>works in Python. So why insist that it's *not* call by value?
>> Because there's an important distinction to be made,
>
> The distinction
Hi everybody!
I'm trying to do something in a way that is probably not particularly
wise but at this point I don't know any better, so bear with me.
Suppose in main.py I have the following statements:
myObject = MyObject()
execThis("myObject.myCommand()")
Now suppose the method
def execThis(aC
Manu,
Good lord man, what are you trying to solve ?
Describe your "actual problem" you're attempting
to solve... This looks really really ugly and I would
advise against any solution that relies on exec()
--JamesMills
On Fri, Oct 31, 2008 at 1:47 PM, Emanuele D'Arrigo <[EMAIL PROTECTED]> wrote:
On Oct 31, 2:05 am, "Andy O'Meara" <[EMAIL PROTECTED]> wrote:
> I don't follow you there. If you're referring to multiprocessing, our
> concerns are:
>
> - Maturity (am I willing to tell my partners and employees that I'm
> betting our future on a brand-new module that imposes significant
> restri
On Oct 31, 10:47 am, "Emanuele D'Arrigo" <[EMAIL PROTECTED]> wrote:
> Hi everybody!
>
> I'm trying to do something in a way that is probably not particularly
> wise but at this point I don't know any better, so bear with me.
>
> Suppose in main.py I have the following statements:
>
> myObject = MyO
Dear Tino,
There is no subprocess module in python 2.3.5.
My goal is:
1.Open a terminal window and login as root.
2.Issue some command in the terminal window that will open another
terminal,similar to the onealready opened.
Am i clear now.
--
http://mail.python.org/mailman/listinfo/python-l
Dear all,
I am using Microsoft Windows XP.Using putty.exe,I connected to LINUX
server and a terminal window gets opened.Here i logeed in as root.
What i want to do is open another terminal window from already opened
terminal window.
Can this be achieved.If yes,please provide a tested solution
T
gaurav kashyap wrote:
> Dear all,
>
> I am using Microsoft Windows XP.Using putty.exe,I connected to LINUX
> server and a terminal window gets opened.Here i logeed in as root.
>
> What i want to do is open another terminal window from already opened
> terminal window.
> Can this be achieved.If y
On Thu, Oct 30, 2008 at 9:56 AM, Steve Holden <[EMAIL PROTECTED]> wrote:
> Saurabh Agrawal wrote:
> >
> > PyQt supported Python 2.6 on the day it was released.
> >
> > A snapshot of the PyQt Windows installer for Python 2.6 can be
> > downloaded
> > from the same page as you downlo
Hi John,
John [H2O] wrote:
Steven D'Aprano-7 wrote:
What you are actually trying to do is unclear to me. Perhaps you could
try explaining better with a more concrete example?
--
Steven
--
Actually, maybe a LACK of an example would make it simpler. What I'm after
is a function, to which I
Dale Roberts wrote:
Are you
saying that C++ is capable of using the Call By Reference idiom, but C
is not, because C does not have a reference designation for formal
function parameters?
Call by reference is not an "idiom", it's a *language
feature*.
Pascal has it (using "var"), VB.NET has it
Greetins all
1. I can easily run python file from a comand prompt just typing
"python filname.py".
How can I do this from the python IDLE shell
2. How to create EXE in python.
thanks all for making me to be more copnfortable with python
Seid M
--
"RABI ZIDNI ILMA"
--
http://mail.python.org/mailma
Here's a strange one for you:
I have a generator function which produces lists of numbers and takes options
which influence the output. The generator contains a loop, and to enable the
options to have a different value on each iteration, the options may
themselves be instances of the same gener
I need tutorial or book on Tree or hierarchical structure using Python.
--
http://mail.python.org/mailman/listinfo/python-list
101 - 153 of 153 matches
Mail list logo