trouble with pyplot in os x

2012-08-03 Thread Eric
(bbox_array)) TclError I'm using Python 2.7.3 on OS X 10.6.8 and I'm invoking python by doing "arch -i386 python" because matplotlib doesn't do 64-bit. Has anyone else seen this? Does anyone know why this is happening? It looks like a problem with tkinter bu

Re: trouble with pyplot in os x

2012-08-04 Thread Eric
On Saturday, August 4, 2012 8:11:44 AM UTC-5, William R. Wing (Bill Wing) wrote: > On Aug 3, 2012, at 11:12 PM, Eric wrote: > > > > > I'm just starting to futz around with matplotlib and I tried to run this > > > example from the matplotlib doc

Validating string for FDQN

2011-06-06 Thread Eric
Hello, Is there a library or regex that can determine if a string is a fqdn (fully qualified domain name)? I'm writing a script that needs to add a defined domain to the end of a hostname if it isn't already a fqdn and doesn't contain the defined domain. Thanks. -- http://mail.python.org/mailman

A beginning programmer

2011-07-10 Thread Eric
s (except maybe c++) to help out the big projects like KDE / Gnome. I realize this is the python mailing list and that I brought up some non-python languages but I'm sure my situation is hardly new for those looking to get into programming but having no idea of where to begin. Any f

retrieving https pages

2005-07-18 Thread Eric
nload it to disk? Or am i just looking at a ling complicated task. I'd really like to get the page because then i can analyze it from a cron job and email myself my current options value each week or each month. Thanks Eric -- http://mail.python.org/mailman/listinfo/python-list

Newbie Program

2005-08-04 Thread Eric
be a more sophisticated way, but I am just trying to use what the book has taught so far. Thanks, Eric -- http://mail.python.org/mailman/listinfo/python-list

Ftplib.FTP_TLS Ports

2014-12-09 Thread Eric
27;) session.storbinary('STOR Bkup.tar.gz', file) file.close() session.quit() Thanks! Eric -- https://mail.python.org/mailman/listinfo/python-list

Built-in Python3 web server functionality - wsgiref & http.server

2015-06-07 Thread Eric
I am trying to better understand the built-in python3 web server functionality and have just started reading the documentation. There seem to be two options provided by Python 3. 1. wsgiref https://docs.python.org/3/library/wsgiref.html 2. http.server https://docs.python.org/3/library/http.ser

Re: Why Python is not both an interpreter and a compiler?

2015-09-01 Thread eric
On Tue, Sep 1, 2015 at 12:20 PM, Marko Rauhamaa wrote: Steven D'Aprano : I believe that Marko is wrong. It is not so easy to compile Python to machine language for real machines. That's why the compiler targets a virtual machine instead. Somehow Guile manages it even though Scheme is

Python horks on WinXP path names

2011-12-08 Thread Eric
for fileName in fileNames: print fileName file = open(fileName, 'r') for line in file.readlines(): print line.strip() I get this: C:\Documents and Settings\eric\Desktop\PythonShop>python picker.py {C:/Documents and Settings/eric/Desktop/PythonShop/cereal.py} { Trac

Re: Python horks on WinXP path names

2011-12-08 Thread Eric
On Dec 8, 2:43 pm, Ian Kelly wrote: > On Thu, Dec 8, 2011 at 1:16 PM, Eric wrote: > > I'm running Python 2.7 on WinXP (ActiveState community version) and > > when I try to do this: > > > if __name__ == '__main__': > >    root = Tkinter

curses (or something) for windows

2011-12-12 Thread Eric
I've seen how to do it in unix land but not for windows. TIA, eric -- http://mail.python.org/mailman/listinfo/python-list

Re: curses (or something) for windows

2011-12-12 Thread Eric
On Dec 12, 5:47 pm, alex23 wrote: > On Dec 13, 7:15 am, Eric wrote: > > > Is there something similar to curses available for the Windows version > > of Python (2.7, community edition)?  Preferably something built-in. > > In general, I'm looking to do gui-ish t

file data => array(s)

2011-12-14 Thread Eric
I'm curious to see what can be done with just the box stock python install. TIA, eric -- http://mail.python.org/mailman/listinfo/python-list

Re: file data => array(s)

2011-12-14 Thread Eric
a simple, sensible (for non-programmers) error message and quit. BTW, I didn't say it originally, but this is for 2.7 and hopefully it'll be easy to carry over to 3.2. Thanks, eric -- http://mail.python.org/mailman/listinfo/python-list

Re: file data => array(s)

2011-12-15 Thread Eric
On Dec 14, 5:27 pm, Steven D'Aprano wrote: > On Wed, 14 Dec 2011 14:20:40 -0800, Eric wrote: > > I'm trying to read some file data into a set of arrays.  The file data > > is just four columns of numbers, like so: > > >    1.2    2.2   3.3  0.5 > >    0.1

Re: file data => array(s)

2011-12-15 Thread Eric
On Dec 14, 4:59 pm, Dave Angel wrote: > On 12/14/2011 05:20 PM, Eric wrote: > > > > > > > > > I'm trying to read some file data into a set of arrays.  The file data > > is just four columns of numbers, like so: > > >     1.2    2.2   3.3  0.5 &g

what does 'a=b=c=[]' do

2011-12-21 Thread Eric
ut I still have trouble wrapping my brain around some of the concepts. TIA, eric -- http://mail.python.org/mailman/listinfo/python-list

Re: what does 'a=b=c=[]' do

2011-12-22 Thread Eric
On Dec 21, 6:50 pm, alex23 wrote: > On Dec 22, 8:25 am, Eric wrote: > > > This surprises me, can someone tell me why it shouldn't?  I figure if > > I want to create and initialize three scalars the just do "a=b=c=7", > > for example, so why not extend it

Re: what does 'a=b=c=[]' do

2011-12-22 Thread Eric
On Dec 21, 5:44 pm, Steven D'Aprano wrote: > Yes, you should create your lists before trying to append to them. > > But you aren't forced to use a for-loop. You can use a list comprehension: > > x = [some_function(a) for a in range(n)] > > Notice that here you don't need x to pre-exist, because t

Re: ANNOUNCE; Try python beta

2005-12-21 Thread Eric
JavaScript almost as annoying as the fact that it doesn't do anything. At all, even with JavaScript enabled. Then again, my main browser is elinks, so my opinion is somewhat biased. If you get it working in Lynx, supporting other browsers should be easier than the other posts make this solu

Re: Failing unittest Test cases

2006-01-09 Thread Eric
t be used to > aid this process. Any comments, additions, deletions? Interesting idea. I have been prepending 'f' to my test functions that don't yet work, so they simply don't run at all. Then when I have time to add new functionality, I grep for 'ftest' in the

Re: Suppressing banner on interactive startup?

2006-08-05 Thread Eric
> to other options? [...] I noticed that the first part of your query was never answered. To combine both of these, try the following (modified to taste): python -ic 'import sys; sys.ps1="$ "; sys.ps2="> "' - Eric -- http://mail.python.org/mailman/listinfo/python-list

pyPgSQL / trac issues

2006-09-04 Thread Eric
Hey guys, Has anyone seen this error when installing trac? The problem seems related to pyPgSQL, which is installed. (Although I had to go in and add some headers to make it work) Templates directory [/usr/local/share/trac/templates]> Creating and Initializing Project Failed to create environm

Re: newbe's re question

2006-09-20 Thread Eric
[EMAIL PROTECTED] wrote: > All I am after realy is to change this > > reline = re.line.split('instr', '/d$') > > into something that grabs any line with instr in it take all the > numbers and then grab any comment that may or may not be at the end of > the line starting with ; until the end of the

Re: Python Input from keyboard

2006-09-22 Thread Eric
utab wrote: > hi, > I could not understand why python stdin and stdout are not explained in > any of the tutorials on the net, > > I want to read some input continuously from keyboard and then I would > like to process these input. > > I have a code like this but getting errors, I would like to ter

Re: Python Input from keyboard

2006-09-22 Thread Eric
> std::cin << value; Oops, that should be >>. -- http://mail.python.org/mailman/listinfo/python-list

Re: Replacing line in a text file

2006-09-22 Thread Eric
Tim Chase wrote: > > That is, until such time as Guido finalizes PyESP. > > > > import PyESP > > e = ESP.mindread(CSUIDL, "r") > > Sounds like an extension to the __future__ module. > > >>> from __future__ import answers > >>> answers.answer(op.question) > > How many other languages have a time-

Re: Replacing line in a text file

2006-09-22 Thread Eric
CSUIDL PROGRAMMEr wrote: > Folks > I am trying to read a file > This file has a line containing string 'disable = yes' > > I want to change this line to 'disable = no' > > The concern here is that , i plan to take into account the white spaces > also. > > I tried copying all file int list and the

Re: Fatal error after RE-installing Python 2.3.4

2006-09-22 Thread Eric
Cappy2112 wrote: > I've just started a job which has a massive python2.3.4-centric tools > installation and configuration. > > I know what you're going to say, but I can't upgrade and be the only > one with a newer version. There are close to 30 engineers using this > same tools configuration, and

Re: which "GUI module" you suggest me to use?

2007-06-05 Thread Eric
On Jun 5, 4:17 pm, ZioMiP <[EMAIL PROTECTED]> wrote: > Cameron Laird ha scritto: > > > > > In article <[EMAIL PROTECTED]>, > > ZioMiP <[EMAIL PROTECTED]> wrote: > >> Hi to all... > > >> I'm actually using Tkinter for my GUI... but I need to "put a piece of a > >> web-page in a widget" how can I do

Re: Want to learn Python

2007-06-15 Thread Eric
On Jun 15, 7:41 am, Amol <[EMAIL PROTECTED]> wrote: > Hi, I want to learn Python in less than a month which resources should > I use. I prefer to read books . Please give me a list of *recognized* > resources. Thank You all I started here: http://docs.python.org/tut/tut.html -- http://mail.pytho

Re: newbie question: parsing street name from address

2007-06-21 Thread Eric
On Jun 21, 9:47 am, cjl <[EMAIL PROTECTED]> wrote: > P: > > I am working on a project that requires geocoding, and have written a > very simple geocoder that uses the Google service. > > I would like to be able to extract the name of the street from the > addresses in my data, however they vary sig

Re: newbie question: parsing street name from address

2007-06-22 Thread Eric
On Jun 21, 6:03 pm, John Machin <[EMAIL PROTECTED]> wrote: > On Jun 22, 4:43 am, Eric <[EMAIL PROTECTED]> wrote: > > > > > On Jun 21, 9:47 am, cjl <[EMAIL PROTECTED]> wrote: > > > > P: > > > > I am working on a project that requires g

Newbie question - better way to do this?

2007-05-27 Thread Eric
What I want to do is find consecutive sequences of words that have the first letter capitalized, and then call doSomething on them. (And you can ignore the fact that it won't find a sequence at the very end of words, that is fine for my purposes). Thanks, Eric -- http://mail.python.org/mai

with ctypes, how to parse a multi-string

2007-05-30 Thread Eric
Hi, I am currently dealing with ctypes, interfacing with winscard libbrary (for smart card access). Several APIs (e.g. SCardListReaderGroupsW ) take a pointer to an unicode string as a parameter , which points at function return to a "sequence" of unicode strings, NULL terminated. The last strin

Re: with ctypes, how to parse a multi-string

2007-05-31 Thread Eric
On May 31, 2:52 pm, Thomas Heller <[EMAIL PROTECTED]> wrote: > Eric schrieb: > > > > > Hi, > > > I am currently dealing with ctypes, interfacing with winscard libbrary > > (for smart card access). > > > Several APIs (e.g. SCardListReaderGroups

Re: Free Air Conditioners!!!!!!

2007-08-22 Thread Eric
And $15 shipping to get the "free" paper sent to you! ;^) "Zentrader" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Aug 21, 10:13 pm, "Scott M." <[EMAIL PROTECTED]> wrote: >> Oh my God! How did you know?!! You were so smart to post that here! >> >> <[EMAIL PROTECTED]> wrote

Getting started with python

2007-04-14 Thread Eric
Hello, after reading some of the book Programming Python it seems that python is something I would like to delve deeper into. The only thing is, I have no idea what I should try and write. So I was hoping that someone here could help point me to a group/project that would be a good starting place f

Re: Replace

2006-05-06 Thread Eric
On 2006-05-06, Tim Williams wrote: > On 06/05/06, Eric <[EMAIL PROTECTED]> wrote: >> I have a string... >> >> str = "tyrtrbd =ffgtyuf == =tyryr =u=p ff" >> >> I want to replace the characters after each '=', what I ended up doing

Re: Replace

2006-05-06 Thread Eric
On 2006-05-06, Dennis Lee Bieber wrote: > On Sat, 06 May 2006 19:55:35 GMT, Dennis Lee Bieber ><[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > > >> splits = encData.split("#", 1) > > Whoops # => = > > Since there are only what, five, escaped characters, th

standalone python web server

2007-12-26 Thread eric
. Any recommendation or tools suggested for me? Thanks, Eric -- http://mail.python.org/mailman/listinfo/python-list

Re: standalone python web server

2007-12-27 Thread eric
On Dec 27, 6:22 pm, Bjoern Schliessmann wrote: > eric wrote: > > I want to setup simple python web server and I want it to just > > unzip and run, without any installation steps (have no right to do > > it). > > Which OS? You might run into authorisation problems if

Re: standalone python web server

2007-12-27 Thread eric
On Dec 27, 4:52 pm, Panos Laganakos <[EMAIL PROTECTED]> wrote: > On Dec 27, 7:41 am, eric <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > I want to setup simple python web server and I want it to just unzip > > and run, without any installation steps (have

Re: Client side GUI-like web framework ?

2008-02-04 Thread Eric
On Feb 4, 9:45 am, USCode <[EMAIL PROTECTED]> wrote: > Wouldn't it be handy if there was a web framework that allowed you to > create pages and control the interface like you would using a > client-side GUI framework such as Tkinter? > > The framework would need a small, fast web server that would

[Q] SOAP Server in Python

2008-03-19 Thread Eric
What is the best, well supported, way to write a SOAP Server in Python? Where can a good example be found? I do have a WSDL file. In PHP5, it is rather trivial to write a SOAP server once one has a WSDL file. For example, a simple SOAP Server written using PHP5 might look like: setClass( "MySoapS

Re: SOAP Server in Python

2008-03-19 Thread Eric
On Mar 19, 10:59 am, [EMAIL PROTECTED] wrote: > On Mar 19, 9:19 am, Eric <[EMAIL PROTECTED]> wrote: > > > I am basically looking to do the same thing in Python as easily. > > > Any help or pointers would be appreciated. > > Googling for "python soap" t

Re: SOAP Server in Python

2008-03-19 Thread Eric
On Mar 19, 10:59 am, [EMAIL PROTECTED] wrote: > On Mar 19, 9:19 am, Eric <[EMAIL PROTECTED]> wrote: > > > I am basically looking to do the same thing in Python as easily. > > > Any help or pointers would be appreciated. > > Googling for "python soap" t

calling an external program and capturing the output

2009-01-18 Thread Eric
ing to and capturing from an external program. Any suggestions would be greatly appreciated. -Eric -- http://mail.python.org/mailman/listinfo/python-list

Re: calling an external program and capturing the output

2009-01-18 Thread Eric
called add.pl that reads 2 numbers from stdin and adds them together. Thanks again for the help. -Eric #!/usr/bin/env python import subprocess prog = "./add.pl" args = "3 4" app = subprocess.Popen (prog ,stdout=subprocess.PIPE,stdin=subprocess.PIPE,stderr=subprocess.PIPE) pr

Combining several text files

2009-02-02 Thread Eric
This is my first post, so please advise if I'm not using proper etiquette. I've actually searched around a bit and while I think I can do this, I can't think of a clean elegant way. I'm pretty new to Python, but from what I've learned so far is that there is almost always an easier way. I have to

Re: Combining several text files

2009-02-02 Thread Eric
On Feb 2, 12:17 pm, Chris Rebert wrote: > On Mon, Feb 2, 2009 at 9:48 AM, Eric wrote: > > This is my first post, so please advise if I'm not using proper > > etiquette. I've actually searched around a bit and while I think I can > > do this, I can't think of

Re: python an sqlite objects

2008-12-03 Thread eric
On Dec 3, 10:21 pm, Gerhard Häring <[EMAIL PROTECTED]> wrote: > azrael wrote: > > It logical that it would be more efficient and logical to use a object > > oriented database, but in this case I ask because of the portable > > nature of sqlite. > > > so, if I get it right, this should be possible [

Re: simplest way to strip a comment from the end of a line?

2008-12-04 Thread eric
On Dec 4, 4:50 pm, Joe Strout <[EMAIL PROTECTED]> wrote: > I have lines in a config file which can end with a comment (delimited   > by # as in Python), but which may also contain string literals   > (delimited by double quotes).  A comment delimiter within a string   > literal doesn't count.  Is t

Re: simplest way to strip a comment from the end of a line?

2008-12-04 Thread eric
On Dec 4, 5:15 pm, eric <[EMAIL PROTECTED]> wrote: > On Dec 4, 4:50 pm, Joe Strout <[EMAIL PROTECTED]> wrote: > > > I have lines in a config file which can end with a comment (delimited   > > by # as in Python), but which may also contain string literals   > &

Re: simplest way to strip a comment from the end of a line?

2008-12-05 Thread eric
On Dec 4, 11:35 pm, Paul McGuire <[EMAIL PROTECTED]> wrote: > Yowza!  My eyes glaze over when I see re's like "r'(?m)^(?P.*? > (".*?".*?)*)(?:#.*?)?$"! > yeah, I know ... :( ( I love complicated regexp ... it's like a puzzle game for me) > from pyparsing import quotedString, Suppress, restOfLine

A more pythonic way of writting

2008-12-05 Thread eric
Hi, I've got this two pieces of code that works together, and fine def testit(): for vals in [[i&mask==mask for mask in [1<', flag(*vals) def flag(IGNORECASE=False, LOCALE=False, MULTILINE=False, DOTALL=False, UNICODE=False, VERBOSE=False): vals = [IGNORECASE, LOCALE, MULTILINE, DOTALL,

Re: A more pythonic way of writting

2008-12-05 Thread eric
On Dec 5, 3:44 pm, "Mark Tolonen" <[EMAIL PROTECTED]> wrote: > "eric" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > def flag(IGNORECASE=False, LOCALE=False, MULTILINE=False, > > DOTALL=False, UNICODE=False, VERB

Re: simplest way to strip a comment from the end of a line?

2008-12-05 Thread eric
On Dec 5, 11:56 am, eric <[EMAIL PROTECTED]> wrote: > On Dec 4, 11:35 pm, Paul McGuire <[EMAIL PROTECTED]> wrote: > > > Yowza!  My eyes glaze over when I see re's like "r'(?m)^(?P.*? > > (".*?".*?)*)(?:#.*?)?$"! > > yeah, I know ..

Re: A more pythonic way of writting

2008-12-05 Thread eric
On Dec 6, 12:19 am, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > On Fri, 05 Dec 2008 07:44:21 -0800, eric wrote: > > I like to believe that the less the 'debug pointer' stands in the python > > code, the fastest the code is (or is potentially)

Re: Determining whether a variable is less/greater than a range.

2008-12-08 Thread eric
On Dec 8, 11:44 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi. I'm having another go at learning Python so I'll probably be > asking a few basic questions. Here is the first one. > > a = list(range(10, 21) > > b = 9 > > c = 21 > > How can I find out if b and c have values less or more tha

Google Summer of Code 2009

2008-12-08 Thread Eric
amount of Python, and I am a Sophomore Computer Science major. My school teaches Java, but on the side I taught myself Python. If anyone knows of any projects that could use another hand, I would appreciate it. Thanks, Eric -- http://mail.python.org/mailman/listinfo/python-list

Re: 'pretty print' for built in types

2008-12-09 Thread eric
On Dec 9, 4:31 pm, Robert Dailey <[EMAIL PROTECTED]> wrote: > Hi, > > Is there a built in way to 'pretty print' a dict, list, and tuple > (Amongst other types)? Dicts probably print the ugliest of them all, > and it would be nice to see a way to print them in a readable way. I > can come up with my

Re: Google Summer of Code 2009

2008-12-09 Thread Eric
On Dec 9, 6:26 am, André <[EMAIL PROTECTED]> wrote: > On Dec 8, 10:34 pm, Eric <[EMAIL PROTECTED]> wrote: > > You should have a look athttp://wiki.python.org/moin/SummerOfCode > > It's still early, so there's nothing yet for 2009, but I am sure that > som

Re: Best way to report progress at fixed intervals

2008-12-10 Thread eric
Don't mind if I give my shot ? def work(i): """ Dummy process function, which takes a random time in the interval 0.0-0.5 secs to execute """ print "Work step %d" % i time.sleep(0.5 * random.random()) def workAll(work, verbose=True, max_iter=20, progress_interval=1.0):

Re: How to pass out the result from iterated function

2008-12-10 Thread eric
On Dec 10, 9:16 pm, JD <[EMAIL PROTECTED]> wrote: > I got a iterated function like this: > > def iterSomething(list): >     has_something = False >     for cell in list: >         if something in cell: >             has_something = True >             output = something >    if has_something: >    

Best Practice using Glade/Python

2008-12-18 Thread eric
e now. So here is the question, do you practive galde/python, which is your practice ? Thanks Eric http://codeslash.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Factoring Polynomials

2008-12-18 Thread eric
4ac)^1/2) / 2a > > into python. Any ideas? with numpy: from numpy import * s=[1,-1] x = -b+s*sqrt( b**2-4*a*c )/(2*a) Eric http://codeslash.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Factoring Polynomials

2008-12-18 Thread eric
On Dec 18, 9:40 pm, "J. Cliff Dyer" wrote: > On Thu, 2008-12-18 at 11:52 -0800, eric wrote: > > On Dec 18, 8:37 pm, collin.da...@gmail.com wrote: > > > I am trying to write a simple application to factor polynomials. I > > > wrote (simple) raw_input lines t

Re: Which sparse matrix package?

2008-12-18 Thread eric
the bloom filter using i*j%m as hash function (for instance) here arrays have the size of your actual data (maybe thousands of cell for a huge spreadsheet), that's MUCH better than the size of the maxN*maxM if my memory is correct, there is room in numpy for your own sparse matrix implementation. You should try it with your own sparse matrix implementation. -- Eric http://codeslash.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

best way to code

2008-12-19 Thread eric
st, I don't know how to make it work) In fact, I would like to define a class, and an instance in a single statement thanks -- Eric http://codeslash.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Re: best way to code

2008-12-19 Thread eric
On Dec 19, 5:35 pm, Peter Otten <__pete...@web.de> wrote: > eric wrote: > > hi, > > > I need to find a "good" design pattern to instanciate, and add > > specific code all in one. Let me explain it : > > > I need to define "some" code, be

Re: best way to code

2008-12-19 Thread eric
On Dec 19, 6:36 pm, eric wrote: > On Dec 19, 5:35 pm, Peter Otten <__pete...@web.de> wrote: > > > > > eric wrote: > > > hi, > > > > I need to find a "good" design pattern to instanciate, and add > > > specific code all in one. Let me

Simple question about Python lists

2008-11-11 Thread Eric
;t seem to figure out a similar Python construct for selecting specific indices. Any suggestions? Thanks, Eric -- http://mail.python.org/mailman/listinfo/python-list

Re: Simple question about Python lists

2008-11-11 Thread Eric
On Nov 11, 1:51 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > On Tue, 11 Nov 2008 11:47:53 -0800, Eric wrote: > > I'm learning Python (while coming from MATLAB). One question I have is > > that if I have a list with say 8 elements, and I want just a

Suggestions for an education programming project

2008-11-17 Thread Eric
g are programming in OS X. Thanks in advance, Eric -- http://mail.python.org/mailman/listinfo/python-list

Re: Suggestions for an education programming project

2008-11-17 Thread Eric
On Nov 17, 1:06 pm, Arnaud Delobelle <[EMAIL PROTECTED]> wrote: > Eric <[EMAIL PROTECTED]> writes: > > Hi, > > > I've been trying to get my son interested in learning some simple > > programming for a while. While I understand that a structured tuto

Re: Simple question about Python lists

2008-11-17 Thread Eric
On Nov 11, 7:31 pm, Ben Finney <[EMAIL PROTECTED]> wrote: > Steven D'Aprano <[EMAIL PROTECTED]> writes: > > On Wed, 12 Nov 2008 10:08:45 +1100, Ben Finney wrote: > > > >Eric<[EMAIL PROTECTED]> writes: > > >> In MATLAB, if  I just wan

The spam to content ratio of this group

2009-04-01 Thread Eric
is getting very high. Why aren't captcha's used to prevent all of this noise? -- http://mail.python.org/mailman/listinfo/python-list

Wait or not?

2008-09-30 Thread Eric
I've been wanting to learn Python for a while now but I can't decide on whether to wait for Python 3's final release and learn it or just go ahead and learn 2.x. Would it be hard to make the transition being a noob? -- http://mail.python.org/mailman/listinfo/python-list

CRLF Newlines and libc

2009-07-27 Thread Eric
2009/07/stdout.html) and this chain on Python-Dev (http:// mail.python.org/pipermail/python-dev/2009-July/090720.html). Right now, unless there is way to disable the newline conversions, I am thinking I will just have to document the caveat and call it a day. Is there a better way to handle

distributing a binary package

2013-05-06 Thread Eric Frederich
the work. It produces a directory that simply needs to be copied to site-packages but how do I craft a setup.py script to do the actually installation? Thanks, ~Eric -- http://mail.python.org/mailman/listinfo/python-list

Re: distributing a binary package

2013-05-07 Thread Eric Frederich
I see where I can specify a module that distutils will try to compile. I already have the .so files compiled. I'm sure its simple, I just can't find it or don't know what to look for. On Mon, May 6, 2013 at 9:13 PM, Miki Tebeka wrote: > >> Basically, I'd like to know how to create a proper setup

python sockets question

2013-05-15 Thread Eric Miller
Can python sockets be used to capture IP traffic when the traffic is originating from a non-python source? Using a Lantronix UDS-1100 serial to IP converter. The goal is to write a small proof of concept piece in Python to capture serial data output by this device over IP. I've done a couple t

properly catch SIGTERM

2012-07-19 Thread Eric Frederich
er/test.py", line 125, in sys.stdout.flush() IOError: [Errno 4] Interrupted system call How should I fix this? Am I doing this completely wrong? Thanks, ~Eric -- http://mail.python.org/mailman/listinfo/python-list

Re: properly catch SIGTERM

2012-07-20 Thread Eric Frederich
On Fri, Jul 20, 2012 at 1:51 AM, Jason Friedman wrote: > > This seems to work okay but just now I got this while hitting ctrl-c > > It seems to have caught the signal at or in the middle of a call to > > sys.stdout.flush() > > > > > > --- Caught SIGTERM; Attempting to quit gracefully --- > > Trac

Using Python packaging tools to maintain source distributions in other languages?

2012-07-23 Thread eric . lemings
Greetings all, I would like to leverage the Python packaging tools (e.g. distutils, setuptools, distribute, et. al.) to maintain (i.e. download, extract, configure, make, install, package) source distributions other than Python modules (e.g. zlib, openssl). Are there any open-source packages/t

Re: Using Python packaging tools to maintain source distributions in other languages?

2012-07-24 Thread eric . lemings
On Monday, July 23, 2012 11:59:10 PM UTC-6, Rusi wrote: > On Jul 23, 11:16 pm, eric.lemi...@gmail.com wrote: > > Greetings all, > > > > I would like to leverage the Python packaging tools (e.g. distutils, > setuptools, distribute, et. al.) to maintain (i.e. download, extract, > configure, make, i

remote read eval print loop

2012-08-16 Thread Eric Frederich
#x27;d have to send over a complete block? Thanks, ~Eric -- http://mail.python.org/mailman/listinfo/python-list

Re: remote read eval print loop

2012-08-17 Thread Eric Frederich
What I wanted to implement was a debugging console that runs right on the client rather than on the server. You'd have to be logged into the application to do anything meaningful or even start it up. All of the C functions that I created bindings for respect the security of the logged in user. Wit

Re: remote read eval print loop

2012-08-21 Thread Eric Frederich
= MyInteractiveConsole() On Fri, Aug 17, 2012 at 10:06 AM, Chris Angelico wrote: > On Fri, Aug 17, 2012 at 11:28 PM, Eric Frederich > wrote: > > Within the debugging console, after importing all of the bindings, there > > would be no reason to import anything whatso

error importing smtplib

2012-11-15 Thread Eric Frederich
Hello, I created some bindings to a 3rd party library. I have found that when I run Python and import smtplib it works fine. If I first log into the 3rd party application using my bindings however I get a bunch of errors. What do you think this 3rd party login could be doing that would affect the

Re: error importing smtplib

2012-11-15 Thread Eric Frederich
Thanks for the idea. sys.path was the same before and after the login What else should I be checking? On Thu, Nov 15, 2012 at 11:57 AM, Terry Reedy wrote: > On 11/15/2012 9:38 AM, Eric Frederich wrote: > >> Hello, >> >> I created some bindings to a 3rd party library. &

Re: error importing smtplib

2012-11-15 Thread Eric Frederich
only get these errors/warnings on one environment out of 10 or so development and qa machines. Any help trying to figure out what is different before and after the login would be appreciated. Is there some place in /proc I could look to see what happened? Thanks, ~Eric On Thu, Nov 15, 2012 at

Re: error importing smtplib

2012-11-16 Thread Eric Frederich
n I try to import smtplib it tries getting things from there and that is where the errors are coming from. The question now is how do I fix this? On Thu, Nov 15, 2012 at 4:37 PM, Terry Reedy wrote: > On 11/15/2012 1:48 PM, Eric Frederich wrote: > >> Thanks for the idea. >>

Re: error importing smtplib

2012-11-19 Thread Eric Frederich
I can do this in stand alone programs because my code does the import and calls the login function so I can control the order of things. Unfortunately stand alone programs are not the only ways in which I am using these Python bindings. You can customize and extend this 3rd party application at va

empty object from C

2012-12-07 Thread Eric Frederich
class Msg(object): pass ... and then instantiate an instance, and call the function. msg = Msg() foo(msg) I know how to create an empty dictionary and I get get by with that, but I'd like to create an object. Thanks, ~Eric -- http://mail.python.org/mailman/listinfo/python-list

problem with web browser module

2012-12-15 Thread Eric Johansson
arate tabs within the same browser instance.:-) A clue or two would be welcome. Thanks --- eric -- http://mail.python.org/mailman/listinfo/python-list

Re: problem with web browser module

2012-12-16 Thread Eric Johansson
On Saturday, December 15, 2012 9:14:25 PM, Terry Reedy wrote: I believe this worked with Firefox the last time I tested. I just read the docs. Never tried IE. I believe details partly depend on browser. thank you Terry. I will try with Firefox but the main reason I'm using IE is simply becau

speaking at PyCon

2012-01-28 Thread Eric Snow
more advice. :) For anyone speaking at the conference (or generally), I hope this will be helpful. Thanks! -eric -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   4   5   6   7   8   9   10   >