On Jun 30, 5:23 am, Carl Banks <[EMAIL PROTECTED]> wrote:
> Now that I've suggested that, I highly recommend you be sure you're
> very acquainted with new-style objects and method resolution order
> before attempting this. You need extra care when using MI, even
> though this use of it is rather
Hi there:
I have two simple classes in two diferent files:
$ cat first.py
#/usr/bin/env python
# -*- coding: utf-8 -*-
import pygtk
pygtk.require('2.0')
import gtk
import second
class first:
def close_program(self, widget, data=None):
gtk.main_quit()
return False
def
Free usefull article.Do you need contents to add to your web site?
www.real-article.com
--
http://mail.python.org/mailman/listinfo/python-list
Does any one know of a good matlab interface?
I would just use scipy or numpy, but i also need to use
the matlab neural network functions. I have tried PyMat, but am having
a hard time getting it to install correctly.
For that mater, a good neural net module for python would
work just as well as
On Jun 29, 3:42 pm, Douglas Alan <[EMAIL PROTECTED]> wrote:
> Michele Simionato <[EMAIL PROTECTED]> writes:
> >> I've written plenty of Python code that relied on destructors to
> >> deallocate resources, and the code always worked.
> > You have been lucky:
>
> No I haven't been lucky -- I just kno
David wrote:
> I am looking for an ORM for Python that fulfills a few simple needs.
* SQLObject
* SQLAlchemy (+Elixir)
* DejaVu
There are probably others but these are the most commonly used AFAIK.
EuGeNe -- http://www.3kwa.com
--
http://mail.python.org/mailman/listinfo/python-list
On Jun 29, 7:36 pm, alf <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I want to develop a following lib:
>
> lib space user space
>
> A -> B -> | -> user_class
>
> however A and B are abstrac enough to have following:
>
> user_super_base_class -> | -> A -> B -> | -> user_class
>
> user space
On Friday 29 June 2007, Martin v. Löwis wrote:
> > There was no need for me to use 64 so I have switched back to 32 and
> > works fine.
> >
> > Python is not ready for the 64 world yet ;)
>
> It's a matter of standpoint. 64 bit is not ready for the world, yet.
>
> Regards,
> Martin
I think you mea
Douglas Alan <[EMAIL PROTECTED]> writes:
> But that's a library issue, not a language issue. The technology
> exists completely within Lisp to accomplish these things, and most
> Lisp programmers even know how to do this, as application frameworks
> in Lisp often do this kind. The problem is gett
Douglas Alan wrote:
> Lenard Lindstrom <[EMAIL PROTECTED]> writes:
>
>> Douglas Alan wrote:
>
>>> [I]n Python, you can be 100% sure that your files
>>> will be closed in a timely manner without explicitly closing them, as
>>> long as you are safe in making certain assumptions about how your code
http://directory.fsf.org/webauth/htmlpreproc/gtkhtml.html
might help. just like thomas though... more info on what your doing/have
done would help us help you
On 6/29/07, Thomas Jollans <[EMAIL PROTECTED]> wrote:
There was no need to re-ask so soon.
On Friday 29 June 2007, senthil arasu wrote
try the pygtk mailing list,
"pygtk" <[EMAIL PROTECTED]>
they will probobly be able to help you more.
On 6/29/07, senthil arasu <[EMAIL PROTECTED]> wrote:
Hi,
I am trying to render HTML in PyGTK widget but iam not getting the
expected result.
I would like to know whether PyGTK supports HTML rend
Hi, a new mailing list has been started to discuss and get help with
using the Python/C api.
All the other lists were either about programming with Python or
developing the core of Python.
If your working on a project that uses Pythons C/API you may be
interested in joining this list.
http://
Hi,
I want to develop a following lib:
lib space user space
A -> B -> | -> user_class
however A and B are abstrac enough to have following:
user_super_base_class -> | -> A -> B -> | -> user_class
user space lib space user spaca
Any idea how to do that?
--
al
[EMAIL PROTECTED] wrote:
>> No. You can make one that fits your requirements, though.
>
> I am struggling to oversee the implications of design choices for inf
> behaviour - especially if it comes to comparison with float type inf.
> The type in my application contains a gmpy.mpq and a float that
Hi,
I've already sent this to the Komodo mailing list (which seemed to me
the more appropriate place) but unfortunately I got no response.
I'd like to build a Python GUI app. Neither Tkinter nor Wxpython nor
PyQT are actually what I want (because the lack of GUI builders and
they don't really
> There was no need for me to use 64 so I have switched back to 32 and works
> fine.
>
> Python is not ready for the 64 world yet ;)
It's a matter of standpoint. 64 bit is not ready for the world, yet.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
Lenard Lindstrom <[EMAIL PROTECTED]> writes:
> Douglas Alan wrote:
>> [I]n Python, you can be 100% sure that your files
>> will be closed in a timely manner without explicitly closing them, as
>> long as you are safe in making certain assumptions about how your code
>> will be used. Such assumpt
How can I access and manipulate Scheduled Tasks in Windows using
Python?
I have a Windows XP workstation running Python 2.4.4 using the
win32all modules to control the windows services on multiple Windows
2003 servers. It works great.
However, I also need to remotely collect the settings for the
On Jun 29, 1:04 pm, Kuo <[EMAIL PROTECTED]> wrote:
> # FPGA CLOCK^M
> NET "SYSCLK_A" loc = N16 | TNM_NET = SYSCLK_A;^M
> NET "SYSCLK_AN" loc = M16 | TNM_NET = SYSCLK_A;^M
I see those bloody ^M's anytime I have to deal with a DOS file (since
it's the carrage return \r character). Is 'pin' a DOS
David a écrit :
> I am looking for an ORM for Python that fulfills a few simple needs.
>
> - ability to support a number of backends (probably mysql and sqlite
> at present, csv a bonus)
I didn't knew csv was a relational database.
> - ability to be used easily from console python scripts, a b
I think I solved all my three questions for myself now ...
On Fri, 29 Jun, Stefan Bellon wrote:
> 1) The above code seems to work ok when using the "import" statement,
>but it does not when using the dynamic __import__ function. If
>using it that way, I get:
>
> >>> sys=__import__("sys")
Introduction
-
Exscript is a scripting language for automating Telnet or SSH sessions.
It supports a wide range of features, such as parallelization, AAA
authentication methods, TACACS, and a very simple template language.
Exscript itself is written in Python, and it should run on a
There was no need to re-ask so soon.
On Friday 29 June 2007, senthil arasu wrote:
> Hi,
> I am trying to render HTML in PyGTK widget but iam not getting the expected
^^
What have you tried so far ?
> result.
> I would like to know whether PyGTK supports HTML rendering feature or not.
I
On Friday 29 June 2007, Kuo wrote:
> Hi,
> I'm trying to read a file (fileA) and append to another file(fileB).
> However, I always get "^M" at the end. Does anyone know why ? Here is my
> code ?
I can't help you on your problem, but
> ucf.close;
> pin.close;
these statements don't do anything.
Kuo a écrit :
> Hi,
> I'm trying to read a file (fileA) and append to another file(fileB).
> However, I always get "^M" at the end. Does anyone know why ? Here is my
> code ?
>
> os.system("../syn/pin_assign.pl customer_netlist.txt")
> shutil.copy("../fileB", "fileB")
> ucf = open("fileB", "a")
Douglas Alan wrote:
>
> [I]n Python, you can be 100% sure that your files
> will be closed in a timely manner without explicitly closing them, as
> long as you are safe in making certain assumptions about how your code
> will be used. Such assumptions are called "preconditions", which are
> an un
On Jun 29, 3:03 pm, "Hans" <[EMAIL PROTECTED]> wrote:
> "Gabriel Genellina" <[EMAIL PROTECTED]> schreef in berichtnews:[EMAIL
> PROTECTED]
>
>
>
> > En Thu, 28 Jun 2007 19:15:40 -0300, Hans <[EMAIL PROTECTED]> escribió:
>
> >> I'm sending keyboard and mouse events to a seperate windows application
Eduardo "EdCrypt" O. Padoan a écrit :
> On 6/22/07, John Nagle <[EMAIL PROTECTED]> wrote:
> Remember that pure CPython has no different "compile time" and
> runtiime.
Oh yes ? So what's the compiler doing, and what are those .pyc files ?
(hint: read the doc)
--
http://mail.python.org/mailman/lis
John Nagle a écrit :
(snip)
> It looks like
> a compromise between the "no declarations" position and the "make
> the language strongly typed" position.
(snip)
> The main advantage of strongly typed systems is that more errors
> are detected at compile time.
(snip)
s/strongly/statically/
1/ s
Hi,
I am trying to render HTML in PyGTK widget but iam not getting the expected
result.
I would like to know whether PyGTK supports HTML rendering feature or not.
Please help me to solve this issue.
thanks
--
http://mail.python.org/mailman/listinfo/python-list
Paul Rubin a écrit :
> Bruno Desthuilliers <[EMAIL PROTECTED]> writes:
>
>>Nope, he just asserted something wrong. Static typing is for compiler
>>optimization. Type checking is at most a side effect, and in some
>>languages (at least C, C++ and Java) can be totally defeated (usually
>>using typec
"Gabriel Genellina" <[EMAIL PROTECTED]> schreef in bericht
news:[EMAIL PROTECTED]
> En Thu, 28 Jun 2007 19:15:40 -0300, Hans <[EMAIL PROTECTED]> escribió:
>
>> I'm sending keyboard and mouse events to a seperate windows application.
>> I use win32event.WaitForInputIdle() before calling e.g.
>> wi
I am looking for an ORM for Python that fulfills a few simple needs.
- ability to support a number of backends (probably mysql and sqlite
at present, csv a bonus)
- ability to be used easily from console python scripts, a bonus if I
can add a simple web GUI later using some framework
- decent
"John Nagle" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
|If Python numerics don't define
| +INF, -INF, and NaN, along with the tests for them, that's a
| flaw in the language.
Are you volunteering to fix the 'flaw'? CPython floating point numerics
are currently defined to
Thanks to Aaron, I was able to read and write audio data using
Python's wave module. Trying to better understand the data I'm looking
at, what does each element of the frame represent, and how do I
convert a sample ranging from -32,768 to 32,768 back to a frame set
like below?
When using a 16 bit
> > Well, the short question is: what are they? I've read Guido's python
> > 3000 status report on
> > http://www.artima.com/weblogs/viewpost.jsp?thread=208549 where he
> > mentions ABC's but don't quite understand what the whole story is
> > about.
>
> The story is at PEP 3119:
> http://www.python
Hi,
I'm trying to read a file (fileA) and append to another file(fileB).
However, I always get "^M" at the end. Does anyone know why ? Here is my
code ?
os.system("../syn/pin_assign.pl customer_netlist.txt")
shutil.copy("../fileB", "fileB")
ucf = open("fileB", "a")
pin = open("fileA", "r")
ucf.w
Robert Kern wrote:
> [EMAIL PROTECTED] wrote:
>
>>On Thu, 28 Jun 2007 23:20:30 -0500
>>Robert Kern <[EMAIL PROTECTED]> wrote:
>>
>>
>>>[EMAIL PROTECTED] wrote:
>>>
Does it differ from the
built-in inf?
>>>
>>>What built-in inf?
>>
>>$ python
>>Python 2.4.4 (#2, Apr 5 2007, 20:11:18)
>>[GC
Hi All,
Pydev and Pydev Extensions 1.3.6 have been released
Details on Pydev Extensions: http://www.fabioz.com/pydev
Details on Pydev: http://pydev.sf.net
Details on its development: http://pydev.blogspot.com
Release Highlights in Pydev Extensions:
--
On 6/29/07, Daniel Nogradi <[EMAIL PROTECTED]> wrote:
> Hi list,
>
> Well, the short question is: what are they? I've read Guido's python
> 3000 status report on
> http://www.artima.com/weblogs/viewpost.jsp?thread=208549 where he
> mentions ABC's but don't quite understand what the whole story is
>
Hi,
I am trying to render HTML in PyGTK widget but iam not getting the expected
result.
I would like to know whether PyGTK supports HTML rendering feature or not.
Please help me to solve this issue.
thanks
--
http://mail.python.org/mailman/listinfo/python-list
Daniel Nogradi wrote:
> Hi list,
>
> Well, the short question is: what are they? I've read Guido's python
> 3000 status report on
> http://www.artima.com/weblogs/viewpost.jsp?thread=208549 where he
> mentions ABC's but don't quite understand what the whole story is
> about.
>
> Anyone has good us
Duncan Booth <[EMAIL PROTECTED]> writes:
>> A precondition of much of my Python code is that callers won't
>> squirrel away large numbers of tracebacks for long periods of time. I
>> can live with that. Another precondition of much of my code is that
>> the caller doesn't assume that it is threa
Steve Holden <[EMAIL PROTECTED]> writes:
> "Python" doesn't *have* any refcounting semantics.
I'm not convinced that Python has *any* semantics at all outside of
specific implementations. It has never been standardized to the rigor
of your typical barely-readable language standards document.
>
Hrvoje Niksic <[EMAIL PROTECTED]> writes:
>> Generators aren't slower than hand-coded iterators in *Python*, but
>> that's because Python is a slow language.
> But then it should be slow for both generators and iterators.
Python *is* slow for both generators and iterators. It's slow for
*everyt
Douglas Alan <[EMAIL PROTECTED]> wrote:
>> Is one of your preconditions that no one will ever handle an
>> exception raised by your code or by their own code when it is
>> invoked by yours?
>
> A precondition of much of my Python code is that callers won't
> squirrel away large numbers of traceba
Douglas Alan wrote:
> Michele Simionato <[EMAIL PROTECTED]> writes:
>
>>> I've written plenty of Python code that relied on destructors to
>>> deallocate resources, and the code always worked.
>
>> You have been lucky:
>
> No I haven't been lucky -- I just know what I'm doing.
>
>> $ cat deallo
Jean-Paul Calderone <[EMAIL PROTECTED]> writes:
>>On the other hand, in Python, you can be 100% sure that your files
>>will be closed in a timely manner without explicitly closing them, as
>>long as you are safe in making certain assumptions about how your code
>>will be used. Such assumptions ar
* Hrvoje Niksic (Fri, 29 Jun 2007 13:07:01 +0200)
> James Alan Farrell <[EMAIL PROTECTED]> writes:
>
> > Hello,
> > I recently installed new anti-virus software and was surprised the
> > next time I brought up IDLE, that it was accessing the internet.
> >
> > I dislike software accessing the inter
Douglas Alan <[EMAIL PROTECTED]> writes:
>>> The downside is that they are not quite as flexible as iterators
>>> (which can be hard to code) and generators, which are slow.
>
>> Why do you think generators are any slower than hand-coded iterators?
>
> Generators aren't slower than hand-coded ite
* James Alan Farrell (Tue, 26 Jun 2007 01:07:46 GMT)
> I recently installed new anti-virus software and was surprised the
> next time I brought up IDLE, that it was accessing the internet.
>
> I dislike software accessing the internet without telling me about it,
> especially because of my slow di
"Chris Mellon" <[EMAIL PROTECTED]> writes:
>> On the other hand, in Python, you can be 100% sure that your files
>> will be closed in a timely manner without explicitly closing them, as
>> long as you are safe in making certain assumptions about how your code
>> will be used. Such assumptions are
Robin Becker <[EMAIL PROTECTED]> writes:
> whether it's any better than using the lowest bits I have no real
> idea. I suppose (sha being flavour of the month) I should really use
I think if you have more than a few fonts you really have to assign
the id's uniquely instead of using hashes, to avoi
Bruno Desthuilliers <[EMAIL PROTECTED]> writes:
> Nope, he just asserted something wrong. Static typing is for compiler
> optimization. Type checking is at most a side effect, and in some
> languages (at least C, C++ and Java) can be totally defeated (usually
> using typecasting).
"Definitions o
does this project include support for pygtk type GUI's?
On 6/29/07, Mark Dufour <[EMAIL PROTECTED]> wrote:
Hi all,
I have just released version 0.0.22 of Shed Skin, an experimental
Python-to-C++ compiler. Among other things, it has the exciting new
feature of being able to generate (simple, fo
Hi list,
Well, the short question is: what are they? I've read Guido's python
3000 status report on
http://www.artima.com/weblogs/viewpost.jsp?thread=208549 where he
mentions ABC's but don't quite understand what the whole story is
about.
Anyone has good use cases?
Daniel
--
http://mail.python.
On 2007-06-29, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I want to end the execution of the command when the user closes my
> application.
>
> Right now I'm using an object my_child of type subprocess.Popen to
> execute the command, inside a thread with an infinite loop where we
> constantly a
Steve Holden <[EMAIL PROTECTED]> wrote:
> Marc 'BlackJack' Rintsch wrote:
> > In <[EMAIL PROTECTED]>, Evan Klitzke
> > wrote:
> >
> >> I have a question about the internal representation of sets in Python.
> >> If I write some code like
> >>
> >> if x in some_list:
> >> do_something()
> >>
>
On Jun 29, 2:51 pm, Frank Millman <[EMAIL PROTECTED]> wrote:
> Hi all
>
> I am doing something which works, but I have a gut feel that it cannot
> be relied upon. Can someone confirm this one way or the other.
[...]
> My worry is that the thread with the unhandled exception may
> eventually get gar
On Fri, 29 Jun 2007 09:56:14 -0400, Douglas Alan <[EMAIL PROTECTED]> wrote:
>"Chris Mellon" <[EMAIL PROTECTED]> writes:
>
>> You're arguing against explicit resource management with the argument
>> that you don't need to manage resources. Can you not see how
>> ridiculously circular this is?
>
>No.
Hello Guys,
I find my application is freezing/crashing every now and then and it
becoming a bit of a frustration, so this morning I sat down to try and
locate the problem. After doing some debugging I think I've found the line
of code that causes my problem.
Print 'Read Results'
New = e.re
On 6/29/07, Douglas Alan <[EMAIL PROTECTED]> wrote:
> "Chris Mellon" <[EMAIL PROTECTED]> writes:
>
> > You're arguing against explicit resource management with the argument
> > that you don't need to manage resources. Can you not see how
> > ridiculously circular this is?
>
> No. It is insane to l
[EMAIL PROTECTED] wrote:
> On Thu, 28 Jun 2007 23:20:30 -0500
> Robert Kern <[EMAIL PROTECTED]> wrote:
>
>> [EMAIL PROTECTED] wrote:
>>> Does it differ from the
>>> built-in inf?
>> What built-in inf?
>
> $ python
> Python 2.4.4 (#2, Apr 5 2007, 20:11:18)
> [GCC 4.1.2 20061115 (prerelease) (Debi
"Chris Mellon" <[EMAIL PROTECTED]> writes:
> You're arguing against explicit resource management with the argument
> that you don't need to manage resources. Can you not see how
> ridiculously circular this is?
No. It is insane to leave files unclosed in Java (unless you know for
sure that your
Dennis Lee Bieber <[EMAIL PROTECTED]> writes:
> LISP and FORTH are cousins...
Not really. Their only real similarity (other than the similarities
shared by most programming languages) is that they both use a form of
Polish notation.
|>oug
--
http://mail.python.org/mailman/listinfo/python
Michele Simionato <[EMAIL PROTECTED]> writes:
>> I've written plenty of Python code that relied on destructors to
>> deallocate resources, and the code always worked.
> You have been lucky:
No I haven't been lucky -- I just know what I'm doing.
> $ cat deallocating.py
> import logging
>
> class
I'm writing a program which has to execute a command, get its output
and show it on a treeview.
This command runs for a very long time.
I want to end the execution of the command when the user closes my
application.
Right now I'm using an object my_child of type subprocess.Popen to
execute the com
[EMAIL PROTECTED] <[EMAIL PROTECTED]> writes:
> I find Windows and its tools as frustrating as you seem to find
> Unix, but I strongly suspect that being shown the ropes by someone
> who understands and likes the system would help a lot.
I feel the same way about Windows being frustrating, howe
Hrvoje Niksic <[EMAIL PROTECTED]> writes:
> Douglas Alan <[EMAIL PROTECTED]> writes:
>> I think you overstate your case. Lispers understand iteration
>> interfaces perfectly well, but tend to prefer mapping fuctions to
>> iteration because mapping functions are both easier to code (they
>> are b
On 2007-06-29, Gabriel Genellina <[EMAIL PROTECTED]> wrote:
> En Thu, 28 Jun 2007 11:38:56 -0300, A.T.Hofkamp <[EMAIL PROTECTED]>
> escribió:
>
>> The point I intended to make was that having a default __hash__ method on
>> objects give weird results that not everybody may be aware of.
>> In addi
On Jun 29, 7:50 am, Steve Holden <[EMAIL PROTECTED]> wrote:
> senthil arasu wrote:
> > Hi,
> > Currently Iam integrating GUI Framework in Python.
> > As per design design,I need to use tab buttons to launch different HTML
> > pages in same frame(without launching seperate window ). I have already
>
A little update : I finally found an example of a file browser using
gtkTreestore that parse the file system recursively :
http://www.koders.com/python/fidDB37D29C69F526E5EEA9A7D8B4FC5B87E92A78CC.aspx?s=filter_out_extensions#L113
I still need to check how it works, but I am sure that it will answe
[EMAIL PROTECTED] a écrit :
> Hello,
>
> I would like to create a minimalist file browser using pyGTK.
>
> Having read lot of tutorials, it seems to me that that in my case, the
> best solution is
> to have a gtk.TreeStore containing all the files and folders so that
> it would map the
> file sys
Hi all
I am doing something which works, but I have a gut feel that it cannot
be relied upon. Can someone confirm this one way or the other.
I have a multi-threaded server, which responds to client logins and
sets up a thread for each active session. A thread can stay active for
a long time.
I u
senthil arasu wrote:
> Hi,
> Currently Iam integrating GUI Framework in Python.
> As per design design,I need to use tab buttons to launch different HTML
> pages in same frame(without launching seperate window ). I have already
> tried with webbrowser class & WxPython GUI kit. Iam unable to get t
On 6/28/07, Douglas Alan <[EMAIL PROTECTED]> wrote:
> "Chris Mellon" <[EMAIL PROTECTED]> writes:
>
> > Obviously. But theres nothing about the with statement that's
> > different than using smart pointers in this regard.
>
> Sure there is -- smart pointers handle many sorts of situations, while
> "
A.T.Hofkamp wrote:
> On 2007-06-29, Steve Holden <[EMAIL PROTECTED]> wrote:
>> Just the same there are sound reasons for it, so I'd prefer to see you
>> using "counterintuitive" or "difficult to fathom" rather than "broken"
>> and "wrong".
>
> You are quite correct, in the heat of typing an answ
On 2007-06-28, Roy Smith <[EMAIL PROTECTED]> wrote:
> In article <[EMAIL PROTECTED]>,
> "A.T.Hofkamp" <[EMAIL PROTECTED]> wrote:
>
>> In object oriented programming, objects are representations of values, and
>> the
>> system shouldn't care about how many instances there are of some value, just
>
Hello,
I would like to create a minimalist file browser using pyGTK.
Having read lot of tutorials, it seems to me that that in my case, the
best solution is
to have a gtk.TreeStore containing all the files and folders so that
it would map the
file system hierarchy.
I wrote a recursive function t
Sorry, I was replying via the email list and didn't realize it would thread
that way.
- Adam
From: [EMAIL PROTECTED] on behalf of Ben Finney
Sent: Fri 6/29/2007 2:55 AM
To: python-list@python.org
Subject: Re: Writing TGA image files?
"Adam Pletcher" <[EMAIL
On 2007-06-29, Steve Holden <[EMAIL PROTECTED]> wrote:
> Just the same there are sound reasons for it, so I'd prefer to see you
> using "counterintuitive" or "difficult to fathom" rather than "broken"
> and "wrong".
You are quite correct, in the heat of typing an answer, my wording was too
stron
James Alan Farrell <[EMAIL PROTECTED]> writes:
> Hello,
> I recently installed new anti-virus software and was surprised the
> next time I brought up IDLE, that it was accessing the internet.
>
> I dislike software accessing the internet without telling me about it,
> especially because of my slow
Douglas Alan <[EMAIL PROTECTED]> writes:
> I think you overstate your case. Lispers understand iteration
> interfaces perfectly well, but tend to prefer mapping fuctions to
> iteration because mapping functions are both easier to code (they
> are basically equivalent to coding generators) and eff
Hi all,
I have just released version 0.0.22 of Shed Skin, an experimental
Python-to-C++ compiler. Among other things, it has the exciting new
feature of being able to generate (simple, for now) extension modules,
so it's much easier to compile parts of a program and use them (by
just importing the
Hello Chaps,
I'm looking for some help with XML parsing, I've been playing around with
this over the past few days and the only solution I can come up with seems
to be a little slow and also leaves what I think is a memory leak in my
application, which causes all kinds of problems.
I have
Hi all,
I am embedding the Python interpreter using the C API and extending it
using modules generated by SWIG. In order to guarantee consistency
about importing those modules, I would like to "hook" into the Python's
import statement and __import__ function and do some checks there.
I have exper
Hi all,
I am using an open source testing framework called Marathon that
uses Jython and i am trying to create a test that will:
- click a menu item
- select Login from the list
- a new window will popup
- insert username and password
- click OK
-*-*- at this point if the login was successful the
On Jun 26, 12:49 am, Jason Tishler <[EMAIL PROTECTED]> wrote:
> On Mon, Jun 25, 2007 at 01:53:18PM +0100, Michael Hoffman wrote:
> > [EMAIL PROTECTED] wrote:
> > > I've installed cygwin with latest python 2.5.1, but it seems that the
> > > socket lib file do NOT support IPv6(cygwin\lib\python2.5\li
walterbyrd a écrit :
>> Did you try to sort a tuple ?
>>
>> >>> (1, "aaa").sort()
>> Traceback (most recent call last):
>>File "", line 1, in ?
>> AttributeError: 'tuple' object has no attribute 'sort'
>
> I can do this:
>
x = (3,2,1)
x = tuple(sorted(list(x)))
>
> Which, although
Thanks It is working!
--
http://mail.python.org/mailman/listinfo/python-list
Ben Finney wrote:
> "Adam Pletcher" <[EMAIL PROTECTED]> writes:
>
>> Does anyone have Python code for writing Targa (TGA) image files?
>
> Please post your question as a new message, instead of a reply to an
> existing thread that has nothing to do with the question you're
> asking. Otherwise you
On Jun 29, 4:26 pm, hiroc13 <[EMAIL PROTECTED]> wrote:
> >>> import MySQLdb
> >>> db = MySQLdb.connect (host = "localhost", user = "root", passwd = "pass",
> >>> db = "base1")
> >>> c = db.cursor ()
> >>> c.execute(""" INSERT INTO table1 (prvo, drugo) VALUES ('test', '1') """)
> >>> c.execute("SEL
> $ python -m timeit -s "s = set('abcdef')" "x = iter(s).next()"
> 100 loops, best of 3: 0.399 usec per loop
>
> $ python -m timeit -s "s = set('abcdef')" "x = s.pop(); s.add(x)"
> 100 loops, best of 3: 0.339 usec per loop
>
> So it looks like it's more efficient to use
>>> import MySQLdb
>>> db = MySQLdb.connect (host = "localhost", user = "root", passwd = "pass",
>>> db = "base1")
>>> c = db.cursor ()
>>> c.execute(""" INSERT INTO table1 (prvo, drugo) VALUES ('test', '1') """)
>>> c.execute("SELECT * FROM table1")
>>> res = c.fetchall ()
>>> print res
When I s
"Adam Pletcher" <[EMAIL PROTECTED]> writes:
> Does anyone have Python code for writing Targa (TGA) image files?
Please post your question as a new message, instead of a reply to an
existing thread that has nothing to do with the question you're
asking. Otherwise your message will be obscured amon
George Sakkis <[EMAIL PROTECTED]> wrote:
> On May 15, 5:30 am, Nick Craig-Wood <[EMAIL PROTECTED]> wrote:
>> George Sakkis <[EMAIL PROTECTED]> wrote:
>>> I'm trying to figure out why Popen captures the stderr of a specific
>>> command when it runs through the shell but not without it. IOW:
>>>
Hello Martin,
Thanks for your reply.
There was no need for me to use 64 so I have switched back to 32 and works
fine.
Python is not ready for the 64 world yet ;)
Sincerely,
SRF
-Original Message-
From: "Martin v. Löwis" [mailto:[EMAIL PROTECTED]
Sent: jueves, 28 de junio de 2007 23:2
98 matches
Mail list logo