Re: wiki.python.org

2013-01-09 Thread Ken
ice and could not get there, so I would say it is a problem on the server's end. Ken -- Corruption is not the #1 priority of the Police Commissioner. His job is to enforce the law and fight crime. -- P. B. A. President E. J. Kiernan -- http://mail.python.org/mailman/listinfo/python-list

Numerical Linear Algebra in arbitrary precision

2012-02-15 Thread Ken
em to find much info on built in functions except for LU decomposition/solve. Appreciate any comments. Ken -- http://mail.python.org/mailman/listinfo/python-list

strange problem

2006-10-24 Thread ken
This file has 1,000,000+ lines in it, yet when I print the counter 'cin' at EOF I get around 10,000 less lines. Any ideas? lineIn = csv.reader(file("rits_feed\\rits_feed_US.csv",'rb'),delimiter='|') for emp in lineIn: cin=cin+1 print cin -- http://mail.python.org/mailman/

Get my airlines boarding pass

2006-06-09 Thread Ken
uccessfully. Where should I post it? Ken -- http://mail.python.org/mailman/listinfo/python-list

urlopen.read()

2007-04-20 Thread ken
Hi, When I call urlopen.read() like this: data = urlopen("http://localhost";).read(). Does that mean I will read the whole document to data, regardless how many data being sent back? Thank you. -- http://mail.python.org/mailman/listinfo/python-list

how can I find out the value of an environment variable?

2007-03-05 Thread ken
how can I find out the value of an environment variable in my pythong script? Thank you. -- http://mail.python.org/mailman/listinfo/python-list

What is the timeout value of HTTP

2007-03-29 Thread ken
Can you please tell me what is the timeout value of httplib.HTTP? i.e. how long python will wait for a response in the below code? h = httplib.HTTP(self.url, 8080) h.putrequest('GET', '/sample/?url=' + self.url) h.endheaders() Thank you. -- http://mail.python.org/mailman/lis

how to remove specified cookie in cookie jar?

2007-03-30 Thread ken
How to remove specified cookie (via a given name) in cookie jar? I have the following code, but how can I remove a specified cookie in the cookie jar? cj = cookielib.LWPCookieJar() if cj is not None: if os.path.isfile(COOKIEFILE): print 'Loading Cookie--'

Question about using urllib2 to load a url

2007-04-01 Thread ken
Hi, i have the following code to load a url. My question is what if I try to load an invalide url ("http:// www.heise.de/"), will I get an IOException? or it will wait forever? Thanks for any help. opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj)) urllib2.install_opener(opener)

how can I create/set a 'file' reference in a attribute of a class

2007-02-26 Thread ken
Hi, i have a class: class LogHandler(ContentHandler): # a reference to a file open by some other function/class outputFile; def endElement(self, name): doSomething(self, "GroupResultList", self.text, outputFile) First, I get an error saying 'NameError: global name 'outputF

Re: Garbage collection

2008-02-18 Thread Ken
Simon Pickles wrote: > Hi, > > I'm building a server with python, but coming from a c++ background, > garbage collection seems strange. > > For instance, I have a manager looking after many objects in a dict. > When those objects are no longer needed, I use del manager[objectid], > hoping to for

Re: Adobe CS3

2008-02-26 Thread Ken
Yeah, those are all very good points. There is really no excuse for top posting. Jeff Schwab wrote: D'Arcy J.M. Cain wrote: On Tue, 26 Feb 2008 12:58:53 -0800 Tobiah <[EMAIL PROTECTED]> wrote: A: Because it messes up the order in which people normally read text. Q: Why is top-posting

list of attributes

2008-03-07 Thread Ken
? Ken -- http://mail.python.org/mailman/listinfo/python-list

Re: Image Libraries

2008-03-08 Thread Ken
written in python rather than C. > > Is there any other decent image libraries for python? > > I use PIL, and I haven't had any difficulty with alpha channel transparency. But maybe I'm using it for different things than you (blitting PGN(RGBA) antialiased images most

Re: Does python hate cathy?

2008-03-23 Thread Ken
y are somewhat harder to predict because they are invoked implicitly at the whim of the python implementation. In practice you don't need to use __del__ unless you are doing something exotic like explicitly implementing your own memory model, or tuning resource allocation in a large sys

Quetion about flags of socket.recv(bufsize, [flags])

2009-02-08 Thread Ken
I want to receive 4 bytes from a connected socket, I code like this: data = sock.recv(4) There is a problem with above code. The recv method will not block until it get all 4 bytes. So I use the second param of recv method like this data = sock.recv(4, socket.MSG_WAITALL) This works fine on lin

select error 10093 on winxp

2009-02-09 Thread Ken
I was testing select on windows xp with python 2.6.1, the code is simple: import sys import select def testSelect(): r = select.select([sys.stdin], [], [], 5.0) print r if __name__ == "__main__": try: testSelect() except select.error, e: print e While an error ra

Re: python3 tutorial for newbie

2009-02-11 Thread Ken
"Gabriel Genellina" wrote in message news:mailman.9312.1234332608.3487.python-l...@python.org... > En Tue, 10 Feb 2009 16:22:36 -0200, Gary Wood > escribió: > >> Can someone recommend a good tutorial for Python 3, ideally that has >> tasks or assignments at the end of each chapter. > > I don'

Re: Programming exercises/challenges

2008-11-22 Thread Ken
How about this: http://www.pythonchallenge.com/ <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi guys, > > I'm learning Python by teaching myself, and after going through several > tutorials I feel like I've learned the basics. Since I'm not taking a > class or anything, I've

Any other web mail accessor like libgmail?

2009-03-31 Thread Ken
Is there other python wrapper such as libhotmail or libyahoomail? curiously ask. :p -- http://mail.python.org/mailman/listinfo/python-list

is there a rwlock implementation in python library?

2009-04-08 Thread Ken
I need a read-write-lock, is there already an implementation in the standard library? -- http://mail.python.org/mailman/listinfo/python-list

Re: function that accepts any amount of arguments?

2008-04-24 Thread Ken
"Steve Holden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > globalrev wrote: >> if i want a function that can take any amount of arguments how do i >> do? >> >> lets say i want a function average that accepts any number of integers >> and returns the average. > > Use a parameter

POST value related question

2009-10-12 Thread ken
hello i have some problem to send POST value by use mechanize. i can't write my article to my blog site. here is full source. and what i want to do is, im posting my article to my blog site. thanks in advance. # -*- coding: cp949 -*- import mechanize import cookielib # Browser br = mechanize.Bro

POST value related question

2009-10-12 Thread ken
hello i have some problem to send POST value by use mechanize. i can't write my article to my blog site. here is full source. and what i want to do is, im posting my article to my blog site. thanks in advance. # -*- coding: cp949 -*- import mechanize import cookielib # Browser

mechanize.browser() click or submit related problem

2010-04-12 Thread ken
Hello All. im making some website login function with mechanize.browser() module. but problem is i can't send submit or click submit button with mechanize click() function, it not working. how can i submit button or click() function make it work? i can make it work mechanize.Request and mechanize.u

python urllib mechanize post problem

2010-05-23 Thread ken
hello ALL im making some simple python post script but it not working well. there is 2 part to have to login. first login is using 'http://mybuddy.buddybuddy.co.kr/userinfo/ UserInfo.asp' this one. and second login is using 'http://user.buddybuddy.co.kr/usercheck/ UserCheckPWExec.asp' i can lo

Re: Static Maps from Lat Long data in XLS file

2013-05-21 Thread Ken Bolton
amp;size=600x600&sensor=false I was able to use curl to grab the images you linked. I believe you can use urllib (or, better, requests - http://docs.python-requests.org/en/latest/) to get and save the images. hth. best, ken -- http://mail.python.org/mailman/listinfo/python-list

Re: A computer programmer, web developer and network admin resume

2013-05-22 Thread Ken Bolton
On Wed, May 22, 2013 at 7:25 PM, Gregory Ewing wrote: > Tim Chase wrote: > >> So a pirate programmer walks into a bar with a bird on his shoulder. >> The bird repeatedly squawks "pieces of nine! pieces of nine!". The >> bartender looks at him and asks "what's up with the bird?" to which >> the pi

Re: avoid the redefinition of a function

2012-09-12 Thread Ken Seehart
Use lambda expressions to define some constraints: gt = lambda x: lambda y: x>y eq = lambda x: lambda y: x==y constraints = [gt(2), eq(1)] data = [3,1] for i,c in enumerate(constraints): print c(data[i]) On 9/12/2012 5:56 AM, Jabba Laci wrote: > Hi, > > I have an installer script t

Re: Boolean function on variable-length lists

2012-09-12 Thread Ken Seehart
Putting a few of peoples ideas together... gt = lambda x: lambda y: x>y eq = lambda x: lambda y: x==y def constrain(c,d): return all({f(x) for f, x in zip(c, d)}) constraints = [gt(2), eq(1)] data0 = [1,1] data1 = [3,1] print constrain(constraints, data0) print constrain(constraints, da

Re: How to correctly pass “pointer-to-pointer” into DLL via ctypes?

2012-10-27 Thread zlchen . ken
On Thursday, November 18, 2010 8:03:57 PM UTC+8, Grigory Petrov wrote: > Hello. > > I have a DLL that allocates memory and returns it. Function in DLL is like > this: > > void Foo( unsigned char** ppMem, int* pSize ) > { >   * pSize = 4; >   * ppMem = malloc( * pSize ); >   for( int i = 0; i < *

ctypes free memory which is allocated in C DLL

2012-10-27 Thread zlchen . ken
Hi Guys, I have a DLL which written in C language, one of the function is to allocate a structure, fill the members and then return the pointer of the structure. After Python called this function, and done with the returned structure, I would like to free the returned structure. How can I achie

Re: ctypes free memory which is allocated in C DLL

2012-10-27 Thread Ken Chen
On Saturday, October 27, 2012 10:56:54 PM UTC+8, Chris Angelico wrote: > On Sun, Oct 28, 2012 at 1:42 AM, wrote: > > > Hi Guys, > > > > > > I have a DLL which written in C language, one of the function is to > > allocate a structure, fill the members and then return the pointer of the > > st

Re: ctypes free memory which is allocated in C DLL

2012-10-27 Thread zlchen . ken
On Sunday, October 28, 2012 6:26:28 AM UTC+8, Nobody wrote: > On Sat, 27 Oct 2012 07:42:01 -0700, zlchen.ken wrote: > > > > > I have a DLL which written in C language, one of the function is to > > > allocate a structure, fill the members and then return the pointer of > > > the structure. >

Re: something about performence

2011-06-20 Thread Ken Seehart
canf can be handled by regular expressions, but that would clearly useless for you, and just slow you down more since it does not perform the int conversion for you. Your code appears to have a bug: I would expect that the last entry will be lost unless both files end with the same index value. Be sure to test your code on a few short test files. I recommend psyco to make the whole thing faster. Regards, Ken Seehart -- http://mail.python.org/mailman/listinfo/python-list

Re: something about performence

2011-06-20 Thread Ken Seehart
On 6/20/2011 10:31 PM, Ken Seehart wrote: > On 6/20/2011 7:59 PM, king6c...@gmail.com wrote: >> Hi, >> I have two large files,each has more than 2 lines,and each >> line consists of two fields,one is the id and the other a value, >> the ids are sorted. >

Re: something about performence

2011-06-21 Thread Ken Seehart
On 6/20/2011 11:56 PM, king6c...@gmail.com wrote: > Thanks for your reply,Ken :) > I found the two files ends with the same id……so I am lazy^-^ > I tried psyco,and unfortunately it costs nearly the same time as before. > Is it true that we can only get str from files in Python? >

Re: LDAP: How get all users belongs to a group.

2011-06-23 Thread Ken Watford
On Thu, Jun 23, 2011 at 9:14 AM, sajuptpm wrote: > Hi, > How get all users belongs to a group using python ldap module. Depends on what you mean by "users" and "group", what information you already have, and what information you want to get. I'll assume you mean posix accounts and groups, and tha

Re: perceptron feed forward neural networks in python

2011-07-11 Thread Ken Watford
On Mon, Jul 11, 2011 at 2:31 PM, Igor Begić wrote: > Hi, > I,m new to Python and i want to study and write programs about perceptron > feed forward neural networks in python. Does anyone have a good book or link > for this? Try Stephen Marsland's "Machine Learning: An Algorithmic Perspective". Al

Re: Wondering in the Python Forrest

2011-07-30 Thread Ken Watford
On Sat, Jul 30, 2011 at 7:13 AM, ray wrote: > I found that structured data could be presented in Python using a module in > wxPython. > > Where am I?  I do not know the relationships between the Pythons.  I > feel that I am missing something.  I started with Python as it has so > much functionalit

Re: Replace all references to one object with references to other

2011-08-05 Thread Ken Watford
On Fri, Aug 5, 2011 at 3:37 PM, Jack Bates wrote: > I have two objects, and I want to replace all references to the first > object - everywhere - with references to the second object. What can I > try? If using PyPy instead of CPython is an option, the "thunk" object space's "become" function can

Re: Replacement for the shelve module?

2011-08-19 Thread Ken Watford
On Fri, Aug 19, 2011 at 11:31 AM, Forafo San wrote: > Folks, > What might be a good replacement for the shelve module, but one that > can handle a few gigs of data. I'm doing some calculations on daily > stock prices and the result is a nested list like: For what you're doing, I would give PyTabl

Re: dpkg

2011-08-26 Thread Ken Watford
On Fri, Aug 26, 2011 at 10:43 AM, Verde Denim wrote: > Looking for this with find / -name libclntsh.so.11.1 -print produces > /usr/lib/oracle/11.2/client64/lib/libclntsh.so.11.1 > > I'm confused as to why Python doesn't see it... Try running "sudo ldconfig". -- http://mail.python.org/mailman/lis

Re: PyCon

2011-03-11 Thread Ken Seehart
On 3/11/2011 7:45 AM, Rita wrote: http://us.pycon.org/2010/ http://us.pycon.org/2009/ Try the wayback machine: http://replay.waybackmachine.org/20100701160843/http://us.pycon.org/2010/about/ -- http://mail.python.org/mailman/listinfo/python-list

Regex in if statement.

2011-03-20 Thread Ken D'Ambrosio
Hey, all -- I know how to match and return stuff from a regex, but I'd like to do an if, something like (from Perl, sorry): if (/MatchTextHere/){DoSomething();} How do I accomplish this in Python? Thanks! -Ken -- http://mail.python.org/mailman/listinfo/python-list

Dump interpreter history?

2011-03-25 Thread Ken D'Ambrosio
r. Can this be done? Thanks! -Ken -- http://mail.python.org/mailman/listinfo/python-list

Re: Function __defaults__

2011-04-24 Thread Ken Seehart
s (in python 2.x), which has been around, documented and stable for quite a while. So it's probably just as safe as any other monkey patching technique. :) Best of luck, Ken -- http://mail.python.org/mailman/listinfo/python-list

Re: Function __defaults__

2011-04-24 Thread Ken Seehart
Good point, Benjamin. I didn't think of testing on Jython before answering. For practical purposes it's a really good idea to test obscure features against all potential target platforms. In this case, I would argue that**Benjamin's test demonstrates a bug in Jython. One could counter by p

Re: Function __defaults__

2011-04-24 Thread Ken Seehart
;>> So it works correctly in Jython 2.x. Conclusion: Not an implementation detail, and safe to use. Ken On 4/24/2011 10:18 AM, Daniel Kluev wrote: http://docs.python.org/dev/reference/datamodel.html Callable types ... Special attributes: ... __defaults__A tuple containing default argume

Re: Function __defaults__

2011-04-24 Thread Ken Seehart
Gotta love that email latency. :-D Ken On 4/24/2011 2:47 PM, Daniel Kluev wrote: On Mon, Apr 25, 2011 at 8:21 AM, Ken Seehart wrote: Good point, Benjamin. I didn't think of testing on Jython before answering. For practical purposes it's a really good idea to test obscure featur

Re: Function __defaults__

2011-04-25 Thread Ken Seehart
On 4/25/2011 4:59 AM, Colin J. Williams wrote: On 24-Apr-11 13:07 PM, Ken Seehart wrote: On 4/24/2011 2:58 AM, Steven D'Aprano wrote: Consider this in Python 3.1: def f(a=42): ... return a ... f() 42 f.__defaults__ = (23,) f() 23 Is this an accident of implementation, or can I

Re: I think I found a mistake in the official language reference documentation -- or I am missing somethig???

2011-04-27 Thread Ken Watford
On Wed, Apr 27, 2011 at 4:02 PM, Igor Soares wrote: > Reading the section "6.11. The import statement" > http://docs.python.org/py3k/reference/simple_stmts.html#the-import-statement > > I found: > """ > Import statements are executed in two steps: (1) find a module, and > initialize it if necessar

bug in ''.format()

2017-11-02 Thread Ken Kundert
>>> '{:s}'.format('hello') 'hello' My reading of the documentation says I should be able to specify a width when interpolating a string. I have tried this in 2.7.13, 3.6.1 and 3.6.2 and it fails in all of them. Is this a bug or am I confused? -Ken -- https://mail.python.org/mailman/listinfo/python-list

Re: bug in ''.format()

2017-11-02 Thread Ken Kundert
Sure enough. There is it, right there in the documentation. I did not read far enough. My bad. Thanks! -Ken -- https://mail.python.org/mailman/listinfo/python-list

exec and traceback

2018-01-22 Thread ken . py
, I'll just add that for my purposes the data source is trusted. If you really want to talk about the security of using exec and eval, fine, but start another thread (BTW, I've written a simple secure eval()) Thanks in advance, Ken -- https://mail.python.org/mailman/listinfo/python-list

Re: Mailing list activity low

2021-10-13 Thread Ken Peng
Maybe bounced by your mail provider. Try changing to another ESP such as gmail. On Wed, Oct 13, 2021 at 1:45 AM Antoon Pardon wrote: > Have I missed something and has the maillinglist been moved. Activity is > very low here, about one message every five days. > > Antoon Pardon. > -- > https://ma

f-string anomaly

2018-05-13 Thread Ken Kundert
the template. It appears the error occurs before __format__ is called (there is no output from the print function). Does anybody know why the format() method would work in this case but the f-string would not? Is this a bug in f-strings? -Ken -- https://mail.python.org/mailman/listinfo/python-list

f-string anomaly

2018-05-13 Thread Ken Kundert
hen used within the template. It appears the error occurs before __format__ is called (there is no output from the print function). Does anybody know why the format() method would work in this case but the f-string would not? Is this a but in f-strings? -Ken -- https://mail.python.org/mailman/listinfo/python-list

Re: f-string anomaly

2018-05-13 Thread Ken Kundert
braces in the format_spec, and the implementation of f-strings should be updated to be consistent with the syntax specification, and with the format method. -Ken On 05/13/2018 07:08 PM, Terry Reedy wrote: > On 5/13/2018 3:22 PM, Ken Kundert wrote: > > Please do not double post. > &g

Re: f-string anomaly

2018-05-14 Thread Ken Kundert
Lele, I'm afraid I was unclear. The ... in the code snippet was intended to imply that these lines were appended to the end of the original code, where d was defined. -Ken On 05/14/2018 12:30 AM, Lele Gaifax wrote: > Ken Kundert writes: > >> I tried adding k and v to th

Re: f-string anomaly

2018-05-14 Thread Ken Kundert
27;.format(d)) print() print('Using f-string:') print(f'Email: {d:{{k}} {{v}}}') print() print('Using f-string:') k=6 v=9 print(f'Email: {d:{{k}} {{v}}}') The result is: NameError: name 'k' is not defined -

PEP proposal: sequence expansion support for yield statement: yield *

2016-04-20 Thread Ken Seehart
ional spacing is different: yield* sequence ). Examples: yield *(1,2,3) ... instead of : yield 1; yield 2; yield 3 ... or: for x in (1,2,3): yield x yield *chain(seq1, seq2) ... instead of : for x in chain(seq1, seq2) yield x ~ Ken Seehart -- https://mail.python.org/mailman/listinfo/p

Python 3.73 cannot install py3exiv2

2019-05-01 Thread Ken Martell
in post-processing as well as my own. Any help much appreciated! Thank you Ken Martell This is the error I get : D:\>pip3 install py3exiv2 Collecting py3exiv2   Using cached https://files.pythonhosted.org/packages/eb/c4/675823a2c23d8f138e7dc2b7574d09f26959f641d0b59c3ec7faa65764e5/py3exiv2-0

Re: PyQT installation

2005-01-01 Thread Ken Godee
John J. Lee wrote: [EMAIL PROTECTED] (Alex Martelli) writes: [...] Basically: if you want it on Windows for free, forget Qt Correct. I believe the book "C++ GUI programming Qt3" comes with a windows Qt gpl 3.x version. Just have to buy the book. No PyQt version to match thou. Blackadder from the K

Re: pyQT 4

2005-07-25 Thread Ken Godee
> My question is : does anybody know when pyqt 4 will be distributed ? > http://www.riverbankcomputing.co.uk/pyqt/roadmap.php -- http://mail.python.org/mailman/listinfo/python-list

Re: ideas for university project ??

2005-08-28 Thread Ken Starks
Jon Hewer wrote: > Hi > > I'm about to start my third, and final, year in computer science at > cambridge uni, and i need to come up with an idea for a software > project, but i'm really struggling for ideas, and i was wondering > whether anyone here had any suggestions. > > I'd say i'm probably

Re: Need help with C extension module

2005-09-13 Thread Ken Seehart
chris wrote: > This is my first attempt at undertaking a C extension module. I want > to wrap an existing C library so I can call the functions from Python. > There are only two functions I'm interested in calling. I did mess > with Pyrex a bit and Swig, to no avail, so I turned to doing it by >

Python for ARM7?

2005-09-13 Thread Ken Seehart
, but that seems like a daunting task. I'd much rather find someone who has already done it who has the binaries :) I'm pretty sure the only files I actually need are the python executable and the _socket shared library. Thanks, - Ken -- http://mail.python.org/mailman/listinfo/python-list

Re: Python for ARM7?

2005-09-13 Thread Ken Seehart
Sybren Stuvel wrote: > Ken Seehart enlightened us with: > >>Hello. Where might I find python binaries for ARM7 (Linux 2.4)? > > > Check http://www.vanille.de/projects/python.spy > > >>If I absolutely have to build my own python, I would probably use a >>

Re: Python for ARM7?

2005-09-13 Thread Ken Seehart
Sybren Stuvel wrote: > Ken Seehart enlightened us with: > >>1. How do I know whether to use sharprom or modern? > > If it works, use it. That makes sense :) >>2. What do I do with ipk files? I surfed around and found that in >>one example, the command is &q

Re: which is more 'pythonic' / 'better' ?

2005-09-13 Thread Ken Seehart
much difference either way.. > > > Will McGugan > -- > http://www.kelpiesoft.com Hey are you a perl programmer? That looks perlish to me. A python programmer would never use "or" that way (even though it works). :) It's okay, I used to be a perl programmer too. It's nothing to be ashamed of. :) - Ken -- http://mail.python.org/mailman/listinfo/python-list

Re: Creating Pie Chart from Python

2005-09-15 Thread Ken Seehart
Thierry Lam wrote: > Let's say I have the following data: > > 500 objects: > -100 are red > -300 are blue > -the rest are green > > Is there some python package which can represen the above information > in a pie chart? > > Thanks > Thierry > What is the user interface context? Is it a web pa

Re: wxPython vs. pyQt

2005-03-17 Thread Ken Godee
tc wrote: Has anyone compiled binaries for qt/pyqt/eric3. i'd really like to try it. at the moment i work with wxWindows and BoaConstructor which i'm actually not so happy with. design of gui's with wx is not very efficient... so is there already a binary for qt/pyqt/eric3 available or when can i e

Re: threading, qt, and the freakout

2004-11-29 Thread Ken Godee
Ben Floyd wrote: Hey everyone, Why doesn't this work? The code speaks much more clearly than I do, so i shortened it and pasted it below. Running this and clicking on 'Break Me' will... freak out the window... You can not mix GUI threads and non GUI threads. Just changing text may seem to work, bu

Re: Class Variable Inheritance

2004-12-08 Thread Ken Rowlands
On Wed, 08 Dec 2004 15:55:09 -0900, Brian Jones wrote: > I'm sure the solution may be obvious, but this problem is driving me > mad. The following is my code: > > class a(object): > > mastervar = [] > > def __init__(self): > print 'called a' > > class b(a): > >

Re: Need Help: Server to pass py objects

2005-03-29 Thread Ken Godee
>I have a legacy system with data stored in binary files on a remote >server. >I need to access and modify the content of those files from a webserver >running on a different host. (All Linux) > >I would like to install a server on the legacy host that would use my >python >code to translate bet

Re: workaround for generating gui tools

2005-04-10 Thread Ken Godee
Jeremy Bowers wrote: On Sun, 10 Apr 2005 13:57:26 +0200, Diez B. Roggisch wrote: Domain-specific abstractions do that *faster* than GUI designers, not slower. And better, too, since every iteration tends to be fully functional and not just a "let's see what this looks like" prototype. Can you show

Command Line Inputs from Windows

2015-01-02 Thread Ken Stewart
I’ve tried writing the script using only commands, without the accouterments of a full program (without the def statement and without the if __name__ == ‘__main__’ …) to no avail. I’m out of ideas. Any suggestions? Ken Stewart -- https://mail.python.org/mailman/listinfo/python-list

Re: Command Line Inputs from Windows

2015-01-03 Thread Ken Stewart
y, my computer still boots after mucking around in the registry. I haven't yet investigated the launcher suggested by Chris and Mark. That may well be the proper solution. At the moment it looks like the Python installer didn't create these registry entries properly in Windows 7. Tha

Re: Trees

2015-01-20 Thread Ken Seehart
Exactly. There are over 23,000 different kinds of trees. There's no way you could get all of them to fit in a library, especially a standard one. Instead, we prefer to provide people with the tools they need to grow their own trees. http://caseytrees.org/programs/planting/ctp/ http://www.ncsu.

Re: Trees

2015-01-21 Thread Ken Seehart
and a library (even the standard library) doesn't have to expose which one was picked as long as the performance is good. -- Devin On Tue, Jan 20, 2015 at 12:15 PM, Ken Seehart wrote: Exactly. There are over 23,000 different kinds of trees. There's no way you could get all of them to f

Printing to printer, windows 7

2015-02-16 Thread ken . hessel
Would seem to be a simple problem. I just want to print to my printer instead of the console using Python 2.7, Windows 7. Hours of looking through FAQ's and Google haven't yielded a solution. Any suggestions appreciated -- -- https://mail.python.org/mailman/listinfo/python-list

Building a python extension on Windows

2015-10-27 Thread Ken Brooks
project somehow hopelessly out of date? And more to the point, can someone direct me to a nice, fresh example project that will build a little Python extension on Windows? Thanks, Ken ? -- https://mail.python.org/mailman/listinfo/python-list

Re: Yet another attempt at a safe eval() call

2013-03-14 Thread Ken Seehart
exercises left to the reader. Something vaguely like this: /pseudocode:/ def safe_eval(s, symbols={}): while search(s, r'\w+'): replace match with '('+repr(symbols[match])+')' in s return ast.literal_eval(s) - Ken -- http://mail.python.org/mailman/listinfo/python-list

advice required re migrating php app to python and most likely zope

2006-01-05 Thread Ken Guest
n our Zope CMS comes on-line or should I go the full way and design the web apps for Zope from day zero? k. -- Ken Guest Mobile: +353 86 8252 141http://blogs.linux.ie/kenguest/ -- http://mail.python.org/mailman/listinfo/python-list

Re: advice required re migrating php app to python and most likely zope

2006-01-06 Thread Ken Guest
On Thu, Jan 05, 2006 at 10:10:39PM +0100, Diez B. Roggisch wrote: > Ken Guest schrieb: > > Hi, > > I've two relatively small web applications that are currently implemented in > > PHP and needed to be migrated to python and most likely zope afterwards as > >

installing numpy: problems with lapack, blas etc

2006-07-24 Thread Ken Dere
b/atlas'] language = c mkl_info: NOT AVAILABLE It is clear that I have much but not all that is needed. I have already downloaded lapack and compiled the blas and lapack libraries and put them in /usr/lib/atlas and defined BLAS and LAPACK so I am not sure what I have missed. Thanks Ken D. -- http://mail.python.org/mailman/listinfo/python-list

modifying __new__ of list subclass

2006-08-14 Thread Ken Schutte
ot;b","c")) Doesn't seem to work, but that print statement shows that the newlist is what I want... Maybe what I return from __new__ is overwritten in __init__? Could someone enlighten me as to why - and why this is different than the int case? Thanks, Ken -- http://mail.python.org/mailman/listinfo/python-list

Re: modifying __new__ of list subclass

2006-08-15 Thread Ken Schutte
Steven Bethard wrote: > > The __new__ method is for immutable types. So things like str and int > do their initialization in __new__. But for regular mutable types, you > should do your initialization in __init__:: > I see... So, is there a use for __new__ in mutable types? From my list-d

Re: modifying __new__ of list subclass

2006-08-15 Thread Ken Schutte
init__:: > Okay, I see what's happening now. Steve and Alex - thanks for the great explanations. Ken -- http://mail.python.org/mailman/listinfo/python-list

Re: The Semicolon Wars as a software industry and human condition

2006-08-17 Thread Ken Tilton
Xah Lee wrote: > > • What Languages to Hate, Xah Lee, 2002 > http://xahlee.org/UnixResource_dir/writ/language_to_hate.html Nonsense. This is technology, not religion. Technologists in fact have a responsibility to identify and use the best tools available. Xah, you are getting soft in your o

Re: logo design

2006-11-01 Thread Ken Tilton
alex23 wrote: > Xah Lee wrote: > >>No personal offense intended, but human animal's history is what? 3000 >>years at least in recorded history? And, all you can think of is what, >>the view points of a fraction of your personal life span? > > > Thank god evolution spat you out to lead us all t

Regular Expression question

2006-06-07 Thread ken . carlino
Hi, I am new to python regular expression, I would like to use it to get an attribute of an html element from an html file? for example, I was able to read the html file using this: req = urllib2.Request(url=acaURL) f = urllib2.urlopen(req) data = f.read() my question is how can I jus

Exeucte a system command in python script

2006-06-08 Thread ken . carlino
Hi, I would like to execute a shell command like this in python: cmd = 'ant release -Dbuild=build_proxyonly -Drev=5.1.130f -Dprops=\"-MIDP20_LARGE;PUSH_FEATURE=false;MIDlet-Version=5.0;version=5.0;MIDlet-Icon=midicon15x15.png;-FOUR_WAY_NAV_FEATURE\" -DThree_Branding=true' Which of the execl comma

Re: Exeucte a system command in python script

2006-06-08 Thread ken . carlino
Thanks I get this error 'NameError: global name 'call' is not defined" I already import 'subprocess'. Can you pleaes tell me what am I missing? Robert Kern wrote: > [EMAIL PROTECTED] wrote: > > Hi, > > > > I would like to execute a shell command like this in python: > > cmd = 'ant release -Dbuil

Re: Exeucte a system command in python script

2006-06-08 Thread ken . carlino
I am using python 2.4, so I don' t need to insteall that module separately. [EMAIL PROTECTED] wrote: > Thanks I get this error 'NameError: global name 'call' is not defined" > > I already import 'subprocess'. > > Can you pleaes tell me what am I missing? > > Robert Kern wrote: > > [EMAIL PROTECTED

Re: What is Expressiveness in a Computer Language

2006-06-09 Thread Ken Tilton
Joe Marshall wrote: > Xah Lee wrote: > >>in March, i posted a essay "What is Expressiveness in a Computer >>Language", archived at: >>http://xahlee.org/perl-python/what_is_expresiveness.html >> >>I was informed then that there is a academic paper written on this >>subject. >> >>On the Expressive

TONIGHT! Lisp group beerfest in NYC, PyCells to be discussed

2006-06-13 Thread Ken Tilton
The royal We has just learned that His Kennyness will be honoring the boozehounds of LispNYC with His Presence tonight (deets below). He will come bearing Celtk and news of PyCells, though the top billing tonight goes to SoC student Extraordinaire Samantha Kleinberg. kenzo > Please join us for

Re: Reddit broke - should have remained on Lisp?

2006-06-29 Thread Ken Tilton
Luis M. González wrote: > Alok wrote: > >>While posting a comment on http://www.reddit.com I got an error page >>with the following curious statement on it. >> >>"reddit broke (sorry)" >>"looks like we shouldn't have stopped using lisp..." >> >>See screenshot at >>http://photos1.blogger.com/blog

Setting "value" of an int-derived class

2006-09-02 Thread Ken Schutte
t creating a new instance? I suppose I could create a function that creates a new "foo" and copies its attributes, but is there a more direct way? Is the value "5" stored in some special attribute I can just directly modify? thanks, Ken -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   4   >