QOTW: The economy rises and falls, money comes and goes, but a great
conference has permanent good effects. Well, a lot more permanent than
government fiscal policy, anyway. - Python Software Foundation Director
bitter-in-victory-gracious-in-defeat-ly y'rs timbot
Is python free of
On Aug 7, 3:42 pm, mark.v.we...@gmail.com mark.v.we...@gmail.com
wrote:
When I kill the main process (cntl-C) the subprocess keeps running.
How do I kill the subprocess too? The subprocess is likey to run a
long time.
You can register functions to run when the Python process ends by
using the
xamdam wrote:
Does anyone know of python libs for writing SDMX XML format?
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common
Looks like the page behind that link is broken, but in general, working
with XML formats in Python isn't hard at all when you use ElementTree or
lxml. The latter
Tycho Andersen wrote:
Blah, forgot to include the list. When is python-list going to get Reply-To?
Hopefully never.
Stefan
--
http://mail.python.org/mailman/listinfo/python-list
Łukasz wrote:
I have a problem with my XML parser (created with libraries from
xml.sax package). When parser finds a invalid character (in CDATA
section) for example �, throws an exception SAXParseException.
Is there any way to just ignore this kind of problem. Maybe there is a
way to set
Ah yes, that explains it. Some of these long computations are done in
pure C, so I'm sure the GIL is not being released.
Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
Duncan Booth schrieb:
Lucas P Melo lukepada...@gmail.com wrote:
Hello, I'm a total noob about the C API. Is there any way to create a
generator function using the C API? I couldn't find anything like the
'yield' keyword in it.
Thanks in advance.
You define a new type with tp_flags
On Fri, Aug 7, 2009 at 3:47 AM, Dave Angelda...@ieee.org wrote:
Piet van Oostrum wrote:
snip
DA All I can guess is that it has something to do with browser type or
DA cookies. And that would make lots of sense if this was a cgi page.
But
DA the URL doesn't look like that, as it doesn't
Fafounet wrote:
I am parsing a web page with special chars such as #xE9; (which
stands for é).
I know I can have the unicode character é from unicode
(\xe9,iso-8859-1)
but with those extra characters I don' t know.
I tried to implement handle_charref within HTMLParser without success.
Michael Ströder wrote:
Thorsten Kampe wrote:
* Michael Ströder (Thu, 06 Aug 2009 18:26:09 +0200)
timeit.Timer(unicode('äöüÄÖÜß','utf-8')).timeit(1000)
17.23644495010376
timeit.Timer('äöüÄÖÜß'.decode('utf8')).timeit(1000)
72.087096929550171
That is significant! So the winner is:
On Thursday 06 August 2009 20:50:30 Martin P. Hellwig wrote:
Thanks all for your insights and suggestions.
It seems to me that there are a couple of ways to this bit manipulation
and a couple of foreign modules to assist you with that.
Would it be worth the while to do a PEP on this?
Thanks Gabriel,
I seen this before, but I don't know, what's mean 'compatible object'. I need
create object who will like as an variant type.
Je.
it looks lieke this:
...
obj=win32com.client.Dispatch('Geomedia.PointGeometry') #geometry object
On Fri, 07 Aug 2009 08:04:51 +0100, Mark Lawrence wrote:
I believe that the comment these benchmarks are meaningless refers to
the length of the strings being used in the tests. Surely something
involving thousands or millions of characters is more meaningful? Or to
go the other way, you are
On Friday 07 August 2009 05:02:10 Michael Mossey wrote:
Hello,
My problem is that in some cases, the network thread appears to stop,
while the main thread is doing a long computation.
Is this computation done in pure python or are you calling some
underlying thing in C?
I would be surprised
Sarmad George schrieb:
msg = Hello World
Your sending your message without any headers (no subject etc). So
probably your message lands in the recipients spam folder.
Try:
msg = To: recipi...@example.com
Subject: hello world
Hello there
The blank line between the headers and the body is
Hi all,
Did anyone manage to get windows extensions installet on windows 7 64 bit? As
far as I try I get only Setup program invalid or damaged.
Al.
--
http://mail.python.org/mailman/listinfo/python-list
Michael Mossey wrote:
Hello,
I have a simple application that needs one thread to manage networking
in addition to the main thread that does the main job. It's not
working right. I know hardly anything about threads, so I was hoping
someone could point me in the right direction to research
alex23 wrote:
Paul Rubin http://phr...@nospam.invalid wrote:
The PHP docs as I remember are sort of regular (non-publically
editable) doc pages, each of which has a public discussion thread
where people can post questions and answers about the topic of that
doc page. I thought it worked
Dave Angel da...@ieee.org (DA) wrote:
DA Piet van Oostrum wrote:
snip
DA If Mozilla had seen a page with this line in an appropriate place, it'd
DA immediately begin loading the other page, at someotherurl But there's no
DA such line.
DA Next, I looked for javascript. The Mozilla page
sumit sumit.jh...@gmail.com (s) wrote:
s i want 2 hav the header files for regular expression to non
s deterministin autometa
s so whr should i find it?plz help
What header files? C? You can find lots of header files by googling. But
the header files contain only the interface, not the
Dear All,
We have extended and embedded python into my our application.
We exposed few APIs to python using
Py_InitModule(myModuleName, myMethods);
where my methods are
static PyMethodDef VistaDbMethods[] = {
{ (char *)myAPI,_myAPICFunctionPtr ,METH_VARARGS,usage: MyHelp) }
Now problem is
* Steven D'Aprano (06 Aug 2009 19:17:30 GMT)
On Thu, 06 Aug 2009 20:05:52 +0200, Thorsten Kampe wrote:
That is significant! So the winner is:
unicode('äöüÄÖÜß','utf-8')
Unless you are planning to write a loop that decodes äöüÄÖÜß one
million times, these benchmarks are
David Cournapeau schrieb:
On Thu, Aug 6, 2009 at 7:38 PM, Diez B. Roggischde...@nospam.web.de wrote:
Hi,
I'm trying to build a Cython-extension as Egg.
However, this doesn't work - I can either use distutils to build the
extension, creating a myextension.c-file on the way.
If that's there,
jo schrieb:
Hi,
I am very new to python
I created an egg on a machine. The Python version on that is 2.5.
Copied that egg to a machine which has Python 2.6.
unzip -t Myproj-0.1-py2.5.egg
The above command shows all the files I need
When I run the easy_install, I get the foll. error.
Anand K Rayudu schrieb:
Dear All,
We have extended and embedded python into my our application.
We exposed few APIs to python using
Py_InitModule(myModuleName, myMethods);
where my methods are
static PyMethodDef VistaDbMethods[] = {
{ (char *)myAPI,_myAPICFunctionPtr ,METH_VARARGS,usage:
alex23 wuwe...@gmail.com writes:
I'd still like to see this kept out of the official docs as much as
possible, mostly for reasons of brevity clarity. I think the
official docs should be considered definitive and not require a
hermeneutic evaluation against user comments to ensure they're
I tried doing something silly.
I went to the directory /usr/local/lib/python2.6/site-packages and
then tried to compile/run the file called PyLucene.py the way we
compile/run python scripts, then from there i started the python
interpreter by typing python ( which is actually python2.6), then i
On Aug 5, 10:46 am, Martin P. Hellwig martin.hell...@dcuktec.org
wrote:
Hi List,
On several occasions I have needed (and build) a parser that reads a
binary piece of data with custom structure. For example (bogus one):
BE
+-+-+-+-+--++
|
On Fri, Aug 7, 2009 at 7:09 PM, Diez B. Roggischde...@nospam.web.de wrote:
Tried that, nothing changed :(
Then you will have to modify Cython.Distutils to be aware of
setuptools, I think (and soon Distribute... ).
David
--
http://mail.python.org/mailman/listinfo/python-list
Thorsten Kampe thors...@thorstenkampe.de wrote:
* Steven D'Aprano (06 Aug 2009 19:17:30 GMT)
What if you're writing a loop which takes one million different lines of
text and decodes them once each?
setup = 'L = [abc*(n%100) for n in xrange(100)]'
t1 = timeit.Timer('for line in L:
hi all,
is it possible to overload operator ? (And other like this one,
eg = =, , = =)
Any URL/example?
Thank you in advance, D.
--
http://mail.python.org/mailman/listinfo/python-list
alex23 wrote:
Paul Rubin http://phr...@nospam.invalid wrote:
The PHP docs as I remember are sort of regular (non-publically
editable) doc pages, each of which has a public discussion thread
where people can post questions and answers about the topic of that
doc page. I thought it worked
dmitrey schrieb:
hi all,
is it possible to overload operator ? (And other like this one,
eg = =, , = =)
Any URL/example?
Thank you in advance, D.
http://docs.python.org/reference/datamodel.html#object.__lt__
Diez
--
http://mail.python.org/mailman/listinfo/python-list
Piet van Oostrum wrote:
snip
snip
DA But the raw page didn't have any javascript. So what about that original
DA raw page triggered additional stuff to be loaded?
DA Is it user agent, as someone else brought out? And is there somewhere I
DA can read more about that aspect of
Hi!
I found an interesting thing in Python.
Today one of my defs got wrong result.
When I checked the code I saw that I miss a , from the list.
l = ['ó' 'Ó']
Interesting, that Python handle them as one string.
print ['ó' 'Ó']
['\xf3\xd3']
I wanna ask that is a bug or is it a feature?
In
On Aug 7, 2:54 am, Anand K Rayudu an...@esi-india.com wrote:
Dear All,
We have extended and embedded python into my our application.
We exposed few APIs to python using
Py_InitModule(myModuleName, myMethods);
where my methods are
static PyMethodDef VistaDbMethods[] = {
{ (char
durumdara schrieb:
Hi!
I found an interesting thing in Python.
Today one of my defs got wrong result.
When I checked the code I saw that I miss a , from the list.
l = ['ó' 'Ó']
Interesting, that Python handle them as one string.
print ['ó' 'Ó']
['\xf3\xd3']
I wanna ask that is a bug or is
Hi all,
I am using pulldom to handle large xml files.It works fine, but i do not
know how to store a particular set of records(as xml) out of the recordset.
-code-
from xml.dom import pulldom
hamlet_file = open(input_xml/inp_test.xml)
events = pulldom.parse(hamlet_file)
durumdara wrote:
I found an interesting thing in Python.
Today one of my defs got wrong result.
When I checked the code I saw that I miss a , from the list.
l = ['ó' 'Ó']
Interesting, that Python handle them as one string.
print ['ó' 'Ó']
['\xf3\xd3']
I wanna ask that is a bug
On Fri, Aug 7, 2009 at 8:00 AM, dmitreydmitrey.kros...@scipy.org wrote:
hi all,
is it possible to overload operator ? (And other like this one,
eg = =, , = =)
Any URL/example?
Thank you in advance, D.
That isn't an operator at all. Python does not support compound
comparisons like
Dave Angel da...@ieee.org (DA) wrote:
DA Piet van Oostrum wrote:
snip
snip
DA But the raw page didn't have any javascript. So what about that original
DA raw page triggered additional stuff to be loaded?
DA Is it user agent, as someone else brought out? And is there somewhere I
DA can read
On Fri, Aug 7, 2009 at 6:10 PM, S.Selvam s.selvams...@gmail.com wrote:
Hi all,
I am using pulldom to handle large xml files.It works fine, but i do not
know how to store a particular set of records(as xml) out of the recordset.
-code-
from xml.dom import pulldom
mark.v.we...@gmail.com mark.v.we...@gmail.com (M) wrote:
M I am writing a Python program that launches a subprocess (using
M Popen).
M I am reading stdout of the subprocess, doing some filtering, and
M writing to
M stdout of the main process.
M When I kill the main process (cntl-C) the
* Neil Hodgson (Tue, 04 Aug 2009 13:32:55 GMT)
Thorsten Kampe:
You cannot create your own buffer overflow in Python as you can in
C
and C++ but your code could still be vulnerable if the underlying Python
construct is written in C.
Python's standard library does now include unsafe
On Aug 7, 10:50 pm, Benjamin Kaplan benjamin.kap...@case.edu wrote:
That isn't an operator at all. Python does not support compound
comparisons like that. You have to do a b and b c.
You know, it costs nothing to open up a python interpreter and check
your certainty:
x = 10
1 x 20
True
Good morning,
I fear the answer to this is that I just cannot do this
I wrote a python script that goes out to a bunch of remote machines and
queries the registry for some values. Effectively, there have been some
software upgrades that have been done as the need arose but we need to do
Thorsten Kampe thors...@thorstenkampe.de wrote:
Bollocks. No one will even notice whether a code sequence runs 2.7 or
5.7 seconds. That's completely artificial benchmarking.
But that's not what you first claimed:
I don't think any measurable speed increase will be
noticeable between those
Dennis Lee Bieber wrote:
On Thu, 6 Aug 2009 16:00:15 +0530, Thangappan.M
thangappan...@gmail.com declaimed the following in
gmane.comp.python.general:
File ./setup.py, line 219, in finalize_options
except (Warning, w):
NameError: global name 'w' is not defined
What would be the solution?
Paul Rubin http://phr...@nospam.invalid wrote:
Such evaluation would only do them good. The official docs are full
of errors and omissions, which is why we have this thread going on
here in the newsgroup.
And there is a process for reporting and correcting such errors and
omissions, which is
Kevin Holleran wrote:
Good morning,
I fear the answer to this is that I just cannot do this
I wrote a python script that goes out to a bunch of remote machines and
queries the registry for some values. Effectively, there have been some
software upgrades that have been done as the need
On 2009-08-07, durumdara durumd...@gmail.com wrote:
Hi!
I found an interesting thing in Python.
Today one of my defs got wrong result.
When I checked the code I saw that I miss a , from the list.
l = ['?' '?']
Interesting, that Python handle them as one string.
print ['?' '?']
alex23 schrieb:
On Aug 7, 10:50 pm, Benjamin Kaplan benjamin.kap...@case.edu wrote:
That isn't an operator at all. Python does not support compound
comparisons like that. You have to do a b and b c.
You know, it costs nothing to open up a python interpreter and check
your certainty:
x =
Matthias Güntert wrote:
M2Crypto has a couple of bugs open related that, with potential
workarounds that I haven't yet deemed polished enough to checkin, but
which might help you out:
https://bugzilla.osafoundation.org/show_bug.cgi?id=7530
On 3 Aug, 09:36, ma3mju matt.u...@googlemail.com wrote:
On 2 Aug, 21:49, Piet van Oostrum p...@cs.uu.nl wrote:
MRAB pyt...@mrabarnett.plus.com (M) wrote:
M I wonder whether one of the workers is raising an exception, perhaps due
M to lack of memory, when there are large number of jobs to
Good morning,
I fear the answer to this is that I just cannot do this
I wrote a python script that goes out to a bunch of remote machines and
queries the registry for some values. Effectively, there have been some
software upgrades that have been done as the need arose but we need to
On 3 Aug, 09:36, ma3mju matt.u...@googlemail.com wrote:
On 2 Aug, 21:49, Piet van Oostrum p...@cs.uu.nl wrote:
MRAB pyt...@mrabarnett.plus.com (M) wrote:
M I wonder whether one of the workers is raising an exception, perhaps due
M to lack of memory, when there are large number of jobs to
On Fri, 07 Aug 2009 08:50:52 -0400, Benjamin Kaplan wrote:
On Fri, Aug 7, 2009 at 8:00 AM, dmitreydmitrey.kros...@scipy.org
wrote:
hi all,
is it possible to overload operator ? (And other like this one,
eg = =, , = =)
Any URL/example?
Thank you in advance, D.
That isn't an
Kevin Holleran wrote:
On Fri, Aug 7, 2009 at 10:11 AM, MRAB pyt...@mrabarnett.plus.com
mailto:pyt...@mrabarnett.plus.com wrote:
Kevin Holleran wrote:
Good morning,
I fear the answer to this is that I just cannot do this
I wrote a python script that goes out
Benjamin Kaplan wrote:
Python does not support compound
comparisons like that. You have to do a b and b c.
Funny, my python does. This has been around a long time.
I am not certain whether 1.5.2 did it, but chained comparisons
have been around for a long time.
'a' 'd' 'z'
ma3mju wrote:
On 3 Aug, 09:36, ma3mju matt.u...@googlemail.com wrote:
On 2 Aug, 21:49, Piet van Oostrum p...@cs.uu.nl wrote:
MRAB pyt...@mrabarnett.plus.com (M) wrote:
M I wonder whether one of the workers is raising an exception, perhaps due
M to lack of memory, when there are large number
On Fri, Aug 7, 2009 at 10:46 AM, MRAB pyt...@mrabarnett.plus.com wrote:
Kevin Holleran wrote:
On Fri, Aug 7, 2009 at 10:11 AM, MRAB pyt...@mrabarnett.plus.commailto:
pyt...@mrabarnett.plus.com wrote:
Kevin Holleran wrote:
Good morning,
I fear the answer to this is
Greetings everybody,
I've been reading and mulling about python and security, specifically
in terms of executing code that may or may not be trustworthy. I
understand that libraries such as Rexec and Bastion are now deprecated
because they have known vulnerabilities that may be exploited to
Kevin Holleran wrote:
On Fri, Aug 7, 2009 at 10:46 AM, MRAB pyt...@mrabarnett.plus.com
mailto:pyt...@mrabarnett.plus.com wrote:
Kevin Holleran wrote:
On Fri, Aug 7, 2009 at 10:11 AM, MRAB
pyt...@mrabarnett.plus.com mailto:pyt...@mrabarnett.plus.com
On 12:50 pm, benjamin.kap...@case.edu wrote:
On Fri, Aug 7, 2009 at 8:00 AM, dmitreydmitrey.kros...@scipy.org
wrote:
hi all,
is it possible to overload operator �? (And other like this one,
eg = �=, �, = �=)
Any URL/example?
Thank you in advance, D.
That isn't an operator at all. Python
On Aug 7, 12:57 am, alex23 wuwe...@gmail.com wrote:
On Aug 7, 3:42 pm, mark.v.we...@gmail.com mark.v.we...@gmail.com
wrote:
When I kill the main process (cntl-C) the subprocess keeps running.
How do I kill the subprocess too? The subprocess is likely to run a
long time.
You can register
Grant Edwards wrote:
On 2009-08-07, durumdara durumd...@gmail.com wrote:
In other languages, like Delphi (Pascal), Javascript, SQL, etc., I
must concatenate the strings with some sign, like + or ||.
In other languages like Ruby, awk, C, C++, etc. adjacent string
constants are concatenated.
During all this conversation there was a ticket posted in the bug
tracking system with the suggestion of each section in the official
docs linking to a fixed wiki page that can contain user contributions.
The ticket has been closed because this addition to the official docs
is already in
Hi everyone,
I want to package up an application into an exe using py2exe but the
result produces the dreaded
application failed to initialize 0x142 error.
I'm using wxPython and basically just took the sample for wxpython GUI
that came with py2exe and changed the name. My setup is
Hello to all!!
I am new in python, and I am running it on Mac with Smultron editor. I
need to read a textfile that includes numbers (in a matrix form),
indexes, and strings, like this:
Marsyas-kea distance matrix for MIREX 2007 Audio Similarity Exchange
Q/R 1 2 3 4
Hi all,
I am a Python novice, and right now I would be happy to simply get my job
done with it, but I could appreciate some thoughts on the issue below.
I need to assign one of four numbers to names in a list. The assignment
should be pseudo-random: no pattern whatsoever, but deterministic,
Diez B. Roggisch wrote:
I'm trying to build a Cython-extension as Egg.
However, this doesn't work - I can either use distutils to build the
extension, creating a myextension.c-file on the way.
If that's there, I can use setuptools to build the egg.
But when I remove the .c-file, the
On Aug 8, 2:19 am, bbarb...@inescporto.pt wrote:
I am new in python, and I am running it on Mac with Smultron editor. I
need to read a textfile that includes numbers (in a matrix form),
indexes, and strings, like this:
Marsyas-kea distance matrix for MIREX 2007 Audio Similarity Exchange
Conditional imports make sense to me, as in the following example:
def foobar(filename):
if os.path.splitext(filename)[1] == '.gz':
import gzip
f = gzip.open(filename)
else:
f = file(filename)
# etc.
And yet, quoth PEP 8:
- Imports are always put at the
On 2009-08-07, Scott David Daniels scott.dani...@acm.org wrote:
Grant Edwards wrote:
On 2009-08-07, durumdara durumd...@gmail.com wrote:
In other languages, like Delphi (Pascal), Javascript, SQL, etc., I
must concatenate the strings with some sign, like + or ||.
In other languages like
After I have written a short Python script that hashes my textfile line by
line and collects the numbers next to the original, I checked what I got.
Instead of getting around 25% in each treatment, the range is 17.8%-31.3%.
That sounds suspiciously like 25% with a +/- 7% fluctuation one
might
alex23 wrote:
On Aug 8, 2:19 am, bbarb...@inescporto.pt wrote:
I am new in python, and I am running it on Mac with Smultron editor. I
need to read a textfile that includes numbers (in a matrix form),
indexes, and strings, like this:
Marsyas-kea distance matrix for MIREX 2007 Audio
On Aug 8, 2:50 am, kj no.em...@please.post wrote:
Conditional imports make sense to me, as in the following example[...]
And yet, quoth PEP 8:
- Imports are always put at the top of the file, just after any module
comments and docstrings, and before module globals and constants.
In h5h7cu$n4p$0...@news.t-online.com Peter Otten __pete...@web.de writes:
durumdara wrote:
I found an interesting thing in Python.
Today one of my defs got wrong result.
When I checked the code I saw that I miss a , from the list.
l = ['ó' 'Ã']
Interesting, that Python handle them
MRAB pyt...@mrabarnett.plus.com wrote:
Or:
columns = line.split(' ')[1 : ]
Even better, well spotted.
--
http://mail.python.org/mailman/listinfo/python-list
On Aug 7, 11:03 am, Kee Nethery k...@kagi.com wrote:
...(snip)
I'm looking forward to the acceleration of improvements to the
official docs based upon easy to provide user feedback. Glad to see
that the bug tracking system is going to not be the primary means for
documentation changes.
kj no.em...@please.post wrote:
Feature, as others have pointed out, though I fail to see the need
for it, given that Python's general syntax for string (as opposed
to string literal) concatenation is already so convenient. I.e.,
I fail to see why
x = (first part of a very long string
garabik-news-2005...@kassiopeia.juls.savba.sk wrote:
I am not sure I understood that. Must be my English :-)
I just parsed it as blah blah blah I won't admit I'm wrong and
didn't miss anything substantive.
--
http://mail.python.org/mailman/listinfo/python-list
Kee Nethery k...@kagi.com wrote:
I'm looking forward to the acceleration of improvements to the
official docs based upon easy to provide user feedback. Glad to see
that the bug tracking system is going to not be the primary means for
documentation changes.
I'm not sure what you see as
I have a question. Suppose I do the following:
def myfunc(a,b):
return a+b
myfunc2=myfunc
is there anyway to find all of the references to myfunc? That is, can I find
out all of the functions that may be aliased to myfunc?
second question:
class MyClass(object):
def __init__(a,b):
On Fri, Aug 7, 2009 at 1:48 PM, alex23wuwe...@gmail.com wrote:
Why exactly is posting an open comment on a bug tracker somehow
inferior to posting an open comment on a wiki?
When one believes that development is controlled by a cabal which is
jealous of outsiders and actively prevents
Kevin Holleran wrote:
Long story short, I am using _winreg to do this.
hKey = _winreg.OpenKey (keyPath, path, 0, _winreg.KEY_SET_VALUE)
value,type = _winreg.QueryValueEx(hKey, item)
if (value == wrongValue):
_winreg.SetValue(hKey,'',_winreg.REG_SZ,correctValue)
When I do this I receive
On Fri, 2009-08-07 at 16:50 +, kj wrote:
Conditional imports make sense to me, as in the following example:
def foobar(filename):
if os.path.splitext(filename)[1] == '.gz':
import gzip
f = gzip.open(filename)
else:
f = file(filename)
# etc.
Hi,
I would like to pass the label name of a menu to the command it is
calling, is that possible?
self.menuitem.menu.add_command(label=pass this,command = lambda i =
self.self.menuitem.menu.cget(label): self.function(i))
def function(self, i)
print i # print the label name
Any help
David Robinow drobi...@gmail.com wrote:
When one believes that development is controlled by a cabal which is
jealous of outsiders and actively prevents improvements to the docs,
any change, even if only in perception, helps to weaken the hold of
the evil forces holding back the success of
On Fri, 2009-08-07 at 16:50 +, kj wrote:
Conditional imports make sense to me, as in the following example:
def foobar(filename):
if os.path.splitext(filename)[1] == '.gz':
import gzip
f = gzip.open(filename)
else:
f = file(filename)
# etc.
I
Hi all,
I've been writing some code using libraries based on the Python Database API
2.0 (MySQLdb pg), and so far things are working really well. There is one
thing that I have not been able to figure out how to do, however:
Retrieve the time is took a given query to execute.
Does anyone
Thank you, Tim. My comments are below.
On 2009-08-07 13:19:47 -0400, Tim Chase python.l...@tim.thechases.com said:
After I have written a short Python script that hashes my textfile line by
line and collects the numbers next to the original, I checked what I got.
Instead of getting around 25%
Buck wrote:
I use MySQLdb quite a bit in my work. I could volunteer to help update
it. Are there any particular bugs we're talking about or just a
straight port to 3.0?
It's a non-trivial port. There's a release candidate for Python 2.6;
see
Feedparser requires SGMLlib, which has been removed from Python 3.0.
Feedparser hasn't been updated since 2007. Does this mean Feedparser
is dead?
John Nagle
--
http://mail.python.org/mailman/listinfo/python-list
This is a survey to find as many companies using Python as we can. You
can see the survey below:
http://spreadsheets.google.com/viewform?formkey=dHlwaUxIY2g0ZXpUMk4tREZDSTY3bkE6MA..
You don't need to work at the company to add it to this list! We will
filter for duplicates.
The answers to
J Wolfe wrote:
I would like to pass the label name of a menu to the command it is
calling, is that possible?
self.menuitem.menu.add_command(label=pass this,command = lambda i =
self.self.menuitem.menu.cget(label): self.function(i))
def function(self, i)
print i # print the label
Robert Kern wrote:
You need to put main.py into the pphoto package.
$ mkdir pphoto/
$ mv main.py pphoto/
$ touch pphoto/__init__.py
Thanks, it worked. Any ideas how to run the resulting scripts without
installing or running as root?
Pete
--
http://www.petezilla.co.uk
--
László Sándor wrote:
Thank you, Tim. My comments are below.
On 2009-08-07 13:19:47 -0400, Tim Chase python.l...@tim.thechases.com
said:
After I have written a short Python script that hashes my textfile
line by
line and collects the numbers next to the original, I checked what I
got.
kj wrote:
Conditional imports make sense to me, as in the following example:
def foobar(filename):
if os.path.splitext(filename)[1] == '.gz':
import gzip
f = gzip.open(filename)
else:
f = file(filename)
# etc.
And yet, quoth PEP 8:
- Imports
kj wrote:
I seek the wisdom of the elders. Is there a consensus on the matter
of conditional imports? Are they righteous? Or are they the way
of the wicked?
imports in functions are dangerous and may lead to dead locks if they
are mixed with threads. An import should never start a thread
1 - 100 of 183 matches
Mail list logo