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:
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:
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
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
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
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
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
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
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
=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
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
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
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
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
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
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
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
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_
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
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
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
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
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
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
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
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
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..
]
[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
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
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,
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.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
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
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
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,
die on the vine...
Thank you for your attention!
-bruce
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
].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
...
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
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
@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
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
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
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
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
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
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():
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
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
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.
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
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
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
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
are most welcome...
also, i'm willing to send a small amount via paypal!!
-bruce
--
http://mail.python.org/mailman/listinfo/python-list
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
[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
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
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
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
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
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
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
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
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
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
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
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
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,
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
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
is very good advice.
Bruce Coram
--
http://mail.python.org/mailman/listinfo/python-list
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
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
: 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
...
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
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
] 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
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
-
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
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...
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
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
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..
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
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
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
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
--
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
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
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
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
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
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
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
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,
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
201 - 300 of 420 matches
Mail list logo