[issue42328] ttk style.map function incorrectly handles the default state for element options.

2020-11-14 Thread Pat Thoyts
Pat Thoyts added the comment: So if you look at the clamTheme.tcl file you can see the definition of the map for the TNotebook.Tab style looks like the following: ttk::style map TNotebook.Tab \ -padding [list selected {6 4 6 2}] \ -background [list selected $colors(-frame

[issue32426] Tkinter.ttk Widget does not define wich option exists to set the cursor

2020-11-12 Thread Pat Thoyts
Pat Thoyts added the comment: The Tk documentation for the acceptable cursor names is the cursors manual page. https://www.tcl.tk/man/tcl/TkCmd/cursors.htm Tk does not provide a way to get all these names in script. This should probably be closed. -- nosy: +patthoyts

[issue42328] ttk style.map function incorrectly handles the default state for element options.

2020-11-11 Thread Pat Thoyts
Change by Pat Thoyts : -- keywords: +patch nosy: +Pat Thoyts nosy_count: 1.0 -> 2.0 pull_requests: +22138 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23241 ___ Python tracker <https://bugs.python.org/i

[issue42328] ttk style.map function incorrectly handles the default state for element options.

2020-11-11 Thread Pat Thoyts
New submission from Pat Thoyts : When cloning a ttk style it is useful to copy an existing style and make changes. We can copy the configuration and layout using: style.layout('Custom.TEntry', **style.layout('TEntry')) style.configure('Custom.TEntry', **style.configure('TEntry

[issue38287] tempfile.TemporaryDirectory() should behave the same as a context manager as when used directly

2019-09-26 Thread Pat Gunn
New submission from Pat Gunn : Right now, when tempfile.TemporaryDirectory() is used as a context manager, the context variable is stringy, usable as a string containing the directory name it made. When used directly, it returns an object that does not coerce to a nice string, instead

[issue31616] Windows installer: Python binaries are user-writable

2017-09-28 Thread Pat K
Pat K <pkugri...@gmail.com> added the comment: Thank you for the explanation. I understand this is intentional. However user without such knowledge of inheritable permissions might want to default the installation directory to the old one (C:\PythonXX) and could easily run into this

[issue31616] Windows installer: Python binaries are user-writable

2017-09-28 Thread Pat K
New submission from Pat K <pkugri...@gmail.com>: This seems to affect different versions of Python Windows installer. The problem is when Python is installed for all users (requires elevation) its binaries and DLLs are shipped with writable permission for "Authenticated Us

[issue27309] Visual Styles support to tk/tkinter file and message dialogs

2016-06-20 Thread Pat Thoyts
Pat Thoyts added the comment: As explained in the SO answer, in Tk on Windows the messagebox, file open dialog, save as dialog and in 8.6 up the font dialog are all system standard dialogs. Tk gets Windows to show the common dialog or messagebox and just wraps the Win32 API calls. As a result

[issue24767] can concurrent.futures len(Executor) return the number of tasks?

2015-07-31 Thread Pat Riehecky
New submission from Pat Riehecky: As a feature request, can the Executor respond to a len() request by showing the number of non-finished/non-canceled items in the pool? I would like a clean pythonic way of seeing how many items remain to be executed and this seemed the way to go. psudo-code

[issue24767] can concurrent.futures len(Executor) return the number of tasks?

2015-07-31 Thread Pat Riehecky
Pat Riehecky added the comment: works for me -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24767 ___ ___ Python-bugs-list mailing list

[issue21825] Embedding-Python example code from documentation crashes

2014-06-28 Thread Pat Le Cat
Pat Le Cat added the comment: When working with the separately installed version of Python 3.4.1, which means by not using Py_SetPath() the embedding examples from your webpage work okay. So what's wrong with that function and why that allegedly missing module encoding that I cannot find

[issue21825] Embedding-Python example code from documentation crashes

2014-06-25 Thread Pat Le Cat
Pat Le Cat added the comment: I zipped the whole Lib directory into pyLib34.zip (into same dir as EXE) and copied all the .pyd files from the DLLs dir into the same dir as the EXE. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue21799] Py_SetPath() gives compile error: undefined reference to '__imp_Py_SetPath'

2014-06-22 Thread Pat Le Cat
Pat Le Cat added the comment: Okay I tried the exact same example code from your website on the MSVC-2013 (same OS) suite and got new errors with it and a strange warning. Warning: 1c:\python34\include\pymath.h(22): warning C4273: 'round' : inconsistent dll linkage 1C:\Program Files (x86

[issue21799] Py_SetPath() gives compile error: undefined reference to '__imp_Py_SetPath'

2014-06-22 Thread Pat Le Cat
Pat Le Cat added the comment: **Missing Python34.dll in installation** Okay it's getting more interesting. I downloaded Python 3.4 windows x64 binary and extracted the DLLs and suddenly I discovered that release 3.4.1 is missing the Python34.dll !! :-O Once I link against the python34.dll

[issue21799] Py_SetPath() gives compile error: undefined reference to '__imp_Py_SetPath'

2014-06-22 Thread Pat Le Cat
Pat Le Cat added the comment: Update on mingw: When I comment out the Py_SetPath() function call, then the code runs up to the 4th test print and then crashes again, possibly at: Py_XDECREF(pArgs). So apart from the 'encoding' module that cannot be found there is still a crash. I installed

[issue21799] Py_SetPath() gives compile error: undefined reference to '__imp_Py_SetPath'

2014-06-22 Thread Pat Le Cat
Pat Le Cat added the comment: Yes I'm sorry, this evolved as I investigated further. So the initial case has become this: Bug: Python 3.4 Windows installation contains python34.dll but does not install it. Both: python-3.4.1.amd64.msi and python-3.4.0.amd64.msi (maybe the 32bit too

[issue21799] Py_SetPath() gives compile error: undefined reference to '__imp_Py_SetPath'

2014-06-22 Thread Pat Le Cat
Pat Le Cat added the comment: Plus the MSVC-2013 compiler warning noted earlier of course: Warning: 1c:\python34\include\pymath.h(22): warning C4273: 'round' : inconsistent dll linkage 1C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\math.h(516) : see previous definition

[issue21825] Embedding-Python example code from documentation crashes

2014-06-22 Thread Pat Le Cat
New submission from Pat Le Cat: When I comment out the Py_SetPath() function call (Line 56), then the code runs up to the 4th test print and then crashes again, possibly at: Py_XDECREF(pArgs) else it crashes at Py_Initalize. The same behavior can be observed under Python 3.4.0 and 3.4.1

[issue21825] Embedding-Python example code from documentation crashes

2014-06-22 Thread Pat Le Cat
Pat Le Cat added the comment: Crash Error Window (pic) -- Added file: http://bugs.python.org/file35725/snakes_bug.jpg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21825

[issue21799] python34.dll is not installed

2014-06-22 Thread Pat Le Cat
Pat Le Cat added the comment: Ah it installs it in Windows/Sytem32 okay I had no clue, another undocumented behavior :) Still it is missing in the DLLs folder. And you haven't explained the warning under MSVC. And the documentation should be enhanced as I suggested to be more clear

[issue21799] python34.dll is not installed

2014-06-22 Thread Pat Le Cat
Pat Le Cat added the comment: Well? -- resolution: works for me - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21799

[issue21799] python34.dll is not installed

2014-06-22 Thread Pat Le Cat
Pat Le Cat added the comment: Cheesas you are really making it hard by design to report things to Python. Maybe a bit more common sense could help the project, or should I file a new bug-report for that too? :-/ -- resolution: works for me - rejected

pyhon 1.5.2 problem

2014-06-19 Thread Pat Fourie
recompiled everything but the problem still Exists. In anticipation, Many Thanks Pat p...@icon.co.za -- This message has been scanned for viruses and dangerous content by Pinpoint, and is believed to be clean. -- https://mail.python.org/mailman/listinfo/python-list

[issue21799] Py_SetPath() gives compile error: undefined reference to '__imp_Py_SetPath'

2014-06-17 Thread Pat Le Cat
New submission from Pat Le Cat: I use Python 3.4.1 x64 (binaries downloaded) under Windows 8.1 with mingw64 (GCC 4.9 using C++). All the other functions work fine. Excerpt: Py_SetPath(Lpython34.zip); wchar_t* pyPath = Py_GetPath(); Py_Initialize(); -- components: Build

Basic help

2014-05-20 Thread Pat Fourie
Pat -- This message has been scanned for viruses and dangerous content by Pinpoint, and is believed to be clean. -- https://mail.python.org/mailman/listinfo/python-list

Re: Can one use Python to learn and even apply Functional Programming?

2014-02-16 Thread Pat Johnson
This made me grin. ;) -- https://mail.python.org/mailman/listinfo/python-list

Re: JUST GOT HACKED

2013-10-08 Thread Pat Johnson
I don't think you are allowed to use the word dumbass to describe anyone or anything buddy. On Tuesday, October 1, 2013 9:42:31 AM UTC-4, Ferrous Cranus wrote: Στις 1/10/2013 4:27 μμ, ο/η Chris “Kwpolska” Warrick έγραψε: On Tue, Oct 1, 2013 at 3:15 PM, Νίκος nikos.gr...@gmail.com wrote:

Re: JUST GOT HACKED

2013-10-08 Thread Pat Johnson
From what I gather he was viewing files uploaded to the ftp folder and found this warning.html file contained within... So my take on it is, someone just uploaded it and this guy is freaking out making a buffoon out of himself. -- https://mail.python.org/mailman/listinfo/python-list

[issue15141] IDLE horizontal scroll bar missing (Win-XPsp3)

2012-06-22 Thread Pat
New submission from Pat pasqual...@ymail.com: There is no horizontal scroll bar at the bottom of the IDLE editor window. When a program line exceeds the window area, the window has to be widened, or text has to be manually selected beyond the window to see or edit that portion of the line

[issue15069] Dictionary Creation Fails with integer key

2012-06-14 Thread Pat
New submission from Pat p...@jegcpa.com: Attempting to import pyserial. In module serialposix.py a dict declaration starting on line 64; baudrate_constants = { 0: 000, 50: 001, 75: 002, 110: 003, ...etc Traceback

Re: Suggest design to accomodate non-unix platforms ?

2012-04-18 Thread pat
Paramiko provides SSH2 support and is platform-independent (implemented purely in Python). Try it and see if it works for you. Link: http://www.lag.net/paramiko/.. On 04/18/2012 04:35 PM, Richard Shea wrote: On a *nix box this is a reasonable bit of Python : cmd = ssh -o

Re: How to determine if IO redirection is occurring with the output from a Python program?

2012-04-17 Thread pat
Check os.isatty(fd). It will return True if fd is a terminal-like device. On Tue, Apr 17, 2012 at 5:21 PM, Edward d'Auvergne edw...@nmr-relax.comwrote: Hi, I was wondering if anyone knows of how to detect when IO redirection of any form is happening within a Python program? I would like to

[issue14597] Cannot unload dll in ctypes until script exits

2012-04-16 Thread Pat Lynch
New submission from Pat Lynch plync...@gmail.com: If I load a dll in ctypes, then delete that loaded DLL instance, the DLL is not unloaded until the script finishes and exits. I'm trying to write some unit tests in python to exercise that DLL where each test case loads a DLL, does some work

[issue14597] Cannot unload dll in ctypes until script exits

2012-04-16 Thread Pat Lynch
Pat Lynch plync...@gmail.com added the comment: I should mention also, that this is mostly an issue for me on Win7 x64. It does behave 'slightly' better on WinXP x86. (I have the 64-bit version of python installed on Win7 x64 the 32-bit version installed on WinXP) thanks, Pat. On 16 April

[issue14597] Cannot unload dll in ctypes until script exits

2012-04-16 Thread Pat Lynch
Pat Lynch plync...@gmail.com added the comment: thanks for the very quick response. Since LoadLibrary is called in the constructor, why can't FreeLibrary be called in the destructor? or at least expose a function to unload that calls FreeLibrary? http://msdn.microsoft.com/en-us/library

[issue14597] Cannot unload dll in ctypes until script exits

2012-04-16 Thread Pat Lynch
Pat Lynch plync...@gmail.com added the comment: ok, that's fair enough if most usage of ctypes is from people accessing system libraries :) I wouldn't have thought my usage was that weird though (given the strength of using python for unit testing). In local tests, adding a function CDLL

[issue14597] Cannot unload dll in ctypes until script exits

2012-04-16 Thread Pat Lynch
Pat Lynch plync...@gmail.com added the comment: Just to update:- I've run this pretty extensively on multiple systems (XP x86 Win7 64-bit) and it appears to behave as expected (haven't checked it on Linux). I have that code being called in 100s of unit tests. For python 3.1, would it make

Re: len()

2009-02-08 Thread Pat
Gabriel Genellina wrote: En Wed, 04 Feb 2009 12:38:04 -0200, Pat p...@junk.net escribió: Andreas Waldenburger wrote: On Sat, 31 Jan 2009 13:27:02 -0500 Pat p...@junk.net wrote: Tobiah wrote: Just out of curiosity, why was len() made to be it's own function? I often find myself typing things

Re: len()

2009-02-08 Thread Pat
Terry Reedy wrote: Pat wrote: Andreas Waldenburger wrote: On Sat, 31 Jan 2009 13:27:02 -0500 Pat p...@junk.net wrote: Tobiah wrote: Just out of curiosity, why was len() made to be it's own function? I often find myself typing things like my_list.len before I catch myself. Thanks, Toby

Re: len()

2009-02-04 Thread Pat
Andreas Waldenburger wrote: On Sat, 31 Jan 2009 13:27:02 -0500 Pat p...@junk.net wrote: Tobiah wrote: Just out of curiosity, why was len() made to be it's own function? I often find myself typing things like my_list.len before I catch myself. Thanks, Toby I'm surprised that no one

Re: len()

2009-02-01 Thread Pat
Tobiah wrote: Just out of curiosity, why was len() made to be it's own function? I often find myself typing things like my_list.len before I catch myself. Thanks, Toby I'm surprised that no one responded to that question. I keep making that mistake all the time myself. --

Re: optparse question

2009-01-27 Thread Pat
If you mean with / as the option designator instead of -: there doesn't appear to be a documented way of doing it. You would have to do some social engineering on the users to get them used to doing dir -s -b. In any case I thought the number of Windows users who know how to fire up a Command

Re: optparse question

2009-01-27 Thread Pat
Thorsten Kampe wrote: * Pat (Mon, 26 Jan 2009 20:02:59 -0500) Up until today, I never needed to pass any arguments to a Python program. [...] getopt resolved my immediate need, but I would like to know how one could use optparse to extract out the options from something like dir /s /b

Re: optparse question

2009-01-27 Thread Pat
I had no idea people were going to get so upset that I used a Windows example and go off on a tear. Nobody is upset, and nobody has gone off on a tear. The point about the Windows example is that the docs say in a close-to-screamingly- obvious manner that /options are not supported, no

Re: optparse question

2009-01-27 Thread Pat
Peter Otten wrote: Pat wrote: The question was it possible to add a simple flag like 'd-' to optparse with no other parameters? Do you mean d- or -d? If the latter, what's wrong with Robert Kern's answer? Peter I mean -d since that's what Unix commands expect for flags. My sole

optparse question

2009-01-26 Thread Pat
Up until today, I never needed to pass any arguments to a Python program. I did all the requisite reading and found that I should use optparse instead of getopt. I read the documentation and since the words simple and easy often appeared in the examples and documentation, I just knew that

Re: Question about scope

2008-11-01 Thread Pat
Steven D'Aprano wrote: On Thu, 23 Oct 2008 11:38:35 -0400, Pat wrote: I have a Globals class. Well, that's your first mistake. Using global variables in a class is no better than using bare global variables. They're still global, and that's a problem: http://weblogs.asp.net/wallen

Re: regexp in Python (from Perl)

2008-10-24 Thread Pat
Bruno Desthuilliers wrote: MRAB a écrit : On Oct 19, 5:47 pm, Bruno Desthuilliers [EMAIL PROTECTED] wrote: Pat a écrit : (snip) ip = ip[ :-1 ] ip =+ '9' or: ip = ip[:-1]+9 (snip) re.sub(r'^(((\d+)\.){3})\d+$', \g19, 192.168.1.1) '192.168.1.9' re.sub(r'^(((\d+)\.){3})\d+$', \g19

Question about scope

2008-10-23 Thread Pat
I have a Globals class. In it, I have a variable defined something like this: remote_device_enabled = bool In one module, I assign True/False to Globals.remote_device_enabled. Once set, this value never changes. In another module, at the top after the imports statements, I tried this: from

Re: re.search over a list

2008-10-23 Thread Pat
Bruno Desthuilliers wrote: Pat a écrit : Bruno Desthuilliers wrote: Pat a écrit : While I can use a for loop looking for a match on a list, I was wondering if there was a one-liner way. In particular, one of my RE's looks like this '^somestring$' so I can't just do this: re.search

Re: Question about scope

2008-10-23 Thread Pat
Bruno Desthuilliers wrote: Pat a écrit : I have a Globals class. Not sure it's such a great idea, but anyway... What's the use case for this class ? There are perhaps better (or at least more idiomatic) solutions... In it, I have a variable defined something like

Re: re.search over a list

2008-10-20 Thread Pat
Bruno Desthuilliers wrote: Pat a écrit : While I can use a for loop looking for a match on a list, I was wondering if there was a one-liner way. In particular, one of my RE's looks like this '^somestring$' so I can't just do this: re.search( '^somestring$', str( mylist ) ) I'm not smart

Re: regexp in Python (from Perl)

2008-10-20 Thread Pat
Bruno Desthuilliers wrote: Pat a écrit : I have a regexp in Perl that converts the last digit of an ip address to '9'. This is a very particular case so I don't want to go off on a tangent of IP octets. ( my $s = $str ) =~ s/((\d+\.){3})\d+/${1}9/ ; While I can do this in Python which

question regarding list comprehensions

2008-10-20 Thread Pat
I have written chunks of Python code that look this: new_array = [] for a in array: if not len( a ): continue new_array.append( a ) and... string = for r in results: if not r.startswith( '#' ): string =+ r It seems that a list

Re: question regarding list comprehensions

2008-10-20 Thread Pat
Steven D'Aprano wrote: On Mon, 20 Oct 2008 10:20:03 -0400, Pat wrote: Finally, if someone could point me to a good tutorial or explain list compressions I would be forever in your debt. Think of a for-loop: for x in (1, 2, 3): x Creates x=1, then x=2, then x=3. It doesn't do anything

Re: question regarding list comprehensions

2008-10-20 Thread Pat
Diez B. Roggisch wrote: Pat wrote: I have written chunks of Python code that look this: new_array = [] for a in array: if not len( a ): continue new_array.append( a ) new_array = [a for a in array if len(a)] and... string = for r

regexp in Python (from Perl)

2008-10-19 Thread Pat
I have a regexp in Perl that converts the last digit of an ip address to '9'. This is a very particular case so I don't want to go off on a tangent of IP octets. ( my $s = $str ) =~ s/((\d+\.){3})\d+/${1}9/ ; While I can do this in Python which accomplishes the same thing: ip = ip[ :-1 ]

re.search over a list

2008-10-19 Thread Pat
While I can use a for loop looking for a match on a list, I was wondering if there was a one-liner way. In particular, one of my RE's looks like this '^somestring$' so I can't just do this: re.search( '^somestring$', str( mylist ) ) I'm not smart enough (total newbie) to code up a generator

Re: IDE Question

2008-10-18 Thread Pat
Steve Phillips wrote: Hi All, I am just wondering what seems to be the most popular IDE. The reason I ask is I am currently at war with myself when it comes to IDE's. It seems like every one I find and try out has something in it that others don't and viceversa. I am in search for the perfect

Re: Append a new value to dict

2008-10-16 Thread Pat
paul wrote: Pat schrieb: I know it's not fair to compare language features, but it seems to me (a Python newbie) that appending a new key/value to a dict in Python is awfully cumbersome. In Python, this is the best code I could come up with for adding a new key, value to a dict

Re: regular expression question (re module)

2008-10-16 Thread Pat
Faheem Mitha wrote: Hi, I need to match a string of the form capital_letter underscore capital_letter number against a string of the form anything capital_letter underscore capital_letter number some_stuff_not_starting with a number snip DUKE1_plateD_A12.CEL. Thanks in advance.

Re: python debugger tips?

2008-10-16 Thread Pat
[EMAIL PROTECTED] wrote: Hi All, I'm switching to python from perl, and like the language a ton, but I find pdb and pydb to be vastly inferior debuggers to the perl version. In particular, I've grown very used to stepping into arbitrary functions interactively. For instance, in perl you can

Re: PYTHON WORKING WITH PERL ??

2008-10-16 Thread Pat
Sean DiZazzo wrote: On Sep 29, 12:44 pm, Blubaugh, David A. [EMAIL PROTECTED] wrote: Sir, You are absolutely correct. I was praying to G_d I did not have to slaughter my project's source code in this manner. However, like life itself, I was given legacy source code (i.e. someone else errors

Append a new value to dict

2008-10-13 Thread Pat
I know it's not fair to compare language features, but it seems to me (a Python newbie) that appending a new key/value to a dict in Python is awfully cumbersome. In Python, this is the best code I could come up with for adding a new key, value to a dict mytable.setdefault( k, [] ).append( v

Re: Append a new value to dict

2008-10-13 Thread Pat
Pat wrote: I know it's not fair to compare language features, but it seems to me (a Python newbie) that appending a new key/value to a dict in Python is awfully cumbersome. In Python, this is the best code I could come up with for adding a new key, value to a dict mytable.setdefault( k

Re: Array of dict or lists or ....?

2008-10-07 Thread Pat
Dennis Lee Bieber wrote: On Mon, 06 Oct 2008 19:45:07 -0400, Pat [EMAIL PROTECTED] declaimed the following in comp.lang.python: I can't figure out how to set up a Python data structure to read in data that looks something like this (albeit somewhat simplified and contrived): States

Re: lint for Python?

2008-10-06 Thread Pat
Bruno Desthuilliers wrote: Pat a écrit : I've been searching for a good multi-module lint checker for Python and I haven't found one yet. Pylint does a decent job at checking for errors only within a single module. Here's one of my problems. I have two modules. In module one, I have

Array of dict or lists or ....?

2008-10-06 Thread Pat
I can't figure out how to set up a Python data structure to read in data that looks something like this (albeit somewhat simplified and contrived): States Counties Schools Classes Max Allowed Students Current enrolled Students Nebraska, Wabash, Newville,

Re: lint for Python?

2008-10-05 Thread Pat
Miki wrote: Hello, In module one, I have a function: def foo( host, userid, password ): pass In module two, I call that function: foo( userid, password) lint doesn't find that error and it won't be caught until it's called while the program is running. pychecker does find these kind

lint for Python?

2008-10-03 Thread Pat
I've been searching for a good multi-module lint checker for Python and I haven't found one yet. Pylint does a decent job at checking for errors only within a single module. Here's one of my problems. I have two modules. In module one, I have a function: def foo( host, userid, password ):

[issue1082] platform system may be Windows or Microsoft since Vista

2007-09-18 Thread Pat LaVarre
Pat LaVarre added the comment: Works for me. I tried python-trunk-vistaplatform-v2.patch in one sample of 2006-11 RTM Vista plus 2.5.1 Python plus this patch. I quote: import platform platform.uname() ('Windows', '[redacted]', 'Vista', '6.0.6000', '', '') platform.system() 'Windows

[issue1082] platform system may be Windows or Microsoft since Vista

2007-09-18 Thread Pat LaVarre
Pat LaVarre added the comment: --- USAGE: I agree we should let people in future write: if not platform.system('Windows'): rather than: if not (platform.system() in ('Microsoft', 'Windows')): now that our people can no longer rely on Python in Vista correctly understanding the plain human

[issue1082] platform system may be Windows or Microsoft since Vista

2007-09-18 Thread Pat LaVarre
Pat LaVarre added the comment: Thanks for the cultural education of 2.5.1 isn't supposed to work, I didn't know that. Also I'm glad to hear this is fixed for 2.5.2 already. Sorry I'm too new ignorant to understand why you believe this is fixed. I don't see that we already have a way to say

[issue1082] platform system may be Windows or Microsoft since Vista

2007-09-17 Thread Pat LaVarre
Pat LaVarre added the comment: I recommend we reject this first draft of the python-trunk- vistaplatform.patch. I reason as follows ... ACTUAL RESULTS OF 2.5.1 PLUS PATCH IN VISTA WINDOWS: import platform ... platform.uname() ('Microsoft', '[redacted]', 'Windows', '6.0.6000

[issue1082] platform system may be Windows or Microsoft since Vista

2007-09-01 Thread Pat LaVarre
New submission from Pat LaVarre: SUMMARY: 'Microsoft' is the platform.system() of Vista Windows, whereas 'Windows' was the platform.system() of XP Windows, whoops. STEPS TO REPRODUCE ACTUAL RESULTS: Run 2.5.1 Python in a Vista and see: import platform platform.system() 'Microsoft

Relative Imports

2007-07-17 Thread Pat O'Hara
help, -Pat -- http://mail.python.org/mailman/listinfo/python-list

I need suggests

2007-01-23 Thread Pat
I have to do a big programm. Could someone give me some suggests about IDE (on Linux) and books to learn. -- http://mail.python.org/mailman/listinfo/python-list

Boa Constructor error: No section:editor

2006-10-17 Thread Pat Nystrom
worked fine. Good luck! Pat -- http://mail.python.org/mailman/listinfo/python-list

Re: pycrust xmlrpclib problem

2006-08-15 Thread Pat
Timothy Gee wrote: Have do a lot of lab work making use of xmlrpclib and am quite dependent on it. I just started working with pycrust under Linux RH9, and wanted to use it as my standard python environment, however, when I import xmlrpclib, I get a segmentation fault. Command line still works

Re: Screen placement based on screen resolution

2006-04-08 Thread Pat
Thanks a lot for you response. S Fredrik Lundh [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Pat [EMAIL PROTECTED] wrote: I am trying to place a dialog in the center of the screen based on a users screen resolution. I can get the width and height of the screen, but I can't

Screen placement based on screen resolution

2006-04-07 Thread Pat
I am trying to place a dialog in the center of the screen based on a users screen resolution. I can get the width and height of the screen, but I can't seem to use the following: root.geometry('WxH+X+Y') It appears the values for X and Y need to be integers and not a variable like width/2-40

Re: Screen placement based on screen resolution

2006-04-07 Thread Pat
Thanks. S Lonnie Princehouse [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Tkinter takes strings as its arguments; it's TCL's legacy. You can use string formatting for this: x = width/2-40 y = height/2-30 root.geometry('%ldx%ld+%ld+%ld' % (width, height, x, y)) --

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

2005-12-01 Thread Pat
Thomas Heller wrote: What is the difference between PyDispatcher and Louie? (I'm still using a hacked version of the original cookbook recipe...) Not too much at this point, but the general differences are listed on this page: http://louie.berlios.de/changes.html Matt and I plan to

Re: CGI Problem on MS IIS 5.0 - Trying to access files on other machines

2005-09-16 Thread Pat [MSFT]
Don't change the account IIS is running under - that is a pretty big security issue waiting to happen. Change the authentication model for the web site to Basic, then logon as you. That will cause any execution to be in the security context you are expecting. Pat paulp [EMAIL PROTECTED

Re: CGI Problem on MS IIS 5.0 - Trying to access files on other machines

2005-09-15 Thread Pat [MSFT]
Set the site to be Basic Authentication and login as you. I suspect that the .exe is either running as IWAM/IUSER (i.e. GUEST) or you are running into a double hop issue. Pat paulp [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Greetings, I'm working on a CGI program

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-20 Thread Pat
Nick Coghlan wrote: Pat wrote: On Windows, most users are used to installing precompiled binary packages, rather than compiling from source. When you do have to compile from source, it often requires you to fiddle with nitty gritty details about which you'd rather remain ignorant

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-19 Thread Pat
Diez B. Roggisch wrote: Just out of curiousity: How many python extensions are you planning to write? I estimate 10 to 100, depending on abstractional capabilities of the extension system. And how many lines of pure python code have you written in your life? 0 (zero). Awesome.

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-15 Thread Pat
Fredrik Lundh wrote: Pat wrote: A few things. Primarily the fact that I'm not very experienced in C (the extensions that I need to have compiled are not written by me). Secondarily, the fact that the discussion threads I read made it seem much more complicated than what you just

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Pat
Wow! I must say, I'm less than impressed with the responses so far. I know Ilias can give the impression that he is just trolling, but I can assure you he is not. At least, not in this case. ;-) So in an effort to make some headway, I'm going to try to summarize the current state of affairs.

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Pat
So what if someone appears to be a troll? Suck it up and rise above it. This thread started with legitimate questions. Unfortunately, almost every response has been dismissive, petty, and a complete waste of time and effort. Please respond to the issue or simply ignore it. The issue is real and

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Pat
I thought I was being as clear and specific as I needed to be. Apparently not. I'm talking about compiling the original source code, per the recommendations made by Mike Fletcher and documented here: Python 2.4 Extensions w/ the MS Toolkit Compiler

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Pat
between the two dlls? If I'm asking questions already answered elsewhere, I'd love a link to that resource, if you have it. Thanks, Pat Patrick K. O'Brien Orbtechhttp://www.orbtech.com Schevo http://www.schevo.org Pypersyst http://www.pypersyst.org -- http://mail.python.org/mailman

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Pat
users. I can't expect them to purchase a .NET compiler or go through a See above. That answers the cost question (assuming that your interpretation of the licensing is correct, since I'm not a lawyer nor qualified to render much of an opinion on that). But there is still the issue of going

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Pat
Stephen Kellet said: quote Pat, could you include some context in your replies? I have no idea if you are replying to my comments about Visual Studio Express or someone else? The only text I see in your replies is what you write, no text from the posting you are replying to. As it is I've ignored

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Pat
Stephen Kellett wrote: In message [EMAIL PROTECTED], Pat [EMAIL PROTECTED] writes That answers the cost question (assuming that your interpretation of the licensing is correct, since I'm not a lawyer nor qualified to render much of an opinion on that). But there is still the issue of going

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Pat
Fredrik Lundh wrote: Pat wrote: Okay, I think we are pretty much talking about the same thing. My problem is not that I'm unable or unwilling to purchase a good compiler. My problem is that I don't want to make it a requirement of my users. The twist is that my users will be working

Re: IDLE history, Python IDE, and Interactive Python with Vim

2005-02-05 Thread Pat
that helps. Pat -- Patrick K. O'Brien Orbtechhttp://www.orbtech.com Schevo http://www.schevo.org Pypersyst http://www.pypersyst.org -- http://mail.python.org/mailman/listinfo/python-list