Re: Problem

2020-09-30 Thread Grant Edwards
On 2020-09-30, Eryk Sun wrote: > On 9/30/20, Mirko via Python-list wrote: >> >> I have only limited knowledge about current Windows systems. But it >> seems to me that newcomers download some setup exe/msi and then >> search the menu to run what ever is found (python.exe or even the >> setup-prog

Re: Truncation error

2020-10-10 Thread Grant Edwards
On 2020-10-10, Peter J. Holzer wrote: > On 2020-10-07 07:53:55 +0200, Marco Sulla wrote: >> If you want to avoid float problems, you can use Decimal: > > Decimal doesn't avoid floating point problems, because it is a floating > point format. For example: > [...] > >>> from decimal import

Re: Simple question - end a raw string with a single backslash ?

2020-10-19 Thread Grant Edwards
On 2020-10-19, Stephen Tucker wrote: > For a neatish way to get a string to end with a single backslash, how about >mystr = r"abc\ "[:-1] > (Note the space at the end of the rough-quoted string.) That's the first thing I thought of, though I would probably use a non-space character to avoid

Re: Dataframe to postgresql - Saving the dataframe to memory using StringIO

2020-10-22 Thread Grant Edwards
On 2020-10-22, Chris Angelico wrote: > On Fri, Oct 23, 2020 at 12:15 AM Shaozhong SHI wrote: >> What should I know or watch out if I decide to move from Python 2.7 >> to Python 3? > > Key issues? Well, for starters, you don't have to worry about whether > your strings are Unicode or not. They ju

Re: GUI (tkinter) popularity and job prospects for

2020-10-23 Thread Grant Edwards
On 2020-10-22, Michael Torrie wrote: > I doubt you'll find any jobs connected a particular Python GUI toolkit. > Except maybe at Red Hat. A couple years ago my employer was looking for (and hired) a Python wx application developer. > Most likely you'll find Python used in web app development, b

Re: GUI (tkinter) popularity and job prospects for

2020-10-23 Thread Grant Edwards
On 2020-10-22, Terry Reedy wrote: > On 10/22/2020 2:58 PM, Lammie Jonson wrote: > >> I looked at tkinter which seems to have quite a few examples out >> there, but when I searched indeed.com for tkinter and wxpython it >> appeared that there was hardly any job listings mentioning >> those. Why is

Re: GUI (tkinter) popularity and job prospects for

2020-10-23 Thread Grant Edwards
On 2020-10-23, John Pote wrote: > On 23/10/2020 05:47, Grant Edwards wrote: >> >>> I think that commercial desktop applications with a python >>> compatible GUI would likely use QT or a Python binding thereof. >> Agreed. If you want to improve you "hirabili

Re: Best way to determine user's screensize?

2020-10-30 Thread Grant Edwards
On 2020-10-30, flaskee via Python-list wrote: > What is the best approach to determining the user's available > screensize, when they open your python application? Why do you think that's something your application needs to know? I _hate_ applications that think just because they've been starte

Re: Best way to determine user's screensize?

2020-10-31 Thread Grant Edwards
On 2020-10-31, songbird wrote: > Chris Angelico wrote: > ... >> I add my voice to those who detest applications that think they know >> best and decide that they own the entire screen. It is incredibly >> annoying. > > do you object to a window being put in the approximate > center of the screen?

Re: Best way to determine user's screensize?

2020-10-31 Thread Grant Edwards
On 2020-10-30, Peter J. Holzer wrote: > So, assuming the user is invoking the application for the first time, > how should an application determine how much of the screen it should > use? You arrange the widgets the way you want them using the user's settings for the toolkit and let the sizers f

Re: Best way to determine user's screensize?

2020-10-31 Thread Grant Edwards
On 2020-10-30, flaskee via Python-list wrote: > In odd screen sizes or multi-monitor situations, > I make the best guess, Stop guessing. Let the window manager, and layout algorithm do the jobs for which they were designed. > but allow the user to alter things, via preferences. If you want to

Re: Best way to determine user's screensize?

2020-10-31 Thread Grant Edwards
On 2020-10-31, Chris Angelico wrote: > >> do you object to a window being put in the approximate >> center of the screen? >> > > If that's where my window manager chooses to put it, great! The > application just says "I want a window of this size" But let the widget/toolkit layout engine figure o

Re: Best way to determine user's screensize?

2020-10-31 Thread Grant Edwards
On 2020-10-30, flaskee via Python-list wrote: > Funny thing about people who bitch and complain > and offer no help, Layout your widgets using appropriate sizers and constraints, and then let them and the window manager do their jobs. You shouldn't be messing about with window sizes and location

Re: Best way to determine user's screensize?

2020-10-31 Thread Grant Edwards
On 2020-10-31, Peter J. Holzer wrote: > Very often this is not the case: An image viewer will be used to > display images which are larger than the screen. Tell the image widget what image you want to display, and then forget about it. Let the toolkit and window manager do their jobs. > A MUA m

Re: Best way to determine user's screensize?

2020-10-31 Thread Grant Edwards
On 2020-10-31, Random832 wrote: > On Fri, Oct 30, 2020, at 20:18, Igor Korot wrote: >> Hi, >> >> On Fri, Oct 30, 2020 at 6:59 PM Peter J. Holzer wrote: >> > So, assuming the user is invoking the application for the first time, >> > how should an application determine how much of the screen it sh

Re: Best way to determine user's screensize?

2020-10-31 Thread Grant Edwards
On 2020-10-31, Peter J. Holzer wrote: > You still haven't answered the question: Where should the initial window > size come from? The GUI toolkit used by the application calculates a "desired" window size based on the widgets and layout constraints. That desire is passed to the window manager,

Re: Best way to determine user's screensize?

2020-11-02 Thread Grant Edwards
On 2020-11-01, songbird wrote: > to keep a program simple i made it to open in the center. That's not simple: it actually takes _extra_ work to do that. > if i ever get back to it i'll have to figure out how to ask > the windowing system what it wants to do for placement I've never heard of do

Re: Best way to determine user's screensize?

2020-11-02 Thread Grant Edwards
On 2020-11-01, songbird wrote: > certainly it isn't but it is my game and i kept it simple. if > people don't like it then they can find something else to play. i'm > good with that, but the next time i get back to making changes i'll > see what i can figure out for saving the location where so

Re: Post request and encoding

2020-11-02 Thread Grant Edwards
On 2020-11-02, Ethan Furman wrote: > On 11/2/20 9:32 AM, Karsten Hilbert wrote: > >> because .encode() does not operate in-place. > > Yeah, none of the string operations do, and it's embarrassing how > many times that still bites me. :-/ I've been writing Python for a little over 20 years. In an

Re: Solaris 11 GUI framework

2020-11-03 Thread Grant Edwards
On 2020-11-02, Igor Korot wrote: > On Mon, Nov 2, 2020, 3:57 PM Jay Braun wrote: > >> Looking for a GUI framework supported on Solaris 11. > > Wxpython, pygtk, Java. I wouldn't start a new project with pygtk. It's obsolete (Python2 only) and is no longer supported/available on some platforms. It

Re: Help

2020-11-03 Thread Grant Edwards
On 2020-11-04, Quentin Bock wrote: > So, I'm newer to Python and I'm messing around with math functions and > multiplication, etc. here is my line of code: > > def multiply(numbers): > total = 1 > for x in numbers: > total *= x > return total > print(mu

Re: Changing strings in files

2020-11-10 Thread Grant Edwards
On 2020-11-10, Manfred Lotz wrote: > What is the best way to check if a file is a text file? Step 1: define "text file" -- Grant -- https://mail.python.org/mailman/listinfo/python-list

Re: Environment vars

2020-11-25 Thread Grant Edwards
On 2020-11-25, Bob van der Poel wrote: > What does DWIN mean? It's DWIM: "do what I mean". It refers to software (like PHP) that instead of requiring unambiguous input, it silently (and often incorrectly) guesses what ambiguous input is supposed to mean using heuristics known to and understood b

Re: Letter replacer - suggestions?

2020-12-07 Thread Grant Edwards
On 2020-12-07, MRAB wrote: > Avoid a 'bare' except unless you _really_ mean it, which is > virtually never. Catch only those exceptions that you're going to > handle. And sometimes "handling" is just printing some extra stuff and then re-raising the original exception: try: somethin

Re: Unable to pass dict from json.

2020-12-13 Thread Grant Edwards
On 2020-12-13, Bischoop wrote: > Here https://bpa.st/YBVA Don't do that. Include in your post a short example that illustrates your questions. > I've working code with dictionary only if used dict from the code > [...] -- https://mail.python.org/mailman/listinfo/python-list

Re: dict.get(key, default) evaluates default even if key exists

2020-12-15 Thread Grant Edwards
On 2020-12-15, Mark Polesky via Python-list wrote: > I see. Perhaps counterintuitive, I guess that depends on what programming language you normally think in. Python's handling of function parameters is exactly what I expected, because all of the previous languages I used did the same thing. Pu

Re: dict.get(key, default) evaluates default even if key exists

2020-12-16 Thread Grant Edwards
On 2020-12-16, Dennis Lee Bieber wrote: > On Tue, 15 Dec 2020 20:08:53 + (UTC), Mark Polesky via Python-list > declaimed the following: > >>behavior, and I can't remember any programming language in which it's >>different. > > https://en.wikipedia.org/wiki/Evaluation_strategy#Call_by_name Mo

Re: Review, suggestion etc?

2020-12-17 Thread Grant Edwards
On 2020-12-18, Joe Pfeiffer wrote: > Recursion has very limited application, but where it's the right > tool it's invaluable (top-down parsers, some graph algorithms...). > We teach it primarily because by the time a student has a good > handle on how to write a recursive function they understand

Re: Review, suggestion etc?

2020-12-18 Thread Grant Edwards
On 2020-12-18, Joe Pfeiffer wrote: > Grant Edwards writes: > >> Yep, there are definitly cases where it's pretty much the only right >> answer. If you try to avoid it, you end up writing what turns into a >> simulation of recursion -- and doing that correctly isn

Re: Lambda in parameters

2020-12-18 Thread Grant Edwards
On 2020-12-18, Barry wrote: >> Implement car and cdr. > Why car and cdr? > > Well obviously car is content of the address register and cdr is content of > data register. > Apparently an artefact of a early implementation of lisp. While car and cdr are lisp operators, the "content of address reg

Re: How do you find what exceptions a class can throw?

2020-12-20 Thread Grant Edwards
On 2020-12-20, 2qdxy4rzwzuui...@potatochowder.com <2qdxy4rzwzuui...@potatochowder.com> wrote: > Chris Green wrote: > >>> Ultimately, it is not possible to tell what exceptions >>> a call might throw. While it may not be "ultimately possible", in practice it usually is. Most libarary documen

Re: How do you find what exceptions a class can throw?

2020-12-21 Thread Grant Edwards
On 2020-12-21, Chris Angelico wrote: > On Mon, Dec 21, 2020 at 1:11 PM Julio Di Egidio wrote: >> > Gathering evidence is indeed part of science, and computer science is >> > indeed mathematics, but alas programmering is just a craft and software >> > engineering often ... isn't. >> >> Programming

Re: Installing Python (2.7) 'by hand' on Ubuntu - possible?

2020-12-22 Thread Grant Edwards
On 2020-12-22, Chris Green wrote: > I have (as discussed here) a printer utility that uses Python 2 and I > can't update it to Python 3 because it has a .so library file which is > compiled for Python 2. I think I have exhausted all the possibilities > for converting it to Python 3 so now I'm loo

Re: Installing Python (2.7) 'by hand' on Ubuntu - possible?

2020-12-22 Thread Grant Edwards
On 2020-12-22, Chris Green wrote: > [...] > > How realistic/possible would it be to run the utility in a separate > environment with its own copies of Python2 and any modules and > libraries needed? I would install these 'by hand', i.e. not using > 'apt' so they would stay as installed even as my

Re: Installing Python (2.7) 'by hand' on Ubuntu - possible?

2020-12-22 Thread Grant Edwards
On 2020-12-22, Chris Green wrote: > Grant Edwards wrote: >> On 2020-12-22, Chris Green wrote: >> > [...] >> > >> > How realistic/possible would it be to run the utility in a separate >> > environment with its own copies of Python2 and any module

Re: Installing Python (2.7) 'by hand' on Ubuntu - possible?

2020-12-22 Thread Grant Edwards
On 2020-12-22, Chris Green wrote: > Grant Edwards wrote: > >> I should have mentioned that bundlers like cx_freeze require that you >> have the Python source for the main app. I don't remember if you >> mentioned source or not... > > Yes, I do have the Python s

Re: using regex for password validation

2020-12-23 Thread Grant Edwards
Python issue!) You're far, far better off writing a function that tests each rule separately, so that you can tell the user _why_ the password isn't allowed. If you use a regex, it's just pass/fail. The user won't have any idea how to fix the problem. -- Grant Edwards

Re: Which method to check if string index is queal to character.

2020-12-28 Thread Grant Edwards
On 2020-12-28, Bischoop wrote: > On 2020-12-28, Stefan Ram wrote: >> >> "@" in s >> > > That's what I thought. > >>>I want check if string is a valid email address. >> >> I suggest to first try and define "valid email address" in English. > > A valid email address consists of an email prefix

Re: Python 3.8.5

2021-01-06 Thread Grant Edwards
On 2021-01-06, Joseph Milroy Felix Moraes (Moraes) via Python-list wrote: > Good day, > > I keep getting this error message when trying to open Python 3.8.5 on my > computer windows 7 , 64 bit. > > --- > python.exe - System Error > --- > The progra

Re: Tkinter menu item underline syntax [RESOLVED]

2021-01-06 Thread Grant Edwards
On 2021-01-06, Rich Shepard wrote: > On Wed, 6 Jan 2021, 2qdxy4rzwzuui...@potatochowder.com wrote: > >> For the sake of future generations who may run into this issue, can you >> post the complete, correct call to file_menu.add_command? > > This is the working version of the stanza I initially pos

Re: learning python building 2nd app, need advices

2021-01-11 Thread Grant Edwards
On 2021-01-11, pascal z via Python-list wrote: > tab to space on linux is not something easy to do, Nonsense, there's a command _specifically_ for that: $ man expand -- Grant -- https://mail.python.org/mailman/listinfo/python-list

Re: learning python building 2nd app, need advices

2021-01-11 Thread Grant Edwards
On 2021-01-11, 2qdxy4rzwzuui...@potatochowder.com <2qdxy4rzwzuui...@potatochowder.com> wrote: > On 2021-01-11 at 06:34:42 -0800, > pascal z via Python-list wrote: > >> On Monday, January 11, 2021 at 2:07:03 PM UTC, Chris Angelico wrote: > >> > Easy fix: stop looking at the Google Group page. >>

Re: A beginning beginner's question about input, output and . . .

2021-01-12 Thread Grant Edwards
On 2021-01-11, DonK wrote: > So, what do you folks use Python for? I mainly use it for writing command-line utilities. Many of them work on either Windows or Linux, but are mostly used on Linux: * Two-pass symbolic assembler and dissassembler for a proprietary communications controller. *

Re: A beginning beginner's question about input, output and . . .

2021-01-12 Thread Grant Edwards
On 2021-01-12, songbird wrote: > it can be used for pretty much anything except perhaps > high pressure real time things, but i bet someone else will > know that is being done too, i've just not heard of it. :) AFAIK, Python can't be used to write device drivers for any popular OS (Linux, Uni

Re: cElementTree clear semantics

2005-09-25 Thread Grant Edwards
more likely to get useful answers than equivalent questions to a private one. There are multiple reasons for this. One is simply the size of the pool of potential respondents. Another is the size of the audience; hackers would rather answer questions that educate a lot of people th

Re: cElementTree clear semantics

2005-09-25 Thread Grant Edwards
an set up a > mailing list to publicly ask and answer questions about your > software. Of course it may not get you as many paypal hits as > spamming larger forums with your support questions will, WTF are you on about? What the hell is a "Paypal hit"? How is posting a sing

Re: Simple Dialogs

2005-09-26 Thread Grant Edwards
import ctypes > ctypes.windll.user32.MessageBoxA(0, "Hello World", "Title", 0x00) Another easy way to do a dialog box: import os os.system('Xdialog --msgbox "Hello World" 0 0') -- Grant Edwards grante

Re: number of python users

2005-09-26 Thread Grant Edwards
. The last time I looked, that was the version shipped in most of the popular Linux distros. -- Grant Edwards grante Yow! Here we are in at America... when do we visi.comco

Re: Simple Dialogs

2005-09-26 Thread Grant Edwards
n't seem to work on my Winodws system at all ;-) Odd. You don't have a full compliment of the usual GTK apps installed? I probably should have mentioned that Xdialog is a GTK+ app and it needs to be installed and working on your platform. In thoery, you could

Re: ncurses programming

2005-09-26 Thread Grant Edwards
ry of the same name. It's available for most Linux distros and requires the "slang" library. If your distro doesn't have a pre-built newt library you can get it from here: http://www.python.org/pyvault/SRPMS/repodata/repoview/newt-0-0.52.0-3.html -- Grant E

Re: ncurses programming

2005-09-26 Thread Grant Edwards
d it, and I may be misremembering the name. I've no idea if there was a pdcurses module for python. -- Grant Edwards grante Yow! I will SHAVE and at buy JELL-O and bring my visi.c

Re: ncurses programming

2005-09-26 Thread Grant Edwards
On 2005-09-26, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2005-09-26, Mike Meyer <[EMAIL PROTECTED]> wrote: > [...] >>>> Py Docs: http://docs.python.org/lib/module-curses.html >>> >>> This document suggests that Python+ncurses won't work on

Re: What does pygame.Movie mean by `an MPEG file'?

2005-09-28 Thread Grant Edwards
ated from them? I use mencoder (part of mplayer) http://www.mplayerhq.hu/homepage/design7/news.html or tanscode. http://freshmeat.net/projects/transcode/ I'd try mpeg container with mpeg2 video. -- Grant Edwards grante Yow! Let's climb to the

Re: What does pygame.Movie mean by `an MPEG file'?

2005-09-28 Thread Grant Edwards
On 2005-09-28, Roel Schroeven <[EMAIL PROTECTED]> wrote: > Grant Edwards schreef: >> There are two issues when it comes to video files: >> >> 1) The "container" format. That defines the mechanism used to >> combine the video and audio data strea

xml.sax removing newlines from attribute value?

2005-09-29 Thread Grant Edwards
em to have been deleted. How do I get the un-munged element attribute values? -- Grant Edwards grante Yow! Someone is DROOLING at on my collar!! visi.com -- http://mail.python.org/m

Re: xml.sax removing newlines from attribute value?

2005-09-29 Thread Grant Edwards
isplay quite "right". My current app treats the file as read-only. If I ever get around to modifying data and writing it back, I'll probably have to deal with the newline issue at that point. -- Grant Edwards grante Yow! When this load is at DONE I think I'll wash visi.comit AGAIN... -- http://mail.python.org/mailman/listinfo/python-list

Re: xml.sax removing newlines from attribute value?

2005-09-29 Thread Grant Edwards
te by Trolltech's app is broken. > > it's allowed, but the parser must not pass it on to the application. > > (in other words, whitespace in attributes doesn't, in general, survive > roundtripping) Ah, I see. That's good to know. [This is my first attempt at an

Re: Where to find python c-sources

2005-09-29 Thread Grant Edwards
t; The source tarball, available on python.org. Are people > really too lazy to do elementary research on Google? Yes. -- Grant Edwards grante Yow! One FISHWICH coming at up!! visi.c

Re: ssh or other python editor

2005-10-04 Thread Grant Edwards
Jed, Emacs, and Vim all have Python modes. I'm sure most decent programming editors do by now. -- Grant Edwards grante Yow! Yow! Now we can at become alcoholics! visi.com

Re: closing sockets

2005-10-04 Thread Grant Edwards
ogle.com/search?hl=en&q=socket.error%3A+%2898%2C+%27Address+already+in+use%27%29&btnG=Google+Search The first hit has this link which explains it very well: http://hea-www.harvard.edu/~fine/Tech/addrinuse.html -- Grant Edwards grante Yow!

Re: closing sockets

2005-10-04 Thread Grant Edwards
On 2005-10-04, Grant Edwards <[EMAIL PROTECTED]> wrote: >> socket.error: (98, 'Address already in use') >> >> how can i get around that > > http://www.google.com/search?hl=en&q=socket.error%3A+%2898%2C+%27Address+already+in+use%27%29&btnG=Goo

Re: Call C functions from Python

2005-10-04 Thread Grant Edwards
On 2005-10-04, Java and Swing <[EMAIL PROTECTED]> wrote: > Is there some other way, besides SWIG, which will allow me to call > functions inside an Ansi C DLL? ctypes -- Grant Edwards grante Yow! Now KEN and BARBIE

Re: how to get any available port

2005-10-04 Thread Grant Edwards
g the client end of a TCP connection? -- Grant Edwards grante Yow! I want you to at MEMORIZE the collected visi.compoems of EDNA ST VINCENT

Re: how to get any available port

2005-10-04 Thread Grant Edwards
On 2005-10-04, Paul Rubin <> wrote: > Grant Edwards <[EMAIL PROTECTED]> writes: >> > Hmm...perhaps he is trying to do a transfer thing like many chat >> > programs do. Instead of sending large files across a server, you >> > "Direct Connect" and

Re: Call C functions from Python

2005-10-04 Thread Grant Edwards
x27;s like that. I certainly don't see it mentioned in the tutorial. What happened when you tried calling the function the way the tutorial does? myapp = cdll.myapp myapp.MyFunc() -- Grant Edwards grante Yow! Yow! Is my fallout

Re: how to get any available port

2005-10-04 Thread Grant Edwards
On 2005-10-04, Mohammed Smadi <[EMAIL PROTECTED]> wrote: > On Tue, 4 Oct 2005, Grant Edwards wrote: > >> On 2005-10-04, ncf <[EMAIL PROTECTED]> wrote: >> >> > Hmm...perhaps he is trying to do a transfer thing like many chat >> > programs do. Ins

Re: how to get any available port

2005-10-04 Thread Grant Edwards
SO_REUSEADDR when you need to bind to a specific port, and you want to be able to re-use that port address for a new connection without waiting for the time specified in the TCP RFC after the old connection was closed. In the OP's case, there is no need to bind to a specific port, so ju

Re: how to get any available port

2005-10-04 Thread Grant Edwards
On 2005-10-04, Paul Rubin <> wrote: > Grant Edwards <[EMAIL PROTECTED]> writes: >> > In the nomenclature of some of these applications, that kind >> > of transfer is called a client to client connection. Both >> > ends are called clients. >> &

Re: check html file size

2005-10-04 Thread Grant Edwards
On 2005-10-05, Xah Lee <[EMAIL PROTECTED]> wrote: > would anyone like to translate the following perl script to > Python or Scheme (scsh)? Sure. It'll cost you $110/hour with a 2-hour minimum. Where do I send the invoice? -- Grant Edwards grante

Re: Call C functions from Python

2005-10-05 Thread Grant Edwards
irst "p" in > myapp.pyd. Um, just a guess, but I don't think that was python code. Try it at a command prompt. -- Grant Edwards grante Yow! The entire CHINESE at WOMEN'S VOLLEYBALL TEA

Re: Does python support the expression "a = b | 1"???

2005-10-05 Thread Grant Edwards
gt;> a 1 >>> b = 1 >>> a = b | 1 >>> a 1 >>> b = 2 >>> a = b | 1 >>> a 3 >>> I'm not sure what What you mean by "nil", but I would geuess this is the equivalent Python: if b is not None: a = b else: a = 1 -- G

Can't get pylibpcap extension to build under 2.4

2005-10-05 Thread Grant Edwards
ul 10 2004 pcap.i -rw-r--r-- 1 grante grante 14929 Jul 9 2004 pcap_interface.c -rw-r--r-- 1 grante grante 6011 Jul 3 18:11 pcap.py -rw-r--r-- 1 grante grante 346 Jul 3 18:32 PKG-INFO -rw-r--r-- 1 grante grante 2379 Dec 3 2004 pypcap.h -rw-r--r-- 1 grante grante 17

Re: Can't get pylibpcap extension to build under 2.4

2005-10-05 Thread Grant Edwards
On 2005-10-05, Grant Edwards <[EMAIL PROTECTED]> wrote: > I've been using the pylibpcap extension module for several > years, but I can't get it to build under 2.4: It turns out the .tar.gz file being distributed is missing the file doc.i and the entire build-tools subdirec

Re: updating local()

2005-10-06 Thread Grant Edwards
them in the > function header? Pass them in a dictionary or tuple or list or object with attributes. -- Grant Edwards grante Yow! Am I SHOPLIFTING? at visi.com -- http:/

Re: When someone from Britain speaks, Americans hear a "British accent"...

2005-10-06 Thread Grant Edwards
7-0. British: Minnesota are behind 7-0. The Vikings are behind 7-0. In politics: American: The war department has decided to cancel the program. British: The war department have decided to cancel the program. And so on... -- Grant Edwards grante

Re: When someone from Britain speaks, Americans hear a "British accent"...

2005-10-06 Thread Grant Edwards
#x27;ve seen plenty of TV in England. To me the dialog sounds the same as it does in the US. > I know America International dubbed the first version of "Mad > Max" that they imported into the US. Then again, American > International is well-know for their quality. T

Re: When someone from Britain speaks, Americans hear a "British accent"...

2005-10-07 Thread Grant Edwards
interchangeably as neither strikes > me as sounding "odd". It could be that both are used in British English and I only notice the "have" usage. In US English it's always "has" because "deptartment" is considered singular: "departement has

Re: When someone from Britain speaks, Americans hear a "British accent"...

2005-10-07 Thread Grant Edwards
; pronounces "nuclear" as though it were spelled "nucular"? Don't get me started on _that_ one. I found it particularly horrifying that Jimmy Carter pronounced it "nucular" -- he had studied nuclear engineering at the naval acadamy, and sh

Re: Python, alligator kill each other

2005-10-07 Thread Grant Edwards
ython vs. Alligator' on Slashdot, I > thought it was about some comparison between Python and an > unknown-to-me programming language Alligator. Or a reference to an O'Reilly book with an Alligator on its cover. -- Grant Edwards grante Yow! Let me

Re: When someone from Britain speaks, Americans hear a "British accent"...

2005-10-07 Thread Grant Edwards
t;The South", y'all is now used in the singular (e.g. "y'all" is used when addressing a single person), and "all y'all" is the plural form used when addressing a group of people collectively. -- Grant Edwards grante

Re: When someone from Britain speaks, Americans hear a "British accent"...

2005-10-07 Thread Grant Edwards
anar > points in space was called a "tetrahedragon". Watch out for the fire-breathing kind. They're especially dangerous since they have multiple faces, so there's no "behind" from which to sneak up upon them from... of... to. -- Grant

Re: When someone from Britain speaks, Americans hear a "British accent"...

2005-10-07 Thread Grant Edwards
t; The Philly responders selected > the next best option of "yous" > > It is a bit odd that You'uns, yins, and yous are confined to Pennsylvania > and very distinct east-west regions inside PA at that (Pittsburgh vs > Philly orbits). Eastern and Western Pennsylvani

Re: Simulating low bandwidth network on localhost

2005-10-07 Thread Grant Edwards
h Python or is there a specialized software for this kind > of things (preferably free). -- Grant Edwards grante Yow! Let's send the at Russians defective visi.comlifesty

Re: how do you pronounce wxpython

2005-10-08 Thread Grant Edwards
On 2005-10-08, Alex <[EMAIL PROTECTED]> wrote: > My native language is not English so I just wonder how you pronounce > wxPython. > > vi-ex python > double-you-ex python > wax-python The second one. -- Grant Edwards grante

Re: new forum -- homework help/chit chat/easy communication

2005-10-08 Thread Grant Edwards
here's > a chit chat section just for you...Just remember that forum > communication is much easier, safer, and faster. I disagree 100% with that last assertion. Usenet is much, much, easier, safer and faster. -- Grant Edwards grante

Re: convert char to byte representation

2005-10-10 Thread Grant Edwards
of the character [which the hardware stores in binary on all of the platforms I'm aware of]. -- Grant Edwards grante Yow! Hmmm... A hash-singer at and a cross-eyed guy were

Re: Library functions

2005-10-10 Thread Grant Edwards
few others as well. I've successfully used the ctypes module to call Windows DLLs (coincidentally it's to send/receive CAN messanges). According to the ctypes docs, you can use it to call functions in Linux libraries as well. -- Grant Edwards grante

Re: When someone from Britain speaks, Americans hear a "British accent"...

2005-10-11 Thread Grant Edwards
they want it tested and certified to a particular set of functional and environmental specs. That takes literally man-years of effort, and then they only end up buying 3 of them. The cost of the testing gets divided by three and added onto the unit cost. -- Grant Edwards

Re: When someone from Britain speaks, Americans hear a "British accent"...

2005-10-11 Thread Grant Edwards
e common for teen-age boys/girls to address each other as "dude". For example "Dude, you have got to go to the concert with us". But, if somebody refers to "that dude over there in the blue jaket," the "dude" is invariably a male.

Re: are there internal functions for these ?

2005-10-11 Thread Grant Edwards
gle.com/search?hl=en&q=python+move+copy+file It's the very first link. > anyone could figure me out ? I'm afraid so. -- Grant Edwards grante Yow! Is this TERMINAL fun? at

Re: Let My Terminal Go

2005-10-13 Thread Grant Edwards
equiring fork/exec ran _very_ slowly under DECShell. Since the NT kernel is descended from VMS, I'm not surprised that a fork is expensive. -- Grant Edwards grante Yow! Why are these at athletic shoe salesmen

Re: UI toolkits for Python

2005-10-13 Thread Grant Edwards
bjection sometimes heard is that Tk is integrated into Python by including Tcl as well (as opposed to doing an actual Tk binding the way some other languages have done). It's an eminently practical approach, but it sure makes you feel dirty. -- Grant Edwards

Re: Installing Python at Work

2005-10-18 Thread Grant Edwards
On 2005-10-17, Nikola <[EMAIL PROTECTED]> wrote: > I'm considering installing it on a work laptop, knowing that > it is non-licensed, distributable software. > > However, does it access communication ports? Only if you tell it to. -- Grant Edwards grant

Re: [wxPython-users] Web based applications are possible with wxPython?

2005-10-18 Thread Grant Edwards
thing similar? I haven't tried it, but this looks sort of cool: http://trac.nunatak.com.au/projects/nufox -- Grant Edwards grante Yow! HELLO, little boys! at Gimme a MINT TULIP!! Let's

Re: Python variables are bound to types when used?

2005-10-19 Thread Grant Edwards
t with the value "hello", that experession will be true. The expression will be false for any object that isn't a string, and false for any string object that doesn't have the value "hello". > and what if I never used it in the definition body? Then it doesn't get used. -- Grant Edwards grante Yow! I just forgot my at whole philosophy of life!!! visi.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Python variables are bound to types when used?

2005-10-19 Thread Grant Edwards
On 2005-10-19, Grant Edwards <[EMAIL PROTECTED]> wrote: >> So, if I use "l2" thus: >> >> if (l2): # only then does it make it a boolean? > > That doesn't affect the type of the object with the name "l2" > at all. It checks to see if l2

Re: Set an environment variable

2005-10-20 Thread Grant Edwards
, leaving the caller's environment unchanged. -- Grant Edwards grante Yow! Are you mentally here at at Pizza Hut?? visi.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Set an environment variable

2005-10-20 Thread Grant Edwards
On 2005-10-20, Christian <[EMAIL PROTECTED]> wrote: > How do I export an environment variable in a .py script? http://www.python.org/doc/current/lib/os-procinfo.html#l2h-1548 -- Grant Edwards grante Yow! My BIOLOGICAL ALARM

Re: need some advice on x y plot

2005-10-20 Thread Grant Edwards
et to happen is to scale x (time of > the plot) with respect to time. Gnuplot does that just fine. Just give it two columns of data, the first being the x value (time) and the second being the y value. All of the other plotting packages handle this as well. -- Grant Edwards

Re: need some advice on x y plot

2005-10-20 Thread Grant Edwards
) ? No. > how do i putt this off ? Huh? Gnuplot by default does exactly what you seem to want if you just pass it x,y values. -- Grant Edwards grante Yow! I always liked FLAG at DAY!!

<    7   8   9   10   11   12   13   14   15   16   >