Re: Getting posts to sort chronologically in tree view

2018-07-03 Thread Jim Lee
ere some way to have my conversations appear in both sites? Thanks, Tamara For what it's worth, I don't get my own posts via email either, and I have that explicitly enabled in my subscription settings. -Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: PEP 526 - var annotations and the spirit of python

2018-07-03 Thread Jim Lee
dantically telling you off for imprecision in numbers even though I knew full well that no greater precision was possible or desirable, but how 'bout you drop it and leave me with the last word, hmmm?" Sigh.  I tried to give you a graceful way to end the pedantics. Now, I will gracefully

Re: PEP 526 - var annotations and the spirit of python

2018-07-03 Thread Jim Lee
Jane had 4 apples, and Joe had an indefinite number of apples, how many numbers are we talking about? That's rhetorical by the way.  The other person is obviously focusing on pedantics in order to obfuscate the original (weak) argument. -Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: PEP 526 - var annotations and the spirit of python

2018-07-03 Thread Jim Lee
On 07/03/18 19:58, Ben Finney via Python-list wrote: Jim Lee writes: If you were to say John had 2 apples, Jane had 4 apples, and Joe had an indefinite number of apples, how many numbers are we talking about? Three numbers. And “indefinite” is not one of those numbers. So, no, that doesn&#

Re: PEP 526 - var annotations and the spirit of python

2018-07-03 Thread Jim Lee
On 07/03/18 21:25, Ben Finney wrote: Jim Lee writes: On 07/03/18 19:58, Ben Finney via Python-list wrote: Jim Lee writes: If you were to say John had 2 apples, Jane had 4 apples, and Joe had an indefinite number of apples, how many numbers are we talking about? Three numbers. And

Re: PEP 526 - var annotations and the spirit of python

2018-07-03 Thread Jim Lee
On 07/03/18 21:35, Ben Finney wrote: Abdur-Rahmaan Janhangeer writes: apart from programming, other questions go like this : […] *cut at this point* Ooh, I like that last step! How do we make that happen on demand? You could start by not adding to the noise... :) -- https://mail.python.

Re: PEP 526 - var annotations and the spirit of python

2018-07-03 Thread Jim Lee
On 07/03/18 22:03, Ben Finney wrote: Jim Lee writes: I claimed that Steven was using three different numbers to refer to the time it takes to master a subject: 10,000 hours an indefinite number 2 years Yes. He did so in the context of showing that *there is no precise number* that

Re: about main()

2018-07-05 Thread Jim Lee
. Marko Sadly, this *is* the current mindset. "Don't bother optimizing, the compiler does it better than you can." Tell me, who writes the compilers?  When we die off, nobody will have a clue how to do it... -Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: about main()

2018-07-05 Thread Jim Lee
On 07/05/18 10:15, Calvin Spealman wrote: On Thu, Jul 5, 2018 at 12:59 PM, Jim Lee <mailto:jle...@gmail.com>> wrote: On 07/05/18 05:14, Marko Rauhamaa wrote: Abdur-Rahmaan Janhangeer mailto:arj.pyt...@gmail.com>>: * Create as many funct

Re: about main()

2018-07-05 Thread Jim Lee
t vanishes.  Now, the entire village is clueless when it comes to identifying the poisonous berries. -Jim -Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: about main()

2018-07-05 Thread Jim Lee
On 07/05/18 12:58, Chris Angelico wrote: On Fri, Jul 6, 2018 at 4:27 AM, Jim Lee wrote: On 07/05/18 10:47, Calvin Spealman wrote: You say "pitfall", but I say "allow developers to focus on higher-level problems and enable developers to specialize among tasks so every s

Re: about main()

2018-07-05 Thread Jim Lee
On 07/05/18 14:15, MRAB wrote: On 2018-07-05 21:43, Jim Lee wrote: On 07/05/18 12:58, Chris Angelico wrote: On Fri, Jul 6, 2018 at 4:27 AM, Jim Lee wrote: On 07/05/18 10:47, Calvin Spealman wrote: You say "pitfall", but I say "allow developers to focus on higher-lev

Re: about main()

2018-07-05 Thread Jim Lee
sure they even know where their programs are spending the majority of their execution time. Yup.  Like any other skill, part of mastery is knowing *when* to use it as well as *how*. -Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: about main()

2018-07-05 Thread Jim Lee
On 07/05/18 18:25, Steven D'Aprano wrote: On Thu, 05 Jul 2018 11:27:09 -0700, Jim Lee wrote: Take a village of people.  They live mostly on wild berries. Because of course a community of people living on one food is so realistic. Even the Eskimos and Inuit, living in some of the har

Re: about main()

2018-07-06 Thread Jim Lee
On 07/06/18 11:25, Grant Edwards wrote: On 2018-07-06, Jim Lee wrote: Pedantics again. Didn't even get the point before tearing apart the *analogy* rather than the *point itself*. Jim Lee, this is the Internet. Intenet, this is Jim Lee. :) You have an inaccurate anthropomo

Re: about main()

2018-07-06 Thread Jim Lee
On 07/06/18 12:57, Terry Reedy wrote: On 7/5/2018 9:40 PM, Jim Lee wrote: On 07/05/18 18:25, Steven D'Aprano wrote: On Thu, 05 Jul 2018 11:27:09 -0700, Jim Lee wrote: Take a village of people.  They live mostly on wild berries. Because of course a community of people living on one

Re: testing code

2018-07-07 Thread Jim Lee
import is indeed executed by the python interpreter. I'm not familiar with the "%run" prefix in your command - some sort of windows-ism? -Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: Feasibility of console based (non-Gui) Tkinter app which can accept keypresses?

2018-07-11 Thread Jim Lee
<->view) Frontend-backend w/Tk, console, Qt: Four conceptual modules (three frontends, one backend) One abstraction layer (frontend<->backend) -Jim -- https://mail.python.org/mailman/listinfo/python-list

RE: Guido van Rossum resigns as Python leader

2018-07-13 Thread Jim Oberholtzer
servers in IBM i (yes AIX and Linux run there too) adds a significant number of shops that might adopt Python. That means Python is growing on its own. The legacy is written already, it will just get better. -- Jim Oberholtzer Agile Technology Architects -Original Message- From:

Re: Cult-like behaviour [was Re: Kindness]

2018-07-14 Thread Jim Lee
oo confusing. But a if c else b, look, the order is reversed. This is much more natural! And not strange punctuation, English words. Python is executable pseudocode!" Christian +1000 !! -Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Jim Lee
at it's an unnecessary complication for a great deal of programming tasks.  For a great deal more, it's absolutely necessary.  That why I said a "smart" language would make it easy to turn on and off. -Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Jim Lee
- I don't even know what it is. This should drive home my point that, for many tasks, I18N or, more specifically, Unicode is an unnecessary complication. If my program doesn't give a whit about web protocols or emoji, then how some Twitch title displays itself is irrelevant. -Jim

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Jim Lee
able to simply ignore the feature(s). -Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Jim Lee
On 07/15/18 14:53, Chris Angelico wrote: On Mon, Jul 16, 2018 at 7:02 AM, Jim Lee wrote: On 07/15/18 13:30, Chris Angelico wrote: It doesn't matter what Twitch is, except for the fact that it is a platform for HUMANS to communicate with HUMANS. Ultimately, that is what matters. Pic

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Jim Lee
On 07/15/18 15:07, Chris Angelico wrote: On Mon, Jul 16, 2018 at 7:57 AM, Jim Lee wrote: On 07/15/18 14:53, Chris Angelico wrote: On Mon, Jul 16, 2018 at 7:02 AM, Jim Lee wrote: On 07/15/18 13:30, Chris Angelico wrote: It doesn't matter what Twitch is, except for the fact that

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Jim Lee
On 07/15/18 14:50, Marko Rauhamaa wrote: Jim Lee : Yes, and for *that*, language matters;  but, for a vast array of programming tasks that *don't* involve global communications, it's an added level of complexity with zero benefit.  It would be *nice* to be able to turn support

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Jim Lee
never heard of programming BEFORE Unicode existed? How ever did we get along?  It must have been a hallucination... -Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Jim Lee
On 07/15/18 16:13, Chris Angelico wrote: On Mon, Jul 16, 2018 at 9:08 AM, Jim Lee wrote: On 07/15/18 14:50, Marko Rauhamaa wrote: Jim Lee : Yes, and for *that*, language matters; but, for a vast array of programming tasks that *don't* involve global communications, it's an adde

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Jim Lee
- his own. As I also said, Unicode (which is the best solution we have at the moment for global interchange) is necessary when we *do* need to deal with text on a broader scale. -Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: Users banned

2018-07-15 Thread Jim Lee
h him. -Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Jim Lee
ne I18N issue - therefore Python *does* have builtin (and unavoidable) I18N features. -Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Jim Lee
On 07/15/18 17:18, Steven D'Aprano wrote: On Sun, 15 Jul 2018 16:08:15 -0700, Jim Lee wrote: Python3 is intrinsically tied to Unicode for string handling. Therefore, the Python programmer is forced to deal with it (in all but trivial cases), rather than given a choice.  So I don't

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Jim Lee
On 07/15/18 17:17, MRAB wrote: On 2018-07-16 00:10, Jim Lee wrote: On 07/15/18 16:04, Chris Angelico wrote: You claimed that Unicode was insignificant to many programs. I'm trying to say that a Unicode text string is a vital part of any program that works with text, which is pretty

Re: Unicode [was Re: Cult-like behaviour]

2018-07-16 Thread Jim Lee
ypass Unicode handling easily *when it's not needed*. -Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: Unicode [was Re: Cult-like behaviour]

2018-07-16 Thread Jim Lee
make it *harder* to use Unicode.  Once again - reaction rather than reading. Obviously, the most vocal representatives of the Python community are too sensitive about their language to enable rational discussion. -Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: Unicode [was Re: Cult-like behaviour]

2018-07-16 Thread Jim Lee
On 07/16/18 10:40, Mark Lawrence wrote: On 16/07/18 18:27, Jim Lee wrote: Obviously, the most vocal representatives of the Python community are too sensitive about their language to enable rational discussion. Please moderators ban this person as he's going down the same line as bart

Re: Unicode [was Re: Cult-like behaviour]

2018-07-16 Thread Jim Lee
On 07/16/18 11:31, Steven D'Aprano wrote: On Mon, 16 Jul 2018 10:27:18 -0700, Jim Lee wrote: Had you actually read my words with *intent* rather than *reaction*, you would notice that I suggested the *option* of turning off Unicode. Yes, I know what you wrote, and I read it with i

redirecting stdout and stderr to /dev/null

2016-05-07 Thread Jim Dodgen
"", "-w", "20", "192.168.1.1"); ------ cut here --- results when run root@dev:/home/jim# python test.py PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. 64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1.36 ms 64 bytes from 192.168.1.1: ic

Re: redirecting stdout and stderr to /dev/null

2016-05-07 Thread Jim Dodgen
*Thanks for the help* On Sat, May 7, 2016 at 12:16 PM, Martin A. Brown wrote: > > Hello there, > > >I'm new to python but well versed on other languages such as C and > >Perl > > > >I'm have problems redirecting stdout and stderr to /dev/null in a > >program that does a fork and exec. T found

Re: redirecting stdout and stderr to /dev/null

2016-05-07 Thread Jim Dodgen
Thanks Chris I now have things working using a version 3.4.3 it finds subprocess.DEVNULL just fine *Jim Dodgen* On Sat, May 7, 2016 at 5:10 PM, Chris Angelico wrote: > On Sun, May 8, 2016 at 9:54 AM, Jim Dodgen wrote: > > The empty token is needed but useless, it is arg[0] mo

Re: redirecting stdout and stderr to /dev/null

2016-05-07 Thread Jim Dodgen
Great help. My Python program is a rewrite of a Perl program I wrote. An interesting exercise. The reason being it is targeted for a Raspberry Pi and for the Pi Python has the most support. *Jim Dodgen* On Sat, May 7, 2016 at 6:38 PM, Ben Finney wrote: > Chris Angelico wri

Re: ConfigParser: use newline in INI file

2019-03-07 Thread jim . womeldorf
the value: > > >>> "a\\nb".decode("string-escape") > 'a\nb' > > --Ned. Wow! Thanks so much Ned. I've been looking for the solution to this issue for several days and had nearly given up. Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: ConfigParser: use newline in INI file

2019-03-07 Thread jim . womeldorf
ather keep it one line per value > >>> but it solves the problem. > >> > >> If you want to have \n mean a newline in your config file, you can > >> do the conversion after you read the value: > >> > >> >>> "a\\nb".decode(&q

Re: ConfigParser: use newline in INI file

2019-03-07 Thread jim . womeldorf
On Saturday, October 1, 2016 at 9:57:24 AM UTC-5, Thorsten Kampe wrote: > Hi, > > ConfigParser escapes `\n` in ini values as `\\n`. Is there a way to > signal to ConfigParser that there is a line break? > > Thorsten And now we know! I think they should have named Python 3 something else -- htt

Re: ConfigParser: use newline in INI file

2019-03-07 Thread jim . womeldorf
On Thursday, March 7, 2019 at 10:38:03 AM UTC-6, jim.wo...@gmail.com wrote: > On Saturday, October 1, 2016 at 9:57:24 AM UTC-5, Thorsten Kampe wrote: > > Hi, > > > > ConfigParser escapes `\n` in ini values as `\\n`. Is there a way to > > signal to ConfigParser that there is a line break? > > > >

RE: 3.7.4 (latest) install changes python to py and removes pip support

2019-10-11 Thread Jim Elphick
tempted to upgrade to pip 19.2.3, but it actually installed it successfully. Pipenv upgraded with no issue. Python is back! Thank you. Jim From: Jim Elphick Sent: Friday, October 11, 2019 11:03 AM To: python-list@python.org Subject: 3.7.4 (latest) install changes python to py and removes pip

3.7.4 (latest) install changes python to py and removes pip support

2019-10-11 Thread Jim Elphick
all, but I did not lose access to pip and pipenv. Any help would be appreciated for restoring my python 3.7 install. Thank you for any help you can provide. Jim -- https://mail.python.org/mailman/listinfo/python-list

What is the correct interpreter

2020-03-04 Thread Jim Ferraro
Where is the correct interpreter? I have installed python several times Pycharm all ways selects C:\ProgramFiles\JetBrains\PyCharm Community Edition 2019.3.3\bin\pycharm64.exe But when I run a simple code it objects to the interpreter??? Sent from Mail

0x80070643 python download error

2020-03-30 Thread JimathyJim Jim
I am trying to download python on my laptop and this error came up. How do I fix this error appearing and download python 3.8.2? -- https://mail.python.org/mailman/listinfo/python-list

LZW decompressor

2005-09-30 Thread Jim Melton
OK, so the LZW patent has expired. Now does anybody have a package to read LZW compressed files? Despite the patent issues, Unix "compress" is still widely used to compress files. -- http://mail.python.org/mailman/listinfo/python-list

Re: mod_python

2005-10-11 Thread Jim Gallacher
. See http://www.modpython.org/ for subscription information. Personally I only read c.l.p when I'm looking for cheap entertainment. Some people on this list just crack me up. :) Regards, Jim -- http://mail.python.org/mailman/listinfo/python-list

my array subset method could be improved?

2005-10-14 Thread Jim O'D
I missing a more obvious way to do it quickly? Thanks Jim -- http://mail.python.org/mailman/listinfo/python-list

array subset could be improved? -repost ;)

2005-10-14 Thread Jim O'D
I missing a more obvious way to do it quickly? Thanks Jim -- http://mail.python.org/mailman/listinfo/python-list

Re: my array subset method could be improved?

2005-10-14 Thread Jim O'D
> > new = Numeric.compress(Numeric.less(a,0),a) Ah, thank you! Sorry about subject mangle, I gave a silly example first time round. Jim -- http://mail.python.org/mailman/listinfo/python-list

Re: Microsoft Hatred FAQ

2005-10-14 Thread Jim Moe
Xah Lee wrote: > > Question: U.S. Judges are not morons, and quite a few others are > not morons. They find MS guilty, so it must be true. > > Answer: so did the German population thought Jews are morons by > heritage, to the point that Jews should be exterminated from earth. > Apparently, th

Re: Microsoft Hatred FAQ

2005-10-17 Thread Jim Benson
n his last several posts, so I may have been mistaken prior to his most recent post. RFC actually stands for "request for comments". ...gee what a nice idea. I did not read past his definition of RFC. Oh well, Sorry for breaking the rule "don't feed the troll". Enough said.

Re: array subset could be improved? -repost ;)

2005-10-17 Thread Jim O'D
> With the new numeric, you'll be able to do: > > negatives = a[a<0] > > Cheers, > > f > Ooh, that's nice. Jim -- http://mail.python.org/mailman/listinfo/python-list

Re: How to retrieve the filename of a module

2005-10-20 Thread Jim O'D
owing in the function: import traceback f = traceback.extract_stack(limit=2) If you output f to the interpreter, you'll see the filename but I don't know what position in the output list it is guaranteed to be. Jim -- http://mail.python.org/mailman/listinfo/python-list

Automatically creating a HOME environ variable on Windows?

2005-10-28 Thread jim . eggleston
Windows doesn't have a HOME environment variable, but it does have HOMEDRIVE and HOMEPATH. Could Windows versions of Python automatically populate os.environ with HOME, where HOME = os.path.join(os.environ['HOMEDRIVE'], os.environ['HOMEPATH'])? If this was done, then modules such as pdb, which loa

Debugging with SciTE

2005-10-28 Thread jim . eggleston
ow you type in the output window. Backspaces tend to confuse things, so you need to make sure your typing is right the first time. .pdbrc aliases help to reduce typing, so make use of them. Cheers, Jim -- http://mail.python.org/mailman/listinfo/python-list

Re: Automatically creating a HOME environ variable on Windows?

2005-10-29 Thread jim . eggleston
Cool, even better. So what's best, having code to add HOME (=USERPROFILE) to os.environ, or change the various places that HOME is used to check for USERPROFILE? -- http://mail.python.org/mailman/listinfo/python-list

Re: Debugging with SciTE

2005-10-29 Thread jim . eggleston
Based on information from Jarek Zgoda in another thread on the Windows USERPROFILE environment variable, debug.py should be: import sys from pdb import pm, set_trace from inspect import getmembers if sys.platform == 'win32': import os os.environ['HOME'] = os.environ['USERPROFILE'] del sys.

Re: Automatically creating a HOME environ variable on Windows?

2005-11-01 Thread jim . eggleston
Having a function is definitely cleaner. Creating a HOME environment variable where one does not exist in the calling shell is misleading. There are 10 modules in the python 2.3 lib directory that contain os.environ['HOME']: lib\ftplib.py lib\mailbox.py lib\mailcap.py lib\netrc.py lib\ntpath.py l

Re: Automatically creating a HOME environ variable on Windows?

2005-11-01 Thread jim . eggleston
Does Windows 98 have a %USERPROFILE% environment variable? -- http://mail.python.org/mailman/listinfo/python-list

Re: Automatically creating a HOME environ variable on Windows?

2005-11-01 Thread jim . eggleston
os.path.expanduser('~') is a bit cryptic for non-unix people. os.path.gethome() or something like that would be nicer. expanduser() should then call gethome() so the logic is in one place. It looks like the existing logic in expanduser() is out of date anyway. It should be updated to use %USERPROF

Re: WTF?

2005-11-01 Thread Jim Benson
udes the mathematica list in his cross posts) that randomly generates his subject line from his favorite topics. He does this till he sees the post appear. Jim -- http://mail.python.org/mailman/listinfo/python-list

Re: If Statement Error (Tic Tac Toe)

2005-11-02 Thread Jim Segrave
ocation, fill it in board[loc] = ['X', 'O'][player] for i in range(3): # check for horizontal win if board[3 * i] == board[ 3 * i + 1] == board[3 * i + 2] and \ board[3 * i] != ' ': win =

Re: strange sockets

2005-11-04 Thread Jim Segrave
ed is how long it takes to transfer the data to the underlying OS socket buffers. The first transfer fills the buffers, subsequent ones have to wait until the data has been put on the wire and acknowledged before there's space for the writes. -- Jim Segrave ([EMAIL PROTECTED]) -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter- checkbutton

2005-11-04 Thread Jim Segrave
ther_stuff_here() else: print "This is impossible, but it happened" b = Checkbutton(root, text = 'Press Me', command = check, variable = v) b.grid(row = 0, column = 0) root.mainloop() -- Jim Segrave ([EMAIL PROTECTED]) -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter- New Window

2005-11-04 Thread Jim Segrave
f = RIDGE) otherlabel.pack(side = TOP, fill = BOTH, expand = YES) root.mainloop() -- Jim Segrave ([EMAIL PROTECTED]) -- http://mail.python.org/mailman/listinfo/python-list

Re: fcntl.flock() not working when called from a function

2005-11-04 Thread Jim Segrave
keep a reference to f: import fcntl def lock(): f=open('/tmp/lockfile') fcntl.flock(f,fcntl.LOCK_EX) return f saveme = lock() print "OK" while True: pass Under FreeBSD, the first copy prints OK and waits for a SIGINT, the second copy prints nothing. Killing the first copy prints OK on the second one -- Jim Segrave ([EMAIL PROTECTED]) -- http://mail.python.org/mailman/listinfo/python-list

Re: mod_python

2005-11-06 Thread Jim Segrave
g, z_price) ) I hate to ask, but what happens when I enter "a, b, c);DROP DATABASE;" as the entry for z_name? (Or some similar attempt to close the SQL statement and start a new one). I think you want to google for "SQL injection" and think about sanitising user input a bit. -- Jim Segrave ([EMAIL PROTECTED]) -- http://mail.python.org/mailman/listinfo/python-list

Re: how do i use "tkinter.createfilehandler" with a regular c program?

2005-11-14 Thread Jim Segrave
mainFrame = Frame(root) textBox = Text(mainFrame) textBox.pack(fill=BOTH, expand=YES) mainFrame.pack(fill=BOTH, expand=YES) fh = os.popen('/bin/cat /tmp/pipe', 'r', 1) def readfh(filehandle, stateMask): global textBox newText = filehandle.readline() textBox.insert(END, newText) tkinter.createfilehandler(fh, tkinter.READABLE, readfh) root.mainloop() -- Jim Segrave ([EMAIL PROTECTED]) -- http://mail.python.org/mailman/listinfo/python-list

Re: os.path.expanduser('~/foo') and MSWindows "My Documents"

2005-11-17 Thread jim . mccoy
should not need to care where "home" is... Regards, jim -- http://mail.python.org/mailman/listinfo/python-list

Re: Configuring Python for Tk on Mac

2005-01-21 Thread Jim Sizelove
info easily. Yours, Martyn You probably need to install Tcl/Tk Aqua: http://tcltkaqua.sourceforge.net After downloading and installing on my Mac running OS X v 10.2, I am able to open IDLE and other Tk apps. HTH, Jim Sizelove -- http://mail.python.org/mailman/listinfo/python-list

embedding jython in CPython...

2005-01-22 Thread Jim Hargrave
I've read that it is possible to compile jython to native code using GCJ. PyLucene uses this approach, they then use SWIG to create a Python wrapper around the natively compiled (java) Lucene. Has this been done before for with jython? Another approach would be to use JPype to call the jython j

Re: embedding jython in CPython...

2005-01-22 Thread Jim Hargrave
Sorry - should have given more detail. That's what I get for posting at 1:00AM. What I want to do us write scripts in CPython that access Windows ActiveX such as Word and IE. Obviously Jython can't do this (easily at least). I also have Jython scripts that provide a high level layer on top of

Re: embedding jython in CPython...

2005-01-22 Thread Jim Hargrave
> I am curious to know what makes your Jython code incompatible with > CPython. If it is only because it uses Java classes, it might > not be too > difficult to port them to CPython+Jpype. CPython+Jpype may indeed be the way to go in the long run - it's only my ignorance stoping me at this point :

OT

2005-01-25 Thread Jim Benson
Crypto in Python: (Was: What's so funny? WAS Re: rotor replacement) However, i know for a fact that phr is _not_ a user at sextans.lowell.edu. Is this a problem with my dns? Thanks Jim -- http://mail.python.org/mailman/listinfo/python-list

Is this a bug? I don't know where to start

2005-06-22 Thread jim bardin
ow what's wrong to cause this. thanks jim -- http://mail.python.org/mailman/listinfo/python-list

Re: Is this a bug? I don't know where to start

2005-06-22 Thread jim bardin
wow. that's too obviouse! i've been looking at everything, but i just assumed the data in the example was ok. thanks alot jim --- Jeff Epler <[EMAIL PROTECTED]> wrote: > Your list "targets" contains some val

Re: What does "::" mean?

2005-07-21 Thread Jim Sizelove
t reversed(live)? Or if you want a list instead of an >> iterator, list(reversed(live))? > > > That's fine if you want to iterate over it. Often, especially with > strings, you just want an object of the same type back again. > Then you could use: ''.jo

Re: Permutation Generator

2005-08-13 Thread Jim Washington
.py" for __main__ to work. A couple of lines went over 80 characters, so you might have to put those back together. -Jim Washington """ ***Reversible*** Permutations using factoradics. factoradic concept at: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnets

Sanitizing untrusted code for eval()

2005-08-22 Thread Jim Washington
#x27;None':None}}, {'null':None,'true':True,'false':False}) I am familiar with this thread: http://groups-beta.google.com/group/comp.lang.python/browse_thread/thread/cbcc21b95af0d9cc Does anyone know of any other "gotchas" with eval() I have not found? Or is eval() simply too evil? -Jim Washington -- http://mail.python.org/mailman/listinfo/python-list

Re: Sanitizing untrusted code for eval()

2005-08-22 Thread Jim Washington
I can start there and optimize, as you say, and be a bit more sure that python's parser is not abused into submission. BTW, this afternoon I sent a couple of hours of random junk to eval() just to see what would be accepted. I did not know before that 5|3 = 7 6^3 = 5 ~6 = -7 ()and aslf

Re: WYSIWYG wxPython "IDE"....?

2005-02-08 Thread Jim Smith
Simon John wrote: I'm writing my 2nd large wxPython program, and after the problems I found doing the first's layout in code, I'd like to look at using a 'WYSIWYG' IDE, like VisualStudio does for MFC. I've tried a few that I found, wxGlade is probably the best, although it seems to be not 100% WYSI

Re: Which IDE supports python and wxpython?

2005-02-08 Thread Jim Smith
Selfimprover wrote: Hello all, Is there a good IDE on the market which supports python and wxpython. Goal is to use it in a big distributed project. Greetings Try wxDesigner! http://www.roebling.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python COM Makepy Excel 9.0 error

2005-02-10 Thread Jim Sizelove
ilar problems when moving some code from Python 2.3 to Python 2.4. Seems that running "makepy -d ..." works. See Mark Hammond's explanation at: http://mail.python.org/pipermail/python-win32/2004-December/002743.html [python-win32] WMI scripting makepy error with ActivePython

Help with embedding fully qualified script name

2005-02-13 Thread Jim Wallace
_GetDict, PyDict_GetItemString) 3) Call that function PyObject_CallObject I appreciate any help since I've spent quite a bit of time searching and trying things. Jim W. -- http://mail.python.org/mailman/listinfo/python-list

Re: Running doctests with unittest

2005-03-09 Thread Jim Sizelove
by doing the following: if __name__ == '__main__': import doctest, unittest suite = doctest.DocTestSuite() testRunner = unittest.TextTestRunner() testRunner.run(suite) HTH, Jim Sizelove -- http://mail.python.org/mailman/listinfo/python-list

Re: Is Python like VB?

2005-03-18 Thread Jim Smith
Mike Cox wrote: Would Python meet our requirements? I need to make lots of GUI applications (message boxes, forms, etc.) and do the underlying business logic too. Python is my favorite language and I recommend that you experiment with it. However, if you want the quickest replacement for VB I wou

Re: comment out more than 1 line at once?

2004-11-30 Thread Jim Dovis
Don't forget ''' This is a comment ''' Which you'll need to use if you use """ for docstrings. Byron wrote: > """ > Yes, this is generally how it is done in python. > """ -- http://mail.python.org/mailman/listinfo/python-list

Re: Help with use of code.InteractiveInterpreter for multiline code

2004-12-03 Thread Jim Sizelove
import code >>> b = code.InteractiveConsole() >>> b.push('def q():') True >>> b.push('print "hi, b"') True >>> b.push('') False >>> b.runsource('q()') hi, b False HTH, Jim -- http://mail.python.org/mailman/listinfo/python-list

Re: Dynamically passing variables to unittest

2004-12-15 Thread Jim Sizelove
trings: ... self.assertRaises(DB.InvalidConnectString, DB.DB, *S) ... Here the * operator unpacks a sequence when passed in to a function that is expecting positional arguments. See the Python Tutorial, 4.7.4 Unpacking Argument Lists for a better explanation. http://docs.python.org/tut/node6.html hth, Jim -- http://mail.python.org/mailman/listinfo/python-list

Re: PyCrust: What am I suppose to do?

2004-12-18 Thread Jim Sizelove
files. It is especially nice for trying some code in the interpreter, then copying that code and pasting into the editor window without pasting the prompts. --Jim -- http://mail.python.org/mailman/listinfo/python-list

Easy "here documents" ??

2004-12-18 Thread Jim Hill
uestion is: Is there a way to produce a very long multiline string of output with variables' values inserted without having to resort to this wacky """v = %s"""%(variable) business? Thanks, Jim, Python no0b -- "I regard NASCAR the same way I regard gay p

Re: Easy "here documents" ??

2004-12-19 Thread Jim Hill
Nick Craig-Wood wrote: >Jim Hill <[EMAIL PROTECTED]> wrote: >> Is there a way to produce a very long multiline string of output with >> variables' values inserted without having to resort to this wacky >> """v = %s"""%(var

Re: Easy "here documents" ??

2004-12-19 Thread Jim Hill
eturn ("%" + fmt) % v Not that I don't appreciate the suggestions from masters of the Python universe, but the reason I'm switching to Python from Perl is for the readability. What you fells are suggesting might as well be riddled with dollar signs and semicolons... . Jim

Re: Easy "here documents" ??

2004-12-19 Thread Jim Hill
Keith Dart wrote: >Jim Hill wrote: >> Is there a way to produce a very long multiline string of output with >> variables' values inserted without having to resort to this wacky > >I was thinking about this. But I can't think of any reason why you would >want

Re: Easy "here documents" ??

2004-12-19 Thread Jim Hill
have floated but I think you've really tumbled to the core of my situation: Trying to take a Korn shell script and convert it as closely to line-for-line into Python as possible is Just Dumb. Jim -- "I regard NASCAR the same way I regard gay porn: I know it exists and I know some

<    1   2   3   4   5   6   7   8   >