Thankee. I had just figgered that out. I wrote everything up in a
message titled "The answer," but I accidentally created a new thread
with it. I'll post it in this thread.
--
http://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano wrote:
On Sun, 17 Jan 2010 23:15:28 -0800, Jive Dadson wrote:
Sorry. That deprecation warning has nothing to do with the slowness. It
does torque my jaw, however. Komodo costs money, and Python 2.6 broke
it. @#^&!!! (Again.)
So, the new question is, does anyone kn
Sorry. That deprecation warning has nothing to do with the slowness.
It does torque my jaw, however. Komodo costs money, and Python 2.6
broke it. @#^&!!! (Again.)
So, the new question is, does anyone know how to make Komodo 3.5 run at
speed with Python 2.6? Or perhaps better yet, can someon
Jive Dadson wrote:
Matt Newville wrote:
On Jan 17, 7:25 pm, Jive Dadson wrote:
I just found another module that broke when I went to 2.6. >
Gnuplot. Apparently one of its routines has a parameter
named "with." That used to be okay, and now it's not.
This was fixed
This has to do with Komodo. I cannot use Python 2.4, because numpy is
broken on my machine for that release for reasons unknown. I want to
use 2.6 anyway. But when I use Python 2.6 and Komodo 3.5, it runs slow
as death. I think it might have something to do with the warning I'm
getting. Do
Matt Newville wrote:
On Jan 17, 7:25 pm, Jive Dadson wrote:
I just found another module that broke when I went to 2.6. > Gnuplot.
Apparently one of its routines has a parameter
named "with." That used to be okay, and now it's not.
This was fixed in version 1.8 of Gnupl
alex23 wrote:
>
> Actually, if you're using Python 2.6+/3.x, you can effectively skip
> steps 1-5, as these versions now support user site-packages.
>
> Rather than create a Module folder and modify your PYTHONPATH, add (if
> it doesn't exist already) the following folder:
> %APPDATA%/Python/Pytho
Matt Newville wrote:
On Jan 17, 7:25 pm, Jive Dadson wrote:
I just found another module that broke when I went to 2.6. > Gnuplot.
Apparently one of its routines has a parameter
named "with." That used to be okay, and now it's not.
This was fixed in version 1.8 of Gnupl
Okay, with your help I've figured it out. Instructions are below, but
read the caveat by Ben Fenny in this thread. All this stuff is good for
one default version of Python only. The PYTHONPATH described below, for
example, cannot specify a version number. Yes, that's a pain in the
butt, but
Matt Newville wrote:
Hey, good luck with that forever plan.
--Matt
Yeah, I know. I'm just glad I don't have to get new executables and
dll's from all my software vendors every Tuesday when the MS Window XP
updates come out.
2.6 FOREVER!
--
http://mail.python.org/mailman/listinfo/python-li
Okay, with your help I've figured it out. Instructions are below, but
read the caveat by Ben Fenny in this thread. All this stuff is good for
one default version of Python only. The PYTHONPATH described below, for
example, cannot specify a version number. Yes, that's a pain in the
butt, but
I just found another module that broke when I went to 2.6. Gnuplot.
Apparently one of its routines has a parameter named "with." That used
to be okay, and now it's not.
Once I get everything to work under 2.6, I am using it forever or until
new releases no longer break working code, whicheve
Okay, I might go this route anyway. It's almost working.
I created a directory (folder in MS-speak) named Modules, and put its
path in the PYTHONPATH env variable.
I can now put a file foo.py into the directory Modules, and it will load
foo.py when I say "import foo."
Now I put a folder in
Diez B. Roggisch wrote:
Did "echo %PYTHONPATH%" yield anything? Or is it part of
>>> import sys
>>> sys.path
?
Diez
Update: It's working now. I guess I hadn't reloaded something that I
need to. Thanks for your help.
--
http://mail.python.org/mailman/listinfo/python-list
Diez B. Roggisch wrote:
Did "echo %PYTHONPATH%" yield anything? Or is it part of
>>> import sys
>>> sys.path
?
Diez
Yes and no in that order. Never mind. Ben Fenny talked me out of it
anyway. Gr.
--
http://mail.python.org/mailman/listinfo/python-list
Ben Finney wrote:
Jive Dadson writes:
How do I install a module that I wrote, without putting it in the
site-packages directory for a specific release? I have stuff that, to
the best of my knowledge and belief, ought to work under any release.
Nevertheless, the compiled byte-code
Diez B. Roggisch wrote:
Am 18.01.10 01:07, schrieb Jive Dadson:
(My apologies if this question shows up twice. I posted it quite a
while ago, and it's yet to show up.)
This is no doubt a beginner's question, but I've searched for the answer
for quite a while, to no avail. I
(My apologies if this question shows up twice. I posted it quite a
while ago, and it's yet to show up.)
This is no doubt a beginner's question, but I've searched for the
answer for quite a while, to no avail. I'm running Python 2.6 under
Windows XP.
How do I install a module that
I'm using weekdays as a proxy for days when the US stock market is open.
(I'll miss holidays.) The application is pricing CALL and PUT
options. Speed is not a problem. The number of days will typically be
between 1 and 254.
--
http://mail.python.org/mailman/listinfo/python-list
(Sorry if this shows up twice.)
Can someone think of an easy way to calculate the number of weekdays
between two calendar dates (in Python)?
Thankee.
--
http://mail.python.org/mailman/listinfo/python-list
Wow. It's a danged tutorial. Thanks again. Take a break.
--
http://mail.python.org/mailman/listinfo/python-list
Ben Finney wrote:
Jive Dadson writes:
Can someone think of an easy way to calculate the number of weekdays
between two calendar dates (in Python)?
That depends on what you mean by “weekdays”.
>>> import datetime
>>> begin_date = datetime.date(2009, 10, 9
Qt has far better documentation, and it has Qt Designer. The
documentation is a big deal. I wrote a little project in wxPython, and
I spent 90% of my time just trying to find the names of member functions
and then to figure out what they do.
Why not use Qt C++? I like Python a lot. Heck, I
newsmas...@bellsouth.net wrote:
Please note that on or around July 15, 2009, AT&T will no longer be
offering access to the Usenet Netnews service. If you wish to continue
reading Usenet newsgroups, access is available through third-party vendors.
http://support.att.net/usenet
Distribution: AT
p its own message dialog from somewhere in deepest, darkest
__core__.
How do I make it not do that?
Thankee much,
Jive
--
http://mail.python.org/mailman/listinfo/python-list
Aahz wrote:
In article ,
Jive Dadson wrote:
Gosh, you guys are slow. :-) I figured it out.
Perhaps you could post the solution for posterity's sake?
The double secret magic encantation is "WarpPointer." Unfortunately, it
does not work in a plain vanilla ScrolledWindow.
grab the arrow key events, but I can't find how to move the
cursor. I tried calling wx.SetCursorEvent(x,y), but no joy.
Can you help?
Thankee,
Jive
--
http://mail.python.org/mailman/listinfo/python-list
Gosh, you guys are slow. :-) I figured it out.
--
http://mail.python.org/mailman/listinfo/python-list
Martin v. Löwis wrote:
Jive Dadson wrote:
I am using Python 2.4. I need to make a native Python extension for
Windows XP. I have both VC++ 6.0 and Visual C++ 2005 Express Edition.
Will VC++ 6.0 do the trick? That would be easier for me, because the
project is written for that one. If not
P.s. I just found out that there's a new Express edition, 2008. (New to
me, that is.) I'm installing it.
--
http://mail.python.org/mailman/listinfo/python-list
,
"Jive"
--
http://mail.python.org/mailman/listinfo/python-list
Thanks, Rob! Some of that is beyond my maturity level, but I'll try to
figure it out. If anyone has specific info on about how YouTube does
it, I would appreciate the info.
--
http://mail.python.org/mailman/listinfo/python-list
Hey folks!
There are various web pages that I would like to read using urllib, but
they require login with passwords. Can anyone tell me how to find out
how to do that, both in general and specifically for YouTube.com.
Thankee.
--
http://mail.python.org/mailman/listinfo/python-list
Jerry Hill wrote:
On Wed, May 7, 2008 at 11:22 PM, Jive Dadson <[EMAIL PROTECTED]> wrote:
I wonder why it does not work with
http://stockcharts.com/webcgi/wb.exe?Data.web+SLW
It looks like that is a subscription site. That makes things more
complicated, because it means you'
Thanks, Jerry! That's so cool. I actually managed to blunder through
with sockets and so forth, but this is much cleaner.
I wonder why it does not work with
http://stockcharts.com/webcgi/wb.exe?Data.web+SLW
I get a connection reset by peer error.
--
http://mail.python.org/mailman/listinfo/p
Hey folks. I know approximately zero about web clients. There's a
simple task I want to do. (I think it's probably simple.) And I figure a
Python script ought to be just the ticket.
Various web services for daily stock ticker info. For example,
http://finance.google.com/finance/historical?q
Sandra-24 wrote:
> Try the wxPython mailing list, which you can find on their site. And
> the best wxPython reference is the book (also available as an e-book)
> by Robin Dunn, who created wxPython. Seeing wxPython from his
> perspective is well worth the money. If I recall correctly he devoted
> a
Sandra-24 wrote:
> Try the wxPython mailing list, which you can find on their site. And
> the best wxPython reference is the book (also available as an e-book)
> by Robin Dunn, who created wxPython. Seeing wxPython from his
> perspective is well worth the money. If I recall correctly he devoted
> a
mail address is fake.
Thanks,
"Jive"
--
http://mail.python.org/mailman/listinfo/python-list
Sybren Stuvel wrote:
> Jive Dadson enlightened us with:
>> I also found a reference to something called PIL. Maybe that's the
>> ticket. If so, where can I find it (with documentation)? Thanks.
>
> Just google for PIL and Python.
>
> Sybren
Thanks Brian and S
I also found a reference to something called PIL. Maybe that's the
ticket. If so, where can I find it (with documentation)? Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
Hello folks. I know precisely zero about image processing. I want to
draw a grid of lines one or two pixels wide on a picture (.jpg, .png, or
whatever). [I want to transfer a sketch of the picture to a canvas (for
oil painting), using the "grid method."]
I figure this is probably a very easy
I like to use Pythonwin as my desktop calculator. It's bothersome
to have to type in "from __future__ import division" into the
interactive window every time I open it. I've tried various ways to
attempt to get it to import new division at startup, but no luck. I
can get it to execute a file, bu
intentionally
--
http://mail.python.org/mailman/listinfo/python-list
Grant Edwards wrote:
>
> On 2005-02-09, Jive Dadson <[EMAIL PROTECTED]> wrote:
>
> >> [C] isn't - it's a portable assembler.
> >
> > I've heard that many times, but it makes no sense to me.
>
> I think the point is that C is a low-
Mike Meyer wrote:
>
> Jive Dadson <[EMAIL PROTECTED]> writes:
>
> > Python does it right. C is allowed to do it anyway it likes, which was
> > a stupifyingly horrible decision, IMHO.
>
> C only does it wrong if you think that C is a high level language.
I don't think I've quite got it.
The application I'm writing has some similarities to an interactive
shell. Like an interactive shell, it executes arbitrary code that it
receives from an input stream. When it gets an exception, it should
create an informative message, regardless of the type of
The traceback routine prints out stuff like,
NameError: global name 'foo' is not defined
NameError is a standard exception type.
What if I want to print out something like that?
I've determined that "global name 'foo' is not defined" comes
from the __str__ member of the exception object
Yeah. I got it.
exec "foo = 555" in globals(), locals() does the trick.
--
http://mail.python.org/mailman/listinfo/python-list
Jeff Shannon wrote:
>
> Jive Dadson wrote:
>
> > How does one execute arbitrary text as code within a module's context?
> >
> > I've got some code that compiles some text and then executes it. When
> > the string is "print 'Hello'&q
Python does it right. C is allowed to do it anyway it likes, which was
a stupifyingly horrible decision, IMHO.
Way back when, there was a language named Pascal. I lobbied the Pascal
standards committee to define the modulus operator correctly, which they
eventually did. To my astonishment, they
Frans Englich wrote:
>
> That's what PyChecker tells me, at least.
>
> A line of:
>
> if testReport is not None:
>
> results in:
>
> runner.py:587: Using is not None, may not always work
>
> In what circumstances can `is not None` fail? How and why does it fail?
>
> What is the equivalent
How does one execute arbitrary text as code within a module's context?
I've got some code that compiles some text and then executes it. When
the string is "print 'Hello'", it prints "Hello". I get no exception
when I compile and execute "foo = 555". If I then compile and exec
"print foo", I get
Kinda cool.
It's occured to me that just about everything Pythonic can be done with
dicts and functions. Your Obj is just a dict with an alternate syntax. You
don't have to put quotes around the keys. But that's cool.
class struct(object):
def __init__(self, **kwargs):
self.__dict
How the heck do you set the icon on a frame using a .ico file, or a .bmp
file, or whatever? How do you find out how to do something like that?
Apparently there is no documentation to speak of. I tried looking the in
the demo program, but I didn't find the secret..
--
http://mail.python.org/ma
Isn't there a comp.lang.flame or something?
--
http://mail.python.org/mailman/listinfo/python-list
our clutches. Look at how good I am being now. I am typing this
into an Outlook Express window, using a Microsoft operating system that you
will no doubt find a way to make me replace very soon. You beat me fair and
square. Well, square, anyway. Congratulations. I give up.
Jive
--
http://mail.python.org/mailman/listinfo/python-list
Everyone keep moving. There is nothing to see here. Move along.
--
http://mail.python.org/mailman/listinfo/python-list
"Paul McGuire" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I was just reacting mostly to the OP's statement that "by '86 the Joy of
OOP
> was widely known".
I (Jive Dadson) said that. I guess I figured that if I knew about it, it
was
"Martin v. Löwis" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> It's not hard-coded in the linker, but hard-coded in the import library.
> So if you link with msvcrt.lib (which might not be the precise name
> of the import library - I cannot look up the precise name right now),
> m
"projecktzero" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I know this might not be the correct group to post this, but I thought
> I'd start here.
>
> A co-worker considers himself "old school" in that he hasn't seen the
> light of OOP.
Just how old *is* his school? I saw the
"Cameron Laird" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Tcl went through this epiphany a few years, and has largely,
> though not exclusively, committed to use of the once-more-
> redirected API called Stubs http://wiki.tcl.tk/stubs >.
> Some Tcl-ers are orgasmic about the wo
P.s. I never could stand Beanie and Cecil.
--
http://mail.python.org/mailman/listinfo/python-list
nd what have
you got against snakes, huh? Huh?
Jive
--
http://mail.python.org/mailman/listinfo/python-list
a
> remarkable piece of work for the time. And was backed by a terrific book
> by Myer.
>
I puzzled long over whether to adopt C++ or Eiffel at the company I was with
at the time. I went with C++, dispite the fact that cfront was slow as
death and buggy. C++ made it bigtime and the comp
"Martin v. Löwis" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Jive wrote:
> >>Either VS.NET 2003 or VC++ .NET 2003 should do (although I don't know
> >>anybody who owns the latter to be sure). The core issue is that it needs
> >
"Martin v. Löwis" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Either VS.NET 2003 or VC++ .NET 2003 should do (although I don't know
> anybody who owns the latter to be sure). The core issue is that it needs
> a "native" C++ compiler (ie. not just managed C++), and that it needs
>
"Philippe C. Martin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> HI,
>
> I currently have a "working" script that uses sockets to handle threads
> communications - the problem is that it gives me obvious problems in
handling
> free ports (launching the script more than once )
to implement gnuplot.py using
Numarray.
3) Hack on gnuplot.py myself. (Learning curve alert!)
4) Buy a copy of the VC++ 7.1 and port Numeric myself. (I still don't know
what to buy from Mr. Gates -- VC++ .net Standard?)
5) Do something else I haven't thought of.
Any suggestions would
"John Machin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Why do you want to "upgrade to 2.4"? What do you mean by "upgrade to 2.4"?
Well, for one thing, when I previously installed and then uninstalled 2.4,
pythonwin broke, and neither I nor the win32 gurus can figure out what
"Martin v. Löwis" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> OTOH, people who only have VC6 just need to buy VS.NET 2003,
> which is still available.
I don't even know how to do that! :-) What's the difference between VC++
.net Standard and Visual Studio .net Pro? (Besides $3
P.s. Does anyone know how to make Outlook Express leave my damned line-ends
alone? If I want line-ends. I know where to find the ENTER key.
--
http://mail.python.org/mailman/listinfo/python-list
"Nick Coghlan" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Jive wrote:
> > Can someone explain to me why Python 2.4 on MS Windows has these
backward
> > compatibility problems? What am I missing?
>
> The problem is the Python C/API. At t
Can someone explain to me why Python 2.4 on MS Windows has these backward
compatibility problems? What am I missing? Why won't extensions compiled
to run with 2.3 also work with 2.4? Why does it matter whether a component
was compiled with VC++ 6.0 or 7.1? I've been using MS stuff for 6 years.
Theoretically, if I messed around with the 2.4 project until I got it to
build under MS VC++ 6.0, would the python.exe play correctly with version
2.4 .pyd extensions?
--
http://mail.python.org/mailman/listinfo/python-list
Anyone know what's up with this, and how to fix it?
(I'm running MS Windows 2000 Pro, SP 4)
In wxPython 2.5, run the demo, samples/wxProject/wxProject.py
Create a new project and add a file to it. In the console window you will
probably
see something like this:
I had to back out of 2.4. In time I'll upgrade.
It's not really fair to blame windoze for the incompatibility. It is
possible to make software backward compatible with shared libraries. But
you need a plan. The windoze plan is based on COM in its various guises.
Of course, it's not standard o
I installed ActivePython2.3. It does the same thing.
I am wondering if I have a corrupted MS Windows DLL somewhere. If so, is
there any chance I can figure out which one it is?
Jive
--
http://mail.python.org/mailman/listinfo/python-list
Do an experiment for me. Open Pythonwin from the start menu. Use the FILE
menu to open a .py file. Now try to close the window you just opened using
the X button in the upper right. Did it close? Try closing Pythonwin using
its X button.
--
http://mail.python.org/mailman/listinfo/python-li
but without success. Which versions of 2.3 and Pythonwin
did you use?
Jive
--
http://mail.python.org/mailman/listinfo/python-list
"Steve Holden" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>. You might consider
> asking on the python-win32 list, which is more specifically directed at
> Mark Hammond's stuff.
Okay. How do I find the python-win32 list? It's not a newsgroup,
apparently.
--
http://mail.pyth
I uninstalled Python and Pythonwin. I verified that there was nothing left
in the registry or the startup folder. I reinstalled Python using
Python-2.3.4.exe and Pythonwin using win32all-163.exe.
It's still broke.
The shortcut in the startup folder says
Target: C:\Python23\Pythonwin.exe
"Jeff Shannon" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Jive wrote:
>
> >As for checking the "application path", I don't know what that means.
> >
> >
>
> Go to a command prompt, and type 'echo %path%'
"David Bolen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> "Jive" <[EMAIL PROTECTED]> writes:
>
> > It's only getting worse. I went to Add/remove programs and removed 2.4.
> > Now Python 2.4 numarray and Python 2.4 pywin ext
I've un-installed Python 2.4, re-installed Python 2.3 and PythonWin for 2.3,
but it's still broke.
When I start PythonWin, sometimes it looks like it is going to be okay. But
as soon as I open a .py file, the interactive window grabs the focus and
will not let go. I am stumped.
Is there somethi
It's only getting worse. I went to Add/remove programs and removed 2.4.
Now Python 2.4 numarray and Python 2.4 pywin extensions are still listed as
installed, but I cannot remove them.
--
http://mail.python.org/mailman/listinfo/python-list
I am befuddled. I've re-installed everything I can think of, but I still
get this behavior: I start up Pythonwin. Sometimes the interactive window
shows the copyright stuff; sometimes it doesn't; In any case, I can't close
it by clicking on the X button at the top right of the main window. The
Well ain't that a kick in the pants?
Version 2.3 is broke now, so I'm kind of stuck. I haven't found a 2.4
version of Numeric. Do you know where to find one?
"Peter Hansen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Jive wrote:
> &
Correction. It still runs under 2.3. However, Pythonwin now doesn't work
right under 2.3. The interactive window grabs the cursor and won't let it
go. I have to go to the task manager to kill Pythonwin.
"Jive" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECT
Gack! I can't run it under 2.3 anymore either! Dag nab it!
"Jive" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I just now installed 2.4. I naively copied my site-package from 2.3. The
> first program I tried to run, which uses the gnuplo
I just now installed 2.4. I naively copied my site-package from 2.3. The
first program I tried to run, which uses the gnuplot package, got this
error, complaining about module Numeric:
ImportError: Module use of python23.dll conflicts with this version of
Python.
Grumble: Why does Numeric refer
"Peter Hansen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Jive wrote:
> > Oh, there will be no bugs.
>
> ?? What kind of a statement is that?
Humorous? Imagine Carl Spackler in Caddy Shack saying, "Oh, there will be
no money."
&g
Dang. I forgot the line-wrap again. Sorry about that.
--
http://mail.python.org/mailman/listinfo/python-list
some of the work that
> *should* be done before anything gets into the main Python distro...
>
I will give it a look. I had some spare time last year when I volunteered
the first
time. I don't have spare time now, and probably will not have before May at
the earliest..
If someone wou
94 matches
Mail list logo