[EMAIL PROTECTED] wrote:
> action="http://login.myspace.com/index.cfm?fuseaction=login.process";
> method="post" name="theForm" id="theForm">
>
>
>
What happens when you add the form param "submit" with value "Login"
to the request you're doing?
Perhaps the page needs this third parameter
I reported the bug to python.org and apparently it has already been
fixed in the latest SVN build :).
[EMAIL PROTECTED] wrote:
> Yes, the problem was that I hadn't imported anydbm.error... it's
> working now.
>
> As for the AttributeError at the end, I talked to someone else, and he
> looked at the
I <[EMAIL PROTECTED]> wrote:
> Incidentally, I'm not saying that such a feature would be a good idea.
> It generally isn't provided in languages specifically because it gets to
> be a big pain to maintain all of the type specifications for this kind
> of stuff.
There are other good reasons, to
borris wrote:
> ive been trying to do a test for type with wxpython objects
>
> like
>
> passing in a wx.TextCtrl into
>
> def XXX(obj)
> if type(obj) is type(self.Button)
>
> I have to make an object self.Button to get its type.
> as I tried is type("wx.Button") which didnt work.
type("wx.Butt
In article <[EMAIL PROTECTED]>,
dwelch91 <[EMAIL PROTECTED]> wrote:
>I need to detect whether the operating system I am running on (not the
>Python version) is 64bit or 32bit. One requirement is that I need to
>include support for non-Intel/AMD architectures.
The standard C way would be to che
[EMAIL PROTECTED] wrote:
> I reported the bug to python.org and apparently it has already been
> fixed in the latest SVN build :).
Awesome! Open Source at work! :D
--
http://mail.python.org/mailman/listinfo/python-list
Chris Smith wrote:
>
> But this starts to look bad, because we used to have this nice property
> called encapsulation. To work around that, we'd need to make one of a
> few choices: (a) give up encapsulation, which isn't too happy; (b) rely
> on type inference for this kind of stuff, and consider
This is probably my last response to you in this thread. My impression
is that for the moment nothing productive can come from this exchange.
I have the feeling that you are not reading so much with the interntion
of understanding what I want to say, but with the intention of
confirming your suspit
Chris Smith schrieb:
> For example, I wrote that example using variables of type int. If we
> were to suppose that we were actually working with variables of type
> Person, then things get a little more complicated. We would need a few
> (infinite classes of) derived subtypes of Person that fu
Marshall <[EMAIL PROTECTED]> wrote:
> Chris Smith wrote:
> >
> > But this starts to look bad, because we used to have this nice property
> > called encapsulation. To work around that, we'd need to make one of a
> > few choices: (a) give up encapsulation, which isn't too happy; (b) rely
> > on type
Robert Kern wrote:
> Sheldon wrote:
> > Hi,
> >
> > I am trying to build a large array using concatenate function in
> > python.
> > So as I loop over the number of arrays, of which there are 12 (4 down
> > and 3 across), I create 3 long arrays by concatenating them at the
> > bottom and then conc
Chris Smith schrieb:
> I think
> there's something fundamentally important about information hiding that
> can't be given up.
Indeed.
Without information hiding, with N entities, you have O(N^2) possible
interactions between them. This quickly outgrows the human capacity for
managing the inter
Chris Smith <[EMAIL PROTECTED]> writes:
> But the point here is that I don't WANT the compiler to be able to infer
> that, because it's a transient consequence of this year's tax code. I
> want the compiler to make sure my code works no matter what the tax code
> is. The last thing I need to
Alex Martelli wrote:
> Bruno Desthuilliers <[EMAIL PROTECTED]> wrote:
>...
>
>>>This would allow things like:
>>>key = '',join( list(word.lower().strip()).sort() )
>>
>>key = ''.join(list(sorted(word.lower().strip()))
>
>
> No need to make yet another list here (also, I think eac
Sheldon wrote:
> Thanks again for showing me this. I have been trying to read up on
> reduce() as I have never used it before. I would like to know what it
> does. So far my search has found nothing that I can grasp. The
> reference library notes are estoteric at best.
> Can you enlighten me on thi
Steven Bethard wrote:
> Terry Reedy wrote:
>
>> "Gregory Guthrie" <[EMAIL PROTECTED]> wrote in message
>> news:[EMAIL PROTECTED]
>>
>>> - why is len() not a member function of strings? Instead one says
>>> len(w).
>>
>>
>> Consider
>>
> map(len, ('abc', (1,2,3), [1,2], {1:2}))
>>
>> [3, 3, 2
Steven Bethard <[EMAIL PROTECTED]> writes:
> If len() were a method of string objects, you could try using the
> unbound method and writing this as::
>
> >>> sorted(['aaa', 'bb', 'c'], key=str.len)
> ['c', 'bb', 'aaa']
>
> But then your code would break on lists that weren't strings.
s
guthrie wrote:
> Good point, thanks.
>
> But if (as I proposed..!) the user interface is better if presented as a
> method. one could porovide convenience methods which would then
> interface to these underlying library functions; yes?
>
Actually, and AFAIK, len(obj) = lambda obj : obj.__len__().
On Sun, 9 Jul 2006, bruce wrote:
[...]
> sgmllib.SGMLParseError: expected name token at '
>
> partial html
> ---
>
>
> Action="/servlets/iclientservlet/a2k_prd/?ICType=Panel&Menu=SA_LEARNER_SERVI
> CES&Market=GBL&PanelGroupName=CLASS_SEARCH" autocomplete=off>
>
In article <[EMAIL PROTECTED]>,
"Cowmix" <[EMAIL PROTECTED]> wrote:
>What is the best way to run multiple version of Python on the same
>system?
You could use chroot. Ask if you want more details.
--
http://mail.python.org/mailman/listinfo/python-list
Hi, list.I'm having a hard time trying to get a couple of tests to pass when compling Python 2.3.5 on Ubuntu Server Edition 6.06 LTS. I'm sure it's not too far removed from the desktop edition but, clearly, I need to tweak something or install some missling libs.uname -aLinux server 2.6.15-23-serve
I use PyScripter. http://www.mmm-experts.com/ I find it easy to use.
It runs on Windows and it does have a good help file.
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> I already have a couple of newbie books on Python itself, but would
> rather get started with a nice to
I think SPE is a terrific IDE, a real pleasure to work with!
Also it's very complete in terms of functionality.
http://stani.be/python/spe/page_download
--
http://mail.python.org/mailman/listinfo/python-list
Robert Kern skrev:
> Sheldon wrote:
> > Thanks again for showing me this. I have been trying to read up on
> > reduce() as I have never used it before. I would like to know what it
> > does. So far my search has found nothing that I can grasp. The
> > reference library notes are estoteric at best
"guthrie" wrote:
> But if (as I proposed..!) the user interface is better if presented as a
> method. one could porovide convenience methods which would then
> interface to these underlying library functions; yes?
but if it isn't? and why this obsession with superficial syntax details?
there's
On 2006-07-09, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> Frank Millman wrote:
>
>> So it looks as if x += [] modifies the list in place, while x = x + []
>> creates a new list.
>
> objects can override the += operator (by defining the __iadd__ method),
> and the list type maps __iadd__ to extend
Paddy wrote:
> I had a look Frederick but the page lead to:
> http://pyref.infogami.com/subscriptions
> Which again failed to mention namespace issues.
it says
The primary must evaluate to an object of a sequence or mapping type.
and links to a page that explains what a primary is. the in
Hi folks
What am I doing wrong in the following? I just want to run fluidsynth in
the background.
#
class MyThread(threading.Thread):
def __init__(self, cmd, callback):
self.__cmd = cmd
self.__callback = callback
threading.Th
tac-tics wrote:
> Philippe Martin wrote:
>
>>I don't know, if I were the genious that made up Python I would not believe
>>in any bible (small b)
>
>
> Take it to alt.religion please.
>
>
Take it to alt.narrow-mondedness please.
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800
PapaRandy wrote:
> When I add the doctype, and other necessities to the .py page
>
> (i.e., "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> http://www.w3.org/1999/xhtml""; xml:lang="en" lang="en">)
>
> I get an invalid script error.
Bear in mind, that this isn't 'a webpage', it's
Special Thanks to Diez B. Roggisch and Eric Brunel.
Last week on Friday I solved the problems I
encountered thanks to your helpful indications.
I think I covered all the ambiguity in my code. Here's
the code:
# executing with Python
from Tkinter import *
from tkFileDialog import *
import
Gregory Piñero wrote:
> I was just idley curious on what it would take to make a web plug-in
> for Pygame. I'm picturing it working the way my browser currently
> shows flash games. Is such an idea even possible? Has anyone
> attempted this?
I doubt you can get PyGame to work this way - at leas
Tim Golden wrote:
> Claudio Grondi wrote:
>
>> I am aware, that it is maybe the wrong group to ask this question, but
>> as I would like to know the history of past file operations from
>> within a Python script I see a chance, that someone in this group was
>> into it already and is so kind to
On Sun, 09 Jul 2006 21:31:00 -0700, placid wrote:
>
> greenflame wrote:
>> I want to make a function that does the following. I will call it
>> thefunc for short.
>>
>> >>> s = "Char"
>> >>> thefunc(s)
>> >>> s
>> '||Char>>'
>>
>> I tried the following
>>
>> def thefunc(s):
>> s = "||" + s +
Claudio Grondi wrote:
> Here a small update to the code at
> http://timgolden.me.uk/python/win32_how_do_i/watch_directory_for_changes.html#use_readdirectorychanges
> :
>
> ACTIONS = {
>1 : "Created",
>2 : "Deleted",
>3 : "Updated",
>4 : "Renamed from something"
>5 : "Renamed to
[Tim Golden]
>> On the offchance that you haven't seen it, you might
>> look at this:
>>
>> http://timgolden.me.uk/python/win32_how_do_i/watch_directory_for_changes.html#use_readdirectorychanges
>>
[Claudio Grondi]
> It seems, that it will be necessary to use some logic based on the
> sequence
[EMAIL PROTECTED] wrote:
> Hi,
>
> I already have a couple of newbie books on Python itself, but would
> rather get started with a nice to use IDE and I am therefore looking
> for a good IDE to learn Python. On my computer I have installed eric
> (http://ericide.python-hosting.com/) but it lacks
[EMAIL PROTECTED] wrote:
> Hi,
>
> I already have a couple of newbie books on Python itself, but would
> rather get started with a nice to use IDE and I am therefore looking
> for a good IDE to learn Python. On my computer I have installed eric
> (http://ericide.python-hosting.com/) but it lacks
>- why is len() not a member function of strings? Instead one says len(w).
Coming from a Java background, I also thought this a weird setup.
However IMHO there is another good reason to have len(obj) as we do in
Python: it helps to enforce some sort of uniformity across code.
If I want to fi
Waldemar Osuch escreveu:
> Luis P. Mendes wrote:
>> Gregory Piñero escreveu:
>>> On 7/7/06, Luis P. Mendes <[EMAIL PROTECTED]> wrote:
Hi,
I know that pyExelerator is the supported project now, but I can't use
it because I'd need it to generate files from a web platform. Since I
i have two xml documemts of type
test
2006-12-12
12:12:12
/home/
test2
12:12:12
/home/test
test3
12:12:12
i have to compare 2 similar xml document and get the add, changed and
deleted files.and write it into acd.xml file.
can u help me with
thanks a lot for the code.
It was not working the first time (do not recognize item and
existing_time --> i changed item by r[-1] and existing_time by
existing_equip).
however, it is not producing the result i expected, as in it doesn't
group by same category the elements, it creates a new block
Hello,
What is the Pythonic way of implementing getters and setters. I've
heard
people say the use of accessors is not Pythonic. But why? And what is
the alternative? I refrain from using them because they smell
"Javaish."
But now my code base is expanding and I'm beginning to appreciate the
wisdo
mystilleef <[EMAIL PROTECTED]> wrote:
> What is the Pythonic way of implementing getters and setters.
Using public members and turning them into properties when needed
> I've
> heard
> people say the use of accessors is not Pythonic. But why?
Because there's no need to have them everywhere
>
In article <[EMAIL PROTECTED]>,
Antoon Pardon <[EMAIL PROTECTED]> wrote:
>On 2006-07-09, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
>> Frank Millman wrote:
>>
>>> So it looks as if x += [] modifies the list in place, while x = x + []
>>> creates a new list.
>>
>> objects can override the += operato
mystilleef wrote:
> Hello,
>
> What is the Pythonic way of implementing getters and setters. I've
> heard
> people say the use of accessors is not Pythonic. But why? And what is
> the alternative? I refrain from using them because they smell
> "Javaish."
> But now my code base is expanding and I'
On Mon, 10 Jul 2006 11:29:37 +, sreekant <[EMAIL PROTECTED]> wrote:
>Hi folks
>
>What am I doing wrong in the following? I just want to run fluidsynth in
>the background.
>#
>class MyThread(threading.Thread):
> def __init__(self, cmd, callback):
>
Learning Python, Perl, or Ruby would help you create admin scripts that
would save you lots of manual work. For me automated log file alerting,
SQL query parsing, SQL table updates, Internet file
uploading/downloading, etc. has been a huge plus. Perl is likely the
most widely used in terms of exist
Hello,
I'm looking for a library that can do the following:
* Parse a simple structured text file (XML or HTML etc.)
* Render its output to an image
* I would like to give the maximum width of the image (but not the
minimum)
* I would like to use my custom TrueType fonts,
hello,
i have a question!
how would i fix the following problem:
now i have an input file with a fix name and an output file!
i have this two files hardcoded written in the sourcecode of this function!
in the future i will start this script with the command line.
the syntax should be look like
Juergen Huber írta:
> hello,
>
> i have a question!
>
> how would i fix the following problem:
>
> now i have an input file with a fix name and an output file!
> i have this two files hardcoded written in the sourcecode of this function!
>
> in the future i will start this script with the command l
Hello (and sorry for my English),
I downloaded the VideoCapture module on the
http://videocapture.sourceforge.net/ site. I tested it with a webcam and
that functions.
Now I want to compile his file .cpp (vidcap.cpp). Thereafter, the idea is to
be able to modify the code to include my own mod
I decided to change the name of an attribute. Problem is I've used the
attribute in several places spanning thousands of lines of code. If I
had encapsulated the attribute via an accessor, I wouldn't need to do
an unreliable and tedious search and replace accross several source
code files to achiev
The one thing I observed (just an observation) is that:
a) on 32-bit machines:
sizeof(int) = 32
sizeof(long) = 32
b) on 64-bit machines:
sizeof(int) = 32
sizeof(long) = 64
This in C and Python.
Thanks in advance:
Michael Yanowitz
-Original Message-
From: [EMAIL PR
tks this ws really helpful, i used catdoc, catppt, xls2csv, pdftotext
from xdf and ps2txt from ghostview!..
BJörn Lindqvist wrote:
> On 4 Jul 2006 08:38:47 -0700, Gaurav Agarwal
> <[EMAIL PROTECTED]> wrote:
> > Thanks Steven, Actually i wanted a do text processing for my office
> > where I can vie
mystilleef wrote:
> I decided to change the name of an attribute. Problem is I've used the
> attribute in several places spanning thousands of lines of code. If I
> had encapsulated the attribute via an accessor, I wouldn't need to do
> an unreliable and tedious search and replace accross several
Hi,
Am using WAMP5 and python 2.4.3. I tried to install mod_python 3.2.5
for python2.4. When i tried starting wamp, Firstly there was no error
message in the apache error log. I saw error message in windows event
viewer :
"The Apache service named Apache.exe reported the following error:
>>> Synt
Michael Yanowitz wrote:
..
>
>> I need to detect whether the operating system I am running on (not the
>> Python version) is 64bit or 32bit. One requirement is that I need to
>> include support for non-Intel/AMD architectures.
>
> The standard C way would be to check sizeof(void *).
so on t
> Gerard Flanagan wrote:
> > Gerard Flanagan wrote:
> > > kepioo wrote:
> > > > Hi all,
> > > >
> > > > I am trying to write an xml aggregator, but so far, i've been failing
> > > > miserably.
> > > >
> > > > what i want to do :
> > > >
> > > > i have entries, in a list format :[[key1,value],[key2,
On 2006-07-10, Jim Segrave <[EMAIL PROTECTED]> wrote:
> In article <[EMAIL PROTECTED]>,
> Antoon Pardon <[EMAIL PROTECTED]> wrote:
>>On 2006-07-09, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
>>> Frank Millman wrote:
>>>
So it looks as if x += [] modifies the list in place, while x = x + []
>>>
> "The Apache service named Apache.exe reported the following error:
> >>> Cannot load c:/wamp/apache/modules/mod_python.so into server: (126) The
> >>> specified module could not be found: <<<
> before the error.log file could be opened."
I have just had a similar problem (same error message),
Michael Yanowitz wrote:
> The one thing I observed (just an observation) is that:
> a) on 32-bit machines:
> sizeof(int) = 32
> sizeof(long) = 32
> b) on 64-bit machines:
> sizeof(int) = 32
> sizeof(long) = 64
>
> This in C and Python.
As I've said previously in this threa
IOANNIS MANOLOUDIS wrote:
> I want to learn python.
> I plan to buy a book. I always find printed material more convenient than
> reading on-line tutorials.
> I don't know PERL or any other scripting language. I only know some BASH
> programming. I am looking for a book which will help me get start
you don't need twisted to run processes in the background, either.
os.popen* returns a file or set of files representing std streams
immediately
subprocess.Popen is a spiffy little object new in 2.4 and available for
download for 2.3. check the module docstrings for usage tips.
you can use threads
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
Subject: RE: [wwws
Hello,
consider the following code
>>> re.search("[a-z](?i)[a-z]","AA")
<_sre.SRE_Match object at 0x40177e20>
this gives a match
if we provide an extra group for the first character it still works
>>> re.search("([a-z])(?i)[a-z]","AA").group(1)
'A'
>>>
it doesn't matter where (?i) is placed
Thanks very much for the reply. I'll give that a shot and post back
with the result.
--
matthew
Bruno Desthuilliers wrote:
> [EMAIL PROTECTED] a écrit :
> > I'm working with the following code. I included some tests to make it
> > easy to see--if you run the code--what troubles I'm having.
> >
>
mystilleef wrote:
> I decided to change the name of an attribute. Problem is I've used the
> attribute in several places spanning thousands of lines of code. If I
> had encapsulated the attribute via an accessor, I wouldn't need to do
> an unreliable and tedious search and replace accross several
Fredrik Lundh <[EMAIL PROTECTED]> wrote:
>Ant wrote:
>> It seems that there must be a way to use eval safely, as there are
>> plenty of apps that embed python as a scripting language - and what's
>> the point of an eval function if impossible to use safely, and you have
>> to write your own Python
Steven D'Aprano <[EMAIL PROTECTED]> wrote:
>Of course, another right way would be to have mutable strings in Python.
What significant advantage would mutable strings have over StringIO
and wrapping list manipulation in list(s) and ''.join(l). Other than
that pleasing symmetry with sets/frozensets
Jim <[EMAIL PROTECTED]> wrote:
>Is there some easy way to split a line, keeping together double-quoted
>strings?
>
>I'm thinking of
> 'a b c "d e"' --> ['a','b','c','d e']
>. I'd also like
> 'a b c "d \" e"' --> ['a','b','c','d " e']
>which omits any s.split('"')-based construct that I could c
> Of course, another right way would be to have mutable strings in Python.
> I understand why strings need to be immutable in order to work with dicts,
> but is there any reason why (hypothetical) mutable strings should be
> avoided in situations where they aren't needed as dictionary keys? Python
I know about os.path.split(), but Is there any standard function for
"fully" splitting a file's pathname? A function that is the opposite of
the os.path.join() function? For example:
>>> ret = myster_function(./foo/bar/moo/lar/myfile.txt)
>>> print ret
['.', 'foo', 'bar', 'moo', 'lar', 'myfile.txt
Diez B. Roggisch wrote:
> > Of course, another right way would be to have mutable strings in Python.
> > I understand why strings need to be immutable in order to work with dicts,
> > but is there any reason why (hypothetical) mutable strings should be
> > avoided in situations where they aren't n
> As Fredrik points out, embedded Python isn't the same as running
> untrusted code. The reality is, Python has not been designed for running
> untrusted code safely.
So how do python app's typically embed python? For example things like
Zope and idle are scripted using Python - presumably they r
I'm testing ReportLab against Python-2.5beta1 and am getting some kind of
problem as below
===
C:\Python24\reportlab\test>\python25\python runAll.py
.C:\Python24\reportlab\test\test_docstrings.py:54: ImportWarning: Not importing
directory 'C:\py
> Bruno Desthuilliers <[EMAIL PROTECTED]> (BD) wrote:
>BD> Actually, and AFAIK, len(obj) = lambda obj : obj.__len__().
You mean: len = lambda obj : obj.__len__().
--
Piet van Oostrum <[EMAIL PROTECTED]>
URL: http://www.cs.uu.nl/~piet [PGP 8DAE142BE17999C4]
Private email: [EMAIL PROTECTED]
--
Joachim Durchholz wrote:
> Chris Smith schrieb:
> > For example, I wrote that example using variables of type int. If we
> > were to suppose that we were actually working with variables of type
> > Person, then things get a little more complicated. We would need a few
> > (infinite classes of) de
I don't know if it's "standard," but why not just:
dir = './foo/bar/moo/lar/myfile.txt'
dir.split('/')
['.', 'foo', 'bar', 'moo', 'lar', 'myfile.txt']
rd
--
http://mail.python.org/mailman/listinfo/python-list
tac-tics wrote:
>
> Diez B. Roggisch wrote:
>> > Of course, another right way would be to have mutable strings in
>> > Python. I understand why strings need to be immutable in order to work
>> > with dicts, but is there any reason why (hypothetical) mutable strings
>> > should be avoided in situa
hi john...
this is in regards to the web/parsing/factory/beautifulsoup
to reiterate, i have python 2.4, mechanize, browser, beatifulsoup installed.
i have the latest mech from svn.
i'm getting the same err as reported by john t. the code/err follows.. (i
can resend the test html if you need)
That's interesting, Ben. So we'd be better off making a new library
similiar to Pygame in functionality but designed from the ground up to
work in a browser. I guess that XPCOM technology that someone
mentioned might be the way to go?
On 10 Jul 2006 03:54:33 -0700, Ben Sizer <[EMAIL PROTECTED]>
Unless it's the sort of operating system that uses something like :
Sys$disk:[foo.bar.moo.lar]myfile.txt
(VaxVMS, from quite a few years ago)
And if I recall, the parsing function provided would also separate the
extension from the main part of the file's name.
Unhelpfully,
Richard.
-
On Mon, 10 Jul 2006 15:23:36 +0100, Sion Arrowsmith wrote:
> Steven D'Aprano <[EMAIL PROTECTED]> wrote:
>>Of course, another right way would be to have mutable strings in Python.
>
> What significant advantage would mutable strings have over StringIO
> and wrapping list manipulation in list(s) a
Chris Smith wrote:
> Marshall <[EMAIL PROTECTED]> wrote:
> > Chris Smith wrote:
> > >
> > > But this starts to look bad, because we used to have this nice property
> > > called encapsulation. To work around that, we'd need to make one of a
> > > few choices: (a) give up encapsulation, which isn't
On Mon, 10 Jul 2006 16:27:03 +0200, Diez B. Roggisch wrote:
>> Of course, another right way would be to have mutable strings in Python.
>> I understand why strings need to be immutable in order to work with dicts,
>> but is there any reason why (hypothetical) mutable strings should be
>> avoided i
> Antoon Pardon <[EMAIL PROTECTED]> (AP) wrote:
>AP> I'm sorry to see you missed it, but since I had answered this already in
>AP> this thread I saw at the moment no need to repeat it: There would be no
>AP> value for c, the line would raise an UnboundLocalError.
OK. That could have been chos
Marshall schrieb:
> Joachim Durchholz wrote:
>> Chris Smith schrieb:
>>> For example, I wrote that example using variables of type int. If we
>>> were to suppose that we were actually working with variables of type
>>> Person, then things get a little more complicated. We would need a few
>>> (in
tac-tics wrote:
> I know about os.path.split(), but Is there any standard function for
> "fully" splitting a file's pathname? A function that is the opposite of
> the os.path.join() function? For example:
>
> >>> ret = myster_function(./foo/bar/moo/lar/myfile.txt)
> >>> print ret
> ['.', 'foo', 'b
I'm trying to make a simple script which attaches watermarks to every
image in one directory and saves the output image to another. However,
while I understand (in theory at least) what I need to be doing, I
can't figure out where to go from here.
First of all, I have a watermark image and a list
Piet van Oostrum wrote:
>>Bruno Desthuilliers <[EMAIL PROTECTED]> (BD) wrote:
>
>
>>BD> Actually, and AFAIK, len(obj) = lambda obj : obj.__len__().
>
>
> You mean: len = lambda obj : obj.__len__().
yes, of course - not enough caffein, I guess...
Thanks
--
bruno desthuilliers
python -c "p
hi...
i can do the following
br = Browser
br.open("www.yahoo.com")
br.open("file:///foo")
but can i do
s = "..." qualified html text
br.open(s)
i'm curious, if i have html from someother source, is there a way to simply
get it into the "Browser" so i can modify it...
thanks
-b
ANNOUNCEMENT
EGENIX.COM
mxODBC Zope Database Adapter
Version 1.0.10
Usable with Zope and the Plone CMS.
Availa
mystilleef wrote:
> I decided to change the name of an attribute. Problem is I've used the
> attribute in several places spanning thousands of lines of code. If I
> had encapsulated the attribute via an accessor, I wouldn't need to do
> an unreliable and tedious search and replace
find and grep ar
Hi All,
I've tried to RTFM this and am having no luck.First off, I am using
Mac OSX 10.4.7 with python 2.4.2 from fink. I am trying to connect to
a server that should be rejecting connections and I was surprised when
it did not throw an exception or do something otherwise equally nasty.
It ju
Thank you so much, it works and it rocks !
bad thing i need ot figure out is why mozilla cannot parse my xsl
sheet, but it works in IE ( most of my users are using IE)
so the module u wrote is to top up element tree with Xpath
capabilities, is it? Does the new element tree does that? which one is
Simon Forman wrote:
> greenflame wrote:
> > Jason wrote:
> > >
> > > There /are/ a few hacks which will do what you want. However, if you
> > > really need it, then you probably need to rethink your program design.
> > > Remember, you can't change a string since a string is immutable! You
> > > c
(Apologies if this appears twice. I posted it yesterday and it was held
due to a 'suspicious header')
I'm having a hard time trying to get a couple of tests to pass when
compling Python 2.3.5 on Ubuntu Server Edition 6.06 LTS. I'm sure it's
not too far removed from the desktop edition but, clea
I RTFM harder, and found that paste with an image mask (using the
watermark as the mask) does the trick.
--
http://mail.python.org/mailman/listinfo/python-list
Steven Bethard a écrit :
> The advantage of a functional form over a method shows up when you write
> a function that works on a variety of different types. Below are
> implementations of "list()", "sorted()" and "join()" that work on any
> iterable and only need to be defined once::
>
> [... skip
1 - 100 of 202 matches
Mail list logo