could ildg wrote:
> Thank you for your help.
> I know the function g is changed after setting the func_name.
> But I still can't call funciton g by using f(), when I try to do
> this, error will occur:
>
>
g.func_name="f"
print g
>
>
>
f()
>
> Traceback (most recent call last):
>
could ildg wrote:
> Thank you for your help.
> I know the function g is changed after setting the func_name.
> But I still can't call funciton g by using f(), when I try to do
> this, error will occur:
>
> >>> g.func_name="f"
> >>> print g
>
> >>> f()
> Traceback (most recent call last):
> File
could ildg wrote:
> I think decorator is a function which return a function, is this
right?
> e.g. The decorator below if from
http://www.python.org/peps/pep-0318.html#id1.
>
> def accepts(*types):
> def check_accepts(f):
> assert len(types) == f.func_code.co_argcount
> def new
DJTB <[EMAIL PROTECTED]> writes:
> I'm not a Python memory specialist, but does del immediately release/free
> the memory to the OS? I thought it was impossible to let Python immediately
> release memory.
Unknown. Python relies on the C alloc/free routines for handling
memory. del may immediately
could ildg wrote:
> Thank you for your help.
> I know the function g is changed after setting the func_name.
> But I still can't call funciton g by using f(), when I try to do
> this, error will occur:
>
>
g.func_name="f"
print g
>
>
>
f()
>
> Traceback (most recent call last):
>
Thank you for your help.
I know the function g is changed after setting the func_name.
But I still can't call funciton g by using f(), when I try to do
this, error will occur:
>>> g.func_name="f"
>>> print g
>>> f()
Traceback (most recent call last):
File "", line 1, in ?
NameError: name 'f' is
Chu, Jeong Ho wrote:
> Is it possible to download MMS stream by using python?
I don't know of a way with Python alone, but you could use mplayer's
-dumpstream capabilities to dump to a file. It might even allow you to
dump to a pipe, I forget.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields o
could ildg wrote:
> def a(func):
> def _inner(*args, **kwds):
> print "decorating..."
> return func(*args, **kwds)
> _inner.func_name = func.func_name -->when I delete this line, the
> rusult is the same. why?
> return _inner
>
> @a
> def g(*args):
> for x in args:
Is it possible to download MMS stream by using python?
Please, let me know any clue.
Thanks in advance
--
http://mail.python.org/mailman/listinfo/python-list
def a(func):
def _inner(*args, **kwds):
print "decorating..."
return func(*args, **kwds)
_inner.func_name = func.func_name -->when I delete this line, the
rusult is the same. why?
return _inner
@a
def g(*args):
for x in args:
print x
print "this is in fu
"john67" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
| The company I work for is about to embark on developing a commercial
| application that will cost us tens-of-millions to develop. When all is
| said and done it will have thousands of business objects/classes, some
| o
"Kay Schluehr" <[EMAIL PROTECTED]> writes:
> To answer Your initial question: there is probably no technical reason
> against Python as a language or the CPython runtime. Both are very
> stable and mature.
I'd like to agree with this but I just can't. Python is a great
language for prototyping an
Mayer wrote:
> Hello:
>
> I need some help in understanding generators. I get them to work in
> simple cases, but the following example puzzles me. Consider the
> non-generator, "ordinary" procedure:
>
> def foo(n):
> s = []
> def foo(n):
> if n == 0:
> print s
>
Hi,
I have recently installed tiger on my mac computer. After the installation, I have been unable to launch python IDE or package manager (the icons bounce on the dock for a while and then crash). IDLE is working so far, however, none of the GUI script are working and I am also not able to open m
"Kay Schluehr" wrote:
> > Think about it: if the
> > project fails (and that's quite likely for huge projects, not dark
> > humour) and you've done it in python, everyone will blame python
and
> > you who chose it; java OTOH belongs in the realm of "standard
> business
> > practices", so in a way
I am trying to trap events from internet explorer eg. when user clicks
on an html link - I need to get notified for that event.
After looking through the newgroups / internet and reading through
various sections in programming python on win32 - I understand that
this can be done using DispatchWith
William Park wrote:
> How do you compare 2 strings, and determine how much they are "close" to
> each other?
Here's a really weird idea: Measure the size difference between the
pair of strings compressed together and compressed separately.
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mai
On Wed, 18 May 2005 22:37:21 -0500, Ed Morton <[EMAIL PROTECTED]>
wrote:
>
>
>John Machin wrote:
>
>> On Wed, 18 May 2005 20:03:53 -0500, Ed Morton <[EMAIL PROTECTED]>
>> wrote:
>
>>>I assume you were actually being facetious
>>>and trying to make the point
>>>that names that don't look the same
.
[EMAIL PROTECTED] wrote:
> Best Viewed at << 1024x768 >>
>
http://groups-beta.google.com/group/alt.religion.christian/browse_thread/thread/73352e0ed6923d23/1ea6c7a1ea6923ab?hl=en#1ea6c7a1ea6923ab
>
>
***
>
***
John Machin wrote:
> On Wed, 18 May 2005 20:03:53 -0500, Ed Morton <[EMAIL PROTECTED]>
> wrote:
>>I assume you were actually being facetious
>>and trying to make the point
>>that names that don't look the same on paper can have the same soundex
>>encoding and that's obviously countered with t
bgs wrote:
>Hmm, it looks like the dot operator has been overloaded to do something
>complicated. (although if you haven't already, try "for i in nodes:
>pass" just to make sure). Is it retrieving the data from the network
>
>
I tried that (the pass), that runs fast as it should
>somewhere?
Hello,
No I'm not angry - but my machine seems to be :-|
A pop-up dialog appears while trying to close the main PythonWin window
that has that error 'God damn error 666' - I can close this and then
the machine is ok BUT bye bye PythonWin...
This occurs after a progression of windows (small 'w' f
On 18 May 2005 19:49:12 -0700, "Lorn" <[EMAIL PROTECTED]> wrote:
>
>Was wondering what your reasoning is behind replacing "filter" with the
>x for x statement?
map, filter, and reduce tend to be deprecated in some quarters since
list comprehensions came in [and fiercely defended in other quarter
Hi Anton,
>I just did a "telnet://localhost"; and
>there was an error message from the appguard stating that "telnet.exe"
>wasn't allowed to run.
>
>
Err, dumb question, did you try bringing python on a USB drive and
renaming python.exe to winword.exe? (yes, I have seen so-called "locked
down
Thanks John, this works great!
Was wondering what your reasoning is behind replacing "filter" with the
x for x statement?
Appreciate the help, thanks again.
Lorn
--
http://mail.python.org/mailman/listinfo/python-list
millerch wrote:
> Are you explicitly referencing the port for nmap, or is it a general
> port scan?
>
> The version of nmap I run only checks common ports unless a port range
> is specified.
I did not know that. It works as expected now. Thanks!
--
http://mail.python.org/mailman/listinfo/pytho
On 18 May 2005 17:30:58 -0700, "Lorn" <[EMAIL PROTECTED]> wrote:
>I've been working on this code somewhat succesfully, however I'm unable
>to get it to iterate through all the zip files in the directory. As of
>now it only extracts the first one it finds. If anyone could lend some
>tips on how my
Sorry. Yeah, Linux. Eww. Ick. Don't want to mess with .Xdefaults. It
works, so I guess I'll just keep the .bind. Thanks, Phil!
"phil" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> If you are talking Linux there's .Xdefaults
> Which I had to resort to for tn5250.
> For Tkinter
Hi All,
I am trying to get the source files for pycron &makezip.
http://www.kalab.com/freeware/pycron/pycron.htm
I tried mailing a request to [EMAIL PROTECTED]
but no joy yet.
Cheers
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
I hope someone can please help me. A few months ago, I found a VBS file,
MonitorEDID.vbs on the internet. It is great in that it will extract from the
registry of Windows the serial number of the attached monitor. (System
Administration / PC Inventory usage is obvious)
Standalone, it works fi
On Wed, 18 May 2005 20:03:53 -0500, Ed Morton <[EMAIL PROTECTED]>
wrote:
>
>
>John Machin wrote:
>> On Wed, 18 May 2005 15:06:53 -0500, Ed Morton <[EMAIL PROTECTED]>
>> wrote:
>>
>>
>>>
>>>William Park wrote:
>>>
>>>
How do you compare 2 strings, and determine how much they are "close" to
>>
Thanks very much to Harlin Seritt.
Your example is really helpful to me.
I read some more docs on python oop and I am more clear
now. But when I try to understand Decorators for Functions and Methods
in PEP 318, I got puzzled. How do Decorators work?
I think decorator is a function which return
Version 0.8.6a is now available.
This version is mostly a bug fix version.
* unicode problem corrected (bug introduced in version 0.8.5)
* linenumber information on syntax errors corrected
* removed the URL browser capability
* corrected typo and change explation of next_to_a_beeper() in lessons
*
Hmm, it looks like the dot operator has been overloaded to do something
complicated. (although if you haven't already, try "for i in nodes:
pass" just to make sure). Is it retrieving the data from the network
somewhere? If so, then it looks like it is probably retrieving each
coordinate individu
If you are talking Linux there's .Xdefaults
Which I had to resort to for tn5250.
For Tkinter apps its a LOT easier to just use bind.
Win32? dunno.
Bob Greschke wrote:
> I have a Tkinter Text() widget in a program that the user can type stuff
> into. Most of our keyboards have the regular keys
Thanks.
My confusion was man 3 printf u is unsigned.
But of course that would be after %.
Never paid any attention to unicode,
but will now.
I'll figure out on my own why Tkinter and
WinXP console treated differently or used different
codepage. Thanks.
Jeff Epler wrote:
> this isn't about the
John Machin wrote:
> On Wed, 18 May 2005 15:06:53 -0500, Ed Morton <[EMAIL PROTECTED]>
> wrote:
>
>
>>
>>William Park wrote:
>>
>>
>>>How do you compare 2 strings, and determine how much they are "close" to
>>>each other? Eg.
>>>aqwerty
>>>qwertyb
>>>are similar to each other, except f
> It's a thin line between philosophy, fear of breaking the rules and
> having the security personnel throw me out of here, and trying to
live
> in a just world.
You forgot "and making the lives of those maintaining the public
terminal more difficult".
You know, there _are_ valid reasons for libr
Thanks Martin.
The problem seems to lie with our company proxy (which requires
authentication). I have tried retrieving the page on another network
with a transparent proxy, and it all works fine. Unfortnately, any
https page I try to retrieve on the company network fails in this way
with after
I've been working on this code somewhat succesfully, however I'm unable
to get it to iterate through all the zip files in the directory. As of
now it only extracts the first one it finds. If anyone could lend some
tips on how my iteration scheme should look, it would be hugely
appreciated. Here is
Hello:
I need some help in understanding generators. I get them to work in
simple cases, but the following example puzzles me. Consider the
non-generator, "ordinary" procedure:
def foo(n):
s = []
def foo(n):
if n == 0:
print s
else:
s.append(0)
In article <[EMAIL PROTECTED]>,
Dave Brueck <[EMAIL PROTECTED]> wrote:
.
.
.
>Just because the app itself is very OO, it doesn't always follow that the
>database level needs to be - there are lots and lots of problems for whi
bgs wrote:
>There's no way that loop takes fifteen minutes just because of the dot
>operator. I mean, 20 dots in 15 minutes is 200 dots/second. On a
>1 GHz machine, that would be 5 million cycles per dot. That does not
>seem reasonable (assuming you haven't overridden the dot operator to d
Steve M:
> ... discusses the problem with memory allocation in CPython.
> Apparently CPython is not good at, or incapable of, releasing
> memory back to the operating system.
I'm fairly sure Java does not give memory back to the operating
system either. A quick search did not give a defin
I have a Tkinter Text() widget in a program that the user can type stuff
into. Most of our keyboards have the regular keys with a "Return" key, and
a numeric keypad with an "Enter" key. The Return key generates events with
"" for the keysym, and the Enter key generates events with
"" as the k
Ivan Van Laningham wrote:
> What you're going to run into are two major stumbling blocks. One,
> Python's got no credibility with management types unless the
> credibility's already there. "Python? Never heard of it. Tell me
> about it. ... Oh, it's interpreted, is it? Interesting." You c
Send abuse reports, with full headers, to:
[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED],
[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED],
[EMAIL PROTECTED], [EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
James Carroll wrote:
> It looks like your algorithm really does iterate over all values for
> six variables and do lots of math.. then you can't do any better than
> implementing the inner loop in C.
Or Pyrex ...
http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/
For this type of situation, Py
There's no way that loop takes fifteen minutes just because of the dot
operator. I mean, 20 dots in 15 minutes is 200 dots/second. On a
1 GHz machine, that would be 5 million cycles per dot. That does not
seem reasonable (assuming you haven't overridden the dot operator to do
something more
this isn't about the "sign bit", it's about assumed encodings for byte
strings..
In iso_8859_1 and unicode, the character with value 0xb0 is DEGREE SIGN.
In other character sets, that may not be true---For instance, in the
Windows "code page 437", it is u'\u2591' aka LIGHT SHADE (a half-tone patte
Best Viewed at << 1024x768 >>
http://groups-beta.google.com/group/alt.religion.christian/browse_thread/thread/73352e0ed6923d23/1ea6c7a1ea6923ab?hl=en#1ea6c7a1ea6923ab
***
***
Just curious if there is a Python Interest Group
in The TwinCities. Thanks
Chuck
--
http://mail.python.org/mailman/listinfo/python-list
Steven Bethard wrote:
> Ron Adam wrote:
>>grades.sort(lambda x,y: cmp(students[x[1]][0], students[y[1]][0]))
> Assuming that students[x[1]][0] is what you want to sort on, this may
> also be written as:
>
> grades.sort(key=lambda x: students[x[1]][0])
Yes, I figured there was
George Sakkis wrote:
> Personally, although I find nothing comes close to the clarity and
> flexibility that python offers, in this case I would go with java, if
> for nothing else, to be on the safe side.
"No manager got ever fired for buying IBM"
> Think about it: if the
> project fails (and t
I think in this Example is an fault
lut has the sequence from "im" but not from "lut.putdata(range(256))"
##Getting the Palette Contents Using Resize/Convert
assert im.mode == "P"
lut = im.resize((256, 1))
lut.putdata(range(256))
lut = im.convert("RGB").getdata()
^^
# lut now contains a se
simon.dahlbacka gmail.com gmail.com> writes:
>
> I tried moving the import traceback to the start of the file
> (logging/__init__.py) but that did not seem to have any effect?
> I suppose the fix was in version 1.26 in cvs?
>
Did you do this for all cases in __init__.py? You may also need to
Hello from Brazil :-)
I'm trying to bring cx_Oracle alive on my Python 2.4.1 @ HP-UX 11
(suckz) and Oracle 10.1.0 64bits without success
I've already tryied the suggestions from Bernard Delmée and Martin v.
Löwis (topic "Python 2.3b1 + cx_oracle 3.0 on HP-UX"), but it didn't
work, even when I rec
Hi All--
George Sakkis wrote:
>
> "Ivan Van Laningham" wrote:
>
> An idea that perhaps takes the best of both worlds is use java for the
> high level architecture and static type interfaces, and write the bulk
> of the implementation in jython. PSF has awarded a grant to make jython
> catch up w
> | > s.const['DEG'] = '%c' % (0xb0)
> | > But the symbol for degrees, a little circle, produces
> | > a vertical bar in Tkinter Text box or Canvas.
> t.insert(0.0, u'%c' % 0xb0)
>
> should do the trick though.
>
COOL! Thanks, though that seems a little odd.
As far as I know %c igno
Hi there,
I am fairly new to python, the problem is as follows:
newnodes = {}
for i in nodes:
newnodes[i.label] = i.coordinate
is very slow, which is due to the dots, I know that for functions the
dot lookup
can be done outside the loop, can this be done for attributes in any
way? (in such
Hi All--
"Martin v. Löwis" wrote:
>
> Andreas Beyer wrote:
> > How do I find out if NaN, infinity and alike is supported on the current
> > python platform?
>
> To rephrase Sebastian's (correct) answer: by
>
> 1. studying the documentation of the CPU vendor
> 2. studying the documentation of th
Are you explicitly referencing the port for nmap, or is it a general
port scan?
The version of nmap I run only checks common ports unless a port range
is specified.
rbt wrote:
> I don't fully understand sockets, I just know enough to be dangerous.
> The below is not detected by nmap, but is af
john67 wrote:
> [...] that will cost us tens-of-millions to develop.
> [...]
> Right now it looks like Java is the language of choice that the app
> will be developed in. However, I have been looking and reading a lot
> about Python recently [...]
Ignoring the technical aspects: if you have good
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I appreciate everyone's help!
I got some ideas that I'll try to put into practice.
Regards,
Luis
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCi7QQHn4UHCY8
George Sakkis wrote:
> Personally, although I find nothing comes close to the clarity and
> flexibility that python offers, in this case I would go with java, if
> for nothing else, to be on the safe side. Think about it: if the
> project fails (and that's quite likely for huge projects, not dark
>
aack stupid web browser, thought I lost it all!
--
http://mail.python.org/mailman/listinfo/python-list
I don't fully understand sockets, I just know enough to be dangerous.
The below is not detected by nmap, but is affected by iptables or ipsec.
Can anyone explain why that is?
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind((ip_param, port_param))
while 1:
s.l
Thanks
I used the httplib module to establish and test a connection now the
next step is to login supplying a username and password.
Any examples of these available somewhere
This is what i have so far
import httplib, urllib
conn = httplib.HTTPConnection("xxx.xx.xx.xxx")
conn.request("GET", "/index
Why does ElementTree.parse convert my xsi to an xmlns?
When I do this
from elementtree import ElementTree
# Sample xml
mgac ="""
http://www.chpc.utah.edu/~baites/mgacML";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://www.chpc.utah.edu/~baites/mgacML
[trimmed to c.l.py]
In article <[EMAIL PROTECTED]>,
William Park <[EMAIL PROTECTED]> wrote:
>
>How do you compare 2 strings, and determine how much they are "close" to
>each other? Eg.
>aqwerty
>qwertyb
>are similar to each other, except for first/last char. But, how do I
>quantify that
It looks like your algorithm really does iterate over all values for
six variables and do lots of math.. then you can't do any better than
implementing the inner loop in C. It does look like you have some
functions that are being called that are also in python, and it would
be interesting to see i
[EMAIL PROTECTED] wrote:
> I want to use it for music. So given list 1 (melody), list 2 (chords)
> could be generated by a Markov chain. Also, given the chords the melody
> could be generated again by a chain.
So, at each time step you want:
- chord(t) given melody(t-1), chord(t-1) and chord(t-2
"Ivan Van Laningham" wrote:
> What you're going to run into are two major stumbling blocks. One,
> Python's got no credibility with management types unless the
> credibility's already there. "Python? Never heard of it. Tell me
> about it. ... Oh, it's interpreted, is it? Interesting." You
On Wed, 18 May 2005 13:45:30 -0700, Don <[EMAIL PROTECTED]>
wrote:
>http://www.personal.psu.edu/staff/i/u/iua1/python/apse/
The above is broken, not meeting one of the elementary conditions for
a distance metric:
distance(a, b) == distance(b, a)
Quoting from its docs:
| Note: The definition o
Ron Adam wrote:
> You can sort your grades list however you want. If you want to sort by
> student name instead of student_id, you would use:
>
> # Sort grades list by student name.
> grades.sort(lambda x,y: cmp(students[x[1]][0], students[y[1]][0]))
>
> Assuming the name is in the first
Ivan Van Laningham wrote:
> ... Oh, it's interpreted, is it? Interesting." You can
> see Python going down the sewer pipes, right on their faces.
Nahh, the right answer is "It's byte-compiled, just like Java."
Andrew
[EMAIL PROT
Martin v. Löwis a écrit :
> Andreas Beyer wrote:
> > How do I find out if NaN, infinity and alike is supported on the
current
> > python platform?
>
> To rephrase Sebastian's (correct) answer: by
>
> 1. studying the documentation of the CPU vendor
> 2. studying the documentation of the compiler ve
On Wed, 18 May 2005 15:48:32 -0400, William Park
<[EMAIL PROTECTED]> wrote:
>How do you compare 2 strings, and determine how much they are "close" to
>each other? Eg.
>aqwerty
>qwertyb
>are similar to each other, except for first/last char. But, how do I
>quantify that?
>
>I guess you ca
William Park wrote:
> How do you compare 2 strings, and determine how much they are "close" to
> each other? Eg.
> aqwerty
> qwertyb
> are similar to each other, except for first/last char. But, how do I
> quantify that?
>
> I guess you can say for the above 2 strings that
> - at ma
On Wed, May 18, 2005 at 08:37:00AM -0700, john67 wrote:
> The company I work for is about to embark on developing a commercial
> application that will cost us tens-of-millions to develop. When all is
> said and done it will have thousands of business objects/classes, some
> of which will have hun
On Wed, 18 May 2005 15:06:53 -0500, Ed Morton <[EMAIL PROTECTED]>
wrote:
>
>
>William Park wrote:
>
>> How do you compare 2 strings, and determine how much they are "close" to
>> each other? Eg.
>> aqwerty
>> qwertyb
>> are similar to each other, except for first/last char. But, how do I
EHP wrote:
>>Python has good database support, it works well on a wide range of
>>platforms, and it's great at tying together different processes, machines,
>>etc. - for example, it's fairly easy to get Python to access C code,
>>dynamic libraries, system APIs, and external programs. It's easier to
William Park wrote:
> How do you compare 2 strings, and determine how much they are "close" to
> each other? Eg.
> aqwerty
> qwertyb
> are similar to each other, except for first/last char. But, how do I
> quantify that?
>
> I guess you can say for the above 2 strings that
> - at
Trent Mick <[EMAIL PROTECTED]> writes:
> Unfortunately ActivePython cannot include the SSL library by default
> because of crypto export regulations.
That hasn't been true for several years. In principle you're supposed
to notify the commerce department but in fact they seem to just ignore
the no
Andreas Beyer wrote:
> How do I find out if NaN, infinity and alike is supported on the current
> python platform?
To rephrase Sebastian's (correct) answer: by
1. studying the documentation of the CPU vendor
2. studying the documentation of the compiler vendor, and performing
extensive tests o
Hello William,
> How do you compare 2 strings, and determine how much they are "close" to
> each other? Eg.
> aqwerty
> qwertyb
> are similar to each other, except for first/last char. But, how do I
> quantify that?
This is a classic problem of computer science.
Watch this:
http://od
Laszlo Zsolt Nagy wrote:
> I had to patch EpyDoc. The author was not responding and there is no
mailing
> list for EpyDoc. Is it still a live project?
EpyDoc is hosted in Sourceforge. This alone may answer your question
about a bug-tracker:
http://sourceforge.net/tracker/?atid=405618&group_id=32
Nicolas Pourcelot wrote:
> Hello,
> my script worked well until today : when I tried to launch it, I got the
> following :
>
> frame = MyFrame(None,-1,"Geometrie",size=wx.Size(600,400))
> File "/home/nico/Desktop/wxGeometrie/version 0.73/geometrie.py", line
> 74, in __init__
> self.com
I am in the process of learning python. I have bought Learning Python
by Mark Lutz, printed a copy of Dive into Python and various other
books and looked at several tutorials. I have started a stupid little
project in python and things are proceeding well. I am an old time
cobol programmer from
How do you compare 2 strings, and determine how much they are "close" to
each other? Eg.
aqwerty
qwertyb
are similar to each other, except for first/last char. But, how do I
quantify that?
I guess you can say for the above 2 strings that
- at max, 6 chars out of 7 are same sequence -
Hi all,
with my last initiative (logging by intercepting open calls) I
succeded (with the essential help of Fredrik Lundh), but I must
confess that the method is too complicated...
I think that a better result could be obtained by offline debugging.
I explain: debugging is mainly an interactive a
I've troubles to let my app take off using pysqlite.
What I wonder most for now is that "pysqlite2.dbapi2.OperationalError:
cannot commit transaction - SQL statements in progress" when I do this:
t = time.time()
n = len(self)
while len(self):
del self[0]
self.comm
Philippe C. Martin wrote:
>>Another way would be to merge the three lists into one of 3-tuples, sort,
>>and unmerge, similarly to the DSU pattern -- which raises the question:
>>why are you using three lists in the first place?
>
>
> :-) Thanks, the lists will evolve and are also stored in 'csv'
[Bloke wrote]
> I just removed my installation of Python 2.4.1, which was the one on
> the python.org web site. I installed the Activepython 2.4.1 and now I
> get the following error with the same code above:
>
> File "C:\Python24\lib\urllib2.py", line 1053, in unknown_open
> raise URLError(
On 2005-05-18, Luis P. Mendes <[EMAIL PROTECTED]> wrote:
> I have a 1000 line python script that takes many hours to
> finish. It is running with six inside 'for' loops.
[...]
> How can I dramatically improve speed?
In probably order of efficacy:
1) Use a better algorithm
2) Replace 'for'
Laszlo Zsolt Nagy wrote:
> I tested this and I realized that if you change the parameter list in
> the descendants then it is not wise to use super.
> I'm going to publish the example below, I hope others can learn from it
> too.
>
[snip and fixed formatting]
>
> Example (bad):
>
> class A(obj
Is it possible to build Python modules like md5.so, without building the
entire python distribution? I'm working on an arm device (ipaq), and
building the whole thing would take a long time... (cross-compiling with
OpenEmbedded isn't working out either).
Thx,
--
Frederik Vanrenterghem
""Martin v. Löwis"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
| phil wrote:
| > These work fine on Linux
| > s.const = {}
| > s.const['DEG'] = '%c' % (0xb0)
| > s.const['DIV'] = '%c' % (0xf7)
| > s.const['ANG'] = '%c' % (0xd8)
| >
| > On Win
john67 wrote:
> Would the allocation/deallocation memory usage issue be different
than
> it would be with Java? Both Python and Java have automatic garbage
> collection, correct?
In recent Python versions the CPython interpreter offers a
cycle-collector which weakens the most profound counter ar
Quick tip-
Try xrange instead of range. This will use dramatically less memory
if your search space is large, which will speed things up /if/ your
machine is being forced to swap.
Besides that, without seeing the code for your functions, it's hard to
offer more advice. Your algorithm is necess
1 - 100 of 191 matches
Mail list logo