I just came across this, a rather advanced algorithms book but my
favorite kind: the text (in draft form, anyway) is free online.
http://www.cs.princeton.edu/theory/complexity/
--
http://mail.python.org/mailman/listinfo/python-list
I use pyWxSVG to convert a svg file to a png image.
pyWxSVG is svg canvas for wxPython.
View and print svg file or svg content, convert svg to raster
graphics. Open svg, svgz file as wx.Image, use wx.BITMAP_TYPE_SVG,
wx.BITMAP_TYPE_SVGZ type. Partial support svg format. Tested with
Python 2.5 and w
On Mon, 29 Jun 2009 16:47:58 -0400, Terry Reedy wrote:
> The replacement would need to work with Py 3. TK does. I have not
> noticed that anything else does, though that should change eventually.
> (And I am sure someone will point of something I have not noticed.)
PyQt does.
Phil
--
http://ma
On Jun 29, 11:04 am, Tim Harig wrote:
> On 2009-06-29, NurAzije wrote:
>
> > Hi,
> > I am working on a study and I need expert opinion, I did not work with
> > Python before, can anyone help me with a comparison betweenWhizBase
> > (www.whizbase.com) and Python please.
>
> Given posts
> like:htt
Dear Lawrence,
On Tue, 30 Jun 2009 15:48:52 +1200, Lawrence D'Oliveiro
wrote:
> In message , Daniel
> Gerzo wrote:
>
>> http://bitbucket.org/danger/pysublib/src/
>
> Can't seem to get through to your site.
BitBucket isn't actually my site, it's a Mercurial hosting provider.
I wonder why it
En Tue, 30 Jun 2009 03:33:52 -0300, Dennis Lee Bieber
escribió:
On Mon, 29 Jun 2009 11:59:59 -0300, "Gabriel Genellina"
declaimed the following in
gmane.comp.python.general:
The fact that it's the same character used for formatting strings with
the
% operator is an unfortunate coincidenc
In message , Tim Harig wrote:
> On 2009-06-29, Lawrence D'Oliveiro
> wrote:
>> Sounds more like broken OS with no integrated package management.
>
> Package managers with dependency tracking were all the rage when I first
> started using Linux. So I tried Red Hat and everything worked great unt
On 2009-06-30, Lawrence D'Oliveiro wrote:
> In message , Tim Harig wrote:
>> On 2009-06-29, Lawrence D'Oliveiro
>> wrote:
>>> Sounds more like broken OS with no integrated package management.
>> Package managers with dependency tracking were all the rage when I first
>> started using Linux. So I
On 2009-06-30, NurAzije wrote:
> On Jun 29, 11:04 am, Tim Harig wrote:
>> On 2009-06-29, NurAzije wrote:
>> > I am working on a study and I need expert opinion, I did not work with
>> > Python before, can anyone help me with a comparison betweenWhizBase
>> > (www.whizbase.com) and Python please.
This is purely sport question. I don't really intend to use the answer
in my code, but I am wondering, if such a feat could be done.
I have a following problem: I have a list based upon which I would
like to construct a different one. I could simply use list
comprehensions, but there is an additio
Oh, and there is additional requirement: it must be a one liner with
at most 80 characters ;-)
W dniu 30 czerwca 2009 10:44 użytkownik Filip Gruszczyński
napisał:
> This is purely sport question. I don't really intend to use the answer
> in my code, but I am wondering, if such a feat could be don
On Tue, 30 Jun 2009 20:16:02 +1200, Lawrence D'Oliveiro wrote:
> In message , Tim Harig wrote:
>
>> On 2009-06-29, Lawrence D'Oliveiro
>> wrote:
>>> Sounds more like broken OS with no integrated package management.
>>
>> Package managers with dependency tracking were all the rage when I
>> firs
On Tue, 30 Jun 2009 03:37:15 +0100, Eric S. Johansson
wrote:
Steven D'Aprano wrote:
Why do you think a smart editing environment is in opposition to coding
conventions? Surely an editor smart enough to know a variable name
spoken
as "pear tree" is an instance and therefore spelled as pea
On 2009-06-30, Steven D'Aprano wrote:
> On Tue, 30 Jun 2009 20:16:02 +1200, Lawrence D'Oliveiro wrote:
>> In message , Tim Harig wrote:
>>> Package managers with dependency tracking were all the rage when I
>>> first started using Linux. So I tried Red Hat and everything worked
>>> great until th
On Jun 29, 3:17 am, greg wrote:
> Paul Rubin wrote:
> > Steven D'Aprano writes:
>
> >>But that depends on what you call "things"... if electron shells are real
> >>(and they seem to be) and discontinuous, and the shells are predicted/
> >>specified by eigenvalues of some continuous function, is t
On Tue, 30 Jun 2009 09:57:27 +0100, Rhodri James
wrote:
On Tue, 30 Jun 2009 03:37:15 +0100, Eric S. Johansson
wrote:
Steven D'Aprano wrote:
Why do you think a smart editing environment is in opposition to coding
conventions? Surely an editor smart enough to know a variable name
spoke
2009/6/30 Filip Gruszczyński :
> This is purely sport question. I don't really intend to use the answer
> in my code, but I am wondering, if such a feat could be done.
>
> I have a following problem: I have a list based upon which I would
> like to construct a different one. I could simply use list
Hi,
I'm looking for a way to call the NtQueryInformationProces() and
ReadProcessMemory() of WindowsXP from Python.
Can anyone direct me to some examples where they have been successfully called
through Python?
Thanks and regards,
Rajat
Notice: This e-mail is intended solely for use of the i
Dudeja, Rajat wrote:
Hi,
I'm looking for a way to call the NtQueryInformationProces() and
ReadProcessMemory() of WindowsXP from Python.
Can anyone direct me to some examples where they have been successfully called
through Python?
You want to look at ctypes:
http://docs.python.org/library/
Filip Gruszczyäski writes:
> [1, 0, 0, 1] -> ['b', 'b', 'a', 'a', 'b', 'b']
Using itertools:
>>> list(chain(*imap([['a'],['b','b']].__getitem__, [1,0,0,1])))
['b', 'b', 'a', 'a', 'b', 'b']
--
http://mail.python.org/mailman/listinfo/python-list
Chris Rebert a écrit :
(snip)
reduce(lambda x,y:x+y,({1:['b']*2,0:['a']}[z] for z in [1, 0, 0, 1]))
['b', 'b', 'a', 'a', 'b', 'b']
69 chars long (plus or minus how the input list is written).
You can save 4 more characters using tumple dispatch instead of dict
dispatch:
reduce(lambda x,y :
On Tue, 30 Jun 2009 09:44:39 +0100, Filip Gruszczyński
wrote:
This is purely sport question. I don't really intend to use the answer
in my code, but I am wondering, if such a feat could be done.
I have a following problem: I have a list based upon which I would
like to construct a different
On Tue, Jun 30, 2009 at 2:19 AM, Bruno
Desthuilliers wrote:
> Chris Rebert a écrit :
> (snip)
>
> reduce(lambda x,y:x+y,({1:['b']*2,0:['a']}[z] for z in [1, 0, 0, 1]))
>>
>> ['b', 'b', 'a', 'a', 'b', 'b']
>>
>> 69 chars long (plus or minus how the input list is written).
>
> You can save 4
Eric S. Johansson wrote:
Tim Chase wrote:
It sounds like the issue should be one of making your screen-reader
smarter, not dumbing down Python conventions. I don't know what SR
you're using (Jaws? Window Eyes? yasr? screeder? speakup?
Naturally speaking is speech recognition (speech in t
> > This is purely sport question. I don't really intend to use the answer
> > in my code, but I am wondering, if such a feat could be done.
> >
> > I have a following problem: I have a list based upon which I would
> > like to construct a different one. I could simply use list
> > comprehensions,
[Trimming for length, sorry if that impacts too much on intelligibility]
On Tue, 30 Jun 2009 02:52:37 +0100, Eric S. Johansson
wrote:
let's use an example. Admittedly, this is a very simple example but
hopefully it
illustrates my point
What I dictate is:
from pots is class telephone
Wh
> > > This is purely sport question. I don't really intend to use the answer
> > > in my code, but I am wondering, if such a feat could be done.
> > >
> > > I have a following problem: I have a list based upon which I would
> > > like to construct a different one. I could simply use list
> > > comp
On Sun, Jun 28, 2009 at 10:22 AM, kj wrote:
> In <87fxdlujds@benfinney.id.au> Ben Finney
> >
> writes:
>
> >(Even if you don't want to receive email, could you please give your
> >actual name in the ‘From’ field instead of just initials? It makes
> >conversation less confusing.)
>
> I don't
Andreas Tawn wrote:
>> > > This is purely sport question. I don't really intend to use the
>> > > answer in my code, but I am wondering, if such a feat could be done.
>> > >
>> > > I have a following problem: I have a list based upon which I would
>> > > like to construct a different one. I could
"Andreas Tawn" writes:
> list("".join([("a","b"*2)[x] for x in [1,0,0,1]])
> 50 characters. Do I win £5?
Er, missing right paren. Try:
list("".join(("a","bb")[x] for x in [1,0,0,1]))
--
http://mail.python.org/mailman/listinfo/python-list
list("".join([("a","b"*2)[x] for x in [1,0,0,1]])
50 characters. Do I win £5?
list("".join([("a","bb")[x] for x in [1,0,0,1]])
Or 49 :o)
Well, you have a missing ")" character, but that would be the
49th. You can[*] abuse python's parsing by removing certain
spaces with
list(''.join([
Peter Otten wrote:
> Andreas Tawn wrote:
>
>>> > > This is purely sport question. I don't really intend to use the
>>> > > answer in my code, but I am wondering, if such a feat could be done.
>>> > >
>>> > > I have a following problem: I have a list based upon which I would
>>> > > like to constr
Hi,
I'm writing an LDAP plugin for my TG2 application. In this I wrote a small
class based decorator with args to set up a connection and call the necessary
functionality but I'm having problems with it. Here's my code:
class getConnection(object):
def __init__(self, settings, credentials)
Hi all,
I have to write an automted script which will test my c
program. That program when run will ask for the commands. For example:
local-host# ./cli
Enter 1 for add
Enter 2 for sub
Enter 3 for mul
1---Our option
Enter two numbers
44 33 Our option
Result is 77
Em Seg 29 Jun 2009, às 20:39:22, Lawrence D'Oliveiro escreveu:
> In message
> d7fe56d05...@g19g2000yql.googlegroups.com>, Jun wrote:
> > ... is there open source solution ?
>
> Poppler?
pypdf -- http://pybrary.net/pyPdf/
A Pure-Python library built as a PDF toolkit. It is capable of:
* ext
> -Original Message-
> From: python-list-bounces+andreas.tawn=ubisoft@python.org [mailto:python-
> list-bounces+andreas.tawn=ubisoft@python.org] On Behalf Of Paul Rubin
> Sent: Tuesday, June 30, 2009 11:27 AM
> To: python-list@python.org
> Subject: Re: Specific iterator in one line
I have written a c++ extend module and I use distutils to build.
setup.py
from distutils.core import setup, Extension
setup(name="noddy", version="1.0",
ext_modules=[
Extension("noddy3", ["noddy3.cpp", "a.cpp"])
])
I found it's quite strange when compilin
Eric S. Johansson wrote:
Ethan Furman wrote:
Eric S. Johansson wrote:
yup how long will i[t] be before you become disablesd? maybe not as
badly as I am
but you should start feeling some hand problems in your later 40's to
early 50's
and it goes down hill from there. self preservation
On 2009-06-30, Eduardo Lenz wrote:
> Em Seg 29 Jun 2009, às 20:39:22, Lawrence D'Oliveiro escreveu:
>> In message >
>> d7fe56d05...@g19g2000yql.googlegroups.com>, Jun wrote:
>> > ... is there open source solution ?
>>
>> Poppler?
>
> pypdf -- http://pybrary.net/pyPdf/
>
>
> A Pure-Python library b
Filip Gruszczyński:
> [1, 0, 0, 1] -> ['b', 'b', 'a', 'a', 'b', 'b']
I like this version (43 golf holes), it's readable enough:
[c for d in[1,0,0,1]for c in("a","bb")[d]]
Bye,
bearophile
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, 29 Jun 2009 14:16:34 -0700, Scott David Daniels wrote:
>>> Do you mean like a zip or tar file?
>>>
>>> http://docs.python.org/library/zipfile.htmlhttp://docs.python.org/library/tarfile.html
>>>
>>
>> I had no idea you could access a single file from a ZIP or TAR without
>> explicitly extr
Em Ter 30 Jun 2009, às 04:19:13, Grant Edwards escreveu:
> On 2009-06-30, Eduardo Lenz wrote:
> > Em Seg 29 Jun 2009, às 20:39:22, Lawrence D'Oliveiro escreveu:
> >> In message >>
> >> d7fe56d05...@g19g2000yql.googlegroups.com>, Jun wrote:
> >> > ... is there open source solution ?
> >>
> >> Popp
Hi All,
Environment :- Solaris
Python Version :- ActivePython 2.4.3 Build 11 (ActiveState Software
Inc.) based on
Python 2.4.3 (#1, Apr 3 2006, 18:34:02) [C] on
sunos5
Oracle version :- 10.2.0.3
Below is the library path
echo $LD_LIBRARY_PATH
/da
Of course, you're sure that under
/data/oracle/product/10.2.0.3/lib
you can find
libclntsh.so.9.0
Regards
Marco
On Tue, Jun 30, 2009 at 1:45 PM, Harsha Reddy wrote:
>
> Hi All,
>
> Environment :- Solaris
> Python Version :- ActivePython 2.4.3 Build 11 (ActiveState S
Hi Marc,
Thanks for the repl...
Ican see below in /data/oracle/product/10.2.0.3/lib
newprd$ ls -ltr libclntsh*
-rwxrwxr-x 1 oracle dba 24048416 Apr 29 10:49 libclntsh.so.10.1
lrwxrwxrwx 1 oracle dba 51 Apr 29 10:49 libclntsh.so ->
/data/oracle/product/10.2.0.3/lib/lib
Hi Marc,
Thanks for the repl...
Ican see below in /data/oracle/product/10.2.0.3/lib
newprd$ ls -ltr libclntsh*
-rwxrwxr-x 1 oracle dba 24048416 Apr 29 10:49 libclntsh.so.10.1
lrwxrwxrwx 1 oracle dba 51 Apr 29 10:49 libclntsh.so ->
/data/oracle/product/10.2.0.3/lib/lib
Paul Moore wrote:
2009/6/29 MRAB :
superpollo wrote:
hi folks.
the follwing shoud print 'stuff' for 3 seconds and then stop. why it does
not work? (prints stuff forever)
1 #!/usr/bin/python
2
3 import threading
4 import sys
5
6 t = threading.Timer(3.0, sys.exit)
Hi,
this can be done using module "subprocess"; there is also function
popen() in module "os" and module popen2, but they are deprecated
since Python 2.6.
PM
2009/6/30 venutaurus...@gmail.com :
> Hi all,
> I have to write an automted script which will test my c
> program. That program whe
Hi All,
I'm pleased to announce a GUI package manager (v 0.12) for
Python versions 2.x under Windows.
http://sourceforge.net/projects/pythonpkgmgr/
It's tightly linked to the pypi repository and offers
the following functions:
- search packages on pypi by name
- install (via easyinstall or
Mr SZ a écrit :
Hi,
I'm writing an LDAP plugin for my TG2 application. In this I wrote a small
class based decorator with args to set up a connection and call the necessary
functionality but I'm having problems with it. Here's my code:
(snip code)
class LdapPlugin(Plugin):
...
def _
2009/6/30 superpollo :
> Paul Moore wrote:
>> For a non-toy example, you'd probably create an Event object, use your
>> timer to set the event, and your while loop would do while
>> event.is_set(), so the problem wouldn't arise.
>
> thank u paul. if u dont mind, would you give me a more detailed pi
Paul Moore wrote:
2009/6/29 MRAB :
superpollo wrote:
hi folks.
the follwing shoud print 'stuff' for 3 seconds and then stop. why it does
not work? (prints stuff forever)
1 #!/usr/bin/python
2
3 import threading
4 import sys
5
6 t = threading.Timer(3.0, sys.exit)
superpollo wrote:
so why this does not work?
1 #!/usr/bin/python
2
3 import threading
4
5 e = threading.Event()
6 t = threading.Timer(3.0, e.set())
7 t.start()
8 while not e.isSet():
9 print "stuff ",
it does *NOT* print (but it should,
On Jun 30, 5:42 pm, Petr Messner wrote:
> Hi,
>
> this can be done using module "subprocess"; there is also function
> popen() in module "os" and module popen2, but they are deprecated
> since Python 2.6.
>
> PM
>
> 2009/6/30 venutaurus...@gmail.com :
>
> > Hi all,
> > I have to write an aut
Paul Moore wrote:
2009/6/30 superpollo :
Paul Moore wrote:
For a non-toy example, you'd probably create an Event object, use your
timer to set the event, and your while loop would do while
event.is_set(), so the problem wouldn't arise.
thank u paul. if u dont mind, would you give me a more
superpollo writes:
> so why this does not work?
>
> 1 #!/usr/bin/python
> 2
> 3 import threading
> 4
> 5 e = threading.Event()
> 6 t = threading.Timer(3.0, e.set())
The second arg needs to be a callable - maybe you meant e.set without
the brackets?
--
http:
Paul Moore wrote:
2009/6/30 superpollo :
Paul Moore wrote:
For a non-toy example, you'd probably create an Event object, use your
timer to set the event, and your while loop would do while
event.is_set(), so the problem wouldn't arise.
thank u paul. if u dont mind, would you give me a more
i would like to thank each and everyone for help given, and aplologise
for my inaccuracy.
thanks 10**3!
superchicken
--
http://mail.python.org/mailman/listinfo/python-list
2009/6/30 superpollo :
> Paul Moore wrote:
>>
>> 2009/6/30 superpollo :
>>
>>> Paul Moore wrote:
>>>
For a non-toy example, you'd probably create an Event object, use your
timer to set the event, and your while loop would do while
event.is_set(), so the problem wouldn't arise.
>>>
>>
On Jun 17, 12:38 am, Scott David Daniels
wrote:
>
> Over on image-sig, Fredrik Lundh responded:
> > And the award for finding the oldest bug in PIL goes to... (that code
> > was last touched in 1996).
> >
>
> Congrats, roop, on getting this discovered just in the nick of time.
>
/me takes a bo
2009/6/30 venutaurus...@gmail.com :
...
> Can you give some more explanation about how exactly this can be
> done..
Popen object enables you to run any program in a newly-created child
process, write to its standard input and read from its standard and
error outputs.
There is an example how your
i just install the python 3.1 dmg onto my mac. when i run python3, it
fail with :
Fatal Python error: Py_Initialize: can't initialize sys standard
streams
LookupError: unknown encoding:
Abort trap
couldnt understand the problem. anyone can help?
--
http://mail.python.org/mailman/listinfo/python-
On Jun 30, 11:46 am, "venutaurus...@gmail.com"
wrote:
> Hi all,
> I have to write an automted script which will test my c
> program. That program when run will ask for the commands. For example:
>
> local-host# ./cli
> Enter 1 for add
> Enter 2 for sub
> Enter 3 for mul
> 1 -
Christian Heimes wrote:
PK schrieb:
Given a checksum value, whats the best way to find out what type it is?
meaning. I can use hashlib module and compute a md5 or sha1 for a given data
etc..but given a checksum value say "d2bda52ee39249acc55a75a0f3566105" whats
the best way for me to identify i
--- On Tue, 30/6/09, Bruno Desthuilliers
wrote:
>
> Don't use '__name__', they are reserved for the
> implementation. And FWIW, don't use '__name' unless you have
> a really compelling reason to do so.
>
That was an honest mistake!. Noted :)
>
> > def search(self, **kw):
> > pri
Rhodri James wrote:
> [Trimming for length, sorry if that impacts too much on intelligibility]
no problem, one of the hazards of speech recognition uses you become very
verbose.
> This goes a long way, but it doesn't eliminate the need for some forms
> of escape coming up on a moderately frequen
I have a simple application that has a glade file and a .py file. How would
I package that into an installer for Windows, Mac, and a deb file? Can
anyone point me in the right direction?
--
http://mail.python.org/mailman/listinfo/python-list
Tim Chase wrote:
> Eric S. Johansson wrote:
>
np. I get this confusion often.
>
> While I have used SR in some testing, I've found that while it's
> passable for prose (and even that, proclamations of "95% accuracy" sound
> good until you realize how many words comprise 5% of your daily typing
>
Scott David Daniels wrote:
> fortunately, the hashlib checksums can be distinguished by their length
Unfortunately the world knows more hash algorithms than the Python
standard library. :)
Christian
--
http://mail.python.org/mailman/listinfo/python-list
On Jun 30, 2009, at 6:46 AM, venutaurus...@gmail.com wrote:
I have to write an automted script which will test my c
program. That program when run will ask for the commands.
Keep in mind that, if your test script checks the program's output
before giving it input, you can run into pro
Hello,
Regarding packaging for debian (.deb), the best reference I've found is:
https://wiki.ubuntu.com/PackagingGuide/Python
However, all that mess probably won't be needed anymore once this is finished:
https://blueprints.edge.launchpad.net/ubuntu/+spec/desktop-karmic-automagic-python-build-sys
On Jun 29, 5:22 pm, MRAB wrote:
> rhvonl...@gmail.com wrote:
> > Something's been giving me difficulty..
>
> > We have a USB-attached device that we frequently debug with simple
> > python scripts. The model has always been that each script logs on to
> > the device, does something, then logs off
Hello,
I've tried to import a script in an embedded python intrepreter but
this script fails when it imports the uuid module. I have a
segmentation fault in Py_Finalize().
Here is a simple program which imitate my problem.
main.c :
#include "Python.h"
void test() {
Py_Initialize();
Py
On Jun 30, 3:43 pm, ts wrote:
> i just install the python 3.1 dmg onto my mac. when i run python3, it
> fail with :
>
> Fatal Python error: Py_Initialize: can't initialize sys standard
> streams
> LookupError: unknown encoding:
> Abort trap
>
> couldnt understand the problem. anyone can help?
Hmm
I've tried it least two dozen editors and they all fail
miserably because they're focused on keyboard use (but
understandable)
[...snip...]
I've tried a whole bunch, like I said at least a dozen. They
all fail for first reasons such as inability to access all
functionality through keystrokes (e
Gil> I have looked for a timeout parameter to limit the 4 minutes to
Gil> something more reasonable but couldn't find one. Can anyone please
Gil> help?
Gil> BTW, I'm using Sybase.connect(, , ,
Gil> datetime='auto')
We use the Sybase module where I work, but I've never encoun
> Hi All,
>
> I'm pleased to announce a GUI package manager (v 0.12) for
> Python versions 2.x under Windows.
>
> http://sourceforge.net/projects/pythonpkgmgr/
>
> It's tightly linked to the pypi repository and offers
> the following functions:
>
> - search packages on pypi by name
>
> - install
If I have a string for a file name such that I want to find the number
of characters to the left of the dot, how can that be done?
I did it this way:
x = "text12345.txt"
dot = x.find('.')
print dot
Was curious to see what method others would use - helps me learn. I
guess I was most curious to se
Hi all,
I found a strange (for me) behaviour of inner function. If I execute
the following code:
# file in_f.py ---
def dec_f(f):
def inner_f():
if f.enabled:
f()
return inner_f
@dec_f
def funct():
print "Ciao"
funct.enabled = True
funct()
# end of file
noydb wrote:
If I have a string for a file name such that I want to find the number
of characters to the left of the dot, how can that be done?
I did it this way:
x = "text12345.txt"
dot = x.find('.')
print dot
Was curious to see what method others would use - helps me learn. I
guess I was mos
Hello all, just joined this list and am just beginning to learn Python.
Thanks to everyone for making this a great place to learn and their
contributions.
As mentioned, I'm new to Python (but have experience with other programming
languages/scripting). I have a couple of questions...
1) Where mig
En Tue, 30 Jun 2009 13:05:42 -0300, Jérôme Fuselier
escribió:
I've tried to import a script in an embedded python intrepreter but
this script fails when it imports the uuid module. I have a
segmentation fault in Py_Finalize().
#include "Python.h"
void test() {
Py_Initialize();
PyImp
I have the key pair generated by the GPG. Now I want to use the public
key for encrypting the password. I need to make a function in Python.
Can somebody guide me on how to do this …
to encrypt password by the public key ..how can i do this ,which
library is best and easy to prefer.i have to work
On Tue, Jun 30, 2009 at 1:44 PM, Francesco Bochicchio wrote:
>
[snip]
> It looks like the decorator uses an older instance of 'funct', which
> does not yet
> have the attribute dinamically attached to it. This seem to be
> confirmed by the fact that adding the attribute before
> rebinding the fu
I have been experimenting with pygame. I would like to know how to go
about placing an image of my creation as the background of the
generated window. To where should I save the image, and what should it
be saved as?
--
http://mail.python.org/mailman/listinfo/python-list
Francesco Bochicchio wrote:
def dec_f(f):
def inner_f():
if f.enabled:
f()
return inner_f
@dec_f
def funct():
print "Ciao"
The three lines above should behave a lot like:
def funct_original():
print "Ciao"
funct = dec_f(funct_original)
> funct.e
jayshree gmail.com> writes:
>
> I have the key pair generated by the GPG. Now I want to use the public
> key for encrypting the password. I need to make a function in Python.
> Can somebody guide me on how to do this …
PyCrypto
--
http://mail.python.org/mailman/listinfo/python-list
> So well, I'd like to know, do you people know any solution to this
> simple problem - making a user interact directly with a subprocess?
you might want something like Expect.
check out the pexpect module:
http://pexpect.sourceforge.net/pexpect.html
-Corey
--
http://mail.python.org/mailman/li
peter wrote:
>
>Just got a new computer and I'm trying to download my favourite
>applications. All's well until I get to PIL, and here pythonware and
>effbot both return a 502 Proxy error.
>
>Is this just a temporary glitch, or something more serious? And if
>it's the latter, is there any altern
bootkey wrote:
>
>Thanks for the reply. I wonder why the tokenizer classifies all
>operators simply as OP, instead of the various operators listed in the
>tok_name dictionary.
I imagine it's just an exercise left to the reader. It's not that hard of
an extension.
--
Tim Roberts, t...@probo.com
En Tue, 30 Jun 2009 15:02:21 -0300, kaffeen escribió:
Hello all, just joined this list and am just beginning to learn Python.
Thanks to everyone for making this a great place to learn and their
contributions.
Welcome!
As mentioned, I'm new to Python (but have experience with other
programm
I'm happy to announce that ActivePython 3.1.0.1 is now available for
download from:
http://www.activestate.com/activepython/python3/
This is a major release that updates ActivePython3 to core Python 3.1.
What is ActivePython?
-
ActivePython is ActiveState's binary dist
I do not like top posting.
Some thoughts in randon order:
Introspection is version-specific.
Call-time introspection is different from definition-time introspection.
Do what is easy and works.
Do not use recipes that depend on version-specific stuff you do not
understand.
Code objects, I believe
Hello,
I would like to propose this PEP for inclusion into Python 2.7 / 3.2
http://www.python.org/dev/peps/pep-0376/
It has been discussed a lot already in the distutils-SIG, but new
feedbacks are welcome
there's an implementation prototype here :
http://bitbucket.org/tarek/pep376/src/tip/pkgut
On Jun 24, 11:40 pm, "J. Cliff Dyer" wrote:
> Also note that you can iterate over a file several times:
>
> f = open('foo.txt')
> for line in f:
> print line[0] # prints the first character of every line
> for line in f:
> print line[1] #prints the second character of every line
>
No, yo
On Jun 30, 1:56 pm, MRAB wrote:
> noydb wrote:
> > If I have a string for a file name such that I want to find the number
> > of characters to the left of the dot, how can that be done?
>
> > I did it this way:
> > x = "text12345.txt"
> > dot = x.find('.')
> > print dot
>
> > Was curious to see wh
In Python 3, how should super() be used to invoke a method defined in C that
overrides its two superclasses A and B, in particular __init__?
class A:
def __init__(self):
print('A')
class B:
def __init__(self):
print('B')
class C(A, B):
Hello everyone,
I intend to use python for some network graph plotting, with event
handling (clicking on network nodes, zooming in/out etc..) and so far I
have come across two good candidates which are Matplotlib and Ubigraph.
Did anyone have any experience with either of them for dynamic plottin
On 26Jun2009 09:34, cgoldberg wrote:
| > Is there any module in python to open https
| > sites through a proxy.
|
| yes, you can use "urllib2".
|
| from the urllib2 docs:
| "The default is to read the list of proxies from the environment
| variables"
|
| So if you have a proxy setup, it should
On Jun 30, 12:41 pm, Tarek Ziadé wrote:
> Hello,
>
> I would like to propose this PEP for inclusion into Python 2.7 / 3.2
>
> http://www.python.org/dev/peps/pep-0376/
>
> It has been discussed a lot already in the distutils-SIG, but new
> feedbacks are welcome
>
> there's an implementation prototy
1 - 100 of 124 matches
Mail list logo