r < target < upper thing inline.
--
Cheers,
Simon B
[EMAIL PROTECTED]
http://www.brunningonline.net/simon/blog/
--
http://mail.python.org/mailman/listinfo/python-list
On 23 Feb 2007 09:03:21 -0800, Jacob Rael <[EMAIL PROTECTED]> wrote:
> I was following along with this site:
>
> http://www.brunningonline.net/simon/blog/archives/000659.html
You don't want to be messing around with that old rubbish. I should
know - I wrote it.
Instead,
On 2/28/07, Barker, CJ <[EMAIL PROTECTED]> wrote:
> Was this ever solved?
You might get more feedback about this on the Python web services list
at <https://lists.sourceforge.net/lists/listinfo/pywebsvcs-talk>.
--
Cheers,
Simon B
[EMAIL PROTECTED]
http://www.brunningonline.net/si
vcr71.ddl.
But IANAL, and neither is anyone else that I've heard discussing the
matter.
--
Cheers,
Simon B
[EMAIL PROTECTED]
http://www.brunningonline.net/simon/blog/
GTalk: simon.brunning
MSN: small_values
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I have recently moved from Windows XP to Ubuntu Gutsy.
I need a Python IDE and debugger, but have yet to find one as good as
Pyscripter for Windows. Can anyone recommend anything? What are you all
using?
Coming from a Visual Studio background, editing text files and using the
terminal to
ce, either that code isn't being covered or it
> doesn't do anything.
> from http://glu.ttono.us/articles/2006/12/19/tormenting-your-tests-with-heckle
>
> Is there anything similar for python??
Pester - <http://jester.sourceforge.net/>.
--
Cheers,
Simon B.
[EMAIL PROT
On 2007-11-08 04:21:48 +0100, [EMAIL PROTECTED] said:
> 911 carried out by evil jews and mossad
> http://www.guba.com/watch/2000991770
I'm glad it was carried out by evil jews and not by nice ones. That
rules me out.
simon
--
http://mail.python.org/mailman/listinfo/python-list
em of pigeons
>>> for communication and encoded letters, ...
>>
>> I didn't believe you until I read that part. It all makes sense now!
>> <
>
> You would learn a lot MORE if you listened to the videos whose links
> are provided.
Ah, good, we don't have to actually *watch* them ...
simon
--
http://mail.python.org/mailman/listinfo/python-list
On Nov 13, 2007 6:58 AM, John Machin <[EMAIL PROTECTED]> wrote:
> Hey Bernard, read Gordon's message carefully; he's asking about
> arrays, not lists.
Chances are a list is exactly what the OP wants.
--
Cheers,
Simon B.
[EMAIL PROTECTED]
http://www.brunningonline
Well,
I am recent Windows escapee, and was dismayed by lack of Pyscripter for
Linux.
Hold on... there is hope!
Pyscripter works great using WINE. search
http://groups.google.com/group/PyScripter?hl=en for "Linux"
Enjoy!
Paul Rudin wrote:
> jwelby <[EMAIL PROTECTED]> writes:
>
>
>
>> This
want something
to play with, steer clear.
It'll be an exception to the just-works upgrade that we've been used
to in the past, but plans are afoot to make upgrading possible.
--
Cheers,
Simon B.
[EMAIL PROTECTED]
http://www.brunningonline.net/simon/blog/
GTalk: simon.brunning | MSN
ith a
> Python version that would be nearly 10 years old already?
If the whole 3.n series is called "Python 3000", then it's very
plausible. I can see Python 3.7 or 3.8 being the latest version in
2018.
--
Cheers,
Simon B.
[EMAIL PROTECTED]
http://www.brunningonline.net/simon/bl
m = im.tostring()
t = fromstring(m, 'b')
tt = asarray(t, typecode)
# Note that ysize is first:
return reshape(tt, (ysize, xsize))
im = numpy2pil(myarray)
im.putpalette(palette_list)
im.save('myimage.png')
You'll need to import numpy and Image. You'll need to generate the
palette (juust a list) and image array (a numpy array) of course.
Simon Hibbs
--
http://mail.python.org/mailman/listinfo/python-list
there's a module for this. Those kinds of tests are
fairly easy though.
import datetime, os
filename = 'myfile.log'
if (datetime.date.today().weekday() == 0) or (os.stat(filename)[6] >
200):
do.whatever()
The individual tests would be better wrapped in utility fu
ps you mean:
http://effbot.org/zone/python-objects.htm
--
Cheers,
Simon B.
[EMAIL PROTECTED]
http://www.brunningonline.net/simon/blog/
GTalk: simon.brunning | MSN: small_values | Yahoo: smallvalues
--
http://mail.python.org/mailman/listinfo/python-list
e the source code of IDLE available so you could just
figure out what it's doing and encapsulate that in a script.
Regards,
~Simon
--
http://mail.python.org/mailman/listinfo/python-list
On Dec 10, 6:10 am, "Nikos Vergas" <[EMAIL PROTECTED]> wrote:
> > Challenge:
> > A valid response will be either a solution to the problem below, or a
> > link to some code of which you
> > are particularly proud.
>
> > Problem: In the dynamic language of your choice, write a short program
> > that
On Dec 21, 12:30 pm, Lie <[EMAIL PROTECTED]> wrote:
> Inspect the following code:
>
> --- start of code ---
> import Tkinter as Tk
> from Tkconstants import *
>
> root = Tk.Tk()
>
> e1 = Tk.Entry(root, text = 'Hello World')
> e2 = Tk.Entry(root, text = 'Hello World')
>
> e1.grid(row = 1, column = 1
the Garden of Eden.
+1. I'd like some variation of <http://tinyurl.com/gj74k> used as a logo.
--
Cheers,
Simon B,
[EMAIL PROTECTED],
http://www.brunningonline.net/simon/blog/
--
http://mail.python.org/mailman/listinfo/python-list
It doesn't think you're on an intel box, it thinks you want to compile
universal libraries, since you installed a universal python.
The problem is likely to be that you haven't installed SDK's for intel
as well as powerpc when you installed Apple's Developer Tools. Do that,
and it should work ...
Well, it seems you can do:
parser = elementtidy.TidyHTMLTreeBuilder.TidyHTMLTreeBuilder()
parser.feed(your_str)
tree = elementtree.ElementTree.ElementTree(element=parser.close())
Look at the parse() method in the ElementTree class.
--
http://mail.python.org/mailman/listinfo/python-list
f. I suggest you look at it's source.
IIRC, SOAPpy's structType has a _keys() function - so somethign like
the following (untested) might work:
struct_as_a_dict = dict((key, getattr(struct, key)) for key in struct._keys())
--
Cheers,
Simon B,
[EMAIL PROTECTED],
http://www.brunningonline.net
r. Python's syntax doesn't allow you to put multiple
> clauses on a single line. if your shell supports it, use a "here document",
> or
> embedded newlines. if not, use a script.
Or there's always this; cool in a "The Dark Side is str
2" explains how to write
Windows services and do basic networking. This article explains one
way: http://tinyurl.com/ezjx7
Simon Hibbs
--
http://mail.python.org/mailman/listinfo/python-list
On 16 May 2006 07:47:24 -0700, daniel <[EMAIL PROTECTED]> wrote:
<http://www.python.org/doc/faq/general.html#why-are-there-separate-tuple-and-list-data-types>
--
Cheers,
Simon B,
[EMAIL PROTECTED],
http://www.brunningonline.net/simon/blog/
--
http://mail.python.org/mailman/listinfo/python-list
Hi
I was wondering if there is a Python module for running GLSL (OpenGL
shader language) in OpenGL through Python.
I think that Cg is available through PyCg - most likely using PyGame for
the OpenGL.
Has anyone done this with GLSL shaders?
thanks
Simon
--
http://mail.python.org/mailman
op new
users of python from writing too obfuscated code.
wow.
Simon.
--
http://mail.python.org/mailman/listinfo/python-list
On 18 May 2006 22:50:24 -0700, softwindow <[EMAIL PROTECTED]> wrote:
> the re module is too large and difficult to study
>
> i need a detaild introduction.
<http://gnosis.cx/publish/programming/regular_expressions.html>
--
Cheers,
Simon B,
[EMAIL PROTECTED],
http://www.bru
On 22 May 2006 04:53:34 -0700, python <[EMAIL PROTECTED]> wrote:
> it prompt: invalid command 'py2exe'.
> I have import py2exe in setup.py file.
Can you show us your setup.py file, the exact command that you typed,
and the exact error message that you are getting?
--
C
r your technical query, take a look at
Mechanize - <http://wwwsearch.sourceforge.net/mechanize/>.
--
Cheers,
Simon B,
[EMAIL PROTECTED],
http://www.brunningonline.net/simon/blog/
--
http://mail.python.org/mailman/listinfo/python-list
You can gain substantial speed-ups in very certain cases, but the main
point of Pyrex is ease of wrapping, not of speeding-up.
Depending on what you're doing, rewriting in Pyrex or even in C, using
the Python/C API directly, might not gain you much.
--
http://mail.python.org/mailman/listinfo/pyt
in range(128)
How can I tell Python "I know this says it's a unicode string, but I
need you to treat it like a bytestring"?
Thanks,
Simon Willison
--
http://mail.python.org/mailman/listinfo/python-list
Hi
I am new to python (fairly) but can't stop pythonning.
c++ seems so far away now from here it looks like a horrid scribble :)
Anyway my question is really about doc tools. I've been used to
doxygen in c++ land, and although it makes a reasonable stab with a
python project in java mo
Hi,
Just curious... What are the implications of a class member calling:
del self
is that what the __del__ method calls anyway?
Thanks
Simon
--
Linux user #458601 - http://counter.li.org.
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
The term 'hashable'.
Am I right in thinking it means it can be indexed? like a string or a dict?
Thanks
Si
--
Linux user #458601 - http://counter.li.org.
--
http://mail.python.org/mailman/listinfo/python-list
Hi
Can anyone suggest a really simple XML reader for python? I just want to
be able to do something like this:
xmlDoc = xml.open("file.xml")
element = xmlDoc.GetElement("foo/bar")
... to read the value of:
42
Thanks
Simon
--
Linux user #458601 - http://counter
Hi,
Is is possible to access the refcount for an object?
Ideally, I am looking to see if I have a refcount of 1 before calling del
Thanks
Simon
--
Linux Counter: User# 424693
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I have a stackless python app, using twisted in parts (.internet and
.adbapi).
I need a little help getting pythonic after years of c++ hell.
I'd like to use a system of events and observers, like c++ boost.signal.
I'd like to be able to subscribe multiple callbacks to a single function
a
ust
rebuilt python to see if I had messed it up somehow, but the problem
persists.
Thanks for your advice.
Simon
--
http://mail.python.org/mailman/listinfo/python-list
://tinyurl.com/22q6cb
Not sure if something that ugly counts as a reason for keeping them
around, though!
--
Cheers,
Simon B.
[EMAIL PROTECTED]
http://www.brunningonline.net/simon/blog/
GTalk: simon.brunning | MSN: small_values | Yahoo: smallvalues
--
http://mail.python.org/mailman/listinfo/python-list
or to perform the delete.
However, this doesn't trigger my overloaded __del__ destructor. Can I
simply rely on the python garbage collector to take it from here?
Is there a way to find how many references exist for an object?
Thanks
Simon
--
Linux user #458601 - http://counter.li.org.
Ken wrote:
> What is your __del__ method doing?
>
Actually, nothing but printing a message when the object is deleted,
just morbid curiosity.
I've yet to see one of the destructor messages, tho
>
> from sys import getrefcount
> print getrefcount(x)
>
>
On Thu, Feb 21, 2008 at 1:20 PM, Tim van der Leeuw <[EMAIL PROTECTED]> wrote:
> I'm looking for ways to send keypresses to another application on Windows
> XP, and to set values of Windows Controls (all of them text-boxes).
Try <http://pywinauto.openqa.org/>.
--
gt;
> Now I want to [en/dis]able those options. Can I ask the text to notify
> me when the modified flag changes?
yes! check out http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/464635
HTH,
~Simon
> Can I set the statuses when the
> user clicks File, before the options are d
ing sines, but this resulted in
too much red and blue, and no indigo/violet.
Any suggestions? I'm searching on the web now but not coming up with
much, so I thought I'd ask here.
TIA,
~Simon
Here's the sinecode I tried:
def g(n):
'''
map sine [-1.0 .. 1.0
effect.
>
> --
> Andrew McNamara, Senior Developer, Object Crafthttp://www.object-craft.com.au/
Hey thank you very much, that worked like a charm! :]
There's even a library function in the colorsys module (http://
docs.python.org/lib/module-colorsys.html)
Cheers,
~Simon
--
http://mail.python.org/mailman/listinfo/python-list
; > anyone that has a program that will do this?
>
> Not offhand, but you can look at the ftpmirror.py script for
> inspiration.
> It should be in your Tools/scripts/ subdirectory of your Python
> installation.
This might be of use:
<http://ftputil.sschwarze
On Fri, Mar 7, 2008 at 4:31 PM, K Viltersten <[EMAIL PROTECTED]> wrote:
>
> 1. When writing English, Strunk and
> White apply.
I apply Fowler, PEP 8 be damned. ;-)
--
Cheers,
Simon B.
[EMAIL PROTECTED]
http://www.brunningonline.net/simon/blog/
--
http://mail.python.org/m
On Mon, Mar 10, 2008 at 5:20 PM, davidj411 <[EMAIL PROTECTED]> wrote:
> why does this occur when using the python windows extensions?
There's nothing Windows specific about this - it just means that you
have unicode strings. See
<http://effbot.org/zone/unicode-objects.htm>,
ttr(self, 'chips'): print 'got chips!'
...
>>> spam = Spam()
>>> spam.egg()
>>> spam.chips = 'beans'
>>> spam.egg()
got chips!
--
Cheers,
Simon B.
[EMAIL PROTECTED]
http://www.brunningonline.net/simon/blog/
--
http://mail.python.org/mailman/listinfo/python-list
c) 2000 BeOpen.com.\nAll Rights Reserved.\n
\nCopyright (c) 1995-2001 Corporation for National Research
Initiatives.\nAll Rights Reserved.\n\nCopyright (c) 1991-1995
Stichting Mathematisch Centrum, Amsterdam.\nAll Rights Reserved.'
HTH,
~Simon
--
http://mail.python.org/mailman/listinfo/python-list
Is there a more efficient way to do this?
def f(L):
'''Return a set of the items that occur more than once in L.'''
L = list(L)
for item in set(L):
L.remove(item)
return set(L)
|>> f([0, 0, 1, 1, 2, 2, 3])
set([0, 1, 2])
--
http://mail.python.org/mailman/listinfo/pyth
I love you guys, thanks! ;-)
~Simon
--
http://mail.python.org/mailman/listinfo/python-list
o late to fight
it.
> Does anyone have any recommended net casts on Python, or programming in
> general?
>
> Whats everyone listening to?
Python411: <http://www.awaretek.com/python/index.xml>
This Week in Django: <http://media.djangonetcasts.com/twid_mp3.xml>
Plus a
On Wed, Mar 19, 2008 at 7:43 AM, Deepak Rokade <[EMAIL PROTECTED]> wrote:
> If jobs to be processed by threds is I/O bound would multithreading help
> python to improve speed of application ?
Probably, yes.
--
Cheers,
Simon B.
[EMAIL PROTECTED]
http://www.brunningonline.net/simon/bl
to the original list. See
<http://effbot.org/zone/python-objects.htm>.
I'd rewrite that as (untested):
def renamefiles(self, extn):
self.origlist = list((x + "." + extn) for x in self.origlist)
or
def renamefiles(self, extn):
self.origlist = list((&qu
On Thu, Mar 20, 2008 at 4:12 PM, Bhagwat Kolde <[EMAIL PROTECTED]> wrote:
> Hi,
> I am new to the python and not getting meaning of following line,
>
> if __name__ == '__main__':
> main()
<http://www.python.org/doc/faq/programming/#how-do-i-find-the-current
ering to "port" Tkinter to Python 3.0, I
hadn't noticed that there was any discussion of removing it. It would
be a shame IMHO. Sure it has warts, but it /works/ and good for quick
and dirty GUIs as well as elaborate (even totally visually customized)
fancy applications.
~Simon
--
http://mail.python.org/mailman/listinfo/python-list
rofessional kitchen as "a left-over warming
> room".
+1 QOTW.
--
Cheers,
Simon B.
[EMAIL PROTECTED]
http://www.brunningonline.net/simon/blog/
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, Mar 27, 2008 at 4:13 PM, <[EMAIL PROTECTED]> wrote:
> My dynamic code failed at this site http://playwide1.extra.hu/, need
> some help thank you.
<http://catb.org/~esr/faqs/smart-questions.html>
--
Cheers,
Simon B.
[EMAIL PROTECTED]
http://www.brunningonline.net
ent solution in a day
or so, like with Beautiful Soup or something, but I'd much rather re-
use someone else's work if I can. I'm pretty sure this falls into the
category of "someone else has had, and solved, this problem before."
Any recommendations?
Thanks in advance,
On Jan 11, 1:22 pm, "Madhusudan.C.S" wrote:
> I am sorry all I am not here to just blame Python. This is just an
> introspection of whether
> what I believe is right. Being a devotee of Python from past 2 years I
> have been writing only
> small apps and singing praises about Python where ever I
he important areas that the more introductory books rightly
leave out,
--
Cheers,
Simon B.
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 18, 8:40 am, Stefan Behnel wrote:
> Simon Forman wrote:
> > I want to take a webpage, find all URLs (links, img src, etc.) and
> > rewrite them in-place, and I'd like to do it in python (pure python
> > preferred.)
>
> lxml.html has functions specifi
2009/1/20 Hussein B :
> Hey,
> I'm trying to get the get the date before today, I tried this:
> d = datetime.now() - timedelta(days = -1)
> But I got the date of tomorrow.
That's because you are taking away a negative value. This is like doing:
>>> 0 - (-1)
2009/1/30 Alaric Haag :
> So, is the "secret" that the period is syntactically an "operator" like
> + or * ?
Exactly that: <http://users.rcn.com/python/download/Descriptor.htm>.
Sh!
--
Cheers,
Simon B.
--
http://mail.python.org/mailman/listinfo/python-list
anything magic with filenames, so this must be some
sort of a fileysytem oddity, I think.
--
Cheers,
Simon B.
--
http://mail.python.org/mailman/listinfo/python-list
Hi All
I'm writing a script to help with analyzing log files timestamps and have a
very specific question on which I'm momentarily stumped
I'd like the script to support multiple log file types, so allow a strftime
format to be passed in as a cli switch (default is %Y-%m-%d %H:%M:%S).
When i
2009/2/3 Diez B. Roggisch :
> Use the java API of java.util.
Or better still, use Joda.
--
Cheers,
Simon B.
--
http://mail.python.org/mailman/listinfo/python-list
on/javaclass.html> might be of help.
--
Cheers,
Simon B.
--
http://mail.python.org/mailman/listinfo/python-list
an't follow how to install it without a .mpkg file. Any help
> would be really appreciated.
AFAIK there's no Python 3.0 installer for the Mac. You'll have to
build it yourself - see <http://tinyurl.com/6zkem7>.
--
Cheers,
Simon B.
--
http://mail.python.org/mailman/listinfo/python-list
n the .args
> attribute to find the extra data. you could then find the extra data
> in the original string, use the index to remove it, and re-parse the
> time.
>
> ugly, but should work.
> andrew
> --
> http://mail.python.org/mailman/listinfo/python-list
>
--
Si
h.py", line 35, in
main()
File "./test_fh.py", line 26, in main
T = TestParse()
File "./test_fh.py", line 8, in __init__
self.scan_data(sys.stdin)
File "./test_fh.py", line 18, in scan_data
for line in fileobject:
KeyboardInterrupt
# echo $?
1
So, what am I doing wrong?
Thanks in advance
SM
--
Simon Mullis
_
si...@mullis.co.uk
--
http://mail.python.org/mailman/listinfo/python-list
Hi Chris
2009/2/5 Chris Rebert
>
> I'd add some print()s in the above loop (and also the 'for f in files'
> loop) to make sure the part of the code you didn't want to share ("do
> stuff with the line") works correctly, and that nothing is improperly
> looping in some unexpected way.
The point is
Forget it all... I was being very very daft!
The "default = 'False'" in the options for stdin was not being
evaluated as I thought, so the script was waiting for stdin even when
there was the glob switch was used...No stdin equals the script
seeming to "hang".
Ah well.
SM
--
http://mail.python.o
Last try at getting the indenting to appear correctly..
#!/usr/bin/env python
import glob, os, sys
class TestParse(object):
def __init__(self):
if options.stdin:
self.scan_data(sys.stdin)
if options.glob:
self.files = glob.glob(options.glob)
t has to offer,
with full native support for MacOS X, Linux and Windows.
The only fly in the ointment in licensing. The QT toolkit will be
fully GPL and LGPL from version 4.4, but PyQT itself has a dual GPL/
commercial licensing structure. Still, it's relatively cheap and well
worth it
iving is always a last resort.
--
Cheers,
Simon B.
si...@brunningonline.net
--
http://mail.python.org/mailman/listinfo/python-list
,
give it up. For automating Word, COM (with Mark Hammond's excellent
Python/COM bridge) is the only way to go.
--
Cheers,
Simon B.
si...@brunningonline.net
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 3, 8:39 am, koranth...@gmail.com wrote:
> I was going through Python posts and this post caught my
> attentionhttp://groups.google.com/group/comp.lang.python/browse_thread/thread/...
>
>
> You have missed an important point. A well designed application does
> neither create so many threa
On Jan 3, 11:20 am, Kless wrote:
> On 3 ene, 19:12, "Diez B. Roggisch" wrote:
>
> > Kless schrieb:
>
> > > How is possible that I can print a variable, but when I use *return
> > > var* it returns an empty string
>
> > >http://paste.pocoo.org/show/97588/
>
> > I don't see anything that indicates
2009/1/3 Kless :
> How is possible that I can print a variable, but when I use *return
> var* it returns an empty string
What makes you think it's returning an empty string? You aren't doing
anything with the return value in line 26 of your example.
--
Cheers,
Simon B.
--
http:/
to being able to compile Python software for
Windows under Wine (using for example, py2exe) it would make my life a
lot easier.
Schiavo
Simon
--
http://mail.python.org/mailman/listinfo/python-list
k is the best way to do this? I have a few ideas but I'm sure
> there is a "best" way to go about this.
http://edit.kamaelia.org/ might be qworth a look.
--
Cheers,
Simon B.
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
/data/")
import nltk
This doesn't work, although running "export NLTK_DATA=/opt/nltk/data/"
on the command line before running the program works. Why?
Simon
--
http://mail.python.org/mailman/listinfo/python-list
On 22 Okt., 13:24, "James Mills" <[EMAIL PROTECTED]> wrote:
> On Wed, Oct 22, 2008 at 9:19 PM, Simon Strobl <[EMAIL PROTECTED]> wrote:
> > #!/usr/bin/
> > python
>
> > import os
>
> > os.system("export NLTK_DATA=/opt/nltk/data/")
>
2008/10/28 Shannon Mayne <[EMAIL PROTECTED]>:
> I would like to ask how one might obtain the assigned name of an
> assigned object as a string.
That's in the FAQ: <http://tinyurl.com/3xkeac>.
--
Cheers,
Simon B.
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
in the second version but
succeeds in the first.
Thanks, Simon
--
http://mail.python.org/mailman/listinfo/python-list
e "", line 1
import 1foo
^
SyntaxError: invalid syntax
Is this just me, or has anyone else run into it? Is it a known bug?
(If so, I can't find it on a bug tracker or in any Google searches).
It's a bit annoying, as I have an enforced naming scheme. Any way
r
Forgot to mention: I'm on Python 2.5.2, on Ubuntu 8.10.
Simon
--
http://mail.python.org/mailman/listinfo/python-list
Many thanks to all for explanations. I'm going to take everyone's
advice and ignore the naming scheme (especially as, on rereading, the
naming scheme is apparently only mandatory if you're using C or Maple,
for some reason).
Thanks again.
Simon
(For those interested:
> Do
ddition to the electronic submission) has
to contain printed listings of all your programs.
Thanks again.
Simon
--
http://mail.python.org/mailman/listinfo/python-list
dData(win32clipboard.CF_BITMAP, img)
It fails, telling be that "The object must support the buffer
interface".
How can I convert a PIL image into a buffer object? I can't find any
clues.
Help appreciated,
Simon Hibbs
--
http://mail.python.org/mailman/listinfo/python-list
On 1 Apr, 21:43, Gary Herron wrote:
> Simon Hibbs wrote:
> > I'm trying to dump a snapshot of my application window to the
> > clipboard. I can use ImageGrab in PIL to get the screen data into a
> > PIL image object, which i have converted to a bitmap using ImageWin,
On 2 Apr, 08:28, "Diez B. Roggisch" wrote:
> Simon Hibbs schrieb:
>
>
>
> > On 1 Apr, 21:43, Gary Herron wrote:
> >> Simon Hibbs wrote:
> >>> I'm trying to dump a snapshot of my application window to the
> >>> clipboard. I can
he COM browser, but don't appear in the
generated interface file.
- I'm running 32bit python 2.6 and pywin32 build 213, on Vista 64.
Any help much appreciated.
Thanks!
Simon
--
http://mail.python.org/mailman/listinfo/python-list
Doh!
Ta.
Simon
"John Machin" wrote in message
news:023fcc82-6e98-4ddd-9977-06d95ab44...@c18g2000prh.googlegroups.com...
On Apr 21, 7:37 pm, "Simon Carter" wrote:
Hullo! I'm having a problem interfacing with a proprietary COM library on
Windows, and I was hoping s
se 1. The api is already widely used and 2. I would
> like to keep the complexity of the api to a bare minimum.
Why not return a proxy, and have the proxy do the retrieval of the
needed data if it's used? Delegation is ridiculously easy in Python.
--
Cheers,
Simon B.
--
http://mail.python.org/mailman/listinfo/python-list
f._decoder.decode(input_chunk, eof))
File "/usr/lib64/python3.0/codecs.py", line 300, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 0-1:
invalid data
Simon
--
http://mail.python.org/mailman/listinfo/python-list
f._decoder.decode(input_chunk, eof))
File "/usr/lib64/python3.0/codecs.py", line 300, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 0-3:
invalid data
Simon
--
http://mail.python.org/mailman/listinfo/python-list
1101 - 1200 of 1585 matches
Mail list logo