qt ver. 3, linux, windows, and modal forms

2007-03-24 Thread Mike
it's not going to work (modal forms are essential). Thanks for your help, Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: qt ver. 3, linux, windows, and modal forms

2007-03-24 Thread Mike
Answers interspersed. David Boddie wrote: > On Saturday 24 March 2007 23:08, Mike wrote: > >> I'm having a problem with modal forms on windows. I've written a very >> short test program, with a main window and a form called from the main >> window. The form is

function with list argument defaulting to [] - what's going on here???

2007-04-14 Thread Mike
It seems like it should be reinitialized when not explicitly provided. Thanks in advance. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: function with list argument defaulting to [] - what's going on here???

2007-04-14 Thread Mike
Thanks, Troy. I never cease to be amazed at what can be discovered by reading the manual! Mike Troy Melhase wrote: > On 4/14/07, Mike <[EMAIL PROTECTED]> wrote: >> While trying to write a recursive function involving lists, I came >> across some (to me) odd behavio

takes no arguments (1 given)

2007-12-03 Thread Mike
In the following Display inherits from the Tkinter class Canvas: import sys from Tkinter import * class Display(Canvas) : ... def fill_canvas() : slop=self.slop set_sr(int(self.cget('width'))+slop, int(self.cget('height'))+slop) self.refresh() ... dis

Re: takes no arguments (1 given)

2007-12-03 Thread Mike
Oops. I just forgot self. -- http://mail.python.org/mailman/listinfo/python-list

ImportError: No module named HTMLParser

2006-05-02 Thread Mike
reside where? I'm a Python newbie so please bear with me. Thanks, Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: ImportError: No module named HTMLParser

2006-05-03 Thread Mike
Thanks - it turned out that the Python installation on our vendor's server is a cut-down one. I have had to place the HTMLParser source in a package off the a sys.path directory and import it from there - it now works. -- http://mail.python.org/mailman/listinfo/python-list

RegEx with multiple occurrences

2006-05-04 Thread Mike
Hi again. I'm trying to strip all script blocks from HTML, and am using the following re to do it: p = re.compile("(\*\)",re.IGNORECASE | re.DOTALL) m = p.search(data) The problem is that I'm getting everything from the 1st script's start tag to the last script's end tag in one group - so it see

Re: RegEx with multiple occurrences

2006-05-04 Thread Mike
Tim - you're a legend. Thanks. -- http://mail.python.org/mailman/listinfo/python-list

HTMLParseError: EOF in middle of construct error

2006-05-04 Thread Mike
e no control, I need to be able to recover from this situation. Is there a way to clean the document before parsing it, or have the parser ignore the issue and proceed (which would probably be ok in my case)? Mike -- http://mail.python.org/mailman/listinfo/python-list

Strange varargs issue

2008-01-04 Thread Mike
File "broken.py", line 13, in caller __f.func(a) TypeError: func() takes exactly 1 argument (2 given) How can this possibly be? The "caller" print statement obviously shows "a" is singular. Thanks in advance for any and all insight... Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Strange varargs issue

2008-01-04 Thread Mike
You know, every once in a while, self really bites me. (I program in Java too much) Thanks for everyone who replied quickly. Mike wrote: >> [ a bunch of crap because I forgot self, nevermind sorry ] -- http://mail.python.org/mailman/listinfo/python-list

How to refer to the current module?

2008-01-07 Thread Mike
#x27;current module' and give getattr(...) an object that will (at run time) have the appropriate bindings? Thanks in advance for all advice! Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: How to refer to the current module?

2008-01-07 Thread Mike
Sweet! Thanks! Mike On Jan 7, 8:30 am, "Guilherme Polo" <[EMAIL PROTECTED]> wrote: > > globals() =) > -- http://mail.python.org/mailman/listinfo/python-list

Re: mysqldb SELECT COUNT reurns 1

2008-01-09 Thread mike
On Dec 27 2007, 5:25 pm, Ian Clark <[EMAIL PROTECTED]> wrote: > On 2007-12-27, SMALLp <[EMAIL PROTECTED]> wrote: > > > connectionString = {"host":"localhost", "user":"root", > > "passwd":"pofuck", "db":"fileshare"} > > dataTable = "files" > > conn = mysql.connect(host=connectionString["host"], > >

Re: Help with Windows build of Yapgvb Python extension

2008-01-11 Thread Mike
ng bdist or are you going for the msi? I usually attempt to create these things doing python setup.py bdist_wininst ...for executable installers. If you can provide a valid setup.py, I can probably create the exe/ msi. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Using eggs

2008-01-11 Thread Mike
t I get > the distinct impression that there's a better (correct?) way that I'm > not aware of. > > Sorry for such a vague posting. > > -Oli I know when I've asked questions about eggs and setup-tools, I was referred to the Distutils user group. I would cross-post there for double the fun! http://mail.python.org/mailman/listinfo/distutils-sig Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: ISO books of official Python docs

2008-01-11 Thread Mike
ince the book was released in 2001 and written with 2.0 in mind? Are you planning to update it at some point? It would be nice to have a complete library reference with a good index at times. Thank you, Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Graphics Module

2008-01-11 Thread Mike
rg/libs/graph/doc/python.html http://www.python.org/doc/essays/graphs.html Some of these may have dependencies, such as numpy or scipy. Be sure to read the docs for full details either way. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie wants to get visual

2008-01-11 Thread Mike
omething that would work in a > browser window, that would be wonderful. wxPython can most likely do what you like and they have a very helpful user's group. But if you're leaning more towards using Python on the web, you'll probably want to take a look at the usual suspects: Djan

Re: Great Python books for the beginner

2008-01-12 Thread Mike
ot;If you ever teach a yodeling class, probably the hardest thing | > `\ is to keep the students from just trying to yodel right off. | > _o__) You see, we build to that." -- Jack Handey | > Ben Finney I would recommend Lutz's other book, the wonderfu

Re: wxpython-wx.CheckListBox: changing item bacgkground color

2008-01-14 Thread Mike
python's user group, which you can find at the wxPython website: www.wxpython.org Mike -- http://mail.python.org/mailman/listinfo/python-list

Using re module better

2008-03-05 Thread Mike
ch.group(2) ... (compare to Perl:) if($foo =~ /(\w+)\s*(\w+)/) { $field1 = $1; $field2 = $2; ... } Problem is, my python is invalid above. What's the pythonic way to do this? Thanks in advance O Python Charmers Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: How do I reconnect a disconnected socket?

2008-03-28 Thread Mike
On Mar 28, 10:01 am, Jason Kristoff wrote: > I'm trying to make something that once it is disconnected will > automatically try to reconnect. I'll add some more features in later so > it doesn't hammer the server but right now I just want to keep it simple > and get that part working. The proble

Re: what's the point of rpython?

2009-01-28 Thread Mike
lanced against the large majority where threading is simply inappropriate anyway. That the latter might help compulsive threaders kick their habit (or at least head for more convoluted horizons) might be considered a virtue. Mike -- http://mail.python.org/mailman/listinfo/python-list

handy way to spot-profile a python program (watch+pstat+tac)

2009-02-02 Thread Mike
ve off the tac, though that makes it a bit jumpier. (pstack uses the ptrace interface, which may annoy the parents of this process if they're paying attention (which is not usually the case).) Have fun, Mike -- http://mail.python.org/mailman/listinfo/python-list

problems opening files

2009-02-13 Thread mike
nt_sources_swat.py", line 155, in print pathincbp+' not found' KeyboardInterrupt IDLE commands--- >>> cbpin=open(pathincbp,'r') >>> cbpin I am running in windows xp professional 2002 service pack 3 on a Xeon dell Thanks, Mike -- http://mail.python.org/mailman/listinfo/python-list

HTML Generation

2009-04-03 Thread Mike
Hello all, I'm writing a web app and wanted to do some html generation (I really do not like to maintain or write html). I'm thinking of writing a dsl based on the following: def html(): return def a(): return def body(): return (html, ...(head, (style, "id", {"font-color":"black"}

pyinstaller and logging

2009-05-06 Thread Mike
Pyinstaller seems to have a problem with logging ... I installed pyinstaller 1.3 - using it together with Python 2.6. I used pyinstaller for a small project, the created .exe worked fine. After some additional changes to my project I got strange run time errors when running the .exe (but no probl

Re: pyinstaller and logging

2009-05-06 Thread Mike
On 6 Mai, 18:14, Vinay Sajip wrote: > On May 6, 2:41 pm, Mike wrote: > > > > > Pyinstaller seems to have a problem withlogging... > > >  I installed pyinstaller 1.3 - using it together with Python 2.6. I > > used pyinstaller for a small project, the created

unittest - what is the best way to reuse test data?

2009-06-03 Thread Mike
I'm new to using the testing framework so I'm not sure on best practises and such. Is introducing persistance by using sql lite the best way? I should be able to just reuse data within the object. Or is my design wrong? Any tips or suggestions would be appreciated! - Mike -- ht

Re: unittest - what is the best way to reuse test data?

2009-06-03 Thread Mike
On Thu, Jun 4, 2009 at 4:40 AM, Terry Reedy wrote: > Mike wrote: > >> Hello, >> >> I'm writing an application that needs to fetch a json file from a >> webserver. I'm writing the tests and have a question: >> >> if I have the following

Re: unittest - what is the best way to reuse test data?

2009-06-03 Thread Mike
On Thu, Jun 4, 2009 at 11:22 AM, Terry Reedy wrote: > Mike wrote: > > >> >> On Thu, Jun 4, 2009 at 4:40 AM, Terry Reedy > tjre...@udel.edu>> wrote: >> >>Mike wrote: >> >>Hello, >> >>I'm writing an appl

feedparser

2008-05-13 Thread Mike
Hello, I'm trying to use the feedparser module (http://www.feedparser.org/). Is it possible to use this without running the setup program? I don't see why not, seems like I'm missing something obvious. My directory structure is: myprogram.py /feedparser /feedparser.py I know I can

Re: feedparser

2008-05-13 Thread Mike
On Tue, May 13, 2008 at 11:16 PM, <[EMAIL PROTECTED]> wrote: > On May 13, 6:06 am, "Gabriel Genellina" <[EMAIL PROTECTED]> > wrote: > > En Tue, 13 May 2008 07:30:44 -0300, Mike <[EMAIL PROTECTED]> escribió: > > > > > > &

Python threads and memory usage

2008-05-29 Thread Mike
Hi, I'm writing client-server application in Python. It's monitoring system, where server listen and waits for TCP connections, and every connection takes own thread. Every thread puts data from clients to Queue and exits. Then there is one DB loader thread, which loads all data from Queue to MySQ

Re: Python threads and memory usage

2008-05-30 Thread Mike
On May 30, 9:16 am, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Thu, 29 May 2008 12:01:30 -0700 (PDT), Mike <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > > I observed, that every thread reserved some memory, and after exit > > threa

Re: Python threads and memory usage

2008-05-30 Thread Mike
On May 30, 9:42 am, Mike <[EMAIL PROTECTED]> wrote: > On May 30, 9:16 am, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > > > > > On Thu, 29 May 2008 12:01:30 -0700 (PDT), Mike <[EMAIL PROTECTED]> > > declaimed the following in comp.lang.python: > >

Re: TWITTER API and urllib2

2008-06-10 Thread Mike
On Tue, Jun 10, 2008 at 10:42 PM, Mike <[EMAIL PROTECTED]> wrote: > Hello, > > I've spent the last couple of nights hacking away at a Python wrapper for > the Twitter API that I can use for various things. > > I'm having trouble with one of the methods: user_time

TWITTER API and urllib2

2008-06-10 Thread Mike
Hello, I've spent the last couple of nights hacking away at a Python wrapper for the Twitter API that I can use for various things. I'm having trouble with one of the methods: user_timeline. ( http://groups.google.com/group/twitter-development-talk/web/api-documentation#HelpMethods ). This is th

Re: TWITTER API and urllib2

2008-06-10 Thread Mike
On Tue, Jun 10, 2008 at 11:03 PM, Mike <[EMAIL PROTECTED]> wrote: > > > On Tue, Jun 10, 2008 at 10:42 PM, Mike <[EMAIL PROTECTED]> wrote: > >> Hello, >> >> I've spent the last couple of nights hacking away at a Python wrapper for >> the Twi

Re: Dynamic HTML from Python Script

2008-06-10 Thread Mike
Web.py also springs to mind, I'd say it's worth looking at. Well, in that case you could simply append the new output to a static file > every 10 seconds, or whenever there is new output. That way, you just need > to refresh the static file in your browser to see updates... Given what I > underst

Re: Dynamic HTML from Python Script

2008-06-10 Thread Mike
On Wed, Jun 11, 2008 at 2:16 PM, asdf <[EMAIL PROTECTED]> wrote: > On Wed, 11 Jun 2008 11:20:48 +1000, Aidan wrote: > > > asdf wrote: > >>> Well, there's a few ways you could approach it. > >>> > >>> You could create a cgi program from your script - this is probably the > >>> solution you're looki

Re: How do web templates separate content and logic?

2008-06-30 Thread Mike
On Jun 30, 10:57 am, Bruno Desthuilliers wrote: > > Some (if not most) templating systems use their own mini-language to > handle presentation logic. > IMHO this is the funniest (worst) part of all this 'templating' buss :) It reminds me the good old slogan: "Have you invented your own GUI libra

Re: How do web templates separate content and logic?

2008-06-30 Thread Mike
On Jun 30, 1:41 pm, George Sakkis <[EMAIL PROTECTED]> wrote: > > Because _typically_ a web template consists of mostly HTML, with > relatively little presentational logic and (ideally) no business > logic. Now, if all one wants to do is a quick and dirty way to, say, > view a log file in the browse

Re: How do web templates separate content and logic?

2008-06-30 Thread Mike
On Jun 30, 1:49 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > Then what is so *good* about it, why embedding HTML into Python is not > > good? > > Who said embedding HTML in Python was bad ? Did you _carefully_ read > John's question ?-) > I should have say "why embedding HTML into Pyth

Re: How do web templates separate content and logic?

2008-07-03 Thread Mike
On Jul 2, 11:09 am, George Sakkis <[EMAIL PROTECTED]> wrote: > On Jun 30, 3:16 pm, Mike <[EMAIL PROTECTED]> wrote: > > > On Jun 30, 1:41 pm, George Sakkis <[EMAIL PROTECTED]> wrote: > > > > Because _typically_ a web template consists of mostly HTML, w

Re: Python Written in C?

2008-07-20 Thread Mike
anguage? C is the universal assembler. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: maintain 2 versions of python on my computer

2010-01-16 Thread Mike
re I first saw this, and don't think I have ever seen it since. It seems like a bit of a hack, but I use it from time to time when I cannot rely on Windows file associations. Perl has a much cleaner way to accomplish the same thing for Windows (see the pl2bat.bat script that ships with Perl Windows distributions). Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: maintain 2 versions of python on my computer

2010-01-16 Thread Mike
be as close to a "Windows shebang line" as you can get. In actual use, if/when I want a pause, I typically make a call raw_input() or msvcrt.getch() > EOF is a special label which may be used to exist a CMD file without having > to explicitly define it. Did not know that; somethi

Stagnant Frame Data?

2009-11-15 Thread Mike
of frame data? Why does the single line "sys._getframe(1).f_locals" fix the behavior? Thanks, Mike import sys class Snapshot(object): def __init__(self, caller_globals, caller_locals): self.signals = [] self.caller_globals = caller_globals self

Re: Stagnant Frame Data?

2009-11-18 Thread Mike
On Nov 15, 1:36 pm, Terry Reedy wrote: > Peter Otten wrote: > > Mike wrote: > > >> I'll apologize first for this somewhat lengthy example. It does > >> however recreate the problem I've run into. This is stripped-down code > >> from a much more mea

Re: Stagnant Frame Data?

2009-11-18 Thread Mike
On Nov 15, 1:36 pm, Terry Reedy wrote: > Peter Otten wrote: > > Mike wrote: > > >> I'll apologize first for this somewhat lengthy example. It does > >> however recreate the problem I've run into. This is stripped-down code > >> from a much more mea

Re: Ideas for a module to process command line arguments

2011-01-11 Thread Mike
On Jan 11, 11:26 am, Michele Simionato wrote: > > In that case easy_install/pip/whatever will install the dependency > automatically (who is installing > dependencies by hand nowadays?). More seriously I thought being based I do. Is this bad? :} -- http://mail.python.org/mailman/listinfo/python-

GAEUnit testing

2009-06-17 Thread Mike
Hello I'm using GAEUnit to develop an app for google appengine and am having a little trouble. I'm trying to make a test as follows: I have a file (say model.py) which contains Model.db model classes and some methods for accessing them. The methods are not part of the class. In my test I can cal

Re: New implementation of re module

2009-07-29 Thread Mike
, perhaps over-complex, to address this problem: http://mail.python.org/pipermail/python-dev/2004-August/047238.html Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: New implementation of re module

2009-07-29 Thread Mike
On Jul 29, 10:45 am, MRAB wrote: > Mike wrote: > > - findall/finditer doesn't find overlapping matches.  Sometimes you > > really *do* want to know all possible matches, even if they overlap. > > Perhaps by adding "overlapped=True"? Something like that woul

Re: How to install setuptools...egg?

2009-08-30 Thread Mike
and ez_setup.py run the command python ez_setup.py 5. Add C:\Python26\Scripts to your path to run easy_install Mike -- http://mail.python.org/mailman/listinfo/python-list

entry widget won't validate

2009-09-21 Thread Mike
I'm trying to arrange for an Entry widget to check whether its data is all digits and whether the number represented is small enough. The validate function seem to be called once at startup and not afterwards: import sys, Tkinter, tkFileDialog, tkMessageBox tk=Tkinter tkfd=tkFileDialog ... class

Re: entry widget won't validate

2009-09-21 Thread Mike
On Sep 21, 12:47 pm, Peter Otten <__pete...@web.de> wrote: > Mike wrote: > > I'm trying to arrange for an Entry widget to check whether its data > > is all digits and whether the number represented is small enough. > > The validate function seem to be called once a

Re: socket send O(N**2) complexity

2009-09-21 Thread Mike
On Sep 21, 2:03 pm, Zac Burns wrote: > The mysocket.mysend method given > athttp://docs.python.org/howto/sockets.htmlhas an (unwitting?) O(N**2) > complexity for long msg due to the string slicing. > > I've been looking for a way to optimize this, but aside from a pure > python 'string slice view

Re: entry widget won't validate

2009-09-22 Thread Mike
On Sep 22, 4:29 am, Peter Otten <__pete...@web.de> wrote: > Mike wrote: > > On Sep 21, 12:47 pm, Peter Otten <__pete...@web.de> wrote: > >> Mike wrote: > >> > I'm trying to arrange for an Entry widget to check whether its data > >> > is al

Windows vs. file.read

2010-09-01 Thread Mike
I have a ppm file that python 2.5 on Windows XP cannot read completely. Python on linux can read the file with no problem Python on Windows can read similar files. I've placed test code and data here: http://www.cs.ndsu.nodak.edu/~hennebry/ppm_test.zip Within the directory ppm_test, type python ppm

Re: Fibonacci: How to think recursively

2010-09-01 Thread Mike
The most straightforward method would be to apply the formula directly. Loop on j computing Fj along the way if n<=1 : return n Fold=0 Fnew=1 for j in range(2,n) : Fold, Fnew = Fnew, Fold+Fnew return Fnew Even simpler: return round(((1+sqrt(5.))/2)**n/sqrt(5.)) -- http://mail.python.org/mail

Re: Windows vs. file.read

2010-09-01 Thread Mike
On Sep 1, 12:31 pm, MRAB wrote: > You should open the files in binary mode, not text mode, ie file(path, > "rb"). Text mode is the default. Not a problem on *nix because the line > ending is newline. Thanks. That was it. -- http://mail.python.org/mailman/listinfo/python-list

Pywart: The problem with "Rick Johnson"

2013-06-12 Thread Mike Hansen
Is "Rick Johnson" the alter ego of Xah Lee, or is he the result of a cross breeding experiement with a troll by Saruman at Isengard?-- http://mail.python.org/mailman/listinfo/python-list

===== Soft Skills Training In Chennai ======

2012-09-05 Thread mike pittenson
Ayus Technologies offers Dot net training in chennai,java/j2ee training in chennai,SEO training in chennai,web designing training in chennai,soft skills training in chennai,Software Testing training in chennai. http://www.ayustechnologies.com/ =

I need help/information on Freeze.py

2011-08-10 Thread mike turner
Hello all, How do you use freeze.py to freeze an application? I have an application built with pylons and I want to make it into a portable executable, is that possible? Thanks for the help. - mikey -- http://mail.python.org/mailman/listinfo/python-list

Decorator Syntax

2011-03-21 Thread Mike Patterson
In my Python class the other day, the professor was going over decorators and he briefly mentioned that there had been this huge debate about the syntax and using the @ sign to signify decorators. I read about the alternative forms proposed here (http:// www.python.org/dev/peps/pep-0318/#syntax-al

Re: English Idiom in Unix: Directory Recursively

2011-05-18 Thread Mike Barnes
ch is, put simply, to delete the directory. I find all this somewhat arcane. Questioning the precise suitability of the word "recursive" seems like a quibble. -- Mike Barnes Cheshire, England -- http://mail.python.org/mailman/listinfo/python-list

Re: English Idiom in Unix: Directory Recursively

2011-05-18 Thread Mike Barnes
ies, or I haven't given the matter any thought, so if there are any such subdirectories, tell me and don't do anything. Recursive means I want everything deleted regardless. BICBW. -- Mike Barnes Cheshire, England -- http://mail.python.org/mailman/listinfo/python-list

Re: [Tutor] request.post in If condition

2017-10-30 Thread Mike Miller
What do you mean when you say it is not hitting? Is there a specific error, or are you saying it simply isn't posting to your site? Mike On Mon, Oct 30, 2017, 8:21 AM sourav voip wrote: > Hi All, > > I'm trying to hit request.post with condition using if-else as below... >

Where are the moderators?

2018-01-18 Thread Mike Driscoll
Hi, What happened to the moderators? I have always liked this forum, but there's so much spam now. Is there a way to become a moderator so this can be cleaned up? Thanks, Mike -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Question re Executing a Script

2022-04-30 Thread Mike Dewhirst
On 1/05/2022 8:37 am, Brent Hunter wrote: Hello, I just purchased a new Windows 11 computer and installed Python 3.10.4 (64 bit). I can't figure out from your documentation, how do I: 1. Run a python script that is located in the same directory ( C:\Users\Brent\AppData\Roaming\Microsoft

Windows registry PermissionError

2022-05-12 Thread Mike Dewhirst
I'm trying to copy a value from HKLM to HKCU for application rollout via bulk installation by an administrator but individual Windows user setup. Getting this ... Traceback (most recent call last):   File "D:\Users\mike\envs\chemdata\registry\wreg\wreg.py&quo

[Solved] Re: Windows registry PermissionError

2022-05-12 Thread Mike Dewhirst
Eryk Many thanks. It is working perfectly now. See below for the reworked code. Cheers Mike On 13/05/2022 1:42 pm, Eryk Sun wrote: On 5/12/22, Mike Dewhirst wrote: access=wr.KEY_ALL_ACCESS + wr.KEY_WRITE, import winreg as wr class Registry: def __init__(self, computer=None

Re: [Solved] Re: Windows registry PermissionError

2022-05-12 Thread Mike Dewhirst
that. Thanks again Eryk Cheers mike HKEY_PERFORMANCE_DATA WinAPI RegConnectRegistryW() only matters when the target computer is a different machine, in which case an RPC proxy handle is returned. -- Signed email is an absolute defence against phishing. This email has been signed wi

Re: [Solved] Re: Windows registry PermissionError

2022-05-13 Thread Mike Dewhirst
On 13/05/2022 4:37 pm, Eryk Sun wrote: On 5/13/22, Mike Dewhirst wrote: On 13/05/2022 4:14 pm, Eryk Sun wrote: Since self.connect() is always called, you should document that the initial hkey parameter has to be one of the following predefined key handles: HKEY_LOCAL_MACHINE

RE: Simple message passing system and thread safe message queue

2022-07-18 Thread Mike Dewhirst
MortenI didn't click on your link because it is a security bad practice to click on any unsolicited link.I'm not accusing you or anyone else of nefarious intent. It could be argued that being a member of this list means links posted here are indeed solicited links.You asked for comment. Mine is

Re: Pip upgrade causing issues in 3.10

2022-07-19 Thread Mike Dewhirst
On 20/07/2022 4:43 am, David Raymond wrote: C:\Program Files\Python310\Scripts>..\python.exe -m pip install --upgrade pip ERROR: Could not install packages due to an OSError: [WinError 32] The process cannot access the file because it is being used by another process: 'c:\\program files\\python

Re: Persistent Error: Python was not found

2022-08-14 Thread Mike Dewhirst
Jonathan This is what I would do ... 1.    Download Python from python.org not Microsoft 2.    Install as an expert or custom install to C:\Python310 rather than C:\Program files 3.    Ignore this point - I was going to mention VirtualEnv which comes later for software development and there

Re: python developer

2022-09-29 Thread Mike Dewhirst
the drudgery and leaves expert judgement to the human user(s). Scrum is the easiest way down that road. You need a customer with a problem. You might be your own first customer. Cheers Mike Thanks in advance ! Walid -- Signed email is an absolute defence against phishing. This email has

Re: python developer

2022-09-30 Thread Mike Dewhirst
On 30/09/2022 3:31 pm, Jan van den Broek wrote: 2022-09-29, Mike Dewhirst schrieb: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) Why? Good question. Further to Peter's explanation, email is the primary conduit for hackers. At this point in time human education and traini

Re: python developer

2022-10-01 Thread Mike Dewhirst
-10-01, Mike Dewhirst schrieb:>So the answer to your question is signed email is easy and if it becomes >popular it has potential to defeat hackers.Yes, but I'm reading this as a usenet-message (comp.lang.python), not as a mail.-- Jan v/d broekbalgl...@dds.nl-- https://mail.python.

Re: Update from 3.9 to 3.10.8 and uninstall 3.9

2022-10-23 Thread Mike Dewhirst
environments. A venv will let you keep your "system" Python(s) clean and unencumbered while being able to experiment with all sorts of additional libraries, packages etc in multiple separate sub-environments. Cheers Mike -- Signed email is an absolute defence against phishing. This emai

Re: How to manage python shebang on mixed systems?

2022-11-06 Thread Mike Dewhirst
On 7/11/2022 6:51 am, jak wrote: Il 06/11/2022 11:03, Chris Green ha scritto: I have a number of python scripts that I run on a mix of systems.  I have updated them all to run on python 3 but many will also run quite happily with python 2.  They all have a #!/usr/bin/python3 shebang. This works

RE: Python coding

2022-11-27 Thread Mike Dewhirst
Create a folder anywhere convenient and copy it in there.Then - if python has been downloaded from the Python website and installed "normally" you can open a command prompt in that folder and type C:\\$>python logistics.py"normally" means Python is in your path environment variable.--(Unsigned

Python script not letting go of files

2022-11-28 Thread Mike Dewhirst
    ThreadLimit 64     ThreadsPerChild 50     AsyncRequestWorkerFactor    2     MaxRequestWorkers   800     MaxConnectionsPerChild  0 Server Version: Apache/2.4.52 (Ubuntu 2022.04) OpenSSL/3.0.2 mod_wsgi/4.9.0 Python/3.10 Se

Re: Python script not letting go of files

2022-11-29 Thread Mike Dewhirst
Stefan Thank you. I should have said this has been working fine for years and years until Ubuntu 2022.04 on a new droplet running Apache/2.4.52 I will refactor it one day - especially if the script is implicated. But I think I have to learn how to use lsof first! Cheers Mike On 30/11

RE: Subtracting dates to get hours and minutes

2022-12-12 Thread Mike Dewhirst
I have seen vast conversations on this topic but if everything is in the same time-zone and daylight saving switchovers are not involved it is relatively straightforward.Check the timedelta docs. Or convert datetimes to ordinals and subtract then convert the result to whatever units please you.M

OT: ~gohlke [Was: Installation hell]

2022-12-19 Thread Mike Dewhirst
rm. The PSF might recognise the effort and be able to promote such a high interest from Windows Python devs into funding for Chris Gohlke. Cheers Mike -- Signed email is an absolute defence against phishing. This email has been signed with my private key. If you import my public key you can a

Re: Winodws10 Command Prompt unresponsive to .py commands

2023-03-07 Thread Mike Dewhirst
On 8/03/2023 6:31 am, Thomas Gregg wrote: Hi, I got python 11 to work with the esptool a few days ago. However, I must have something wrong, because now, when I enter any command with .py, Windows Command Prompt just returns without doing anything. Example C:\Users\gregg>esptool.py version C

RE: found older version of python in my command prompt

2023-03-28 Thread Mike Dewhirst
The quickest and dirtiest fix is to edit your %path% variable in windows. Remove all python versions you don't want from the path and Windows won't find them.You can then just delete the unwanted python directories.That doesn't remove any old dll files in secret locations but this is a dirty fi

Christoph Gohlke and compiled packages

2023-04-10 Thread Mike Dewhirst
It seems Christoph Gohlke has been cut adrift and his extremely valuable web page ... https://www.lfd.uci.edu/~gohlke/pythonlibs/ ... turned into an archive getting staler by the day. What does the Python Software Foundation and the community think about this? Cheers Mike -- https

Re: Christoph Gohlke and compiled packages

2023-04-11 Thread Mike Dewhirst
On 11/04/2023 5:21 pm, Chris Angelico wrote: On Tue, 11 Apr 2023 at 14:20, Mike Dewhirst wrote: It seems Christoph Gohlke has been cut adrift and his extremely valuable web page ... https://www.lfd.uci.edu/~gohlke/pythonlibs/ ... turned into an archive getting staler by the day. What does

Re: Christoph Gohlke and compiled packages

2023-04-12 Thread Mike Dewhirst
hanks to all who showed me the way. Cheers Mike On 11/04/2023 11:39 pm, Thomas Passin wrote: On 4/11/2023 6:58 AM, Chris Angelico wrote: On Tue, 11 Apr 2023 at 20:15, Jim Schwartz wrote: What’s the problem now?  Is it with python on windows?  I use python on windows so I’d like to know. T

Re: Christoph Gohlke and compiled packages

2023-04-12 Thread Mike Dewhirst
Sadly Windows is still in the dock. The jury is still out. Turns out the "without a hitch" was based on cached wheels. I'm going to start from scratch with new projects using Pythons 3.8, 3.10 and 3.11 and report back. Cheers Mike On 12/04/2023 6:13 pm, Mike Dewhirst wrote:

Re: Christoph Gohlke and compiled packages

2023-04-12 Thread Mike Dewhirst
On 12/04/2023 10:59 pm, Mike Dewhirst wrote: Sadly Windows is still in the dock. The jury is still out. Turns out the "without a hitch" was based on cached wheels. I'm going to start from scratch with new projects using Pythons 3.8, 3.10 and 3.11 and report back. Repor

Re: Christoph Gohlke and compiled packages

2023-04-12 Thread Mike Dewhirst
On 13/04/2023 12:00 pm, Eryk Sun wrote: On 4/12/23, Mike Dewhirst wrote: Collecting psycopg2==2.9.3 x86 and x64 wheels are available for Python 3.11 if you can use Psycopg 2 version 2.9.5 or 2.9.6 instead of 2.9.3: https://pypi.org/project/psycopg2/2.9.5/#files https://pypi.org/project

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