Re: Subprocess Popen confusion

2020-05-19 Thread Barry Scott
> On 18 May 2020, at 21:50, Dick Holmes wrote: snip > Per Peter's suggestion I tried readline and it works "as expected". I > also discovered that the reason the read operations were stalling was > that they followed a write and the write doesn't actually occur until > "flush" is called ev

Re: Issues regarding running of application.

2020-05-27 Thread Barry Scott
> On 26 May 2020, at 15:45, Meet Agrawal wrote: > > I have tried and installed the python application a lot of times but after > the installation get completed and I try to run the application, it say > that api-ms-win-crt-runtime-l1-1-0.dll is missing from your computer. That DLL is part of

Re: Behaviour of os.path.join

2020-05-27 Thread Barry Scott
> On 26 May 2020, at 17:46, MRAB wrote: > > On 2020-05-26 16:48, BlindAnagram wrote: >> On 26/05/2020 16:22, Ben Bacarisse wrote: >>> BlindAnagram writes: I came across an issue that I am wondering whether I should report as an issue. If I have a directory, say: base='C

Re: Behaviour of os.path.join

2020-05-27 Thread Barry Scott
> On 26 May 2020, at 18:01, BlindAnagram wrote: > > On 26/05/2020 17:09, Stefan Ram wrote: >> Mats Wichmann writes: >>> an absolute path is one that starts with the pathname separator. >> >> The Python Library Reference does not use the term >> "pathname separator". It uses "directory sepa

Re: Trouble with making modules 'global'

2020-06-04 Thread Barry Scott
> On 4 Jun 2020, at 04:48, pytho...@gmail.com wrote: > > Hi, > > I am struggling with making modules global for all definitions in my code. Each python module has to import all the modules it needs. Importing on one module does not make the imported names usable from another module. What pyt

Re: pyinstaller

2020-06-11 Thread Barry Scott
> On 10 Jun 2020, at 14:46, Robin Becker wrote: > > I'm sure this has come up before, but a tiny pyinstaller created exe is being > seen as malware by windows 10. > > Is there any way to create simple single file applications which don't get > this treatment? Submit the .exe to Microsoft s

Re: Typing, how come that :int is not ensuring int parameter?

2020-06-11 Thread Barry Scott
> On 11 Jun 2020, at 21:51, zljubi...@gmail.com wrote: > > Hi, > > If I run this code: > class Property: > >def __init__(self, var: int): >self.a: int = var > >@property >def a(self): >return self.__a > >@a.setter >def a(self, var: int): >if var >

Announcing Scm Workbench 0.9.4 for Git, Mercurial and Subversion

2020-06-13 Thread Barry Scott
SCM Workbench features * Support Subversion (svn), Mercurial (hg) and Git projects. * Experimental support for Perforce (P4) * Easy to learn and use * Builtin User Guide describes the operation and features of the application. * Add project wizard can scan for all your existing projects. * All sub

Re: parsing encrypted netrc file

2020-06-23 Thread Barry Scott
> On 22 Jun 2020, at 23:38, Seb wrote: > > Hello, > > What's the pythonic way to do this without polluting the user's > directory with the decrypted file? I wrongly thought this should do it: > > import os.path as osp > import gnupg > import netrc > import tempfile > > gpg = gnupg.GPG() >

Re: property

2020-06-26 Thread Barry Scott
> On 26 Jun 2020, at 08:02, ast wrote: > > Hello, > > I am wondering why this code is OK: > > class Temperature: >def __init__(self): > self.celsius = 0 > >fahrenheit = property() > >@fahrenheit.getter >def fahrenheit(self): > return 9/5*self.celsius +32 >

Re: Friday Finking: Limiting parameters

2020-07-12 Thread Barry Scott
> On 12 Jul 2020, at 00:15, DL Neil via Python-list > wrote: > >> That does not necessarily mean that the function needs to know >> the particular representation or form of that data. Let those be >> objects with getter methods for the data you wish, and have the >> function document what m

Re: Friday Finking: Limiting parameters

2020-07-13 Thread Barry Scott
> On 13 Jul 2020, at 06:21, dn via Python-list wrote: > > On 12/07/20 10:10 PM, Barry Scott wrote: >>> On 12 Jul 2020, at 00:15, DL Neil via Python-list >> <mailto:python-list@python.org>> wrote: >>> >>>> That does not necessarily me

Re: frozendict: an experiment

2020-07-13 Thread Barry Scott
> On 13 Jul 2020, at 03:20, Marco Sulla wrote: > > TL;DR: I tried to implement in CPython a frozendict here: > https://github.com/Marco-Sulla/cpython > > Long explaining: > > What is a frozendict? It's an immutable dict. The type was proposed in > the past but rejected: https://www.python.or

Re: Support both asyncio and synchronous callers

2020-07-28 Thread Barry Scott
> On 26 Jul 2020, at 02:36, Damian Johnson wrote: > > Hi. I'm the author of Stem, Tor's python library [1]. Recently we > migrated to asyncio, but desire to still be usable by synchronous > callers. > > We wrote a mixin [2][3] that transparently makes any class usable by > both asyncio and sy

Re: Winreg

2020-07-30 Thread Barry Scott
You left python list off your reply. > On 29 Jul 2020, at 23:38, R Pasco wrote: > > Hi, Barry, > > On Wed, Jul 29, 2020 at 5:12 PM Barry > wrote: > > > On 29 Jul 2020, at 19:50, R Pasco > > wrote: > > > > I'm running python 3.8 o

Re: Winreg

2020-07-30 Thread Barry Scott
Use the Reply or Reply-To-All feature of your email program and it will do the rest for you. Barry > On 30 Jul 2020, at 20:14, R Pasco wrote: > > I can't find instructions for the proper way to reply to 'python list'. Is > it simply a matter of keeping the message title identical to the origi

Re: Any ideas for a new language inspired to Python?

2020-08-09 Thread Barry Scott
> On 8 Aug 2020, at 18:18, Marco Sulla wrote: > > On Sat, 8 Aug 2020 at 14:10, Barry wrote: On 7 Aug 2020, at 23:28, Marco Sulla wrote: >>> My idea seems to be very simple (so probably it's not simple at all): >>> a language similar to Python, but statically compiled. >> >> Have a look

Re: why the connection set with “keep live” in urllib.request always set to be“closed, thanks

2020-08-18 Thread Barry Scott
> On 18 Aug 2020, at 02:16, xuanwu348 wrote: > > > This means I want to structure my request header with "Connection: keep > alive" for the server which support connect alive, > But I checked the requeset header send by myself, the connection still > closed, no affect by set > > And I also

Re: Embedded python: How to debug code in an isolated way

2020-08-26 Thread Barry Scott
> On 24 Aug 2020, at 12:52, Eko palypse wrote: > > Thank you very much for your interest in my little problem. > >> When the app calls into python does the event loop of the gui block? > > Yes, the cpp app calls a callback function from the embedded python > interpreter synchronously. > >>

Re: Another 2 to 3 mail encoding problem

2020-08-27 Thread Barry Scott
> On 26 Aug 2020, at 16:10, Chris Green wrote: > > UnicodeEncodeError: 'ascii' codec can't encode character '\ufeff' in > position 4: ordinal not in range(128) > > So what do I need to do to the message I'm adding with mbx.add(msg) to > fix this? (I assume that's what I need to do). >>> i

Re: Video file to subtitles file

2020-08-27 Thread Barry Scott
> On 27 Aug 2020, at 18:00, Muskan Sanghai wrote: > > I would be really thankful if someone can suggest me how can I generate > subtitles file (srt format) from a video or audio without using Google cloud > and AWS. What do you know about how subtitles work with video? Do you mean you wa

Re: Video file to subtitles file

2020-08-29 Thread Barry Scott
t; On 28 Aug 2020, at 17:37, Muskan Sanghai wrote: >>>> >>>> On Friday, August 28, 2020 at 12:27:25 AM UTC+5:30, Barry Scott wrote: >>>>>>> On 27 Aug 2020, at 18:00, Muskan Sanghai wrote: >>>>>> >>>>>> I w

Re: Threading plus multiprocessing plus cv2 error

2020-08-30 Thread Barry Scott
> On 29 Aug 2020, at 18:01, Dennis Lee Bieber wrote: > > On Sat, 29 Aug 2020 18:24:10 +1000, John O'Hagan > declaimed the following: > >> There's no error without the sleep(1), nor if the Process is started >> before the Thread, nor if two Processes are used instead, nor if two >> Threads ar

Re: Symlinks already present

2020-08-31 Thread Barry Scott
> On 31 Aug 2020, at 17:38, Richard Damon wrote: > > On 8/31/20 9:00 AM, Chris Angelico wrote: >> On Mon, Aug 31, 2020 at 9:57 PM Richard Damon >> wrote: >>> On 8/31/20 3:35 AM, Chris Angelico wrote: On Mon, Aug 31, 2020 at 5:28 PM Cameron Simpson wrote: >> Because of the ".." issu

Re: Module exists and cannot be found

2020-09-09 Thread Barry Scott
> On 9 Sep 2020, at 06:35, James Moe via Python-list > wrote: > > python 3.6.10 > opensuse tumbleweed > linux 5.8.4 > > An old program based on Python (BackInTime) has recently been having > difficulties functioning. See below. > > Module PyQt5 is most definitely installed. Apparently there

Re: Asyncio Queue implementation suggestion

2020-09-18 Thread Barry Scott
> On 17 Sep 2020, at 15:51, Dennis Lee Bieber wrote: > > On Wed, 16 Sep 2020 13:39:51 -0400, Alberto Sentieri <2...@tripolho.com> > declaimed the following: > > >> devices tested simultaneously, I soon run out of file descriptor. Well, >> I increased the number of file descriptor in the appl

Re: stackless python 2.7.9 and openssl-1.1.1g

2020-09-24 Thread Barry Scott
> On 24 Sep 2020, at 19:21, bhashkar prakash Singh > wrote: > > Hi, > > I am using stackless Python 2.7.9 in my project and openssl-1.0.2q. > I just upgraded the Openssl version to 1.1.1g, due to which python > compilation started failing. So, I patched _hashopenssl.c and _ssl.c file > in

Re: stackless python 2.7.9 and openssl-1.1.1g

2020-09-29 Thread Barry Scott
c to >> work with openssl-1.1.1g ? > > Get the source of python.org <http://python.org/> python 2.7.18 and you will > find that builds without patches against OpenSSL 1.1.1g. > > I would then diff the C files that do not compile in stackless to look for > the required

Re: Logging lib doesn't work

2020-09-29 Thread Barry Scott
> On 29 Sep 2020, at 15:11, Alexandre FOURNEL > wrote: > > Hi all ! > > I'm trying to use logging lib in my python program. > > To try this lib, I am using basic code like : > > "import logging > logging.basicConfig(filename='pont.txt', filemode='w',format='%(asctime)s > %(message)s', d

Re: GUI (tkinter) popularity and job prospects for

2020-10-25 Thread Barry Scott
> On 23 Oct 2020, at 17:52, 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 "hirability" for GUI applic

Re: Python extension module with callbacks into Python

2020-10-28 Thread Barry Scott
> On 27 Oct 2020, at 19:21, Paul Grinberg wrote: > > As full disclosure, I posted this question on StackOverflow as well, but it > looks like questions with [Python] [Extension-Module] tags are not frequently > answered. The link to my question there is > https://stackoverflow.com/questions

Re: Python extension module with callbacks into Python

2020-10-28 Thread Barry Scott
> On 28 Oct 2020, at 13:25, Paul Grinberg wrote: > >>> I am running into unpredictable behavior with my Python extension module >>> that wraps around a C++ library that starts a new pthread and, after doing >>> some work, generates callbacks back into the caller. I've greatly >>> simplified

Re: GUI: I am also looking for a nudge into the best (GUI) direction.

2020-10-31 Thread Barry Scott
> On 29 Oct 2020, at 15:54, flaskee via Python-list > wrote: > > Hello! > > I've been reading the GUI toolkit posts. > > If anyone can give me a push in the right python direction on > my needs, I'd be grateful. > > This is for business applications, not games. > (but if a game toolkit fit

Re: GUI: I am also looking for a nudge into the best (GUI) direction.

2020-10-31 Thread Barry Scott
> On 31 Oct 2020, at 16:37, Igor Korot wrote: > > Hi, Barry, > > On Sat, Oct 31, 2020, 3:39 AM Barry Scott <mailto:ba...@barrys-emacs.org>> wrote: > > > > On 29 Oct 2020, at 15:54, flaskee via Python-list > <mailto:python-list@python.org&g

Re: Python 3

2020-11-07 Thread Barry Scott
> On 7 Nov 2020, at 06:51, Nick Li wrote: > > Does anyone know how to turn a decimal number into duodecimal or if there is > a function built-in for it? I see lots of interesting answer in here: https://stackoverflow.com/questions/2267362/how-to-convert-an-integer-to-a-string-in-any-base

Re: constant folding - why not more

2020-11-10 Thread Barry Scott
> On 10 Nov 2020, at 14:45, David Kolovratník wrote: > > Dear all, > > I would like to learn about constant folding optimisation in Python. It seems > to be implemented in Python/ast_opt.c. In order to get impression I used > python3 and dis module: > > $ python3 -V > Python 3.7.3 I do not h

Re: Changing strings in files

2020-11-10 Thread Barry Scott
> On 10 Nov 2020, at 19:30, Eli the Bearded <*@eli.users.panix.com> wrote: > > In comp.lang.python, Chris Angelico wrote: >> Eli the Bearded <*@eli.users.panix.com> wrote: >>> Read first N lines of a file. If all parse as valid UTF-8, consider it text. >>> That's probably the rough method file

Re: Python Error

2020-11-23 Thread Barry Scott
> On 23 Nov 2020, at 14:10, Mayukh Chakraborty via Python-list > wrote: > > Hi, > I had uninstalled and installed Python in Windows 10 but I am getting the > error below. Can you please help ? > C:\Users\mchak>pythonFatal Python error: init_sys_streams: can't initialize > sys standard strea

Re: pexpect with kadmin

2020-12-23 Thread Barry Scott
> On 23 Dec 2020, at 04:04, Joseph L. Casale wrote: > > Anyone ever used pexpect with tooling like kadmin and have > insight into how to manage interacting with it? > > After setting up debug logging, I was able to adjust the expect > usage to get the input and output logs to at least appear

Re: Installing python3 modules

2020-12-26 Thread Barry Scott
> On 26 Dec 2020, at 17:13, Rich Shepard wrote: > > Running Slackware-14.2/x86_64 here. I'm trying to learn if any installed > applications are still dependent on Python2 (version 2.7.17 installed) as > its EOL is this coming Thursday and I want to clean out all Python2 modules > and replace t

Re: Why do I have both /usr/lib/python3 and /usr/lib/python3.8?

2021-01-01 Thread Barry Scott
> On 29 Dec 2020, at 15:10, Chris Green wrote: > > Why are there both /usr/lib/python3 and /usr/lib/python3.8 on my > x[ubuntu] system? > > /usr/lib/python3 has just the dist-packages directory in it, > /usr/lib/python3.8 has lots of individual python files in it as well > as quite a number o

Does windows edit .py file shebangs?

2021-01-01 Thread Barry Scott
I found python scripts have had their shebang lines edited behind my back. The shebang line I'm seeing is: #!C:\Users\barry\AppData\Local\Microsoft\WindowsApps\python3.EXE Is this Microsoft being "helpful"? Does anyone know what I will have done to best with this "help"? What do I need to d

Re: Why do I have both /usr/lib/python3 and /usr/lib/python3.8?

2021-01-01 Thread Barry Scott
> On 1 Jan 2021, at 16:42, Chris Angelico wrote: > > On Sat, Jan 2, 2021 at 3:36 AM Barry Scott <mailto:ba...@barrys-emacs.org>> wrote: >> >> FYI this is what I have installed (lspy is a personal script): >> >> $ lspy >> /bin/python: 3.9.1

Re: Funny error message

2021-01-01 Thread Barry Scott
> On 1 Jan 2021, at 16:50, Bob van der Poel wrote: > > On Thu, Dec 31, 2020 at 9:25 PM DL Neil via Python-list < > python-list@python.org > wrote: > >> On 1/1/21 11:46 AM, Bob van der Poel wrote: >>> When I run python from the command line and generate an error

Re: Does windows edit .py file shebangs?

2021-01-03 Thread Barry Scott
> On 1 Jan 2021, at 17:03, Eryk Sun wrote: > > On 1/1/21, Barry Scott wrote: >> I found python scripts have had their shebang lines edited behind my back. >> >> The shebang line I'm seeing is: >> >>#!C:\Users\barry\AppData\Local\Micr

Re: Does windows edit .py file shebangs?

2021-01-03 Thread Barry Scott
> On 3 Jan 2021, at 15:13, Eryk Sun wrote: > > On 1/3/21, Barry Scott wrote: >> >> I've been doing some more investigation and found that the change happened >> at 01/01/2021 16:16. The shebang is pointing to a 0 length PYTHON3.EXE. > > The files in

Re: Jargons of Info Tech industry

2005-10-13 Thread Scott Ellsworth
schemes still get proposed, but their scope is much smaller. Scott -- Scott Ellsworth [EMAIL PROTECTED] Java and database consulting for the life sciences -- http://mail.python.org/mailman/listinfo/python-list

Re: best way to discover this process's current memory usage, cross-platform?

2005-11-17 Thread Scott Tsai
libgtop has python bindings and supports most modern unixes including linux, BSD, solaris, and AIX. You probably already has it installed on your linux box. ftp://ftp.gnome.org/pub/GNOME/sources/libgtop/ ftp://ftp.gnome.org/pub/GNOME/sources/gnome-python-extras/ -- http://mail.python.org/mailman

Re: ANN: Louie-1.0b2 - Signal dispatching mechanism

2005-12-06 Thread Matthew Scott
Thomas Heller wrote: > "Pat" <[EMAIL PROTECTED]> writes: > > Thomas Heller wrote: > >> What is the difference between PyDispatcher and Louie? > > > > Not too much at this point, but the general differences are listed on > > this page: > > > > http://louie.berlios.de/changes.html > > Ok, so I won't

Re: The Industry choice

2005-01-07 Thread Scott Robinson
hat your code also be (L)GPL'ed. Changes to >the core library must still be released under (L)GPL, but application >code which merely *uses* the library does not. (I've forgotten, now, >exactly how LGPL defines this distinction...) > >Jeff Shannon >Technician/Programmer >Credit International Scott Robinson -- http://mail.python.org/mailman/listinfo/python-list

Re: a new Perl/Python a day

2005-01-09 Thread Scott Bryce
Xah Lee wrote: frustrated constantly by its inanities and incompetences.) I don't see what this has to do with Perl. -- http://mail.python.org/mailman/listinfo/python-list

Re: a new Perl/Python a day

2005-01-09 Thread Scott Bryce
Bob Smith wrote: Scott Bryce wrote: Xah Lee wrote: frustrated constantly by its inanities and incompetences.) I don't see what this has to do with Perl. You're joking, right? No. Perl may have some interesting idiosyncrasies, especially for a programmer with little or no Unix experie

Re: python and gpl

2005-01-31 Thread Scott Robinson
owed by the author is going to get you into trouble. IANAL, but from what I can remember about earlier licensing issues, any code specific for a GPLed library (especially "import") will get you into to trouble. Having a non-free library with an identical API and issuing exec("

voicemail program written with python

2005-06-22 Thread Scott Sorell
Hello! I was wondering if anyone knows of any voicemail programs written in python or any tools I could use to make one? My non-profit needs voicemail and I wondered if there was anything that via a modem you could record messages etc. Any help'll be appreciated! SS -- http://mail.python.org/ma

Re: An absolute Newbie question

2005-07-10 Thread Scott Durkin
might want to refer to them: http://www.ibiblio.org/obp/thinkCSpy http://www.honors.montana.edu/~jjc/easytut/easytut/easytut.html Scott Durkin S c o t t J.D u r k

Re: SciPy and NetCDF

2005-07-27 Thread Scott Kilpatrick
So wherever pycdf does a: from Numeric import * what is the equivalent for SciPy? i.e. where is the full Numeric module in SciPy? -- http://mail.python.org/mailman/listinfo/python-list

Re: SciPy and NetCDF

2005-07-27 Thread Scott Kilpatrick
Oh ok, so if my sysadmin installs SciPy, then to get the netCDF support we need he just needs to then install pycdf? I really appreciate the help. Scott -- http://mail.python.org/mailman/listinfo/python-list

Re: SciPy and NetCDF

2005-08-04 Thread Scott Kilpatrick
Thanks for your help guys! That cleared some stuff up for me. Now I just have to wait for the sysadmin to get back from his vacation, bah. Scott -- http://mail.python.org/mailman/listinfo/python-list

Re: Python for Webscripting (like PHP)

2005-08-18 Thread Scott Kilpatrick
Alessandro Bottoni wrote: > (Python has even been told to be used by Yahoo! and Google, among others, > but nobody was able to demonstrate this, so far) If you use Yahoo! Maps, you will notice they use Python. Scott -- http://mail.python.org/mailman/listinfo/python-list

Anyone know how to do this in pyOpenSSL

2005-08-30 Thread Scott Chapman
using pyOpenSSL. M2Crypto won't compile on my box and I'm really lost in the pyOpenSSL library. Cordially, Scott -- http://mail.python.org/mailman/listinfo/python-list

Re: Big development in the GUI realm

2005-02-09 Thread Scott Robinson
ses "his" GPL, version-whatever. > >Anyway, your safe bet: > >Follow the copyright holder's wishes. > >That's fair. After all, it's free, so they're doing you a damn >big favor. > >C// Scott Robinson -- http://mail.python.org/mailman/listinfo/python-list

Re: exec function

2005-02-12 Thread scott m
Thanks, both of these examples will help me clean my code and improve it. Scott -- http://mail.python.org/mailman/listinfo/python-list

[Errno 18] Invalid cross-device link using os.rename

2005-02-14 Thread Scott Whitney
oldName=/backup/backups/data/WWW_httpd.conf_backups/20050204.httpd.conf newName=/backup_old/data/WWW_httpd.conf_backups/20050204.httpd.conf os.rename(oldName,newName) gives: OSError: [Errno 18] Invalid cross-device link mv from the shell works fine. This is Python 2.2.3 from RedHat 9.0. Any s

Re: Tuple index

2005-02-25 Thread Scott Robinson
e you understand how overloading works (I'm pretty sure overloading isn't covered in that book). In short, I think that this book is a good introduction to programming, and it will explain the basics of python, but it doesn't really begin to explain how to program in python. Scott Robinson -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython vs. pyQt

2005-03-16 Thread Scott Frankel
I have just started using wxPython. I selected it over pyQT for licensing reasons. I'm no gui app expert. But that said, I've found the toolkit approachable and the user community very helpful. Scott On Mar 16, 2005, at 9:11 PM, [EMAIL PROTECTED] wrote: I've narrowed

minidom get Element value

2005-03-17 Thread Scott F
ing search on the Element, but surely something exists within minidom to do this. Thanks. Scott -- http://mail.python.org/mailman/listinfo/python-list

knowing a file's own name

2004-11-29 Thread Scott Frankel
tpairs.py" theDict = {} execfile(theFile, theDict) # somehow add theFile to gdict, i.e.: # gdict['theFile'] = theFile Thanks in advance! Scott -- http://mail.python.org/mailman/listinfo/python-list

Re: knowing a file's own name

2004-11-29 Thread Scott Frankel
Thanks for the responses! I'd forgotten about using the sys module: import sys filename = sys.argv[0] Using "__file__" also works. Thanks Scott On Nov 29, 2004, at 9:37 AM, Scott Frankel wrote: I'm looking for a way to identify a filename remotely. Put differe

file descriptors & fdopen

2004-12-06 Thread Scott Frankel
= os.fdopen('foo.txt', 'w') Traceback (most recent call last): File "", line 1, in ? TypeError: an integer is required Thanks in advance! Scott -- http://mail.python.org/mailman/listinfo/python-list

Re: file descriptors & fdopen

2004-12-06 Thread Scott Frankel
foo = open('foo.txt', 'w') duh. Thanks - Scott On Dec 6, 2004, at 11:27 AM, Scott Frankel wrote: Why does os.fdopen('foo.txt', 'w') require an integer? Ultimately, I want to create a new file on disk. Funny, I can't seem to suss-out how to create a ne

PIL for Windows for Python 2.4

2004-12-07 Thread Scott F
", "ImConfig.h")).readlines(): IOError: [Errno 2] No such file or directory: 'libImaging\\ImConfig.h' Appears to be putting in two backslashes. Can anyone give me a clue to fix this? Scott -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL for Windows for Python 2.4

2004-12-08 Thread Scott F
.h.win so I changed setup.py to that and off we go. Scott -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL for Windows for Python 2.4

2004-12-09 Thread Scott F
"Fuzzyman" <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > So you've built PIL for windows, Python 2.4 ? > > Any chance of sharing it ? What compiler have you configured > distutils to use ? I'm very sorry I spoke too soon. After making the initial change, the setup.py took off on a r

Re: GPL and Python modules.

2004-12-16 Thread Scott Robinson
be careful in taking legal advise from Richard Stallman. The GPL merely states that*: 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: After that, all notion of "derived work" falls on the appropriate copyright law of the country in question. I suspect that following Stallman's verdicts won't cause you to violate the GPL, but I would hardly be willing to be certain about going to court over a GPLed module imported into an unfree python program. Scott Robinson * note that I believe that this is fair use. According to the GPL, you can only distribute it unmodified. -- http://mail.python.org/mailman/listinfo/python-list

Re: Socket being garbage collected too early

2004-12-17 Thread Scott Robinson
On 16 Dec 2004 20:38:29 -0500, David Bolen <[EMAIL PROTECTED]> wrote: >Scott Robinson <[EMAIL PROTECTED]> writes: > >> I have been having trouble with the garbage collector and sockets. > >Are you actually getting errors or is this just theoretical? > >>

Re: BASIC vs Python

2004-12-17 Thread Scott Robinson
On Fri, 17 Dec 2004 15:00:54 -0600, Mike Meyer <[EMAIL PROTECTED]> wrote: >"not [quite] more i squared" <[EMAIL PROTECTED]> writes: > >> Adam DePrince wrote: >> Given the hardware constraints of the early 1980s, which language do you think should have been used instead of BASIC? >>> Lisp >

Socket being garbage collected too early

2004-12-16 Thread Scott Robinson
rbage, not to declare something not garbage). Scott Robinson -- http://mail.python.org/mailman/listinfo/python-list

Re: BASIC vs Python

2004-12-18 Thread Scott Robinson
On Fri, 17 Dec 2004 20:41:11 -0600, Mike Meyer <[EMAIL PROTECTED]> wrote: >Scott Robinson <[EMAIL PROTECTED]> writes: > >> Forth seems better than basic, but is *weird* (I tried it for a >> while). I'm not sure going from Forth to C (or Python) would be much

Re: BASIC vs Python

2004-12-18 Thread Scott Robinson
On Fri, 17 Dec 2004 20:41:11 -0600, Mike Meyer <[EMAIL PROTECTED]> wrote: >Scott Robinson <[EMAIL PROTECTED]> writes: > >> Forth seems better than basic, but is *weird* (I tried it for a >> while). I'm not sure going from Forth to C (or Python) would be much

Re: BASIC vs Python

2004-12-21 Thread Scott Robinson
it after it crashed. Forth was still there. It certainly is useful for a hardware independent bios, but I was making the point it would be good for general purpose. I suspect that it would quickly run up against memory limitations and would go no faster than the machine driving the memory m

Re: What's the best GUI toolkit in Python,Tkinter,wxPython,QT,GTK?

2005-03-28 Thread Scott Robinson
honCard seems to like to stick to basics, but also includes a certain ability to get to the rest of wxPython (file/save/message dialogs are pretty easy to include). Note that my only other experience in building GUIs was with visual basic, which seems to have spoiled me. I tried wxPython and Tinker, but could only really get PythonCard to work. Scott Robinson -- http://mail.python.org/mailman/listinfo/python-list

Re: THE GREATEST NEWS EVER ! °º¤ø,¸¸,ø¤º°`°º¤ø°º¤ø,¸¸,ø¤º°`°º¤ø°º¤ø,¸¸,ø¤º°`°º¤ø°º¤ø,¸¸,ø¤º°`°º¤ø°º¤ø,¸¸,ø¤º°`°º¤ø°º¤ø,¸¸,ø¤º°`°º¤ø°º¤ø,¸¸,ø¤º°`°º¤ø°º¤ø,¸¸,ø¤º°`°º¤ø°º¤ø,¸¸,ø¤º°`°º¤ø°º¤ø,¸¸,ø¤º°`°º¤ø°º¤ø,¸¸,ø¤º°`°º¤ø

2005-04-08 Thread Scott M.
>From your site: "The reason some people don't know for sure if they are going to Heaven when they die is because they just don't know." Isn't that like saying the reason I'm not a rocket scientist is because I'm not a rocket scientist? <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTEC

unstatisfied symbols building Python 2.4.1 on HP-UX 10.20

2005-04-13 Thread Scott Leerssen
ng, but no solutions other than building with '--without-threads', which simply isn't an option for me. Any hints? Thanks, Scott -- http://mail.python.org/mailman/listinfo/python-list

Re: Python-list Digest, Vol 19, Issue 209

2005-04-14 Thread Scott Leerssen
On Apr 13, 2005, at 12:41 PM, [EMAIL PROTECTED] wrote: From: Scott Leerssen <[EMAIL PROTECTED]> Date: April 13, 2005 12:29:35 PM EDT To: python-list@python.org Subject: unstatisfied symbols building Python 2.4.1 on HP-UX 10.20 I'm trying to build Python 2.4.1 on HP-UX 10.20

Re: OOP

2005-04-28 Thread Scott Robinson
To add new things to the Alice object: Class Alice_object(Dilbert_object): def FistOfDeath(self): import os os._exit(0) The critical thing is that you can now let Dilbert manage your data. That's one of the main rea

Re: Movie (MPAA) ratings and Python?

2013-12-09 Thread Paul Scott
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/12/2013 08:40, Ben Finney wrote: > Dan Stromberg writes: > >> Is anyone using a module or database that gives Python 3.x access >> to MPAA ratings (EG G, PG, PG-13, etc.)? If you are already using IMDB you should have a look at http://imdbpy.s

if else python

2015-11-24 Thread Scott Montreuil
Hi, I have an if statement which seems to run both commands and I cannot figure out why. (just learning so I may be missing something obvious) Any ideas? while True: global latit,longt,jlatit,jlongt,mlongt,mlatit response = urllib.urlopen(url) data = json.loads(response.r

FW: Bill Sconce memorial, SAT 13 FEB, Boire Field, Nashua, NH

2016-01-23 Thread Ben Scott
:-( -- Forwarded message -- From: mad...@li.org Date: Sat, Jan 16, 2016 at 2:11 PM Subject: Bill Sconce obituary and memorial date (February 13th at Boire Field, Nashua, NH) To: "Linux, Greater" Cc: "Hall, Jon" Bill (William Joseph) Sconce, age 72, Lyndeborough, NH, died on Ja

Re: How to create an instance of a python class from C++

2014-03-11 Thread Barry Scott
On 5 Mar 2014, at 00:14, Bill wrote: > Hello: > > I can't figure out how to create an instance > of a python class from 'C++': > Why not use pycxx from http://sourceforge.net/projects/cxx/? This lib does all the heavy lifting for you for both python2 and python3. Has docs and examples. Barry

Error Testing

2013-10-19 Thread Scott Novinger
ou entered is: ' + radius) radius = int(radius) Thanks for your help. I'm using Python v3.2 for windows. Scott -- https://mail.python.org/mailman/listinfo/python-list

Re: Error Testing

2013-10-19 Thread Scott Novinger
On Saturday, October 19, 2013 8:37:01 AM UTC-4, Mark Lawrence wrote: > On 19/10/2013 13:23, Scott Novinger wrote: > > > Hello. > > > > > > I've written a program for my kids to calculate arc length. I want to > > include some error testing for val

Re: Script to extract text from PDF files

2015-11-06 Thread Scott Werner
On Tuesday, September 25, 2007 at 1:41:56 PM UTC-4, brad wrote: > I have a very crude Python script that extracts text from some (and I > emphasize some) PDF documents. On many PDF docs, I cannot extract text, > but this is because I'm doing something wrong. The PDF spec is large and > complex a

Java

2014-07-18 Thread Scott Dunning
greatly appreciated. Thanks, Scott -- https://mail.python.org/mailman/listinfo/python-list

Re: Java

2014-07-19 Thread Scott Dunning
On Jul 18, 2014, at 8:19 PM, Dan Stromberg wrote: > There's comp.lang.java if you have an NNTP feed. > > There are also the OpenJDK mailing lists. > > I had a Java problem once - I'd decided to recode one of my Python > scripts into Java, just to demonstrate to myself that I could do i

Dictionary sorting

2011-11-03 Thread Scott Ware
Python newbie here. So, when creating dictionaries, I am noticing that each time I print it out, that its not in the same order as when I typed it in. They seem to be getting sorted somehow. Is there a way to not sort them and leave the order as is? Thanks! -- http://mail.python.org/mailman/li

Re: Dictionary sorting

2011-11-03 Thread Scott Ware
Great! Thanks, John for the quick response! -- http://mail.python.org/mailman/listinfo/python-list

Reading long lines doesn't work in Python

2006-07-19 Thread Scott Simpson
I have a loop for line in f: ... and if the line is over about 10,000 characters it lops it off. How do I get around this? -- http://mail.python.org/mailman/listinfo/python-list

Re: Reading long lines doesn't work in Python

2006-07-19 Thread Scott Simpson
Sorry, found the bug somewhere else. You're right. Python is working OK. -- http://mail.python.org/mailman/listinfo/python-list

Curried class methods?

2006-08-16 Thread Scott Lamb
a = partial(a, self) for real Python functions and not for my partial object. With this __init__ magic, I guess I have something that works. I have to apply the partial twice, though - if I do everything in the __init__, my new functions won't exist by the time trial's introspection kicks in, so they'll never get called. My ugly hack has gotten even uglier. Does anyone know of a better way to do this? Thanks, Scott -- http://mail.python.org/mailman/listinfo/python-list

Re: Curried class methods?

2006-08-17 Thread Scott Lamb
Thanks, Antoon and Carl. Just tried your solutions - both work and are much cleaner than mine. -- http://mail.python.org/mailman/listinfo/python-list

<    1   2   3   4   5   6   7   8   9   10   >