On 24 Aug 2005 01:50:25 -0700, [EMAIL PROTECTED] wrote:
>I need to execfile() from a function in order to set value for a global
>variable from inside the executed file. I know there are "globals" and
>"locals" optional arguments for execfile, but I just can't figure out
>how to use them correctly
Sybren Stuvel wrote:
> Eli Stevens (WG.c) enlightened us with:
>
>>I've bumped into some snags with pyperl (can't import perl2.so? But
>>it's right there in site-packages/ !), and I'm wondering if it's bitrot
>>or a config error on my end.
>
>
> If the .so file is as old as you described, it'
Laszlo Zsolt Nagy wrote:
> Try this:
>
> gclas = raw_input("What is the class:")
> def Princlas():
>count = 0
>while count != 1000:
>count = count + 1
>return "Admin forceclass %s %s " % ( count , gclas )
have you tried your code ? Obviously, no, else you would have seen t
Terry Hancock wrote:
> Frankly, I was surprised this worked at all, but I tried
> creating a property outside of a class (i.e. at the module
> level), and it seems to behave as a property:
Not so surprising. Making a class begins by making a little namespace,
then using it to build the class. If
In article <[EMAIL PROTECTED]>,
"max(01)*" <[EMAIL PROTECTED]> wrote:
> in perl i can do this:
...
> but i do not know how to do it in python, because "if *command*:" gives
> syntax error.
>
> moreover, if i use
...
> it doesn't work, since "*do_something*" and *do_something_more* are
> always
Bryan Olson wrote:
> Paul Rubin wrote:
> > Bryan Olson writes:
> >
> >> seq[3 : -4]
> >>
> >>we write:
> >>
> >> seq[3 ; $ - 4]
> >
> > +1
>
> I think you're wrong about the "+1". I defined '$' to stand for
> the length of the sequence (not the address of the last
> element).
By
Neil Schemenauer <[EMAIL PROTECTED]> writes on Mon, 22 Aug 2005 15:31:42 -0600:
> ...
> Some code may require that str() returns a str instance. In the
> standard library, only one such case has been found so far. The
> function email.header_decode() requires a str instance and the
>
Hi,
I am new to this group. I am trying to build an application to see
all the contents of the outlook accounts (USING MAPI). Does anyone has
any information regarding this ?
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> Is SciPy usable with Python 2.4.1? At http://www.scipy.org/download/ it
> says that 2.3.3 is recommended, and I don't see a binary for 2.4.1.
It is usable with Python 2.4.1 on Linux and OS X at least. IIRC,
mingw-compiled extensions don't work with the standard Python 2.
Mentre io pensavo ad una intro simpatica "[EMAIL PROTECTED]"
scriveva:
> now i am planning to write a bear minimum email client in
> pyhton. i found the smtp module of python could serve my
> pupose. I can send message using mails using the smtp lib.
> Now i'm looking for some modules which can he
Wade wrote:
> http://www.slate.com/id/2124561/entry/2124562/
>
> Nice little series by Seth Stevenson for Americans daydreaming about
> emigration. Somewhere, anywhere ... maybe Amsterdam?
>
> I've never been to the Netherlands myself, but it sounds very
> civilized.
>
> Extra Python connection,
I'm going to tell you about a TOP RATED AUTOSURF program that takes 5 mins of
your day and then instantly credits your account 12% of what you put in. Its
that easy and everyone is going crazy about it. I have personally done this
and been paid.
This is how it works. You have to have/get you
"Martin v. Löwis" <[EMAIL PROTECTED]> writes:
> IOW: feel free to invoke setlocale in your library. It will likely
> work in many cases, but may break in some. So you should atleast
> document that this is what your library does.
Thanks for the advice. I ended up implementing it in the library, w
Hello,
I am working on a project that invovles the use of linear programming.
The framework for the project has been written in Python. I recently
came across PuLP http://www.jeannot.org/~js/code/index.en.html#PuLP ,
which creates output files to use with LP solvers. I was wondering if
anyone ha
> but... i see it doesn't work for some commands, like "man python" (it
> gets stuck on the "if" line)...
.readlines() won't return until it hits end-of-file, but the "man"
command waits for user input to scroll the content, like the "more" or
"less" commands let you view "pages" of information on
Dear newsgroup,
I give up, I must be overseeing something terribly trivial, but I can't
get a simple (Java) applet to react to incoming (python) SocketServer
messages.
Without boring you with the details of my code (on request available,
though), here is what I do :
I have a TCPServer and BaseRe
"chand" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi.,
>
> In my api.py file 'g_opt_list' is defined globally
> g_opt_list =[[],[],[],[],[],[],[]]
>
> I am using this global list in the fucntion
>
> def function ():
>gloabl g_opt_list
>
> when I run the py file, I am getti
> "Robert" == Robert Kern <[EMAIL PROTECTED]> writes:
Robert> [EMAIL PROTECTED] wrote:
>> Is SciPy usable with Python 2.4.1? At
>> http://www.scipy.org/download/ it says that 2.3.3 is
>> recommended, and I don't see a binary for 2.4.1.
Robert> It is usable with Python 2.4.
> "Michele" == Michele Simionato <[EMAIL PROTECTED]> writes:
Michele> There are also my lectures at Oxford:
Michele>
http://www.reportlab.org/~andy/accu2005/pyuk2005_simionato_wondersofpython.zip
Michele>Michele Simionato
You really need to get O'Reilly to publish your s
I'll have to try this again. I obviously did something wrong in my code. I was
getting errors about not being able to write a string because it wasn't
supported. It was driving me nuts for a while until I just gave up and went
back to open(). I'll do some more playing and if I continue to get e
Hi all,
I'm a newbie to Python, so I have a question about writing an
application that also has a scripting ability. I'm thinking of Eric3
as an example. It's written in Python, but it also has an interpreter
window. The user doesn't have access (I don't think...) to all the
internal stuff that
In article <[EMAIL PROTECTED]>,
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote:
>Russell E. Owen wrote:
>
>> Having looked at it again, it is familiar. I copied it when I wrote my
>> own code. I avoided using at the time both because the initial
>> underscore suggested it was a private method and beca
Peter A. Schott wrote:
> Thanks to all who replied. If open is still preferred, I will
> stick with that.
FWIW, that's not an unqualified "preferred". To demonstrate by example,
neither of the above is considered preferred, though they both work:
outputFile = file('path.to.file')
if i
Peter A. Schott wrote:
> I'll have to try this again. I obviously did something wrong in my code. I
> was
> getting errors about not being able to write a string because it wasn't
> supported. It was driving me nuts for a while until I just gave up and went
> back to open().
I expect somewhere
Richie Hindle <[EMAIL PROTECTED]> writes:
> I can't speak for linode.org, but I have a Xen VPS from rimuhosting.com
> and it's early days but so far I've been very impressed. It's $19/mo
> (normally $20 but they kindly gave me a 5% Open Source Developer discount)
Do you get enough resources in th
Subir wrote:
> I am new to this group. I am trying to build an application to see
> all the contents of the outlook accounts (USING MAPI). Does anyone has
> any information regarding this ?
Did you try checking the list archives yet? Go to Google Groups
(groups.google.com) and search in the co
Paul Rubin wrote:
> Richie Hindle <[EMAIL PROTECTED]> writes:
>
>>I can't speak for linode.org, but I have a Xen VPS from rimuhosting.com
>>and it's early days but so far I've been very impressed. It's $19/mo
>>(normally $20 but they kindly gave me a 5% Open Source Developer discount)
>
>
> Do
You should download source for spambayes plug-in for
Outlook (written in Python) located at:
http://spambayes.sourceforge.net/windows.html
You might finds LOTS of good information for your
project.
-Larry Bates
Subir wrote:
> Hi,
>
> I am new to this group. I am trying to build an applicatio
John Hunter wrote:
>>"Robert" == Robert Kern <[EMAIL PROTECTED]> writes:
>
>
> Robert> [EMAIL PROTECTED] wrote:
> >> Is SciPy usable with Python 2.4.1? At
> >> http://www.scipy.org/download/ it says that 2.3.3 is
> >> recommended, and I don't see a binary for 2.4.1.
>
> R
Thomas Heller:
> Yes. There's a script in your Python distribution:
> Tools/scripts/diff.py
>
> See also the docs for the 'difflib' standard library module.
Is the opposite code, a Python equivalent to 'patch' available? I
have endless trouble receiving patch files that assume one of Windo
I have a question about Windows based python (2.4 and later).
For example, if I make a script called test.py like so:
import sys
print sys.argv
then run it:
python test.py this is a test
I see a list with
['test.py', 'this', 'is', 'a', 'test']
All is good!
BUT...
If i make .py extensions
On Wednesday 24 August 2005 03:48 pm, sonicSpammersGoToHellSmooth wrote:
> In my case I'd like to write a CAD program which allows the user to
> write Python scripts, and to provide an API to do CAD stuff, manipulate
> parameters, circuits, layouts, simulations, etc. The user should not
> have acc
John Machin wrote:
> Sigh indeed. If you need to read it a character at a time to parse it,
> the design is f***ed.
There is always the potential to do 2k buffered reads and once in
memory pick the contents apart character-wise.
I assume something similar would happen for tokenising XML and HTML
Robert Kern wrote:
> > Robert> Please quote the message you are replying to. We have no
> > Robert> idea what "the 2nd option" is.
> >
> > I think he means the second option you presented
> >
> > If you must read one character at a time,
> >
> > def reader(fileobj, blocksize=1):
> >
Greg McIntyre wrote:
> Robert Kern wrote:
>
>>>Robert> Please quote the message you are replying to. We have no
>>>Robert> idea what "the 2nd option" is.
>>>
>>>I think he means the second option you presented
>>>
>>> If you must read one character at a time,
>>>
>>> def reader(fileob
Steve Holden wrote:
> Well you could do worse than use the gmane.comp.python.general newsgroup
> if you want to use an NNTP newsreader. I recently left the ISP who had
> provided me with news services for years, and I am very happy with the
> gmane service (though heaven only knows why they cho
Terry Hancock wrote:
>>I have a strong EE and hardware background (hence my need to write a
>>CAD program that doesn't piss me off), but not a CS background.
>
> Cool. If you do write it and release it, I'd be interested in finding out
> about it.
>
> You probably ought to consider starting with
On Sun, 21 Aug 2005, Robert Kern wrote:
> Eric Huss wrote:
> > I'm having a problem with packages within packages. Here's an example:
> >
> > foo/
> > foo/__init__.py: empty file
> > foo/sub/__init__.py:
> > from foo.sub.B import B
> > foo/sub/A.py:
> > class A:
> > pass
> > f
Robert Kern wrote:
> By "+1" he means, "I like it." He's not correcting you.
Ah, O.K. Thanks.
--
--Bryan
--
http://mail.python.org/mailman/listinfo/python-list
"Mike Meyer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> "Mike Schilling" <[EMAIL PROTECTED]> writes:
>
>> "l v" <[EMAIL PROTECTED]> wrote in message
>> news:[EMAIL PROTECTED]
>>> Xah Lee wrote:
(circa 1996), and email should be text only (anti-MIME, circa 1995),
>>>
>>> I
The doc for the find() method of string objects, which is
essentially the same as the string.find() function, states:
find(sub[, start[, end]])
Return the lowest index in the string where substring sub
is found, such that sub is contained in the range [start,
end). Optio
Bryan Olson wrote:
> The doc for the find() method of string objects, which is
> essentially the same as the string.find() function, states:
>
> find(sub[, start[, end]])
>Return the lowest index in the string where substring sub
>is found, such that sub is contained in the ra
my husband is installing an extra bathroom poolside. there is a perfect size
hole (unless you have a huge cock) to stick your dick through into the adjoing
room. come around the side of my house(perfect if you look like a repair man)
enter into the unfisnished bathroom and I'll service you fro
Dear Casino Player,
YOU HAVE BEEN PREAPPROVED.
Receive $100 FREE at the Online Casino Of The Year 2002 when you open a new
account.
DOWNLOAD AWARD WINNING CASINO GAMES
or
VISIT THEIR WEBSITE FOR MORE INFORMATION.
http://webmaster.windowscasino.com/SmartDownload.asp?affid=14409
WINDOWS CASINO
Bryan Olson <[EMAIL PROTECTED]> writes:
> Mike Meyer wrote:
> > Bryan Olson writes:
> >>Mike Meyer wrote:
> >> > The rule I follow in choosing my tools is "Use the least complex tool
> >> > that will get the job done."
> >>Even if a more complex tool could do the job better?
> > In that case,
>contained in the range [start, end)
Does range(start, end) generate negative integers in Python if start
>= 0 and end >= start?
--
Regards,
Casey
--
http://mail.python.org/mailman/listinfo/python-list
Are you as mad about spam as I am? Are you frustrated with the
pessimism and lack of progress these last two years? Do you have
faith that an open-source project can do better than the big companies
competing for a lock-in solution? If so, you might be interested in
the Open-Mail project.
I'm w
Hum...
If it's Outlook, look for COM/Dispatch, with PyWin32
If it's Outlook-Express, search a MAPI module, like said Peter Hansen.
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
On Wednesday 24 August 2005 09:12 pm, Peter Hansen wrote:
> Terry Hancock wrote:
> >>I have a strong EE and hardware background (hence my need to write a
> >>CAD program that doesn't piss me off), but not a CS background.
> >
> > You probably ought to consider starting with something existing like
On Thu, 25 Aug 2005 00:05:18 -0400
Steve Holden wrote:
> What on earth makes you call this a bug? And what are you proposing that
> find() should return if the substring isn't found at all? please don't
> suggest it should raise an exception, as index() exists to provide that
> functionality.
101 - 150 of 150 matches
Mail list logo