Strange behaviour with a for loop.

2014-01-03 Thread Sean Murphy
ave got the whole content of the element when using the index of the array (list). Sean filename is: t filename -- https://mail.python.org/mailman/listinfo/python-list

Re: Strange behaviour with a for loop.

2014-01-03 Thread Sean Murphy
ay (list) I would have to test for a blank line which I assume would be "". Any suggestions on this would be welcomed. Sean print a[ On 04/01/2014, at 4:38 PM, Mark Lawrence wrote: > On 04/01/2014 04:03, Sean Murphy wrote: >> Hello all. >> >> This is a newly qu

Re: Strange behaviour with a for loop.

2014-01-03 Thread Sean Murphy
Hi everyone. Worked out what I was doing wrong with the string splicing. The offset number was lower then the index number, so it was failing. E.G: On 04/01/2014, at 4:54 PM, Sean Murphy wrote: > Thanks everyone. > > Mark thanks for the correction on the ':'. Since I

Re: Strange behaviour with a for loop.

2014-01-04 Thread Sean Murphy
config it. I have hundreds of other questions, if I don't find answers on the net before hand. Sean On 04/01/2014, at 6:52 PM, Cameron Simpson wrote: > On 04Jan2014 16:54, Sean Murphy wrote: >> Thanks everyone. >> >> Mark thanks for the correction on the '

Dos cursor and input management.

2014-01-05 Thread Sean Murphy
wait for key press If key press equals delete line. Delete list element. else if key press equals edit display line for interactive edit. else move to next line The module must work under dos for now. Eventually Mac. Sean -- https://mail.python.org/mailman/listinfo/python-list

Re: Dos cursor and input management.

2014-01-05 Thread Sean Murphy
Dennis, Loose terminology. The Command terminal within windows which the app will be executed in. Not native DOS. On 06/01/2014, at 3:48 AM, Denis McMahon wrote: > On Sun, 05 Jan 2014 20:25:11 +1100, Sean Murphy wrote: > >> The module must work under dos for now. Eventually Mac.

nested dictionaries and functions in data structures.

2014-01-07 Thread Sean Murphy
bove. I just don't get the nested dictionary effect I am after. Again, I am trying to use standard core which some of the examples I have seen appeared to use. I am aware of collection module. #! /usr/bin/env python # Identifying if memory leaks are occurring. # goal is to import out

Re: nested dictionaries and functions in data structures.

2014-01-07 Thread Sean Murphy
Thanks for that. It resolved the issue and it was so simple compared to everything else I saw on the net. Only outstanding thing I have to work out is how to execute functions from a dictionary. I will continue searching on the net. Sean On 07/01/2014, at 9:21 PM, Jean-Michel Pichavant

Re: nested dictionaries and functions in data structures.

2014-01-09 Thread Sean Murphy
et. >> >> Only outstanding thing I have to work out is how to execute functions >> from a dictionary. I will continue searching on the net. >> >> >> Sean > > This may help you (untested code) > > class Workers: > @staticmethod > def ospf(*args, **k

Module depositary

2014-01-13 Thread Sean Murphy
Hi All. I am aware that active state python has a commercial module depositary which you can get modules from. Under PERL you had CPAN. Is there anything like this for Python? Sean -- https://mail.python.org/mailman/listinfo/python-list

python

2016-01-11 Thread Sean Melville
Hello, I've downloaded python 3.5.1 but when I try and open it always says that I have to either uninstall it, repair it or modify it. However, I've tried all of them and it still doesn't work. >From Callum -- https://mail.python.org/mailman/listinfo/python-list

Re: python

2016-01-11 Thread Sean Melville
I don't believe it's xp, it's a new laptop > On 11 Jan 2016, at 20:33, Cameron Simpson wrote: > >> On 11Jan2016 19:17, Sean Melville wrote: >> I've downloaded python 3.5.1 but when I try and open it always says that I >> have to either uninsta

Following Up

2014-12-23 Thread Sean Brady
t the market is right now. I would love to help you out, but if you are not interested, let me know if you have anyone in mind who may be, I would love to help them out as well! Best, Sean Sean Brady | Sales Executive, Recruiter | Highview Partners, LLC | |

Python and wireshark.

2014-07-01 Thread Sean Murphy
of changing things on the fly, rather then creating complex command line parameters. Thoughts? Sean -- https://mail.python.org/mailman/listinfo/python-list

change text of a Tkinter Button by clicking it

2011-09-28 Thread Sean McIlroy
hello (how) can you change the text of a Tkinter Button by clicking it? something like def click(index): return lambda: buttons[index].text = 'hello' buttons = [Button(root,command=click(index)) for index in range(numbuttons)] only with an attribute that Buttons actually have. sorry to have to a

Re: change text of a Tkinter Button by clicking it

2011-09-28 Thread Sean McIlroy
never mind. i found it. -- http://mail.python.org/mailman/listinfo/python-list

useless python - term rewriter

2011-11-18 Thread Sean McIlroy
## term rewriter (python 3.1.1) def gettokens(string): spaced = string.replace('(',' ( ').replace(')',' ) ') return spaced.split() def getterm(tokens): if tokens[0] in '()': term = [] assert tokens[0] == '(' tokens.pop(0) while not tokens[0] == ')': te

python philosophical question - strong vs duck typing

2012-01-03 Thread Sean Wolfe
Hello everybody, I'm a happy pythonista newly subscribed to the group. How is it going? I have a theoretical / philosophical question regarding strong vs duck typing in Python. Let's say we wanted to type strongly in Python and were willing to compromise our code to the extent necessary, eg not cha

Re: python philosophical question - strong vs duck typing

2012-01-04 Thread Sean Wolfe
On Tue, Jan 3, 2012 at 7:28 PM, Ben Finney wrote: > Sean Wolfe writes: > >> Hello everybody, I'm a happy pythonista newly subscribed to the group. > > Welcome! Thanks! and thanks to all, hjaha. > >> I have a theoretical / philosophical question regarding st

help me get excited about python 3

2012-01-04 Thread Sean Wolfe
I am still living in the 2.x world because all the things I want to do right now in python are in 2 (django, pygame). But I want to be excited about the future of the language. I understand the concept of needing to break backwards compatibility. But it's not particularly exciting to think about. W

Re:

2012-01-08 Thread Sean Wolfe
is anybody out there? On Sat, Jan 7, 2012 at 5:07 AM, abdullah zuberi wrote: > hello ? > -- > http://mail.python.org/mailman/listinfo/python-list > -- A musician must make music, an artist must paint, a poet must write, if he is to be ultimately at peace with himself. - Abraham Maslow -- htt

Re:

2012-01-08 Thread Sean Wolfe
On Sun, Jan 8, 2012 at 11:38 PM, David George wrote: > > Sean Wolfe wrote: >> >> is anybody out there? >> >> On Sat, Jan 7, 2012 at 5:07 AM, abdullah zuberi >>  wrote: >>> >>> hello ? >>> > > Hello there Sean, How are you d

Re: An "alternative" to Learning Perl

2012-01-08 Thread Sean Wolfe
On Sun, Jan 8, 2012 at 8:44 PM, Sebastian Rooks wrote: > Hello everyone, > > I was wondering if you could help me. I'm looking for a python > introductory book, kind of like Learning Python only smaller (?!) > The thing is, I travel to and from work each day for about 1,5h in each > direction, and

open office in another language?

2012-01-10 Thread Sean Wolfe
I'm a somewhat-satisfied openoffice.org user. I mean it works, but if it weren't in Java I'd be doing some of my own tweaking. But since it's in Java I stay away... no likey. Has there been any talk of doing another similar office suite, or maybe just writer + spreadsheet, in a better language eg

Re: open office in another language?

2012-01-10 Thread Sean Wolfe
On Tue, Jan 10, 2012 at 6:53 PM, Nelle Varoquaux wrote: > Small nitpick: Openoffice.org (and LibreOffice) has in fact very little > java. The core of it is written in C++, so if you ever want to extend it > (unlikely), you won't be dealing with java code. > hmm I didn't know this, nice to know. Y

Re: An "alternative" to Learning Perl

2012-01-11 Thread Sean Wolfe
On Tue, Jan 10, 2012 at 8:25 PM, Sebastian Rooks wrote: > On Mon, 9 Jan 2012 00:55:22 -0300, Sean Wolfe > wrote: > >>kindle? ipad? tablet? > > I'm interested in books, not files ... > (seriously, now ... I don't have any of those devices) > >>also t

Re: open office in another language?

2012-01-11 Thread Sean Wolfe
On Wed, Jan 11, 2012 at 6:35 PM, Martin Manns wrote: > or in pyspread (GPL, my own effort) > > http://manns.github.com/pyspread/ > Checking this out now. Do you have text boxes? Cause maybe I will add some ... cool! -- http://mail.python.org/mailman/listinfo/python-list

Re: THAT WHAT NEED EXPECT FROM OPERATORS OF PYTHON. (e-mail get by the list moderator)

2012-01-17 Thread Sean Wolfe
On Mon, Jan 16, 2012 at 4:01 AM, Steven D'Aprano wrote: > On Mon, 16 Jan 2012 09:03:54 +0300, _ wrote: > >> # THAT WHAT NEED EXPECT FROM OPERATORS OF PYTHON: Worddr = "56" # CREATE >> A STRING: "56" Word = ["12"] # CREATE A LIST WITH ONE SIGNED: "12" Word >> = Word.append("34") > ... > > > Do you

Re: Numeric RandomArray seed problem

2006-01-01 Thread Sean Richards
In [3]: seed(123,456) In [4]: get_seed() Out[4]: (123, 456) Cheers, Sean -- "Hver sin smak", sa vintapperen, han drakk mens de andre sloss." -- http://mail.python.org/mailman/listinfo/python-list

Python Embedding Questions

2006-08-01 Thread Sean Ryan
t choice for an embedded application (I am aware of the GIL issue) We need to make a concise decision very quickly regarding our use of python, and as such would appreciate the community's honest opinion. Best regards, Sean -- http://mail.python.org/mailman/listinfo/python-list

SAPI and Python

2006-10-16 Thread Sean Kennedy
Ok - I've done a lot of searching with google for info on what I'm about to ask, and haven't found enough to accomplish what I'm after - so if anyone has the answers (or even just ideas on how to proceed) I'd love the help. I'm fairly new to Python, but not to OO programming. I've written a simp

Embed Python in HTML?

2006-09-25 Thread Sean Hammond
Forgive my ignorance, but I sometimes write custom dynamic web-pages using PHP, by simply embedding PHP in HTML with tags, and renaming for example index.html to index.php and making it executable. I only use this for very minor things like calling a script, and don't really want to learn any more

Re: Why don't optional mutable objects show up in vars(func)?

2006-09-27 Thread Sean Hammond
On Wed, 2006-09-27 at 09:32 -0700, [EMAIL PROTECTED] wrote: > So I just got bitten by the "don't use a mutable object as an optional > argument" gotcha. I now realize that for this function: > > >>> def func(x, y=[]): > ... y.append(x) > ... print y > ... > > y is initialized when the fu

Anyone understand this syntax error?

2006-12-02 Thread Sean Hammond
Anyone understand this? Python 2.4.4c1 (#2, Oct 11 2006, 21:51:02) [GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> def markdown_perl(input): ... """Send 'input' (string) to the markdown perl script

Problem installing MySQLdb/1.2.1_p2 with Python/2.4.1 and MySQL/5.0.18

2007-01-05 Thread Sean O'Donnell
Hi, I can't seem to get MySQLdb/1.2.1p2 to install on Slackware/10.2, with Python/2.4.1, and MySQL/5.0.18. The following command: $ python setup.py build 2> setup.err returns the following errors: http://pastebin.com/851624 Any suggestions? Thanks! Sean -- http://mail.python.org

Re: Problem installing MySQLdb/1.2.1_p2 with Python/2.4.1 and MySQL/5.0.18

2007-01-05 Thread Sean O'Donnell
Diez B. Roggisch wrote: > Sean O'Donnell schrieb: >> Hi, >> >> I can't seem to get MySQLdb/1.2.1p2 to install on Slackware/10.2, with >> Python/2.4.1, and MySQL/5.0.18. >> >> The following command: >> >> $ python setup.py buil

mxODBC problems

2007-01-09 Thread Sean Davis
ELECT * FROM g_rif') >>> rs = cur.execute('SELECT * FROM g_rif') >>> rs >>> cur.execute('SELECT * FROM g_rif').fetchall() Traceback (most recent call last): File "", line 1, in AttributeError: 'NoneType' object has no attribute 'fetchall' Thanks, Sean -- http://mail.python.org/mailman/listinfo/python-list

urllib2 chunked encoding

2006-01-26 Thread Sean Harper
t made me suspicious. Does urllib2 and mechanize deal with chunked encoding properly?  Is there something else that I need to do to make it work?Thanks,Sean -- http://mail.python.org/mailman/listinfo/python-list

MySQLdb question... using table name as arg

2006-02-03 Thread Sean Berry
I have four tables that all have the same column names (50 in each.) I have created an admin program to edit, delete and add records to the tables and would like to use the table name as a variable in each query so the code can be used for each of the 4 tables. Usually I would do something lik

Re: MySQLdb question... using table name as arg

2006-02-03 Thread Sean Berry
"Carsten Haese" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Fri, 2006-02-03 at 13:24, Sean Berry wrote: >> I have four tables that all have the same column names (50 in each.) >> >> I have created an admin program to edit, delete and a

Re: Language documentation ( was Re: Computing Industry shams)

2005-05-09 Thread Sean Burke
gexes, "greedy" match optimizes for the longest match, not the fastest. And this is common regex terminology - man perlre and you will find discussion of "greedy" vs. "stingy" matching. -SEan -- http://mail.python.org/mailman/listinfo/python-list

Re: Null String Variable

2005-05-16 Thread Sean McIlroy
well, somebody's already pointed out that bool(msg)==False iff msg==''. i'm curious to know what's wrong with simply writing if msg=='': ## do_something -- http://mail.python.org/mailman/listinfo/python-list

Accessing the IRichEditOle interface

2007-06-02 Thread Sean Farrow
sions it doesn't really matter. Regards Sean. -- http://mail.python.org/mailman/listinfo/python-list

error when calling method of class

2007-06-08 Thread Sean Farrow
: splitTime(200) I get a name resultion error saying that the global name splitTime is not defined. Any help apreciated. Sean. -- http://mail.python.org/mailman/listinfo/python-list

Obtaining hte currently running script under windows

2007-06-08 Thread Sean Farrow
Hi: Is there any way to obtain the full path to the currently running script under win32? I am using the pythonw.exe file is that helps. Sean. -- http://mail.python.org/mailman/listinfo/python-list

converting an int to a string

2007-06-08 Thread Sean Farrow
variables str(minutes) and str(seconds) don't seem to be working. Any idea why? is there any other way of doing this and perhaps using the $d interpolation operator? sean. -- http://mail.python.org/mailman/listinfo/python-list

odbc module for python

2007-07-18 Thread Sean Davis
What are the alternatives for accessing an ODBC source from python (linux 64-bit, python 2.5)? It looks like mxODBC is the only one available? Thanks, Sean -- http://mail.python.org/mailman/listinfo/python-list

pyodbc on linux

2007-07-21 Thread Sean Davis
this is possible before I try to pursue things further? Thanks, Sean -- http://mail.python.org/mailman/listinfo/python-list

CPython vs. Jython/JPython

2007-04-28 Thread Sean McCallister
Is this stephen coursen, once married to michelle coursen from linden NJ? -- http://mail.python.org/mailman/listinfo/python-list

Re: Fast kNN from python

2007-08-14 Thread Sean Davis
t be > wrong. An approximate kNN would also work. > > If there doesn't exist such an implementation yet, any advice on a > library I can wrap myself would also be appreciated. > > Thanks! > Janto Have you looked at using Rpy and R? There are probably several knn implementatio

Re: Combinatorial of elements in Python?

2007-08-15 Thread Sean Tierney
Hi Team, I'm trying to get Python hooked up to MySQL using MySQL-python-1.2.2 Details: Mac OS X 10.4.x Python2.5 MySQL 5.x.x MySQL-python-1.2.2 gcc Target: i686-apple-darwin8 Configured with: /private/var/tmp/gcc/gcc-5250.obj~12/src/configure --disable-checking -enable-werror --prefix=/usr --man

Making a file-like object for manipulating a large file

2007-08-23 Thread Sean Davis
27;t do is to load the ENTIRE file into a stringio object, as the file is much too large. Any suggestions? Thanks, Sean -- http://mail.python.org/mailman/listinfo/python-list

is this a bug? (python 2.3)

2007-03-09 Thread Sean McIlroy
hi all when i run this code in python 2.3 ## BEGIN CODE class warfare: def __init__(self): self.pairs = [[0,0]]*2 def __str__(self): return str(self.pairs) def setfirst (self,i,value): self.pairs[i][0] = value def setsecond(self,i,value): self.pairs[i][1] = va

Re: is this a bug? (python 2.3)

2007-03-09 Thread Sean McIlroy
thanks -- http://mail.python.org/mailman/listinfo/python-list

Deferred jobs server as backend for web application

2007-04-11 Thread Sean Davis
. Any suggestions on how to go about this? Thanks, Sean -- http://mail.python.org/mailman/listinfo/python-list

smtp debugging methods

2007-09-14 Thread Sean Nakasone
I'm having trouble with sending smtp mail. It's hanging after the smtplib.SMTP() line. It doesn't works from home but not from work. What's the best way to debug this? # Here's my script import smtplib msg = "Subject: Hello\n\nThis is the\nbody of the message." server = smtplib.SMTP("smtp.gmai

Re: Zope review

2007-09-21 Thread Sean Tierney
o > very complicated and requires (enforces) a particular way of > programming that can feel very burdensome if it does not 'fit your > brain'. > > i. > > > > > > > -- > http://mail.python.org/mailman/listinfo/python-list > -- Sean Tierney -- http://mail.python.org/mailman/listinfo/python-list

Re: Would Anonymous Functions Help in Learning Programming/Python?

2007-09-21 Thread Sean Tierney
your friend doesn't understand variables and functions. Happy Friday. Sean On 9/21/07, Cristian <[EMAIL PROTECTED]> wrote: > On Sep 21, 3:44 pm, Ron Adam <[EMAIL PROTECTED]> wrote: > > > I think key may be to discuss names and name binding with your friend. How > &

Re: Would Anonymous Functions Help in Learning Programming/Python?

2007-09-21 Thread Sean Tierney
On 9/21/07, Sean Tierney <[EMAIL PROTECTED]> wrote: > Just tell him that "functions are like all other variables and can > therefore be passed by other functions or returned by other functions. > " > > If your friend understands variables and functions and he can&#x

Re: Zope review

2007-09-22 Thread Sean Tierney
ebserver, has several chat packages available, a comparison/contrast would be quite useful. I will try to amass some info and bring it back here by midweek. Thanks, Sean On 9/21/07, Istvan Albert <[EMAIL PROTECTED]> wrote: > On Sep 21, 7:04 pm, "Sean Tierney" <[EMAIL PRO

OCBC connection

2007-09-28 Thread Sugrue, Sean
I'm trying to make an odbc connection to postgresql which is on a server using python. Does anyone have a code snippet to make a basic connection with a select query? Sean -- http://mail.python.org/mailman/listinfo/python-list

FW: OCBC connection

2007-09-28 Thread Sugrue, Sean
Is this the right email list to be on for asking rather elementary python questions? If not do you have a suggestion Sean -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sugrue, Sean Sent: Friday, September 28, 2007 10:58 AM To: [email protected]

RE: OCBC connection

2007-09-28 Thread Sugrue, Sean
y the code that was sent. Thanks Sean -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Holden Sent: Friday, September 28, 2007 4:04 PM To: [email protected] Subject: Re: OCBC connection [EMAIL PROTECTED] wrote: [...] >> >>

Re: your opinion on book "Foundations of Python Network Programming"?

2007-09-28 Thread sean tierney
it's not a substitute for actually reading the code. ...if you haven't read the most recent edition of Programming Python by Mark Lutz (O'Reilly), I'd recommend that first. Programming Python covers (some) networking and everything else. More bang for the $$. Sean On 9/28

Web Ontology Language (OWL) parsing

2007-10-11 Thread Sean Davis
ng so? Thanks, Sean -- http://mail.python.org/mailman/listinfo/python-list

Async XMLRPC and job processing

2007-10-17 Thread Sean Davis
erver(.) server.serve_forever() Where can tell the threadpool that I have set up to wait indefinitely? Both are blocking. Thanks, Sean -- http://mail.python.org/mailman/listinfo/python-list

SQLObject - Connect to established DB with non-int 'id' field

2007-10-19 Thread Sean DiZazzo
int. SQLObject complains because it wants to use the id field for it's own purposes. How can I use TurboGears to get data out of this DB? Thanks in advance. ~Sean -- http://mail.python.org/mailman/listinfo/python-list

Re: SQLObject - Connect to established DB with non-int 'id' field

2007-10-20 Thread Sean DiZazzo
On Oct 19, 11:51 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > Sean DiZazzo schrieb: > > > Hi all, > > > I am just beginning with TurboGears and have run into a problem with > > SQLObject. > > > I'm trying to connect to an established

XML DOM, but in chunks

2007-10-31 Thread Sean Davis
ways that would allow one to parse out a record at a time and maintain some nice ways of accessing the elements within the record? Thanks, Sean -- http://mail.python.org/mailman/listinfo/python-list

Read from database, write to another database, simultaneously

2007-01-10 Thread Sean Davis
the oracle database and another to insert the data into postgresql with something like a pipe between the two threads might make sense, keeping both IO streams busy. Any hints on how to get started? Thanks, Sean -- http://mail.python.org/mailman/listinfo/python-list

Re: Read from database, write to another database, simultaneously

2007-01-11 Thread Sean Davis
On Jan 10, 9:27 pm, johnf <[EMAIL PROTECTED]> wrote: > Bjoern Schliessmann wrote: > > Sean Davis wrote: > > >> The author of one of the python database clients mentioned that > >> using one thread to retrieve the data from the oracle database and > >&g

Re: Read from database, write to another database, simultaneously

2007-01-11 Thread Sean Davis
On Jan 11, 3:20 am, Laurent Pointal <[EMAIL PROTECTED]> wrote: > Bjoern Schliessmann a écrit : > > > Sean Davis wrote: > > >> The author of one of the python database clients mentioned that > >> using one thread to retrieve the data from the oracle datab

Newbie: Capture traceback message to string?

2007-01-16 Thread Sean Schertell
tmpl.run({'main_error_str': main_error_str, 'full_traceback_str':full_traceback_str}) return apache.OK - ...So then my PSP page receives the errors as variables containing strings. I've been googling and experimenting for more hours than

PyMeld for html templates?

2007-01-17 Thread Sean Schertell
sorted. But how about PyMeld, any ideas on how to do it or whether it will even work as I've described? Thanks! Sean DataFly.Net Complete Web Services http://www.datafly.net -- http://mail.python.org/mailman/listinfo/python-list

Re: PyMeld for html templates?

2007-01-21 Thread Sean Schertell
Thanks Richie! That's exactly the reply I was hoping for. Hooray! Sean On Jan 20, 2007, at 9:50 PM, Richie Hindle wrote: > Hi Sean, > >> Thanks Richie -- but actually, what I had in mind was slightly >> different. I want for my CONTENT pages to only contain the conten

Re: PyMeld for html templates?

2007-01-21 Thread Sean Schertell
req.write(something) format. And of course, this fails when you feed it output from Meld. Any tips? Sean On Jan 20, 2007, at 6:18 AM, Richie Hindle wrote: > [Sean] >> I wonder if anyone has any thoughts on PyMeld as a template >> system for churning out general websites? >

How to use dynamic properties? <-- Noob

2007-01-23 Thread Sean Schertell
person.name = 'Joe' person.age = 20 person.sex = 'm' info_I_need = name print person.info_I_need # How can I make it print 'Joe' ? Sean DataFly.Net Complete Web Services http://www.datafly.net -- http://mail.python.org/mailman/listinfo/python-list

Re: How to use dynamic properties? <-- Noob

2007-01-24 Thread Sean Schertell
Yep, that was it. Thanks Gary :-) Sean On Jan 23, 2007, at 5:05 PM, Gary Herron wrote: > Sean Schertell wrote: >> person.name = 'Joe' >> person.age = 20 >> person.sex = 'm' >> >> info_I_need = name >> >> print person.

Re: My python programs need a GUI, wxPython or PyQt4?

2007-01-24 Thread Sean Schertell
Not to totally hijack the thread -- but since you're all talking about best GUI frameworks. Any thoughts on the best looking framework for OS X only? Is there any way to write little Python apps that will launch in OS X using OS X widgets? Thanks, Sean On Jan 25, 2007, at 8:

Re: My python programs need a GUI, wxPython or PyQt4?

2007-01-25 Thread Sean Schertell
That's really exciting! Thanks for the tip. Sean On Jan 25, 2007, at 9:42 AM, Robert Kern wrote: > Sean Schertell wrote: >> Not to totally hijack the thread -- but since you're all talking >> about best GUI frameworks. Any thoughts on the best looking framework >&

Re: Off-Topic Posts

2007-01-26 Thread Sean Schertell
Give it a rest, m'kay? Sean P.S. Printing letters in all-caps and using extra exclamation points doesn't necessarily make your argument any more compelling. On Jan 27, 2007, at 8:02 AM, [EMAIL PROTECTED] wrote: > What did Dick Faced Cheney told Honorable Senator Patrick Leahy ?

alias for data member of class instance?

2007-02-05 Thread Sean McIlroy
hi all is there a way to do this ... class clown: def __init__(self): self.x = 0 self.y = ALIAS(self.x) ## FEASIBLE ? ... so that you get results like this ... krusty = clown() krusty.x >> 0 krusty.y >> 0 krusty.x = 1 krusty.x >> 1 krusty.y >> 1 ... ? th

Re: Graphs, bar charts, etc

2007-02-07 Thread Sean Davis
able to write somewhere. Am I using it wrong? > >Is there something else I can use which can produce graphs easily? > > -- > Kind regards, > Jan Danielsson You might want to look at RPy (http://rpy.sourceforge.net), an interface to R (statistical programming environment). Sean -- http://mail.python.org/mailman/listinfo/python-list

Re: Need an identity operator because lambda is too slow

2007-02-18 Thread Sean McIlroy
On Feb 17, 9:59 pm, "Deron Meranda" <[EMAIL PROTECTED]> wrote: [snip] this may be really dense, but i'm curious what's wrong with the "multiplexer" idiom: for item in some_sequence: item2 = (not some_rare_condition and item) or \ (some_rare_condition and some_transform_fun

Anyone had success using NetUseAdd() on shares accessed through a Windows 2003 DFS root?

2007-11-08 Thread Sean Peterson
;}) # this doesn't work -- win32net.NetUseAdd(None,1,{'remote':r'//NTS-03.central.purdue.lcl/MI/TEAMDIRS/DCS Zone','local':'W:'}) Any help greatly appreciated. -Sean. -- http://mail.python.org/mailman/listinfo/python-list

RegExp Help

2007-12-13 Thread Sean DiZazzo
+>*') # tried here with re.DOTALL as well tags = re.findall(retag) Can anyone help me? ~Sean -- http://mail.python.org/mailman/listinfo/python-list

Re: RegExp Help

2007-12-13 Thread Sean DiZazzo
On Dec 13, 5:49 pm, Sean DiZazzo <[EMAIL PROTECTED]> wrote: > Hi group, > > I'm wrapping up a command line util that returns xml in Python. The > util is flaky, and gives me back poorly formed xml with different > problems in different cases. Anyway I'm making pr

Elementtree tag

2007-12-13 Thread Sean DiZazzo
me that I'm missing? Or is it just bad XML style? Thanks! ~Sean -- http://mail.python.org/mailman/listinfo/python-list

Re: Elementtree tag

2007-12-13 Thread Sean DiZazzo
On Dec 13, 8:46 pm, Waldemar Osuch <[EMAIL PROTECTED]> wrote: > On Dec 13, 7:52 pm, Sean DiZazzo <[EMAIL PROTECTED]> wrote:> I have a another > question... > > > using elementtree, is there a proper way to get at the data > > '123456789' in this ta

Re: RegExp Help

2007-12-14 Thread Sean DiZazzo
On Dec 14, 12:04 am, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > On Thu, 13 Dec 2007 17:49:20 -0800, Sean DiZazzo wrote: > > I'm wrapping up a command line util that returns xml in Python. The > > util is flaky, and gives me back poorly forme

Re: RegExp Help

2007-12-14 Thread Sean DiZazzo
On Dec 14, 3:06 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Fri, 14 Dec 2007 06:06:21 -0300, Sean DiZazzo <[EMAIL PROTECTED]> > escribió: > > > > > On Dec 14, 12:04 am, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:

Keyword args to SimpleXMLRPCServer

2007-12-17 Thread Sean DiZazzo
t;baz") except Error, v: print "ERROR", v [seans-imac:~/Desktop/] halfitalian% ./client.py Traceback (most recent call last): File "./XMLRPC_client.py", line 9, in print server.returnArgs("foo", bar="bar", baz="baz") TypeError: __

Re: Keyword args to SimpleXMLRPCServer

2007-12-17 Thread Sean DiZazzo
On Dec 17, 4:13 pm, Sean DiZazzo <[EMAIL PROTECTED]> wrote: > Why is the following not working? Is there any way to get keyword > arguments working with exposed XMLRPC functions? > > server.py > import SocketServer > from SimpleXMLRPCServer imp

askopenfilename() as root window

2007-12-18 Thread Sean DiZazzo
uot;" ...does the job, but it opens that nagging root window beside it. I tried setting parent=None to no avail. The second window always shows up. Any ideas? ~Sean -- http://mail.python.org/mailman/listinfo/python-list

Re: askopenfilename() as root window

2007-12-18 Thread Sean DiZazzo
On Dec 18, 6:06 pm, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > On 18 dic, 22:43, Sean DiZazzo <[EMAIL PROTECTED]> wrote: > > > Is there any way to open a Tkinter.askopenfilename() without opening a > > root window alongside the file chooser? > > > I si

Confused by Python and nested scoping (2.4.3)

2006-04-19 Thread Sean Givan
or: print val UnboundLocalError: local variable 'val' referenced before assignment. I'm thinking this is some bug where the interpreter is getting ahead of itself, spotting the 'val = 20' line and warning me about something that doesn't need warni

Re: read_nonblocking error in pxssh

2008-01-16 Thread Sean DiZazzo
ith great success: (ssh_session.py) http://www.koders.com/python/fidA430838E5789710E4DCF34C414AD75EB4EEE63CF.aspx Good luck. ~Sean On Jan 16, 9:24 am, jrpfinch <[EMAIL PROTECTED]> wrote: > I'm attempting to use the pxssh to execute commands on a remote > machine and do st

package import

2008-02-05 Thread Sean Allen
ok, what am i doing wrong? in current working directory i have: t.py sub/t1.py t.py is: import sub.t1 i get: ImportError: No module named sub.t1 t.py is import sub i get: ImportError: No module named sub.t1 -- i am obviously missing something really basic here. have tried on multiple ma

Re: package import

2008-02-06 Thread Sean Allen
Thanks. Found that 10 minutes after I sent. On Feb 6, 2008, at 4:57 AM, Diez B. Roggisch wrote: > Sean Allen wrote: > >> ok, what am i doing wrong? >> >> in current working directory i have: >> >> t.py >> sub/t1.py >> >> t.py is: >>

Re: refreshing the cache time of a key

2008-02-27 Thread Sean Chittenden
t this patch, but... See the post for details that I won't bore folks with here. -sc -- Sean Chittenden [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

<    1   2   3   4   5   >