On Apr 9, 7:41 pm, Gabriel Genellina wrote:
> omnia neo gmail.com> writes:
>
>
>
>
>
> > On Apr 9, 10:42 am, omnia neo wrote:
> > > On Apr 9, 10:30 am, Stefan Behnel wrote:
>
> > > > omnia neo, 09.04.2010 07:01:
>
> > > > > import siptest
>
> > > > > I get following error :
> > > > > import err
On Apr 12, 9:26 pm, Steven D'Aprano
wrote:
> # The obfuscated, fragile way
> map( itemgetter(0), sorted(
> zip(db, range(1, len(db)+1)), key=lambda t: t[1] if t[1] in i else -1
> )[-len(i):] )
I have to hand it to you that this might, in fact, be "the"
obfuscated, fragile way, but I go
On Mon, 12 Apr 2010 13:05:30 -0700, vsoler wrote:
> Hi everyone,
>
> say that 'db' is a list of values
> say 'i' is a list of indexes
> I'd like to get a list where each item is i-th element of db.
>
> For example:
>
> db=[10,20,30,40,50,60,70,80,90] #undefined length
> i=[3,5,7] #undefi
http://www.google.com/url?sa=D&q=http://osamah2000.jeeran.com/daauageralmuslmeen1.htm&usg=AFQjCNGQhhGz-1TGv9Y7gE8zKwHHustJCg
--
http://mail.python.org/mailman/listinfo/python-list
On 2010-04-12 17:02 PM, Malcolm Greene wrote:
Looking for advice on what Python license and copyright text to
include and where to include it when selling a commercial
(Windows based) Python based application.
The requirement is fairly broad; there are a number of things you could do to
satisf
Looking for advice on what Python license and copyright text to
include and where to include it when selling a commercial
(Windows based) Python based application.
By license text and copyrights I am refering to the text on this
page:
PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
http://www.python
tkp...@hotmail.com wrote:
> I fixed the problem by creating a file call MyPath.pth that has only
> one line
> H:/Python
>
> and placing it in the C:\Python31\Lib\site-packages directory. So as a
> practical matter, my problem is solved. That said, I'm still puzzled
> by why Python 3.1 acts up when
Longpoke wrote:
> So either this test case is wrong to assume the destructor can only be
> called once, or there is a bug in Python?
Or perhaps more likely you misunderstand what is happening here. Maybe
there are two separate instances of A()?
If I remember correctly gtk wraps C objects in Py
Microsoft has just released Visual Studio 2010, along with its free (of
charge) Express edition. Following a tradition, they are likely to
withdraw support and availability for VS 2008 Express some time in the
future.
Python 2.6, 2.7, and 3.1 are all built with that release (i.e. 2008).
Because of
On Apr 12, 11:39 am, Terry Reedy wrote:
> On 4/12/2010 1:57 AM, Mensanator wrote:
>
> > Likewise, I usually don't shut down
> > when I leave work, so I can't allow orphaned processes to accumulate
> > eating up CPU and memory.
>
> So don't.
I don't. I'm complaining about the need to do that.
>
>
Longpoke gmail.com> writes:
> So either this test case is wrong to assume the destructor can only be
> called once, or there is a bug in Python?
Destructors can be called more than once in CPython, but other implementations
have proper finalization behavior.
--
http://mail.python.org/mailman
On 12 abr, 22:11, Patrick Maupin wrote:
> On Apr 12, 3:05 pm, vsoler wrote:
>
> > Hi everyone,
>
> > say that 'db' is a list of values
> > say 'i' is a list of indexes
> > I'd like to get a list where each item is i-th element of db.
>
> > For example:
>
> > db=[10,20,30,40,50,60,70,80,90] #
On Mon, Apr 12, 2010 at 1:05 PM, vsoler wrote:
> Hi everyone,
>
> say that 'db' is a list of values
> say 'i' is a list of indexes
> I'd like to get a list where each item is i-th element of db.
>
> For example:
>
> db=[10,20,30,40,50,60,70,80,90] #undefined length
> i=[3,5,7]
On Apr 12, 3:05 pm, vsoler wrote:
> Hi everyone,
>
> say that 'db' is a list of values
> say 'i' is a list of indexes
> I'd like to get a list where each item is i-th element of db.
>
> For example:
>
> db=[10,20,30,40,50,60,70,80,90] #undefined length
> i=[3,5,7]
Hi everyone,
say that 'db' is a list of values
say 'i' is a list of indexes
I'd like to get a list where each item is i-th element of db.
For example:
db=[10,20,30,40,50,60,70,80,90] #undefined length
i=[3,5,7] #undefined length
then result=[30,50,70]
On Apr 12, 3:51 am, alex23 wrote:
> Mensanator wrote:
> > You think the right thing to do is just quietly work
> > around the problem and sit back and laugh knowing sooner
> > or later someone else will get burned by it?
>
> Haven't we covered argument from fallacy enough in this group by now?
>
I fixed the problem by creating a file call MyPath.pth that has only
one line
H:/Python
and placing it in the C:\Python31\Lib\site-packages directory. So as a
practical matter, my problem is solved. That said, I'm still puzzled
by why Python 3.1 acts up when I set the environment variable
PYTHONPA
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,
Is it normal for the destructor to be called more than once? This code
caused it to happen:
import gtk
class A(gtk.Window):
def __init__(self):
gtk.Window.__init__(self)
self.connect("delete-event", lambda w,e: gtk.main_quit(
Hello All.
im making some website login function with mechanize.browser() module.
but problem is i can't send submit or click submit button with
mechanize click() function, it not working.
how can i submit button or click() function make it work?
i can make it work mechanize.Request and mechanize.u
I run Python under Windows XP SP3, and for the longest time, I have
installed it on my C: drive under C:\PythonXX (XX = 20, 21., 26),
and maintained all my Python files on our network in a directory
called H:\Python that I point to by creating an environment variable
called PYTHONPATH. I recent
On Apr 12, 4:27 pm, Gerhard Häring
wrote:
> Maybe somebody can enlighten me here. I can't figure out why doing a
> rich comparison on my object decreases the total reference count by 1. [...]
Doh! It turned out the strange effect was due to my particular build
process.
My Python 2.6/3.1 are built
On Mon, Apr 12, 2010 at 11:31 AM, Maggie wrote:
> hello,
>
> i have a basic script i need to implement. i need below code to read
> in a file and perform operation is it designed to do:
>
> #!/usr/bin/python
>
> import sys
>
> feed = sys.stdin.readlines()
This sounds like homework, so here are so
hello,
i have a basic script i need to implement. i need below code to read
in a file and perform operation is it designed to do:
#!/usr/bin/python
import sys
feed = sys.stdin.readlines()
for temp in feed:
line = temp.split()
if len(line) == 3:
if (line[0] == "xmax" or line[0] == "xmi
En Fri, 09 Apr 2010 23:19:48 -0300, kwatch escribió:
On 4月8日, 午後12:52, "Gabriel Genellina" wrote:
The built-in SyntaxError exception does what you want. Constructor
parameters are undocumented, but they're as follows:
raise SyntaxError("A descriptive error message", (filename,
line
En Fri, 09 Apr 2010 19:16:14 -0300, Jeremy escribió:
On Apr 9, 4:02 pm, "Gabriel Genellina" wrote:
En Fri, 09 Apr 2010 18:04:59 -0300, Jeremy
escribió:
> A related question: Can I parse the data once and keep it somewhere
> instead of reading the supporting file every time? I tried pickli
Luis Quesada wrote:
Dear all,
Given a gps coordinate, I would like to find out the country the
coordinate belongs to. I wonder whether there is a python library that
offers this capability...
(In case somebody here is looking for the same thing)
Somebody in sci.geo.satellite-nav suggested usin
En Sun, 11 Apr 2010 19:43:03 -0300, HigStar escribió:
I have had trouble with the __file__ attribute in the past, when using
py2exe (i.e. on the windows platform) and using the bundle feature
(which zips all files).
Using os.path.realpath( __file__ ) resolves to something like .../
library.zip/
2010/4/12 Ricardo Aráoz :
> Because .
... Guido says so: http://www.python.org/dev/peps/pep-0008/
--
Cheers,
Simon B.
--
http://mail.python.org/mailman/listinfo/python-list
Aahz wrote:
> In article ,
> Justin Park wrote:
>
>> The real problem is this. When I started working on the package,
>> somehow all of indentations were made by space-bars instead of using
>> tabs. But when I am implementing my own on top of it, I still use tabs
>> to make indentations.
>>
On 12 Apr, 19:10, luca72 wrote:
> Hello i have a dvb decoder with enigma2 inside, The enigma2 plugin can
> be made with python.
> In my plugin i have to use pyserial, but in the decoder the python2.5
> reply in this way:
> r...@bm750:/var/pyserial-2.5-rc2# python setup.py install
> Traceback (most
Hello i have a dvb decoder with enigma2 inside, The enigma2 plugin can
be made with python.
In my plugin i have to use pyserial, but in the decoder the python2.5
reply in this way:
r...@bm750:/var/pyserial-2.5-rc2# python setup.py install
Traceback (most recent call last):
File "setup.py", line 8
I have a problem using Pickle inside a class object.
The following code works:
m2 = markov_model.MarkovModel()
m2 = pickle.load(open("prueba", 'rb'))
print m2.n
However, if I create the following method inside markov_model.MarkovModel:
def load_model_from_file(self, name):
try:
On 4/12/2010 1:57 AM, Mensanator wrote:
Likewise, I usually don't shut down
when I leave work, so I can't allow orphaned processes to accumulate
eating up CPU and memory.
So don't.
Orphaned processes only accumulate when you use Restart Shell to abandon
a process stuck in an infinite loop. I
In article ,
Justin Park wrote:
>
>The real problem is this. When I started working on the package,
>somehow all of indentations were made by space-bars instead of using
>tabs. But when I am implementing my own on top of it, I still use tabs
>to make indentations.
Stop using TAB. Allowing TAB
All,
Thanks for all the help I finally got it. I ended up not having to
get rid of the periods.
Thanks again!
Gerad
--
http://mail.python.org/mailman/listinfo/python-list
Pyrex 0.9.9 is now available:
http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/
Highlights of this release:
* Some facilities for interfacing with C++ code have been
added.
* Changes have been made to the semantics of exception
catching to improve efficiency.
* Preparation is be
[Big snip]
Heh, my wife and I joke that in those "can this marriage be saved"
newspaper columns, every answer boils down to "communication is key".
Keep the customer tightly in the loop with regular communication --
frequent feedback regarding progress, costs, and whether your shared
underst
gerardob a écrit :
I have a problem using Pickle inside a class object.
The following code works:
m2 = markov_model.MarkovModel()
m2 = pickle.load(open("prueba", 'rb'))
Given the second line, the first is totally useless.
print m2.n
However, if I create the following method inside markov_
I have a problem using Pickle inside a class object.
The following code works:
m2 = markov_model.MarkovModel()
m2 = pickle.load(open("prueba", 'rb'))
print m2.n
However, if I create the following method inside markov_model.MarkovModel:
def load_model_from_file(self, name):
try:
On Mon, Apr 12, 2010 at 10:29 AM, Tim Chase
wrote:
> your own inaccurate assumptions and answer those, please.
>>
>
>
> Heh, my wife and I joke that in those "can this marriage be saved"
> newspaper columns, every answer boils down to "communication is key". Keep
> the customer tightly in the loo
Can be run like this:
ghaer...@ws124~/src/gh/test$ python3 setup.py build_ext --inplace
running build_ext
building 'foo' extension
gcc -fno-strict-aliasing -g -fwrapv -O0 -Wall -Wstrict-prototypes -
arch i386 -m32 -I/opt/jetstream/include/python3.1 -c foo.c -o build/
temp.macosx-10.4-i386-3.1-pyde
Maybe somebody can enlighten me here. I can't figure out why doing a
rich comparison on my object decreases the total reference count by 1.
Linked is the minimal test case with a C exension that compiles under
both Python 2.6 and 3.1. No external dependencies, except a DEBUG
build of Python to see
On 04/12/2010 06:37 AM, Victor Subervi wrote:
On Sat, Apr 10, 2010 at 3:14 PM, Tim Chase wrote:
1) Preeminently, address second-order ignorance.
[elided kvetch]
"second-order ignorance" is a technical term (not intended so
much as a slur) for "not knowing what you don't know". If you
google
"BOLLYWOOD GIRLS" "HOLLYWOOD GIRLS" "LOLLYWOOD GIRLS" "INDIAN GIRLS"
"PAKISTANI GIRLS" "KARACHI GIRLS" "LAHORE GIRLS" "ISLAMABAD GIRLS"
"MUSLIM GIRLS" "TURKISH GIRLS" "BLACK GIRLS" "PRETTY GIRLS" ON
www.epakistanigirls.blogspot.com "BOLLYWOOD GIRLS"
"HOLLYWOOD GIRLS" "LOLLYWOOD GIRLS"
Mensanator wrote:
On Apr 10, 11:51�pm, alex23 wrote:
Mensanator wrote:
3.x won't be adopted by WINDOWS developers WHO USE IDLE until it's fixed.
I think you left your hyperbole level too high so I turned it down for
you. I don't know of _anyone_ who uses IDLE to run production code,
nor do I
On Mon, Apr 12, 2010 at 5:56 PM, prakash jp wrote:
> Hi all,
>
> Can any one mention a list of python based tools (existant / could be
> developed) which network administrators might need.
>
Not sure if you might like, but there's an O'Reilly book titled
"Python for Unix and Linux System Administ
On Mon, Apr 12, 2010 at 9:03 AM, Victor Subervi wrote:
> On Sun, Apr 11, 2010 at 4:29 PM, Tim Chase
> wrote:
>
>> On 04/11/2010 02:53 PM, MRAB wrote:
>>
>>> Victor Subervi wrote:
>>>
Hi;
I send variables to a script. The script adds appropriate lines into a
database of an order to
On Sun, Apr 11, 2010 at 1:13 AM, average wrote:
>
> There are so many features taken from 3.0 that I fear that it will
> postpone its adoption interminably (it is, in practice, treated as
> "beta" software itself). By making it doctrine that it won't be
> official until the next "major" Python re
On Sun, Apr 11, 2010 at 4:29 PM, Tim Chase wrote:
> On 04/11/2010 02:53 PM, MRAB wrote:
>
>> Victor Subervi wrote:
>>
>>> Hi;
>>> I send variables to a script. The script adds appropriate lines into a
>>> database of an order to my shopping cart. When I refresh the screen, as
>>> no doubt some cus
Gilles Ganault, 12.04.2010 11:57:
I'd like to make sure I understand what the options are to write web
applications in Python:
- à la PHP, using Apache's mod_python
- using eg. Lighttpd and configuring it to load the Python interpreter
every time a Python script is called (www.jakehilton.com/?q
On 12 abr, 06:57, Gilles Ganault wrote:
> Hello
>
> I'd like to make sure I understand what the options are to write web
> applications in Python:
>
> - à la PHP, using Apache's mod_python
>
> - using eg. Lighttpd and configuring it to load the Python interpreter
> every time a Python script is ca
Hi all,
Can any one mention a list of *python based tools* (existant / could be
developed) which network administrators might need.
Regards
Prakash
--
http://mail.python.org/mailman/listinfo/python-list
On 2010-04-11, Steven D'Aprano
wrote:
> On Sat, 10 Apr 2010 10:11:07 -0700, Patrick Maupin wrote:
>> On Apr 10, 11:35??am, Neil Cerutti wrote:
>>> On 2010-04-10, Patrick Maupin wrote:
>>> > as Pyparsing". ??Which is all well and good, except then the OP will
>>> > download pyparsing, take a look
On Sat, Apr 10, 2010 at 3:14 PM, Tim Chase wrote:
> 1) Preeminently, address second-order ignorance.
Tim, throughout this post, you're way out of line. The s/w I have already
built for this client works just fine. It's not a matter or not having the
tools or not knowing how to use them. Pay atte
Hannes, 12.04.2010 12:56:
I heard that its possible to use LLVM to speed up Python.
Can anybody explain to me, how that works?
http://code.google.com/p/unladen-swallow/
Stefan
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, 12 Apr 2010 12:13:17 +0200, Daniel Fetchinson
wrote:
>For additional info have a look at http://wiki.python.org/moin/WebProgramming
Thanks for the link.
--
http://mail.python.org/mailman/listinfo/python-list
Hi Pythoneers,
I heard that its possible to use LLVM to speed up Python.
Can anybody explain to me, how that works?
thanks.
--
http://mail.python.org/mailman/listinfo/python-list
Thank you Chris and Stefan, this was the answer I was looking for.
Leonardo Giordani
--
http://mail.python.org/mailman/listinfo/python-list
Aahz a écrit :
In article , kj wrote:
What's the word on using "classes as namespaces"? E.g.
class _cfg(object):
spam = 1
jambon = 3
huevos = 2
breakfast = (_cfg.spam, _cfg.jambon, _cfg.huevos)
There is one gotcha associated with using classes as namespaces: you have
to be care
Leonardo Giordani, 12.04.2010 11:51:
I'm facing a strange issue in Python execution speed. I'm running the
following test script:
-8<-
dim = 1000
iteration = 10
list1 = []
list2 = []
for i in range(dim):
list1.a
On Mon, Apr 12, 2010 at 2:51 AM, Leonardo Giordani
wrote:
> which runs in about 80 seconds on my local hardware (mean of multiple
> execution)
> If I move the whole code into a function and call this latter the execution
> time drops to about 45 seconds.
>
> What is the reason of this improvement
> I'd like to make sure I understand what the options are to write web
> applications in Python:
>
> - à la PHP, using Apache's mod_python
>
> - using eg. Lighttpd and configuring it to load the Python interpreter
> every time a Python script is called (www.jakehilton.com/?q=node/54)
>
> - long-run
Samsung Corby TXT is a GSM phone. Samsung Corby TXT, a SmartPhone
mobile comes with a great list of features.
Samsung Corby TXT B3210 is a mobile with a user memory of 38 MB and
MicroSD support up to 8 GB of external memory. This simple statement
of specifications is sufficient for mobile buffs t
Samsung Corby TXT is a GSM phone. Samsung Corby TXT, a SmartPhone
mobile comes with a great list of features.
Samsung Corby TXT B3210 is a mobile with a user memory of 38 MB and
MicroSD support up to 8 GB of external memory. This simple statement
of specifications is sufficient for mobile buffs t
Hello
I'd like to make sure I understand what the options are to write web
applications in Python:
- à la PHP, using Apache's mod_python
- using eg. Lighttpd and configuring it to load the Python interpreter
every time a Python script is called (www.jakehilton.com/?q=node/54)
- long-running pro
Hi all,
I'm facing a strange issue in Python execution speed. I'm running the
following test script:
-8<-
dim = 1000
iteration = 10
list1 = []
list2 = []
for i in range(dim):
list1.append(float(i))
list2.appen
Mensanator wrote:
> You think the right thing to do is just quietly work
> around the problem and sit back and laugh knowing sooner
> or later someone else will get burned by it?
Haven't we covered argument from fallacy enough in this group by now?
Reporting the bug was exactly the right thing t
On Sun, 11 Apr 2010 21:47:59 -0700, Chris Rebert wrote:
> On Sun, Apr 11, 2010 at 10:46 AM,
> wrote:
>> Generally, if I want to know the inheritance tree of a class, I either
>> use inspect.getmro or __bases__
>>
>> However, after reading about the new numbers module / class tower in
>> Python 2
68 matches
Mail list logo