RE: Could you recommend job schedulling solution?

2009-02-11 Thread bruce
hi... not sure exactly what you're looking for, but condor has a robust job scheduling architecture for dealing with grid/distributed setups over multiple systems.. give us more information, and there might be other suggestions! -Original Message- From:

RE: PYTHON HTTP POST WORKING EXAMPLE NEEDED

2009-01-23 Thread bruce
hey didn't get the initial post/ just what is the original poster looking for?? -Original Message- From: python-list-bounces+bedouglas=earthlink@python.org [mailto:python-list-bounces+bedouglas=earthlink@python.org]on Behalf Of r Sent: Friday, January 23, 2009 5:03 PM To:

RE: ifconfig in python

2009-01-20 Thread bruce
hi... in general, i've found that using route to find the iface for the default gets me the interface in use... i then parse either ifconfig/iwconfig, to get the address of the nic for that interface.. it's worked ok so far on most machines i've dealt with... thoughts/comments are of course

RE: ifconfig in python

2009-01-20 Thread bruce
so the question really starts to look like: -what's the default listening address for my app (insert nic)? -what's the default sending address for my app (insert nic)? -what's the default listening address for my server? -what's the default sending address for my server? -what's the default

List/Set/Dict..

2009-01-15 Thread bruce
Hi... i have the test dict/list a= {a: 'a1',b : b1} b= [{a: 'a1',b : b1}] i'm trying to figure out how to programtically tell them apart... ie, which is a dict, and which is a list... is there a way to accomplish this.. thanks -- http://mail.python.org/mailman/listinfo/python-list

basic python list/dict/key question/issues..

2009-01-13 Thread bruce
Hi.. quite new to python, and have a couple of basic question: i have (term:[1,2,3]) as i understand it, this is a list, yes/no? how can i represent this as a dict/list? i've got a few of these that i'm trying to deal with.. thanks -- http://mail.python.org/mailman/listinfo/python-list

parsing javascript generated files...

2009-01-10 Thread bruce
if someone knows of a solution to this issue that's now available and that works! Thanks for any thoughts/comments in this issue... -bruce -- http://mail.python.org/mailman/listinfo/python-list

spawning pyhon apps...

2009-01-09 Thread bruce
hi... toying with an idea.. trying to figure out a good/best way to spawn multiple python scripts from a parent python app. i'm trying to figure out how to determine when all child apps have completed, or to possibly determine if any of the child processes have died/halted.. parent app spawn

RE: spawning pyhon apps...

2009-01-09 Thread bruce
9, 2:47 pm, bruce bedoug...@earthlink.net wrote: hi... toying with an idea.. trying to figure out a good/best way to spawn multiple python scripts from a parent python app. i'm trying to figure out how to determine when all child apps have completed, or to possibly determine if any

RE: spawning pyhon apps...

2009-01-09 Thread bruce
=earthlink@python.org [mailto:python-list-bounces+bedouglas=earthlink@python.org]on Behalf Of Jason Scheirer Sent: Friday, January 09, 2009 3:59 PM To: python-list@python.org Subject: Re: spawning pyhon apps... On Jan 9, 3:43 pm, bruce bedoug...@earthlink.net wrote: hi jason forgive me

RE: Remote control of firefox (mozilla) from a python program

2008-11-10 Thread bruce
hi mike you might look at/into selenium, or firewatir check the spellings! -peace -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Mike Driscoll Sent: Monday, November 10, 2008 1:28 PM To: python-list@python.org Subject: Re: Remote control of

App Question.

2008-10-14 Thread bruce
Hi list!! Got a question, and I can't find a good answer for, so I figured i'd post here. I'm working on a project that involves a number of smaller apps to be developed, and run. In order to build this overall application, I'm trying to find a web based app that I can use to manage the entire

parsing a site/page that uses/calls javascript functions...

2008-09-28 Thread bruce
is to run a parsing/crawling over a number of pages that utilize javascript.. Pointers, thoughts, comments, etc will be greatly appreciated. Thanks!!! -bruce -- http://mail.python.org/mailman/listinfo/python-list

[issue3923] 'genexpr_for' in definition of 'call' in Language Reference.

2008-09-21 Thread Bruce Frederiksen
New submission from Bruce Frederiksen [EMAIL PROTECTED]: The definition of 'call' in the Language Reference refers to 'genexpr_for' which doesn't exist. Either 'genexpr_for' should be changed to 'comp_for' or 'expression genexpr_for' should be changed to 'comprehension'. See the following

[issue3917] set_display definition allows empty '{' '}' in Language Definition

2008-09-20 Thread Bruce Frederiksen
New submission from Bruce Frederiksen [EMAIL PROTECTED]: The definition for set_display in the Language Definition allows for empty curly braces by enclosing expression_list | comprehension in brackets ('[', ']'). These brackets should be removed, as empty curly braces are a dict_display. http

[issue3914] augop definition does not include //=

2008-09-19 Thread Bruce Frederiksen
New submission from Bruce Frederiksen [EMAIL PROTECTED]: The definition for 'augop' on the Simple Statements page of the Language Definition does not include //=. http://docs.python.org/dev/3.0/reference/simple_stmts.html#grammar-token-augop -- assignee: georg.brandl components

[issue3913] compound_stmt syntax includes 'decorated'

2008-09-19 Thread Bruce Frederiksen
Bruce Frederiksen [EMAIL PROTECTED] added the comment: But the real Grammar doesn't include decorators on funcdef and classdef, while the Language Reference document does. So the 'decorated' option is not needed in the Language Reference (and, indeed, doesn't even seem to be defined

[issue3913] compound_stmt syntax includes 'decorated'

2008-09-19 Thread Bruce Frederiksen
Bruce Frederiksen [EMAIL PROTECTED] added the comment: The grammar definitions in the Language Reference are _not_ just a straight copy of the Grammar. They have been reworked. (I don't know why, perhaps to make it easier to understand)? So the Grammar defines funcdef and classdef _without_

[issue3842] can't run close through itertools.chain on inner generator

2008-09-11 Thread Bruce Frederiksen
New submission from Bruce Frederiksen [EMAIL PROTECTED]: There is no way to get generators to clean up (run their 'finally' clause) when used as an inner iterable to chain: def gen(n): ... try: ... # do stuff yielding values ... finally: ... # clean up c

RE: Xpath for HTML processing

2008-09-06 Thread bruce
Hi Astley I can probably help here. Can you tell me exactly what you're trying to accomplish. the xpath query that you listed can be processed using libxml2dom (and a fewo other libs) are you looking to parse a web page, an xml doc, etc... let me know, and we'll see if we can help

RE: Use BeautifulSoup to delete certain tag while keeping its content

2008-09-06 Thread bruce
hi jackie, if you don't mind... can i ask what you're looking to accomplish? are you looking to simply get the text/string data, or something else??? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Jackie Wang Sent: Saturday, September 06, 2008 8:12 AM

python/xpath question..

2008-09-03 Thread bruce
morning i apologize up front as this is really more of an xpath question.. in my python, i'm using the xpath function to iterate/parse some html. i can do something like s=d.xpath(//tr/td/text()) count=len(s) and get the number of nodes that have text i can then do something like

python - mechanize/browser/POST issue

2008-09-02 Thread bruce
evening... using mechanize/Browser, i can easily do a url/get, and process submitting a form that uses a GET as the action. however, I'm not quite sure how to implement the submittal of a form, that uses the POST action. Anyone have a short chunk of code that I can observer, that uses the

python mechanize/libxml2dom question

2008-09-01 Thread bruce
hi... i've got the following situation, with the following test url: http://schedule.psu.edu/soc/fall/Alloz/a-c/acctg.html#;. i can generate a list of the tables i want for the courses on the page. however, when i try to create the xpath query, and plug it into the xpath within python, i'm

python mechanize/libxml2dom question

2008-09-01 Thread bruce
hi... i've got the following situation, with the following test url: http://schedule.psu.edu/soc/fall/Alloz/a-c/acctg.html#;. i can generate a list of the tables i want for the courses on the page. however, when i try to create the xpath query, and plug it into the xpath within python, i'm

python XPATH question - mechanize/libxml2dom

2008-09-01 Thread bruce
hi... i can use an xpath query to create a node from an html/dom representation. however, if i have a node, is there a way to generate an xpath query from the node. in testing with firefox/dom inspector, i can use ancestor::*, but i can't determine where/how to implement this using

parsing A in a string..

2008-08-31 Thread bruce
Hi. a pretty simple question, i'm guessing. i have a text/html string that looks like: (AE) the issue i have is that when i parse it using xpath/node/toString, i get the following ...(AE;). note the semicolon ;. I've tried to use the encoding function of toString with no luck..

RE: parsing A in a string..

2008-08-31 Thread bruce
] [mailto:[EMAIL PROTECTED] Behalf Of Fredrik Lundh Sent: Sunday, August 31, 2008 1:10 PM To: python-list@python.org Subject: Re: parsing A in a string.. bruce wrote: a pretty simple question, i'm guessing. i have a text/html string that looks like: (AE) the issue i have

RE: parsing A in a string..

2008-08-31 Thread bruce
aha... it's the beautifulsoup() that's taking the E and giving the E;... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Fredrik Lundh Sent: Sunday, August 31, 2008 1:10 PM To: python-list@python.org Subject: Re: parsing A in a string.. bruce wrote

[no subject]

2008-08-29 Thread bruce
Hi. I'm using mechanize to parse a page/site that uses the meta http-equiv tag in order to perform a refresh/redirect of the page. I've tried a number of settings, and read different posts on various threads, but seem to be missing something. the test.html page is the page that the url returns,

python/mechanize - redirect/refresh question

2008-08-29 Thread bruce
Hi. I'm using mechanize to parse a page/site that uses the meta http-equiv tag in order to perform a refresh/redirect of the page. I've tried a number of settings, and read different posts on various threads, but seem to be missing something. the test.html page is the page that the url returns,

RE: [wwwsearch-general] (no subject)

2008-08-29 Thread bruce
@python.org Subject: Re: [wwwsearch-general] (no subject) On Fri, 29 Aug 2008, bruce wrote: [...] does the page (test.html) need to be completely valid html? No, but there are certainly (poorly-defined) limitations. I haven't tried to understand your script or the HTML, but did you try this: br

libxml2dom - parsing maligned html

2008-08-26 Thread bruce
Hi... I'm using quick test with libxml2dom === import libxml2dom aa=libxml2dom.parseString(foo) ff=libxml2dom.toString(aa) print ff === -- when i start, foo is: html body /body /html html body . . . /body /html

RE: libxml2dom - parsing maligned html

2008-08-26 Thread bruce
all the required data. any thoughts on the pros/cons of this kind of approach to scraping data... thanks -bruce -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Paul Boddie Sent: Tuesday, August 26, 2008 8:48 AM To: python-list@python.org Subject: Re

python/xpath issue..

2008-08-25 Thread bruce
hey guys... got a weird, hopefully simple issue. the following sample bit of script is stripped down, and simply gets the form node from the specified site schedule.psu.edu. the problem i run into is that the dom/xpath from the libxml2dom works, and i get the dom object everytime i run the app,

Micro-threading PEP proposal announcement

2008-08-25 Thread Bruce Frederiksen
die on the vine... Thank you for your attention! -bruce -- http://mail.python.org/mailman/listinfo/python-list

RE: python/xpath issue..

2008-08-25 Thread bruce
never mind... it was an issue with the targeted site... it's sending screwed up html the times when i get an err... thanks though! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of bruce Sent: Monday, August 25, 2008 4:49 AM To: python-list@python.org

python - firefox dom/xpath question/issue

2008-08-25 Thread bruce
Hi. Got a test web page, that basically has two html tags in it. Examining the page via Firefox/Dom Inspector, I can create a test xpath query /html/body/form which gets the target form for the test. The issue comes when I examine the page's source html. It looks like: html body /body /html

xpath questions...

2008-08-23 Thread bruce
Hi... playing around with xpath and the html dom... i've got a sample: html body form action='foo' name='cat' /form /body /html i can create a test xpath: //form/[action and get the form stuff... i'm curious, is there a way to select an attribute, only if another attribute in the

RE: xpath questions...

2008-08-23 Thread bruce
questions... bruce wrote: playing around with xpath and the html dom... are you sure this question belongs on a Python forum? /F -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list

RE: xpath questions...

2008-08-23 Thread bruce
].textContent print htesttt =,t1[0].toString() sys.exit() thanks!! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Fredrik Lundh Sent: Saturday, August 23, 2008 5:58 AM To: python-list@python.org Subject: Re: xpath questions... bruce wrote

RE: xpath questions...

2008-08-23 Thread bruce
... bruce wrote: Regarding the xpath question I've posed, some have said that it shouldn't be here on the mailing list. Give that I'm writing the test scripts/apps in python, using the python libs, where else should it be posted? I mean, I could post the entire sample script so you can see

list/tuple/dict question

2008-08-17 Thread bruce
hi guys/gals... got a basic question that i can't get my hands around. i'm trying to programatically create/use a list/tuple (or whatever the right phrase in pyton is!!) basically, something like: foo = [] foo.append('cat') foo.append('dog') foo[1] = [] (and in this case, i really want to

RE: list/tuple/dict question

2008-08-17 Thread bruce
@python.org Subject: Re: list/tuple/dict question bruce wrote: a dict doesn't seem to work, as it is essentially a series of key/values, which isn't exactly what i want... so what do you think a variable namespace is? as usual, Python works best if you use it to write Python program

parsing form with a website question...

2008-08-14 Thread bruce
Hi guys... Got a question that I figured I'd ask before I reinvent the wheel. A basic website has a form, or multiple forms. within the form, there might be multiple elements (lists/select statements, etc...). each item would have a varname, which would in turn be used as part of the form

Re: Agnostic fetching

2008-08-01 Thread Bruce Frederiksen
On Fri, 01 Aug 2008 17:05:00 -0700, jorpheus wrote: OK, that sounds stupid. Anyway, I've been learning Python for some time now, and am currently having fun with the urllib and urllib2 modules, but have run into a problem(?) - is there any way to fetch (urllib.retrieve) files from a server

Re: Non Continuous Subsequences

2008-07-31 Thread Bruce Frederiksen
On Wed, 30 Jul 2008 09:32:25 -0700, bearophileHUGS wrote: This post is not about practical stuff, so if you have little time, you may ignore it. This is a task of the rosettacode.org site: http://www.rosettacode.org/wiki/Non_Continuous_Subsequences A subsequence contains some subset of

Re: problem when reading file

2008-07-31 Thread Bruce Frederiksen
On Thu, 31 Jul 2008 23:44:33 +1000, shrimpy wrote: hi every one, i am new to python, and coz i want to write a handy command for my linux machine, to find a word in all the files which are under the current folder. the code is half done, but when i run it, it complain, and i don`t know

Re: Defunct when using subprocess.Popen

2008-07-30 Thread Bruce Frederiksen
On Wed, 30 Jul 2008 01:56:28 -0300, Gabriel Genellina wrote: You should call os.waitpid() after killing the child process, to let the OS free the resources allocated to it. The subprocess.Popen object supports a 'wait' method directly. -- http://mail.python.org/mailman/listinfo/python-list

Re: static variables in Python?

2008-07-29 Thread Bruce Frederiksen
On Tue, 29 Jul 2008 21:31:01 +, kj wrote: In [EMAIL PROTECTED] Larry Bates [EMAIL PROTECTED] writes: [snip] Maybe it's easier to see what I mean with JavaScript: function foo() { if (foo.x === undefined) foo.x = expensive_call(); return do_stuff_with(foo.x); } def foo():

Trying to solve a python/mechanize error 500 http error

2008-07-21 Thread bruce
i'm getting the following error: mechanize._response.httperror_seek_wrapper: HTTP Error 500: i'm running python 5.1 and mechanize 0.1.7b I have no idea as to what I have to change/modify/include to handle this issue. The link that I'm testing is at the bottom of the page. When I insert

Trying to solve a python/mechanize error 500 http error

2008-07-21 Thread bruce
i'm getting the following error: mechanize._response.httperror_seek_wrapper: HTTP Error 500: i'm running python 5.1 and mechanize 0.1.7b I have no idea as to what I have to change/modify/include to handle this issue. The link that I'm testing is at the bottom of the page. When I insert

db question

2008-07-20 Thread bruce
Hi... simple test mysql cmd - select * from foo where dog like %small%; sql =select * from foo where dog like %%%s%% c.execute(sql, (var,)) the above doesn't work, and I can't seem to figure out how to display/print out the sql as i't actually been excuted, so I can see where the issue is.

db question

2008-07-20 Thread bruce
update... in using the mysql_query log function, i get the following query being registered: select * from foo where dog like %'small'% so.. if i can figure out how to get rid of the ' inside the % the query should/will work... thanks Hi... simple test mysql cmd - select * from foo where

Is this correct behavior for default parameters?

2008-07-15 Thread Bruce Pearson
The first call to test has the file_list empty but on the second call to test the file_list is no longer empty but contains the values appended in the first call. Is this correct behavior? I'm using python 2.5 def test(param_1, file_list = []): if len(file_list) == 0: print

RE: python/ruby question..

2008-06-19 Thread bruce
Of Paul McGuire Sent: Thursday, June 19, 2008 6:27 PM To: python-list@python.org Subject: Re: python/ruby question.. On Jun 18, 10:33 pm, bruce [EMAIL PROTECTED] wrote: hi... can someone point me to where/how i would go about calling a ruby app from a python app, and having the python app being able

python/ruby question..

2008-06-18 Thread bruce
hi... can someone point me to where/how i would go about calling a ruby app from a python app, and having the python app being able to get a returned value from the ruby script. something like test.py a = os.exec(testruby.rb) testruby.py foo = 9 return foo i know this doesn't work... but

python screen scraping/parsing

2008-06-13 Thread bruce
are most welcome... also, i'm willing to send a small amount via paypal!! -bruce -- http://mail.python.org/mailman/listinfo/python-list

RE: python screen scraping/parsing

2008-06-13 Thread bruce
Subject: Re: python screen scraping/parsing On 13 Jun, 20:10, bruce [EMAIL PROTECTED] wrote: url =http://www.pricegrabber.com/rating_summary.php/page=1; [...] tr = /html/body/[EMAIL PROTECTED]'pgSiteContainer']/[EMAIL PROTECTED]'pgPageContent']/table[2]/tbo dy/tr[4] tr_=d.xpath

Re: The Importance of Terminology's Quality

2008-05-07 Thread Bruce C. Baker
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [...] (for example, Perl's naming heavily relies on unix culture (grep, pipe, hash...), ... hash + pipe? Ah, /no wonder/ Perl is the syntactic mishmash it is! ;-) -- http://mail.python.org/mailman/listinfo/python-list

[issue2598] { +(}.format(**{' +(': 44}) should produce ValueError: invalid identifier, ' +(' in format

2008-04-12 Thread Bruce Frederiksen
Bruce Frederiksen [EMAIL PROTECTED] added the comment: I was reading the 3.0 documentation: http://docs.python.org/dev/3.0/library/string.html#formatstrings which indicated that an identifier was required. I was unaware of the implementation note in the PEP. They only issue remaining

[issue2597] python2.6 -3 should report list.sort(cmp) as DeprecationWarning

2008-04-08 Thread Bruce Frederiksen
New submission from Bruce Frederiksen [EMAIL PROTECTED]: this is not reported in 2.6a1. -- components: Interpreter Core messages: 65207 nosy: dangyogi severity: normal status: open title: python2.6 -3 should report list.sort(cmp) as DeprecationWarning type: feature request versions

[issue2598] { +(}.format(**{' +(': 44}) should produce ValueError: invalid identifier, ' +(' in format

2008-04-08 Thread Bruce Frederiksen
New submission from Bruce Frederiksen [EMAIL PROTECTED]: Format strings are documented to only allow identifiers or integers as the field_name, but allow almost anything. Python 3.0a3 -- components: Interpreter Core messages: 65209 nosy: dangyogi severity: normal status: open title

[issue2599] allow field_name in format strings to default to next positional argument (e.g., {})

2008-04-08 Thread Bruce Frederiksen
New submission from Bruce Frederiksen [EMAIL PROTECTED]: Being forced to number the arguments when using positional arguments in a format string is difficult to maintain. Adding an argument to the format string either requires renumbering all subsequent arguments, or using an out of sequence

[issue2446] 2to3 translates import foobar to import .foobar rather than from . import foobar

2008-03-21 Thread Bruce Frederiksen
New submission from Bruce Frederiksen [EMAIL PROTECTED]: 2to3 svn rev 61696 translates import local_module into import .local_module which isn't legal syntax. Should be from . import local_module. -- assignee: collinwinter components: 2to3 (2.x to 3.0 conversion tool) messages: 64247

[issue2427] 2to3 should translate itertools.imap into generator expression, not list comprehension

2008-03-19 Thread Bruce Frederiksen
New submission from Bruce Frederiksen [EMAIL PROTECTED]: 2to3, svn rev 61623 translates itertools.imap(lambda x: ..., ...) into a list comprehension. This should be translated instead into a generator expression so that doing itertools.imap on infinite iterators still works

[issue2428] 2to3 deletes # comments before from __future__ import with_statement

2008-03-19 Thread Bruce Frederiksen
New submission from Bruce Frederiksen [EMAIL PROTECTED]: 2to3, svn rev 61623. To reproduce this error: $ cat ! foobar.py # line 1 # line 2 from __future__ import with_statement import sys ! $ 2to3 -w foobar.py RefactoringTool: Skipping implicit fixer: buffer RefactoringTool: Skipping

[issue2410] absolute import doesn't work for standard python modules

2008-03-18 Thread Bruce Frederiksen
New submission from Bruce Frederiksen [EMAIL PROTECTED]: Try this to reproduce error: $ mkdir -p test/email $ cd test $ touch __init__.py email/__init__.py $ cat ! foo.py from __future__ import absolute_import import smtplib ! $ python import foo ... File /usr/lib/python2.6/smtplib.py, line

Pycon disappointment

2008-03-16 Thread Bruce Eckel
If the following seems unnecessarily harsh, it was even more harsh for me to discover that the time and money I had spent to get to my favorite conference had been sold to vendors, presenting me as a captive audience they could pitch to. I believe that this year's Pycon organizers suffered from

Re: Pycon disappointment

2008-03-16 Thread Bruce Eckel
and to help recover from the bad experience many had when they tried to push Perl too far. Thanks for your post, Bruce. You've given us a huge boost that we're doing something right, here. I'm sure your conference will be great because you're making it totally attendee-focused. -- http

Unexpected Behaviour using unittest

2008-02-22 Thread Bruce Coram
The code fragment below shows what appears to be inconsistent behaviour. The code is testing that messages are created correctly and that an instances of a class is created correctly. It checks that all of the expected addresses are used (contained in addresslist) and that all of the

sqlobject question...

2007-12-29 Thread bruce
hi... this continues my investigation of python/sqlobject, as it relates to the need to have an id, which is auto-generated. per various sites/docs on sqlobject, it appears that you can override the id, by doing something similar to the following: def foo(SQLObject): def _init(self, id,

sqlobject issue/question...

2007-12-28 Thread bruce
hi i'm playing around, researching sqlobject, and i notice that it appears to require the use of id in each tbl it handles in the database. if i already have a db schema, and it doesn't use 'id' as an auto-generated field, does that mean that i can't use/implement sqlobject. is there a way

Re: new style class

2007-12-12 Thread Bruce Coram
good. I have no desire to to indulge in online verbal brawling but please take more care in drafting a reply, particularly in a situation where your interpretation of my post might lead others who post to believe that I thought them rude, hostile or arrogant. Bruce Coram Steven D'Aprano wrote

Re: new style class

2007-12-08 Thread Bruce Coram
is very good advice. Bruce Coram -- http://mail.python.org/mailman/listinfo/python-list

python question!!

2007-11-22 Thread bruce
hi... new to python, and can't seem to find an answer to this via google.. of course i'm not even sure what to callit.. so i might be searching in the wrong places... a python script foo.py, can have an import.. foo.py import dog import cat where dog, and cat, might have other import

python debugging...

2007-11-17 Thread bruce
Hi... new to python, trying to debug an app i have : lib]# cat foo #!/usr/bin/python2.4 -OO # -*- coding: ascii -*- # vim:ts=4:sw=4:softtabstop=0:smarttab # import sys import slstorageserver slstorageserver.storaged(sys.argv) == i do a

RE: python - an eggs...

2007-11-12 Thread bruce
: Monday, November 12, 2007 2:16 AM To: python-list@python.org Subject: RE: python - an eggs... bruce wrote: Hi Diez... I've never used setuptools, (it's not on the box) and i don't have easy_install tools installed... But in looking at your output, I have some questions... -The 1st, I'm

RE: python - an eggs...

2007-11-12 Thread bruce
... bruce wrote: diez... i was being polite in thanking you for your input/thoughts... i actually had read what you'd posted, as i stated. Really? Did you? Here your third question: -3rd question.. in searching the 'net, it appears that i have to download setuptools in order to get

Can we get rid of unrelated non-python posts?

2007-11-12 Thread Bruce
I joined this to read about python. Please don't respond and move to another list. Thanks! -Bruce -- http://mail.python.org/mailman/listinfo/python-list

RE: python - an eggs...

2007-11-11 Thread bruce
] Behalf Of Diez B. Roggisch Sent: Sunday, November 11, 2007 4:36 AM To: python-list@python.org Subject: Re: python - an eggs... bruce schrieb: Hi... I have a python script/app that i'm dealing with. It uses Durus, which installs as an egg. I'm trying to figure out how to modify any

RE: python - an eggs...

2007-11-11 Thread bruce
Of Diez B. Roggisch Sent: Sunday, November 11, 2007 10:03 AM To: python-list@python.org Subject: Re: python - an eggs... bruce schrieb: Hi Diez... In my case, I do a python setup.py install and i get a Durus...egg installed in the /usr/lib/python2.4/site-packages/ dir... As I understand

RE: python - an eggs...

2007-11-11 Thread bruce
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Diez B. Roggisch Sent: Sunday, November 11, 2007 2:58 PM To: python-list@python.org Subject: Re: python - an eggs... bruce schrieb: Hi Diez Forgot to mention, that when I did an unzip of the egg file, and placed the files

python - an eggs...

2007-11-10 Thread bruce
Hi... I have a python script/app that i'm dealing with. It uses Durus, which installs as an egg. I'm trying to figure out how to modify any of the underlying source files or the egg, short of modifying the original source file, and then having to reinstall the egg via python setup.py install...

Parallel Python environments..

2007-11-06 Thread bruce
Hi.. If I wanted to be able to build/test/use parallel python versions, what would I need to do/set (paths/libs/etc...) and where would I need to place the 2nd python version, so as not to screw up my initial python dev env. I'd like to be able to switch back/forth between the different versions

RE: Parallel Python environments..

2007-11-06 Thread bruce
Python environments.. * bruce (Tue, 6 Nov 2007 07:13:43 -0800) If I wanted to be able to build/test/use parallel python versions, what would I need to do/set (paths/libs/etc...) nothing and where would I need to place the 2nd python version, so as not to screw up my initial python dev env

RE: Parallel Python environments..

2007-11-06 Thread bruce
i'm running rhel... so there isn't a python-config script as far as i know.. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: Tuesday, November 06, 2007 8:26 AM To: python-list@python.org Subject: Re: Parallel Python environments..

RE: Parallel Python environments..

2007-11-06 Thread bruce
2:07 PM To: python-list@python.org Subject: Re: Parallel Python environments.. En Tue, 06 Nov 2007 18:43:10 -0300, bruce [EMAIL PROTECTED] escribió: if i have python 2.4.3 installed, it gets placed in the python2.4 dir.. if i don't do anything different, and install python 2.4.2, it too

changes on disk not visible to script ?

2007-10-08 Thread Bruce
Hi, I am trying to have my script automate a task, by using os.system, but I cant get it to work. manually, outside the script I can do this thing by C:\echo argument_file | the_program This works very well when argument_file is created before my script is started In the script I try to do it

Re: changes on disk not visible to script ?

2007-10-08 Thread Bruce
On 8 Okt, 15:56, Richie Hindle [EMAIL PROTECTED] wrote: [Bruce] f.close() cmd = echo %s | %s%(argument_file,the_program) Either: you are a VB programmer and you've actually typed f.close rather than f.close(), Or: you meant type (or cat) rather than echo, Or: I need a new crystal ball

Auction/Bidding system for AdWords/AdSense functionality

2007-10-04 Thread bruce
Hi... Looking for an app that provides bidding/auction functionality, for a system similar to what Google provides. Anybody have any expertise with any system like this, or any kind of app that could be modified to get this kind of functionality. Thanks --

[issue1174] new generator methods not documented in Library Reference

2007-09-17 Thread Bruce Frederiksen
New submission from Bruce Frederiksen: The 2.5 library documentation mentions the new GeneratorExit exception, but does not show Generator Types with the new 'send', 'throw', 'close' and '__del__' methods. -- components: Documentation messages: 55981 nosy: dangyogi severity: minor

[issue1173] yield expressions not documented in Language Reference

2007-09-17 Thread Bruce Frederiksen
Changes by Bruce Frederiksen: -- components: Documentation severity: minor status: open title: yield expressions not documented in Language Reference type: rfe versions: Python 2.5 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1173

Re: c[:]()

2007-06-02 Thread Bruce Coram
pretentious person who is so self absorbed that he is mentally incapable of seeing the hollowness of his ideas. Either way it's probably not worth spending any more time on him. All that needs to be said has been. This thread is bare. Exit Bruce Coram 2007/6/1, Warren Stringer [EMAIL PROTECTED

configobj - use of

2007-05-24 Thread Bruce
I assume that you know the module configobj. I use it like this: I have a config_file : [sec1] [[subsec1]] a = 1 b = 2 [[subsec2]] a = 3 b = 1 .. ans so on Then in the code I have c = configobj.ConfigObj(path_to_config file) then I go like for instance for s in c['sec1']: print

how to use imaageop.scale

2007-05-23 Thread Bruce
Hi, I want to compress a jpg file. e.g. a jpg file which has RGB band (24bit per pixel), 100 * 100 size to 50 * 50 size. I tried to use scale function in imageop module but failed. Any suggestions about this? Thanks! Bruce -- http://mail.python.org/mailman/listinfo/python-list

Re: how to use imaageop.scale

2007-05-23 Thread Bruce
On May 23, 5:31 pm, Amit Khemka [EMAIL PROTECTED] wrote: On 23 May 2007 00:02:34 -0700, Bruce [EMAIL PROTECTED] wrote: Hi, I want to compress a jpg file. e.g. a jpg file which has RGB band (24bit per pixel), 100 * 100 size to 50 * 50 size. I tried to use scale function in imageop module

Re: File not read to end

2007-04-26 Thread bruce peng
rb,,please [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I'm trying to write a simple log parsing program. I noticed that it isn't reading my log file to the end. My log is around 200,000 lines but it is stopping at line 26,428. I

Re: is laziness a programer's virtue?

2007-04-17 Thread Bruce C. Baker
Lew [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Markus E Leypold Trying to correct Xah's behaviour is probably impossible. Ingo Menger wrote: Perhaps somebody could ask the chinese government to put him in jail for hurting international society :) Y'know, even in jest,

Re: Newbie help with array handling

2007-04-12 Thread bruce peng
use dir with list nested for example: {key1 : [value1, value2, value3], key2 : [value1, value2, vlaue4]} loial [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am new to python and am converting an awk script to python I need to store some data in an array/table of some form

<    1   2   3   4   5   >