python guru.. for a short conversation regarding bittorrent..

2005-10-02 Thread bruce
ps haven't been responsive, so i figured i'd try here... if there's anyone here that i could talk with (phone) who's knowledgable about these areas, i'd appreciate it. i'm trying to get a much better understanding of the actual underlying app. thanks -bruce [EMAIL

RE: Any college offering Python short term course?

2005-11-21 Thread bruce
en't had a good/large selection... it appears that some of the classes are taught by adjunct/part-time faculty, and they're not that easy to get to... if anybody knows of user-groups that also have this kind of talent, i'd appreciate it as well... send responses to the list as well!!!

amazon web services/api...

2005-08-07 Thread bruce
hi... has anybody ever played/successfully with the amazon- web services/api? i'm trying to figure out how i can use the browsenodeid to generate ISBN information for a book. the examples i've seen on various sites haven't been much help yet. thanks -bruce [EMAIL PROTEC

fsm - revert to previous state (newbie)

2005-08-16 Thread bruce
Hi all, I`m working on a fsm that looks up its transitions in some dictionaries. I`ve defined a default transition to an "error_state" that is launched when there is no match of input_symbol, state etc in other dicts. The error state just prints out that user_input was not defined. After this I w

Re: How to clear screen in Python interactive shell mode?

2005-09-16 Thread bruce
elif os.name in ("nt", "dos", "ce"): # emacs/Windows What`s the right statement here? -- http://mail.python.org/mailman/listinfo/python-list

possible python/linux/gnome issue!!

2005-02-25 Thread bruce
o upgrade other apps to match the new version of python. any ideas/thoughts/etc.. would be appreciated... this is rather frustrating... thanks -bruce [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

python upgrade process...

2005-03-04 Thread bruce
'apt-get' doesn't seem to work either... however. if you suggest that these tools would be the best approach, would these tools actually get all required dependencies/etc... thanks.. bruce -- http://mail.python.org/mailman/listinfo/python-list

python/mod_python conflicts...

2005-03-05 Thread bruce
hat I used... so... any ideas as to how to get this situation to work/resolved... thanks -bruce -- http://mail.python.org/mailman/listinfo/python-list

python/linux guru needed.. now!!!!

2005-03-05 Thread bruce
e, but i'm not sure as to how to resolve it... if you are a guru with python/mod_python/linux then i'd like to talk with you... searching through google/mailing lists/etc... is getting me nowhere!! thanks bruce -- http://mail.python.org/mailman/listinfo/python-list

RE: Working on a log in script to my webpage

2005-03-08 Thread bruce
hi... regarding the issue of creating a login (user/passwd) script... there are numerous example scripts/apps written that use php/mysql... i suggest that you take a look at a few and then incoporate the features that you want into your script. from your questions, it seems like this approach wil

RE: Working on a log in script to my webpage

2005-03-08 Thread bruce
pete... simply use google and search for "php scripts login user authentication mysql session etc..." these terms will give you lots of examples... you could also look at some of the bulletin board/forum apps that are open source to se what they use. or, you could also look through the code for s

RE: How to create stuffit files on Linux?

2005-03-15 Thread bruce
site, or use google to get a better feel for what it provdes.. -bruce -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Noah Sent: Tuesday, March 15, 2005 2:03 PM To: python-list@python.org Subject: How to create stuffit files on Linux? I need to create St

python/svn issues....

2005-04-12 Thread bruce
ag repos (devel/perl) db4-4.2.52-6 google turned up a few instances of this, but no solution.. any ideas as to what's occuring... thanks bruce [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

RE: python/svn issues....

2005-04-12 Thread bruce
should be getting the db_create symbol... i'll try to build berkeley db by hand and see what i get... if you could try the 'nm' command against your berkely.. i'd appreciate you letting me know what you get.. thanks bruce -Original Message- From: [EMAIL PROTECTED] [mail

python guru... ViewCVS

2005-04-13 Thread bruce
m screwing something up, because it appears that the web page can't print the print statements... any thoughts/ideas/help would be greatly appreciated... thanks bruce [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

trying to parse a file...

2005-04-17 Thread bruce
roots'. it isn't working correctly... can anybody tell me what i need to do? basically, i'd like to continually add to the svn_root: block with an additional line as required. also, can someone tell me what i'd need to do, if i wanted to remove a line of text from the 'svn_roo

trying to parse a file...

2005-04-18 Thread bruce
roots'. it isn't working correctly... can anybody tell me what i need to do? basically, i'd like to continually add to the svn_root: block with an additional line as required. also, can someone tell me what i'd need to do, if i wanted to remove a line of text from the 'svn_roo

internet explorer/firefox plugin/toolbar

2005-04-22 Thread bruce
e to do this.. could it be done in python??? searching google didn't really turn up anything for the IE side of things... any comments/assistance/etc would be useful... thanks bruce [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

find matching contiguous text

2013-11-22 Thread bruce
Hi. I have a xpath test that generates the text/html between two xpath functions, basically a chunk of HTML between two dom elements. However, it's slow. As a test, I'd like to compare the speed if I get all the HTML following a given element, and then get all the HTML preceding a given element..

crawling/parsing a webpage based on dynamic javascript

2013-08-18 Thread bruce
Hi. Looking at using python/cerely/twisted to test in parsing a test site. Also looking at being able to parse a site created using dynamic javascript. I've got test apps to parse a site, but I'm interested in getting a better understanding of using multi-thread/multi-processing approaches to spi

web2py - running on fedora

2013-08-30 Thread bruce
e existing webapps (php apps) don't get screwed up. Thanks -bruce -- http://mail.python.org/mailman/listinfo/python-list

trying to strip out non ascii.. or rather convert non ascii

2013-10-26 Thread bruce
hi.. getting some files via curl, and want to convert them from what i'm guessing to be unicode. I'd like to convert a string like this:: Alcántar, Iliana to:: Alcantar, Iliana where I convert the " á " to " a" which appears to be a shift of 128, but I'm not sure how to accomplish this.. I've

splitting file/content into lines based on regex termination

2013-11-07 Thread bruce
hi. got a test file with the sample content listed below: the content is one long string, and needs to be split into separate lines I'm thinking the pattern to split on should be a kind of regex like:: #45 / 58#0# or #9 / 58#0 but i have no idea how to make this happen!! if i read the content i

Re: splitting file/content into lines based on regex termination

2013-11-07 Thread bruce
#x27;d have the results of the "compile/regex process" to be added to the split lines thoughts/comments?? thanks On Thu, Nov 7, 2013 at 12:15 PM, bruce wrote: > hi. > > got a test file with the sample content listed below: > > the content is one long string, and needs

Re: splitting file/content into lines based on regex termination

2013-11-07 Thread bruce
print "m = "+m # # #sys.exit() for m in dat2: if m: print "m = "+m #sys.exit() sys.exit() return the test data is pasted to -->>> http://bpaste.net/show/kYzBUIfhc5023phOVmcu/ thanks !! On Thu, Nov 7, 2013 at 1:13 PM, MRAB wrote: &g

try/exception - error block

2014-08-03 Thread bruce
Hi. I have a long running process, it generates calls to a separate py app. The py app appears to generate errors, as indicated in the /var/log/messages file for the abrtd daemon.. The errors are intermittent. So, to quickly capture all possible exceptions/errors, I decided to wrap the entire "ma

Re: try/exception - error block

2014-08-03 Thread bruce
eption!!! > > but thanks for the information on posting test code! Don't email me privately - respond to the list :) Also, please don't top-post. ChrisA On Sun, Aug 3, 2014 at 10:29 AM, bruce wrote: > Hi. > > I have a long running process, it generates calls to a separate py &

Re: try/exception - error block

2014-08-03 Thread bruce
Hi Alan. Yep, the err file in the exception block gets created. and the weird thing is it matches the time of the abrtd information in the /var/log/messages log.. Just nothing in the file! On Sun, Aug 3, 2014 at 4:01 PM, Alan Gauld wrote: > On 03/08/14 18:52, bruce wrote: > >>

libxml2dom quesiton

2011-09-14 Thread bruce
Hi. Test question. Trying to see how to insert a test node into an existing dom tree. For the test, it has a TR/TD with a td[@class="foo"] that has an associated TR.. Trying to figure out how out how to insert a "" around the tr/td in question... Curious as to how to accomplish this. Thoughts/p

generating unique set of dicts from a list of dicts

2012-01-10 Thread bruce
trying to figure out how to generate a unique set of dicts from a json/list of dicts. initial list ::: [{"pStart1a": {"termVal":"1122","termMenu":"CLASS_SRCH_WRK2_STRM","instVal":"OSUSI", "instMenu":"CLASS_SRCH_WRK2_INSTITUTION","goBtn":"CLASS_SRCH_WRK2_SSR_PB_SRCH", "pagechk":"CLASS_SRCH_WRK2_SS

python-base rpm

2006-07-11 Thread bruce
hi... in trying to find the FC rpms for python-base, i can only seem to find rpms for mandrake can these rpms be used for FC4? would someone know of source rpms for python-base? thanks -bruce -- http://mail.python.org/mailman/listinfo/python-list

uTidylib question..

2006-07-11 Thread bruce
nt object" be turned/translated into a string var? thanks -bruce -- http://mail.python.org/mailman/listinfo/python-list

bay area based - python guru..

2006-07-13 Thread bruce
solve, so we thought we'd toss this here and see if anyone has thoughts/comments. thanks -bruce -- http://mail.python.org/mailman/listinfo/python-list

RE: Automate Mozilla Firefox

2006-07-26 Thread bruce
hi david... just what are you trying to do... are you trying to drive some functionality of firefox? are you trying to parse web files?? more information might allow someone to shed additional thoughts on a solution.. -bruce -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

RE: Client/Server Question

2006-07-28 Thread bruce
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of faulkner i'm not familiar with python's os/system/exec functions, but i'm willing to bet that you're running into an issue with how the "system" function works. look for a function that allows you to spawn an

running an app as user "foo"

2006-07-31 Thread bruce
hi. within python, what's the best way to automatically spawn an app as a given user/group. i'm testing an app, and i'm going to need to assign the app to a given user/group, as well as assign it certain access rights/modes (rwx) i then want to copy the test app to a given dir, and then spawn a p

upgrading python...

2006-08-02 Thread bruce
my new python RPM, and let yum take care of dealing with any dependcy issues? and how would yum handle weird dependency issues with RPMs that don't exist.. does yum have the ability to actually build required apps from source? comments/thoughts/etc... thanks -bruce ps. the reason for

seaching a list...

2006-08-10 Thread bruce
hi... i'm playing with a test sample. i have somethhing like: dog = mysql_get(.) . . . such that 'dog' will be an 'AxB' array of data from the tbls furher in the test app, i'm going to have a list, foo: foo = 'a','b','c','d' i'm trying to determine what's the fastest way of searching t

RE: seaching a list...

2006-08-10 Thread bruce
the network overhead, and the associated multiple db calls... -bruce -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Larry Bates Sent: Thursday, August 10, 2006 4:28 PM To: python-list@python.org Subject: Re: seaching a list... bruce wrote: > hi... >

python/mysql/list question...

2006-08-10 Thread bruce
hi. i have the following sample code. i'm trying to figure out if there's a way to use a 'list of lists' in a mysql execute... i've tried a variety of combinations but i get an error: Error 1241: Operand should contain 1 column(s) the test code is: insertSQL = """insert into appTBL

RE: python/mysql/list question...

2006-08-10 Thread bruce
never mind... doh!!! executemany as opposed to execute!!! thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of bruce Sent: Thursday, August 10, 2006 6:37 PM To: python-list@python.org Subject: python/mysql/list question... hi. i have the following

Is there an alternative to os.walk?

2006-10-04 Thread Bruce
Hi all, I have a question about traversing file systems, and could use some help. Because of directories with many files in them, os.walk appears to be rather slow. I`m thinking there is a potential for speed-up since I don`t need os.walk to report filenames of all the files in every directory it v

Re: Is there an alternative to os.walk?

2006-10-07 Thread Bruce
waylan wrote: > Bruce wrote: > > Hi all, > > I have a question about traversing file systems, and could use some > > help. Because of directories with many files in them, os.walk appears > > to be rather slow. I`m thinking there is a potential for speed-up since > &g

RE: Python v PHP: fair comparison?

2006-11-15 Thread bruce
interesting ongoing thread... i've seen a number of these over the years.. my language is better than your language!! i'm sure this question on the php list would have findings/results that are essentially opposite of what is being discussed here! -Original Message- From: [EMAIL PROTEC

RE: Python v PHP: fair comparison?

2006-11-15 Thread bruce
ummm bruno... you don't 'need' apache to run php. in fact, although i'm from the old hard c/c++ world way before web apps, i haven't really found much for most general apps (not ui/not threaded stuff) that php can't do.. peace -Original Message- From: [EMAIL PROTECTED] [mailto:[EMA

beautifulsoup .vs tidy

2006-06-30 Thread bruce
any of the other validation apps... the issue i'm facing involves parsing some websites, so i'm trying to extract information based on the DOM/XPath functions.. i'm using perl to handle the extraction thanks -bruce [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

RE: beautifulsoup .vs tidy

2006-07-01 Thread bruce
that tidy isn't cleaning enough, or that the perl xpath/libxml functions are too strict! which is why i decided to see if anyone on the python side has experienced/solved this problem.. -bruce -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Paddy Sent: Sa

building/installing python libs/modules...

2006-07-01 Thread bruce
tup.py. does it get run? the Readme file didn't tell me how to build the app i now, but everyone starts at something, sometime!! thanks -bruce -- http://mail.python.org/mailman/listinfo/python-list

RE: building/installing python libs/modules...

2006-07-01 Thread bruce
my bad.. saw that.. completely missed it... i had guessed.. and am up/runing/testing.. -bruce -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of John Machin Sent: Saturday, July 01, 2006 12:53 PM To: python-list@python.org Subject: Re: building/installing

really basic question regarding arrays/function output...

2006-07-01 Thread bruce
ibxml2dom. i've been looking using google, but can't seem to find a site pointing out the underlying methods, which is kind of strange... -bruce - test.py #! /usr/bin/env python #test python script import libxml2dom import urllib print "hello&quo

python guru in the Bay Area

2006-07-01 Thread bruce
r what i'm trying to create, i should be ok.. lunch of course, would be on me!! thanks -bruce ps. yeah.. i know i could eventually figure most of this by searching/experimenting/etc... using google.. but i'd rather move as fast as possible. -- http://mail.python.org/mailman/listinfo/python-list

size of an array..

2006-07-01 Thread bruce
"l", or the number of iterations for the "for loop" prior to running it... the tutorials i've seen as of yet haven't mentioned this.. thanks -bruce -- http://mail.python.org/mailman/listinfo/python-list

python/libxml2dom questions

2006-07-01 Thread bruce
bel in d.xpath" how can i find out the size of the list a simple/basic question, but it's driving me up a wall!!! also, how can i determine what methods are available for a libxml2dom object? thanks... -bruce -- http://mail.python.org/mailman/listinfo/python-list

python/libxml2dom questions

2006-07-01 Thread bruce
bel in d.xpath" how can i find out the size of the list a simple/basic question, but it's driving me up a wall!!! also, how can i determine what methods are available for a libxml2dom object? thanks... -bruce sample code: ---

RE: python/libxml2dom questions

2006-07-01 Thread bruce
thanks barry... now if i can figure out what the attributes do, and which ones i need to deal with!! -bruce -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Barry Kelly Sent: Saturday, July 01, 2006 10:24 PM To: python-list@python.org Subject: Re: python

RE: xpath question

2006-07-02 Thread bruce
g like: /html/table//[EMAIL PROTECTED]'foo'] is it possible to do soomething like [EMAIL PROTECTED]/fo/] so i'd match the class attribute with fo i'm trying to parse HTML/Web docs... thanks -bruce -- http://mail.python.org/mailman/listinfo/python-list

RE: xpath question

2006-07-02 Thread bruce
list@python.org Subject: Re: xpath question bruce wrote: > hi > > is there anyone with XPath expertise here? i'm trying to figure out if > there's a way to use regex expressions with an xpath query? i've seen > references to the ability to use regex and xpath/xml, bu

python function defs/declarations

2006-07-02 Thread bruce
hi.. the docs state that the following is valid... def foo(): i = 2 print "i = "i print "hello" foo() is there a way for me to do this.. print "hello" foo() def foo(): i = 2 print "i = "i ie, to use 'foo' prior to the declaration of

how to stop python...

2006-07-02 Thread bruce
hi... perl has the concept of "die". does python have anything similar. how can a python app be stopped? the docs refer to a sys.stop.. but i can't find anything else... am i missing something... thanks -bruce -- http://mail.python.org/mailman/listinfo/python-list

ascii character - removing chars from string

2006-07-03 Thread bruce
r) where 'strip' removes/strips out the invalid chars... any ideas/thoughts/pointers... thanks -bruce -- http://mail.python.org/mailman/listinfo/python-list

RE: ascii character - removing chars from string

2006-07-03 Thread bruce
t; ie ok_text = strip(text) ok_text = "foo cat" thanks -bruce -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Rune Strand Sent: Monday, July 03, 2006 5:43 PM To: python-list@python.org Subject: Re: ascii character - removing chars from string b

RE: ascii character - removing chars from string

2006-07-03 Thread bruce
simon... the ' ' is not to be seen/viewed as text/ascii.. it's a representation of a hex 'u\xa0' if i recall... i'm looking to remove or replace the insances with a ' ' (space) -bruce -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAI

RE: ascii character - removing chars from string update

2006-07-03 Thread bruce
n perl, i'd do 's / //' and be done with it!!! -bruce -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of bruce Sent: Monday, July 03, 2006 8:26 PM To: 'Simon Forman' Cc: python-list@python.org Subject: RE: ascii character - removing

RE: ascii character - removing chars from string

2006-07-04 Thread bruce
andle non-ascii chars. i'm still looking for a way to search/replace non-ascii chars... this would/should resolve my issue.. -bruce -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Simon Forman Sent: Monday, July 03, 2006 11:28 PM To: python-list@python.org

RE: ascii character - removing chars from string

2006-07-04 Thread bruce
i've done the s.replace('\xa0','') with no luck. -bruce -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Steven D'Aprano Sent: Tuesday, July 04, 2006 8:45 AM To: python-list@python.org Subject: RE: ascii character - removing cha

RE: ascii character - removing chars from string

2006-07-04 Thread bruce
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Steven D'Aprano Sent: Tuesday, July 04, 2006 8:45 AM To: python-list@python.org Subject: RE: ascii character - removing chars from string On Tue, 04 Jul 2006 08:09:53 -0700, bruce wrote: > simon...

RE: ascii character - removing chars from string

2006-07-04 Thread bruce
-list@python.org Subject: Re: ascii character - removing chars from string bruce wrote: > i've done the s.replace('\xa0','') with no luck. let me guess: you wrote s.replace("\xa0", "") instead of s = s.replace("\xa0", ""

RE: ascii character - removing chars from string

2006-07-04 Thread bruce
thanks for your replies!! the solution.. dd = dd.replace(u'\xa0','') this allows the nbsp hex representation to be replaced with a ''. i thought i had tried this early in the process.. but i may have screwed up the typing... -bruce -Original Message- F

python - regex handling

2006-07-04 Thread bruce
hi... does python provide regex handling similar to perl. can't find anything in the docs i've seen to indicate it does... -bruce -- http://mail.python.org/mailman/listinfo/python-list

defining multi dimensional array

2006-07-04 Thread bruce
hi... basic question.. how do i define a multi dimensional array a[10][10] is there a kind of a = array(10,10) thanks -bruce -- http://mail.python.org/mailman/listinfo/python-list

RE: defining multi dimensional array

2006-07-04 Thread bruce
update... i need a multi dimensional array of lists... ie [q,a,d] [q1,a1,d1] [q2,a2,d2] [q3,a3,d3] which would be a (3,4) array... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of bruce Sent: Tuesday, July 04, 2006 8:15 PM To: python-list

numarray

2006-07-04 Thread bruce
al is to somehow define multi-dimensional arrays of strengs... pointers... thanks -bruce -- http://mail.python.org/mailman/listinfo/python-list

RE: defining multi dimensional array

2006-07-04 Thread bruce
i tried to do a1[10][10] = ['a','q'] and get an error saying a1 is not defined -bruce -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Erik Max Francis Sent: Tuesday, July 04, 2006 9:14 PM To: python-list@python.org Subject

RE: numarray

2006-07-04 Thread bruce
the difference between 'import numpy', and "from import numpy *" comments... thanks -bruce -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Robert Kern Sent: Tuesday, July 04, 2006 9:42 PM To: python-list@python.org Subject: Re: numarra

RE: defining multi dimensional array

2006-07-04 Thread bruce
do i need to import anything for this.. or is it supposed to work out of the box.. and just what is it doing! -bruce -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of tac-tics Sent: Tuesday, July 04, 2006 9:53 PM To: python-list@python.org Subject: Re

python list/array question...

2006-07-05 Thread bruce
2] == b print 'good!' a[1][4] = b x = 4 g = ['p1','l1','g1'] for i in range[g] a[x][i] = g[i] these are the kinds of list/array functions i'd like to be able to accomplish pointers/code samples/pointers to code would be helpful... and yeah. i've been looking via google... thanks -bruce -- http://mail.python.org/mailman/listinfo/python-list

python/xpath question...

2006-07-06 Thread bruce
quot; section... sample data. Summer B Course Course Course number and suffix, if applicable. C = combined lecture and lab course L = laboratory course AST 1002 AST 1022L AST 1022L AST 1022L Summer C Course . . . thanks... -bruce -- http://mail.python.org/mailman/listinfo/python-list

string/list comparison

2006-07-06 Thread bruce
type of unicode going on. is there some way that i can print out what's really in the string so i can know what to remove... in the test, the sstr/trstr should both be "Summer A" for some reason i'm getting a len of 10 and 11 chars... any thoughts/comments... thanks -bruce

RE: string/list comparison

2006-07-06 Thread bruce
thanks tim... the strip should have been 'sstr.strip()'< thanks -Original Message- From: Tim Chase [mailto:[EMAIL PROTECTED] Sent: Thursday, July 06, 2006 12:17 PM To: [EMAIL PROTECTED] Cc: python-list@python.org Subject: Re: string/list comparison > sstr = sesslist[0] <<

for loop question

2006-07-06 Thread bruce
r for/loop.. just not this issue.. thanks -bruce -- http://mail.python.org/mailman/listinfo/python-list

RE: for loop question

2006-07-06 Thread bruce
'ppreaciate the answers duh... -bruce -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Daniel Haus Sent: Thursday, July 06, 2006 2:02 PM To: python-list@python.org Subject: Re: for loop question just do: for a in range(2, foo+1): print a

fetching a POST webpage...

2006-07-06 Thread bruce
something wrong, and can't quite see what the err/issue is... if you've done this kind of thing, and you have some thoughts, let me know. i can send you the output of the livehttpheaders app, and the test code that i have... thanks.. -bruce -- http://mail.python.org/mailman/listinfo/python-list

IRC questions!!

2006-07-07 Thread bruce
hi... i'm trying to figure out what i have to do to setup mIRC to get the #python channel on IRC!! any pointers. the mIRC docs didn't get me very far. is there an irc.freenode.net that i need to connect to? how do i do it? thanks.. -bruce -- http://mail.python.org/mailman/listi

RE: IRC questions!!

2006-07-07 Thread bruce
given that nothing appears to be connecting.. should i have anything in the "group" window/dialog of the server setting... -bruce -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Jon Clements Sent: Friday, July 07, 2006 10:57 AM To: python-list@

RE: IRC questions!! (off topic)

2006-07-07 Thread bruce
oo or is there something else i need to do... thanks -bruce -Original Message- From: Jon Clements [mailto:[EMAIL PROTECTED] Sent: Friday, July 07, 2006 1:45 PM To: [EMAIL PROTECTED] Subject: Re: IRC questions!! Bruce, What happens when you attempt to connect? What messages do you get

python guru for urllib/mechanize

2006-07-07 Thread bruce
can't seem to mimic/implement this kind of function... if you have expertise with http/web fetching, i'd appreciate any thoughts/comments/etc... i can provide the test code. i'm pretty sure the answer is fairly simple, but i just can't get my hands around it... thanks -bruce

Mechanize-Browser question..

2006-07-08 Thread bruce
7;m doing wrong. thanks -bruce br = Browser() br.set_handle_redirect(True) br.set_handle_referer(True) br.open(url2) #br.set_cookiejar(cj) br.set_debug_redirects(True) # Log HTTP response bodies (ie. the HTML, most of the time). br.set_debug_responses(True) # Print HTTP headers. br

xpath question...

2006-07-08 Thread bruce
ind_link(nr=1) #url = link.url print "link = ",url sys.exit() err output link = -- i'm not sure what i need to add to the line url = tr1 to resolve the issue/error... looking over google hasn't given any real pointers... thanks

RE: [wwwsearch-general] ClientForm request re ParseErrors

2006-07-09 Thread bruce
ve followed the docs.. but i could be wrong. any thoughts? the code, output, and partial html is below... thoughts/comments/ideas/etc... thanks -bruce test code #get the semester page #get the 2nd semester/frame src url page br.open(url) response = br.response()

unistall python mechanize

2006-07-09 Thread bruce
hi.. i'm trying to figure out how to uninstall "mechanize". i don't see an "unistall" from the "python --help-commands" function... i'm looking to rebuild/reinstall mechanize from the svn repos to try to see if an apparent parsing issue that i ment

RE: [wwwsearch-general] ClientForm request re ParseErrors

2006-07-09 Thread bruce
update. out of curiosity, i fetched the latest mechanize from svn.. i get the same error with the parse... i've also tried to do: br.select_form(nr = 1) br.select_form(name="foo") br.select_form(name=foo) br.select_form(name="foo") etc.... same err occurs...

possible issue with mechanize/python parsing

2006-07-09 Thread bruce
m(name="foo") here's a short test app, as well as the html to be placed in a test data file everything is straight forward... any thoughts/comments/ideas would be helpful. i have the latest mechanize from the svn repos. thanks -bruce the error i get is: Traceback (most rec

RE: [wwwsearch-general] ClientForm request re ParseErrors

2006-07-10 Thread bruce
is this where i've seen references to integrating Beautifulsoup in the wb browsing app? -bruce -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of John J Lee Sent: Monday, July 10, 2006 2:29 AM To: [EMAIL PROTECTED] Cc: python-list@python.org Subjec

RE: [wwwsearch-general] ClientForm request re ParseErrors

2006-07-10 Thread bruce
need) any thoughts/pointers/etc would be helpful... thanks -bruce test code #! /usr/bin/env python #test python script import re import libxml2dom import urllib import urllib2 import sys, string #import numarray import httplib from mechanize import Browser, RobustFactory import mech

Mechanize/Browser question

2006-07-10 Thread bruce
nto the "Browser" so i can modify it... thanks -bruce -- http://mail.python.org/mailman/listinfo/python-list

mechanize select_form issue..

2006-07-10 Thread bruce
rStateError: not viewing HTML any thoughts/ideas/comments will be useful!! thanks -bruce test code --- import re import libxml2dom import urllib import urllib2 import sys, string #import numarray import httplib from mechanize impor

RE: Don't use regular expressions to "validate" email addresses (was: Ineed some help with a regexp please)

2006-09-21 Thread bruce
so ben... if you were creating a web app with an email form... rather than try to check if the email is valid... you'd create something to allow anyone to potentially spam the hell out of a system... my two cents worth... try to verify/validate that the email is valid, and possibly belongs to the

RE: client/server design and advice

2006-12-01 Thread bruce
hi irmen... happened to come across this post. haven't looked at pyro. regarding your 'work packets' could these essentially be 'programs/apps' that that are requested by the client apps, and are then granted by the dispatch/server app? i'm considering condor (univ of wisconsin) but am curious as

update attribute - (newbie)

2006-12-19 Thread Bruce
>>> class A: ... def __init__(self): ... self.t = 4 ... self.p = self._get_p() ... def _get_p(self): ... return self.t ... >>> a = A() >>> a.p 4 >>> a.t += 7 >>> a.p 4 I would like to have it that when I ask for p, method _get_p is always called so that attribute can be updated. How can I

RE: BitKeeper for Python?

2005-05-01 Thread bruce
e the sourceforge.org site/app... -bruce -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Jp Calderone Sent: Sunday, May 01, 2005 1:26 PM To: python-list@python.org Subject: Re: BitKeeper for Python? On Sun, 01 May 2005 20:16:40 GMT, John Smith <[EMAIL PROTECTED

  1   2   3   4   >