On Tuesday, 7 April 2015 15:43:44 UTC-7, kai.p...@gmail.com wrote:
> I just wrote this bit (coming from Pascal) and am wondering how seasoned
> Python programmers would have done the same? Anything terribly non-python?
>
> As always, thanks for all input.
>
> K
>
>
>
> """
> Creates a PNG i
I just wrote this bit (coming from Pascal) and am wondering how seasoned Python
programmers would have done the same? Anything terribly non-python?
As always, thanks for all input.
K
"""
Creates a PNG image from EPD file
"""
import os, sys
from PIL import Image, ImageFont, ImageDraw
#
Last week some readers have kindly supplied ideas and code for a question I had
asked around a form of image data compression required for specialized display
hardware.
I was able to solve my issues for all but one:
The black & white only device (1024 (X) x 1280 (Y)) expects the compressed dat
gt; This gives me 1228800 instead of the expected 1310720 (1024 * 1280)
> - any ideas what I am missing?
Please disregard - typo after a long night :(
>
> As always, any help much appreciated.
>
> Kai
--
https://mail.python.org/mailman/listinfo/python-list
help much appreciated.
Kai
--
https://mail.python.org/mailman/listinfo/python-list
On Wednesday, 25 March 2015 18:10:00 UTC-7, Paul Rubin wrote:
> nobody writes:
> > I though that the bytes type is Python 3 only? If so, I cannot use it.
>
> In Python 2, the regular string type (str) is a byte vector, though it
> is immutable. Do you send one scan line at a time to the renderin
gant solution is. Any suggestions?
>
> Thanks for all input,
> Kai
I though that the bytes type is Python 3 only? If so, I cannot use it.
Using PILLOW, I am generating images from text and these are then sent to a
black & white image rendering device which expects 8 one bit pixe
gant solution is. Any suggestions?
>
> Thanks for all input,
> Kai
The list comes from PILLOW:
getdata #
im.getdata() => sequence
Returns the contents of an image as a sequence object containing pixel values.
The sequence object is flattened, so that values for line one follow di
On Tuesday, 24 March 2015 21:20:11 UTC-7, Chris Angelico wrote:
> On Wed, Mar 25, 2015 at 3:04 PM, Paul Rubin wrote:
> > This works for me in Python 2.7 but I think
> > Python 3 gratuitously broke tuple unpacking so it won't work there:
> >
> >
On Tuesday, 24 March 2015 21:04:37 UTC-7, Paul Rubin wrote:
> nobody writes:
> > I have a list containing 9600 integer elements - each integer is
> > either 0 or 1.
>
> Is that a homework problem? This works for me in Python 2.7 but I think
> Python 3 gratuitously broke tuple unpacking so it won
On Tuesday, 24 March 2015 13:15:42 UTC-7, Ian wrote:
> On Tue, Mar 24, 2015 at 1:52 PM, Kai wrote:
> > Judging from the message archive, the image-sig list is (just about) dead?
> >
> > Disclaimer: Am a newbie - so anything is possible
> >
> >
> >
\lib\site-packages\PIL\Image.py", line 2015, in new
return Image()._new(core.fill(mode, size, color))
TypeError: an integer is required
The docs say that '1' and 'L' are supported - something broken? Something I do
not understand?
Thanks for any pointers,
Kai
--
https://mail.python.org/mailman/listinfo/python-list
> >> > Given
> >> >
> >> > data =
> >> > '{[][]}'
> >> >
> >> > How can I efficiently get dictionaries for each of the data blocks
> >> > framed by <> ?
> >> >
> >> > Thanks for any help
> >>
> >> The question here is: What _can't_ happen? For instance, what happens
> >> if Fred's name contains
> > Given
> >
> > data =
> > '{[][]}'
> >
> > How can I efficiently get dictionaries for each of the data blocks framed
> > by <> ?
> >
> > Thanks for any help
>
> The question here is: What _can't_ happen? For instance, what happens
> if Fred's name contains a greater-than symbol, or a caret?
Given
data = '{[][]}'
How can I efficiently get dictionaries for each of the data blocks framed by <>
?
Thanks for any help
KP
--
https://mail.python.org/mailman/listinfo/python-list
en I found the problem, and indeed, this small bug has bothered
me for a whole day.
Thanks again for your help. I would probably spend hours and days before
even think about trying newer version tk. :)
Best,
Kai
On Wed, May 21, 2014 at 1:55 PM, Kai Song wrote:
> Hi Terry,
>
> Th
ow I set up these systems differently, but I am worried
that there are other non-tk/python related issues... I am just curious if
there are other ways to debug this other than python gdb?
Thanks again for your help!
Kai
--
Kai Song
1.510.495.2180
1 Cyclotron Rd. Berkeley, CA94720, MS-50
est() will bring up an
empty window, but it will then fail without any actual error message. I
think it's when it tries to create buttons. I tried to use python gdb to
debug through the code, but It's hard to pin point the problem.
Here is the output:
[kai@localhost ~ ]$ python
Python 2.6.6
Hello Dear All:
I would like to write some simple python test code with ACL(Access Control
List) functions.
Now simply I aim to use MAC address as ACL parameters, is there any good ACL
open source recommended for using?
Simple one is better.
Any tips or suggestions welcomed and appreciated.
Sorry for the misarrangement of my code in list, it happens everytime.
I apologized.
From: waitmefore...@hotmail.com
To: python-list@python.org
Subject: python2.7 kill thread and find thread id
Date: Wed, 4 Jan 2012 14:10:46 +0800
Hello,guys!!
I am using python2.7 to write a simple thread
Hello,guys!!
I am using python2.7 to write a simple thread program which print the current
running thread id
and kill it with this id.
But I have some questions with this.
My code: -from threading
import Threadclass t(Thread): def __init__(
x27;s fucking spam. Please remove this crap.
kthxbye
Kai
--
http://mail.python.org/mailman/listinfo/python-list
> To: python-list@python.org
> From: li...@cheimes.de
> Subject: Re: Localhost client-server simple ssl socket test program problems
> Date: Thu, 15 Dec 2011 20:45:43 +0100
>
> Am 15.12.2011 20:09, schrieb Yang Chun-Kai:
> > Server side error:
> >
&g
hanks.
Kay
> To: python-list@python.org
> From: li...@cheimes.de
> Subject: Re: Localhost client-server simple ssl socket test program problems
> Date: Thu, 15 Dec 2011 21:19:14 +0100
>
> Am 15.12.2011 21:09, schrieb Yang Chun-Kai:
> > Thanks for tips.
> >
>
calhost client-server simple ssl socket test program problems
> Date: Thu, 15 Dec 2011 20:45:43 +0100
>
> Am 15.12.2011 20:09, schrieb Yang Chun-Kai:
> > Server side error:
> >
> > File "views.py", line 17, in
> > connstream = ssl.wrap_socket(newsocket, ser
Hello,everyone!!
I am writing a simple ssl client-server test program on my personal laptop.
And I encounter some problems with my simple programs.
Please give me some
helps.---
Hi,
I'm happy to announce the release of LFS 0.6 beta 1.
LFS is an online shop based on Django and jQuery.
If you want to read more information please refer to:
http://www.getlfs.com/released-06-beta-1
Thanks
Kai
--
http://mail.python.org/mailman/listinfo/python-list
On 2010-10-13 23:36:31 +0200, Robert H said:
Since the new IDE from Jetbrains is out I was wondering if "you" are
using it and what "you" think about it.
It sucks.
http://regebro.wordpress.com/2010/10/14/python-ide-code-completion-test
Kai
--
http://mail.python.org/mai
://bitbucket.org/diefenbach/django-lfc
- Google Group: http://groups.google.com/group/django-lfc
- Twitter: http://twitter.com/lfcproject
- IRC: irc://irc.freenode.net/django-lfc
Any suggestions are highly appreciated.
Thanks
Kai
--
http://mail.python.org/mailman/listinfo/python-list
x27;t want to indent a string so it starts at column 4. You
simply want to indent the string by four spaces. Like in PEP 8:
/Use 4 spaces per indentation level./
>0123456789
>spam
And of course your text editor will number the columns beginning with
one, so the string starts at co
he string by four spaces. Like in PEP 8:
/Use 4 spaces per indentation level./
> 0123456789
> spam
And of course your text editor will number the columns beginning with
one, so the string starts at column 5.
123456789
spam
--
Kai Borgolte, Bonn
--
http://mail.python.org/mailman/listinfo/python-list
** [Python/Python-ast.c] Error 127
Thank you so much!!!
It compiles now.
Kai
>
> > /usr/bin/env deos exist
>
> > Can anyone help me with this?
>
> It's probably rather that "python" does not exist on the path,
> which asdl_c.py requires.
>
> touc
Hi All,
When I run make after successively running ./configure, I got the
following Error message:
./Parser/asdl_c.py -c ./Python ./Parser/Python.asdl
/usr/bin/env: No such file or directory
make: *** [Python/Python-ast.c] Error 127
/usr/bin/env deos exist
Can anyone help me with this?
Kai
Hi,
I'm pleased to announce that there is new demo shop for LFS:
http://demo.getlfs.com
LFS is an online shop based on Django and distributed under the BSD-
License
For more information please visit http://www.getlfs.com, subscribe to
our feed http://www.getlfs.com/feeds/news or follow us on Tw
On 13 Apr., 19:51, "Martin v. Löwis" wrote:
> On the receiving side, you also need to set the IPV6_JOIN_GROUP
> socket option - else your kernel doesn't know you are interested in
> packets for that address. You need to bind to the multicast port,
> and optionally to the multicast address.
If I d
I am trying to send and receive packages via an ipv6 multicast. But I
can't get it working. What I thought was, that on the listener site, I
just need to bind my socket to the interfaces ipv6 local link address
and on the sender site, to the multicast address (in my case ff02::).
That doesn't work
('256s', ifname[:15])
)[20:24])
which works great. But i am not enough into python to port that to
ipv6. It has to work under linux only. Any help is appreciated.
Greets,
Kai
--
http://mail.python.org/mailman/listinfo/python-list
Does this mean terminated threads will automatically release all
resouce?
--
http://mail.python.org/mailman/listinfo/python-list
ks.Application")
>>> ob
Why are the object mod is None and the object ob is instead >?
Any bright ideas as to what's going wrong here?
Thanks for your hints, Kai
--
http://mail.python.org/mailman/listinfo/python-list
Hi Steven,
On 7/26/07, Steven D'Aprano <[EMAIL PROTECTED]> wrote:
> On Thu, 26 Jul 2007 03:33:20 +0200, Kai Kuehne wrote:
> Try this:
>
> magnolia.bookmarks_find(**d)
This works perfectly, thank you guys.
Kai
--
http://mail.python.org/mailman/listinfo/python-list
27;user', 'from': vorgestern}
>>> magnolia.bookmarks_find(d)
: bookmarks_find() takes exactly 1
argument (2 given)
I'm out of ideas so help is greatly appreciated!
Thanks
Kai
--
http://mail.python.org/mailman/listinfo/python-list
Greetings
Kai
delicious-0.2.5-401.patch
Description: Binary data
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
how can I determine the architecture (32 or 64bit) with python 2.2 on
Windows or Unix (AIX, Solaris) OS, without the modul platform?
Thanks for your hints, Kai
--
http://mail.python.org/mailman/listinfo/python-list
t set the variables in this time.
I think I need a little regular expression code snippet, but I have
not work with regular expression before.
Thanks for your help, Kai.
--
http://mail.python.org/mailman/listinfo/python-list
port stat
stat_info = os.lstat(myfile)
owner = "%-8s" % stat_info.st_uid
group = "%-8s" % stat_info.st_gid
I get 0 for owner and group.
Thanks for your hints, Kai
--
http://mail.python.org/mailman/listinfo/python-list
Hi list!
It is possible to overwrite only one function with the property-function?
x = property(getx, setx, delx, 'doc')
I just want to overwrite setx, but when I set the others to None,
I can't read and del the member. Any ideas or is this not possible?
Thank yo
opying the file?
Is it a samba configuration?
Thank' for your hints, Kai
--
http://mail.python.org/mailman/listinfo/python-list
>
> Although now I Google a little more, it looks like AddressEntryFilter
> might well do what you want. Worth a look, anyway :)
>
> TJG
Big Thx for your answer. I found some infos about the
AddressEntryFilter. Its that what i was searching for, BUT
its very limited it cant search for the las
python.
Kai Mayfarth
--
http://mail.python.org/mailman/listinfo/python-list
Roy Smith wrote:
> Kai Grossjohann <[EMAIL PROTECTED]> wrote:
>> I wrote a test case that depends on a certain file existing in the
>> environment.
>
> In theory, unit tests should not depend on any external factors, but
> we all know the difference between theory a
I wrote a test case that depends on a certain file existing in the
environment. So, I guess I should test that the file exists in the
setUp method. But what if it doesn't exist? How do I fail in that case?
I would like to emit an error message explaining what is wrong.
tia,
Kai
--
Hello,
I use the ConfigPaserver from Python.
how can I use/save/read values with ";" (start comment) and the value
blank?
When I write (set) my config file often the part behind the ";"
disappears.
e.g.
myKey = startMyValue ; endMyValue
Thank's for
Hello,
how can I use/save/read values with ";" (start comment) and the value
blank?
When I write (set) my config file often the part behind the ";"
disappears.
e.g.
myKey = startMyValue ; endMyValue
Thank's for your hints, Kai
--
http://mail.python.org/mailman/listinfo/python-list
sorry, my posting was crazy
--
http://mail.python.org/mailman/listinfo/python-list
dircache.listdir() work different?
Can I change in my modules dircache.listdir() with os.listdir() without
problems. I want to use the re-read functionality.
Thanks for your hints, Kai.
--
http://mail.python.org/mailman/listinfo/python-list
dircache.listdir() work different?
Can I change in my modules dircache.listdir() with os.listdir() without
problems. I want to use the re-read functionality.
Thanks for your hints, Kai.
--
http://mail.python.org/mailman/listinfo/python-list
dircache.listdir() work different?
Can I change in my modules dircache.listdir() with os.listdir() without
problems. I want to use the re-read functionality.
Thanks for your hints, Kai.
--
http://mail.python.org/mailman/listinfo/python-list
dircache.listdir() work different?
Can I change in my modules dircache.listdir() with os.listdir() without
problems. I want to use the re-read functionality.
Thanks for your hints, Kai.
--
http://mail.python.org/mailman/listinfo/python-list
The Debian stable package tree has only libapache2-mod-python2.3 (3.1.3-3).
You can look at http://packages.debian.org/stable/python/ for a detailed
list.
If you really want to use python2.4 you can either try to use the ubuntu
package
(http://packages.ubuntu.org.cn/breezy/python/libapache2-mo
remember to call QDialog.accept() at the end.
def accept( self ):
self.showListViewItems()
QDialog.accept( self )
Kai Teuber
--
http://mail.python.org/mailman/listinfo/python-list
some tips how to install the 2.4 sources perfectly that
everything is running on a red hat enterprise system??
Best regards
Kai Strempel
--
DSL-Aktion wegen großer Nachfrage bis 28.2.2006 verlängert:
GMX DSL-Flatrate 1 Jahr kostenlos* http://www.gmx.net/de/go/dsl
--
http://mail.python.o
Cathy Hui wrote:
> Do u know why do i get the following message
error: command 'gcc' failed with exit status 1
yes:
error: command 'gcc' failed with exit status 1
means: there's no compiler gcc ...
kai
when trying to build the
> MySql-Python (1.2.0) on my
62 matches
Mail list logo