LFS 0.6 beta 1 released

2011-11-21 Thread Kai
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

[ConfigParser] value with ; and the value blank

2006-05-05 Thread kai
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

ConfigParser: values with ";" and the value blank

2006-05-05 Thread 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

dircache.listdir() or os.listdir()

2006-04-11 Thread kai
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() or os.listdir()

2006-04-11 Thread kai
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() or os.listdir()

2006-04-11 Thread kai
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() or os.listdir()

2006-04-11 Thread kai
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

Re: dircache.listdir() or os.listdir()

2006-04-11 Thread kai
sorry, my posting was crazy -- http://mail.python.org/mailman/listinfo/python-list

Build problem on Solaris 9

2009-06-15 Thread kai
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

Re: Build problem on Solaris 9

2009-06-16 Thread kai
** [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

Re: Installing MySQL-Python

2005-06-22 Thread kai festersen
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

Noob Parsing question

2015-02-17 Thread kai . peters
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

Re: Noob Parsing question

2015-02-17 Thread kai . peters
> > 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?

Re: Noob Parsing question

2015-02-18 Thread kai . peters
> >> > 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

tkinter errors out without clear message

2014-05-21 Thread Kai Song
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

Re: tkinter errors out without clear message

2014-05-21 Thread Kai Song
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

Re: tkinter errors out without clear message

2014-05-21 Thread Kai Song
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

Pillow bug?

2015-03-24 Thread kai . peters
\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

Re: Pillow bug?

2015-03-24 Thread kai . peters
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 > > > > > >

Re: Newbie looking for elegant solution

2015-03-24 Thread kai . peters
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

Re: Newbie looking for elegant solution

2015-03-24 Thread kai . peters
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: > > > >

Re: Newbie looking for elegant solution

2015-03-25 Thread kai . peters
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

Re: Newbie looking for elegant solution

2015-03-25 Thread kai . peters
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

Re: Newbie looking for elegant solution

2015-03-25 Thread kai . peters
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

PIL(LOW) - What am I missing?

2015-03-25 Thread kai . peters
help much appreciated. Kai -- https://mail.python.org/mailman/listinfo/python-list

Re: PIL(LOW) - What am I missing?

2015-03-25 Thread kai . peters
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

Image rotation issue

2015-03-30 Thread kai . peters
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

Code critique please

2015-04-07 Thread kai . peters
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 #

Re: Code critique please

2015-04-07 Thread kai . peters
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

Re: Spamming PyPI with stupid packages

2012-01-02 Thread Kai Diefenbach
x27;s fucking spam. Please remove this crap. kthxbye Kai -- http://mail.python.org/mailman/listinfo/python-list

Red Hat Enterprise Edition and Python 2.4 sources

2006-01-03 Thread Kai Strempel
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

a Pywin Outlook adress Book Question

2006-09-05 Thread Kai Mayfarth
python. Kai Mayfarth -- http://mail.python.org/mailman/listinfo/python-list

Re: a Pywin Outlook adress Book Question

2006-09-06 Thread Kai Mayfarth
> > 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

os.access(file, os.R_OK) on UNIX and WINDOWS

2006-09-13 Thread kai rosenthal
opying the file? Is it a samba configuration? Thank' for your hints, Kai -- http://mail.python.org/mailman/listinfo/python-list

Overwrite only one function with property()

2006-11-18 Thread Kai Kuehne
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

Windows: get owner and group of a file

2006-12-06 Thread kai rosenthal
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

Re: PyQT: QDialog and QMainWindow interacting with each other

2006-02-28 Thread Kai Teuber
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

determine 32 or 64 bit architecture with python 2.2

2007-06-19 Thread Kai Rosenthal
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

delicious.py 0.2.5: Patch to solve the 401 issue

2007-07-01 Thread Kai Kuehne
Greetings Kai delicious-0.2.5-401.patch Description: Binary data -- http://mail.python.org/mailman/listinfo/python-list

Keyword argument 'from'; invalid syntax

2007-07-25 Thread Kai Kuehne
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

Re: Keyword argument 'from'; invalid syntax

2007-07-25 Thread Kai Kuehne
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

com: makepy gencache.EnsureModule

2007-08-10 Thread Kai Rosenthal
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

resolve environment variables in string - regular expression

2007-02-09 Thread Kai Rosenthal
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

unittest: How to fail if environment does not allow execution?

2006-05-10 Thread Kai Grossjohann
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 --

Re: unittest: How to fail if environment does not allow execution?

2006-05-11 Thread Kai Grossjohann
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

Why threading.Thread has no detach method

2009-01-06 Thread Fan Kai
Does this mean terminated threads will automatically release all resouce? -- http://mail.python.org/mailman/listinfo/python-list

Get the ipv6 address from a interface

2009-04-09 Thread Kai Timmer
('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

sending and receiving ipv6 multicasts

2009-04-13 Thread Kai Timmer
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

Re: sending and receiving ipv6 multicasts

2009-04-14 Thread Kai Timmer
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

ANN: Demo online shop for LFS

2009-05-12 Thread Kai Diefenbach
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

Re: mod_python installation

2006-03-16 Thread Kai Schulte
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

Re: Python "why" questions

2010-08-20 Thread Kai Borgolte
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

Re: Python "why" questions

2010-08-20 Thread Kai Borgolte
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

ANN: LFC 1.0

2010-08-24 Thread Kai Diefenbach
://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

Re: PyCharm

2010-10-15 Thread Kai Diefenbach
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

Please recommend a open source for Python ACLs function

2012-03-19 Thread Yang Chun-Kai
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.

Localhost client-server simple ssl socket test program problems

2011-12-15 Thread Yang Chun-Kai
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.---

RE: Localhost client-server simple ssl socket test program problems

2011-12-15 Thread Yang Chun-Kai
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

RE: Localhost client-server simple ssl socket test program problems

2011-12-15 Thread Yang Chun-Kai
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. > > >

RE: Localhost client-server simple ssl socket test program problems

2011-12-16 Thread Yang Chun-Kai
> 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

python2.7 kill thread and find thread id

2012-01-03 Thread Yang Chun-Kai
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__(

RE: python2.7 kill thread and find thread id

2012-01-03 Thread Yang Chun-Kai
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