Re: Preferred method for "Assignment by value"

2008-04-15 Thread hall . jeff
I think the fundamental "disconnect" is this issue of mutability and immutability that people talk about (mainly regarding tuples and whether they should be thought of as static lists or not) Coming from VBA I have a tendency to think of everything as an array... So when I create the following t

Re: Looking for File comparison utility that produces actual differences

2008-09-03 Thread Jeff McNeil
. print i, ... *** --- *** *** 1,3 abcd ! 1234 - --- 1,3 abcd ! 12345 - >>> Also, see http://docs.python.org/lib/module-difflib.html. -Jeff -- http://mail.python.org/mailman/listinfo/python-list

Re: crack registration codes for pogo games

2008-09-10 Thread Jeff & Laura
your site won't come upDo you have the crack for operation mania on pogo.com?-- http://mail.python.org/mailman/listinfo/python-list

RE: a question about zip...

2006-03-08 Thread Jeff Elmore
Just do: tuple(zip(even,odd)) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of KraftDiner Sent: Wednesday, March 08, 2006 3:22 PM To: [email protected] Subject: a question about zip... I had a structure that looked like this ((0,1), (2, 3), (4, 5), (

Re: How do I Block Events in wxPython

2009-12-09 Thread Jeff Peck
the mouse clicks and simply call event.Skip(). If you do this, you might have to introduce a flag that gets set to True only during your calculation, and then your event hander could look something like this: def OnMouseClick(self, event): # Only skip mouse click event if calculating

Re: What does the list_folders() method of mailbox.Maildir actually do (if anything)?

2009-09-25 Thread Jeff McNeil
h.join(self._path, entry)): result.append(entry[1:]) return result The above example is from 2.6. Your structure is simply a list of Maildir compliant directories below '/home/chris/Mail/apex.' They're not, in the Maildir++ sense of the word, folders. -- Thanks, Jeff mcjeff.blospot.com -- http://mail.python.org/mailman/listinfo/python-list

Re: What does the list_folders() method of mailbox.Maildir actually ?do (if anything)?

2009-09-25 Thread Jeff McNeil
On Sep 25, 4:13 pm, [email protected] wrote: > Jeff McNeil wrote: > > On Sep 25, 3:22 pm, [email protected] wrote: > > > I can't get the list_folders() method of the mailbox.Maildir class to > > > do anything remotely useful.  It seems to do nothing at all.

Re: What does the list_folders() method of mailbox.Maildir actually ?do (if anything)?

2009-09-25 Thread Jeff McNeil
On Sep 25, 4:28 pm, Jeff McNeil wrote: > On Sep 25, 4:13 pm, [email protected] wrote: > > > > > > > Jeff McNeil wrote: > > > On Sep 25, 3:22 pm, [email protected] wrote: > > > > I can't get the list_folders() method of the mailbox.Maildir class

Re: directory wildcard

2009-11-16 Thread Jeff McNeil
n/data/force_mcs" > % mcs) > > Any right way to do it? > > Thanks. > > --henry I'd ditch the echo business altogether. 2.x. Not tested. import glob mcs = get_mcs_from_somewhere() for i in glob.glob('/sys/kernel/debug/ieee80211/phy*/iwlagn/data/ force_mcs')

Re: CentOS 5.3 vs. Python 2.5

2009-11-25 Thread Jeff McNeil
On Nov 25, 4:45 am, Jon Clements wrote: > On Nov 25, 8:13 am, Steven D'Aprano > > > > > > wrote: > > On Tue, 24 Nov 2009 22:42:28 -0800, John Nagle wrote: > > > My dedicated hosting provider wants to switch me to a new server with > > > CentOS 5.3, so I have to look at how much work is required.

Re: Google AI Challenge at U of Waterloo

2010-02-06 Thread Jeff Cameron
Might, Courage, Vision, SINCERITY. >   / v \  Simplicity is Beauty! May the Force and Farce be with you! > /( _ )\ (x86_64 Ubuntu 9.10)  Linux 2.6.32.7 >    ^ ^   12:16:01 up 6 days 20:22 2 users load average: 0.45 0.26 0.09 > 不借貸! 不詐騙! 不援交! 不打交! 不打劫! 不自殺! 請考慮綜援 > (CSSA):http://www.sw

Re: Bluetooth

2010-03-10 Thread Jeff Peck
oth.h file, but i have no idea what I am supposed to do with it... Can anyone shed some light on this for me please? thanks in advance, gr Arno Have you come across the PyBluez library yet? I recently used it in a project and it worked very well. Hth, Jeff -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter Text Widget Background Color

2011-02-22 Thread Jeff Hobbs
.mainloop() > > This example is helpful to me. I am curious though why the tk window > takes up the full screen instead of being much smaller as usual for > other examples I run. Shortening or shrinking the text has no effect. Because a 70point Helvetica font was requested, and the text widget has a default size of 80x24. That would occupy the full size of most screens. Jeff -- http://mail.python.org/mailman/listinfo/python-list

Re: GUIs - A Modest Proposal

2010-06-18 Thread Jeff Hobbs
If you look to revamp things, don't go down the path of trying to remove Tcl to get to Tk. Instead reconsider the approach to Tcl. A little bending might prove a much better match in the long term. Jeff -- http://mail.python.org/mailman/listinfo/python-list

Re: GUIs - A Modest Proposal

2010-06-18 Thread Jeff Hobbs
ld perspective. Tk 8.5 does have native themed widgets (using Win32, Carbon or Cocoa, and X11, though also with plugins to gtk and qt). I'd have to explore more into Tkinter to see where anybody derives value from Tix in current programs. In any case, the basic mantra for Tix is new development should avoid it, but existing development should work fine. New development should leverage the good work of Guilherme Polo in making the Tk 8.5 core themed widgets available in Tkinter. Jeff -- http://mail.python.org/mailman/listinfo/python-list

Re: GUIs - A Modest Proposal

2010-06-18 Thread Jeff Hobbs
On Jun 18, 2:59 pm, Ethan Furman wrote: > Jeff Hobbs wrote: > > On Jun 6, 2:11 pm, rantingrick wrote: > >> On Jun 6, 2:06 pm, Mark Lawrence wrote: > >>> On 06/06/2010 16:31, rantingrick wrote: > >>>> On Jun 5, 9:22 pm, ant  wrote: > >>>

Re: Python 2.7, tkinter problem on OSX

2010-06-25 Thread Jeff Hobbs
ust run arch -i386 python2.7 and then it will find the compatible i386 Tk. The next release of ActivePython 2.7 (which is building i386+x86_64) will have the Tk version independence, so it could work with core Tk or AT 8.6, or 8.5 in 32-bit mode. Less confuzzulated? Jeff -- http://mail.python.org/mailman/listinfo/python-list

Re: Question about Python upgrade on linux

2010-07-15 Thread Jeff McNeil
g, and not /usr/lib/python2.x.y naming).When Going from 2.6 to 2.7, you're better off reinstalling your extensions. Thanks, Jeff http://www.jmcneil.net -- http://mail.python.org/mailman/listinfo/python-list

Re: File Manager in Tkinter

2010-08-10 Thread Jeff Hobbs
nd has lots of controls: http://tktreectrl.sourceforge.net/ Jeff -- http://mail.python.org/mailman/listinfo/python-list

Re: File Manager in Tkinter

2010-08-10 Thread Jeff Hobbs
On Aug 10, 9:43 am, John wrote: > On Tue, 10 Aug 2010 09:20:31 -0700 (PDT), Jeff  Hobbs > > > > wrote: > >On Aug 9, 9:53 pm, John wrote: > >> As a learning exercise in Tkinter I htought about making a very simple > >> and basic file manager for my own use

Re: python strings and {} in Tkinter entry widgets

2010-08-16 Thread Jeff Hobbs
anslation occurring, and you need to split/ join or index the items properly. Without being more clear how you want to represent your data, what you need isn't clear. Perhaps you just need to reference the first index of the variable, or ... who knows, there are lots of possibilities. Jeff -- http://mail.python.org/mailman/listinfo/python-list

Re: how to switch image in tkinter? making it mutable? how?

2010-08-16 Thread Jeff Hobbs
ge1.fromstring(...) that should have a similar effect, in that it changes the underlying image data and the label will display that. Whether you need to label.bind or something else to effect this change is up to you. You could have it happen on a timer, triggered by an event, or randomly effected

Re: multi-core software

2009-06-06 Thread Jeff M.
ht the definition of green threads was that multiplexing them > doesn't require context switches. There's always a context switch. It's just whether or not you are switching in/out a virtual stack and registers for the context or the hardware stack/registers. Jeff M. -- http://mail.python.org/mailman/listinfo/python-list

Re: multi-core software

2009-06-07 Thread Jeff M.
On Jun 7, 1:56 am, Paul Rubin <http://[email protected]> wrote: > "Jeff M." writes: > > > > Even the lightest weight > > > > user space ("green") threads need a few hundred instructions, minimum, > > > > to amortize the cost o

Re: multi-core software

2009-06-07 Thread Jeff M.
g an obvious example... there are many more. Unshared state has its place. Immutable state has its place. Shared immutable state has its place. Shared mutable place has its place. Jeff M. -- http://mail.python.org/mailman/listinfo/python-list

Re: Get the class name

2009-06-08 Thread Jeff McNeil
On Jun 8, 11:33 am, Gary Herron wrote: > Kless wrote: > > Is there any way of to get the class name to avoid to have that write > > it? > > > --- > > class Foo: > >    super(Foo, self) > > --- > > > * Using Py 2.6.2 > > The question does not make sense: >     "to have WHAT

Re: MD5 hash of object

2009-06-08 Thread Jeff McNeil
elf.other_name = Value(name) h1 = md5(pickle.dumps(P1('sabres'))).hexdigest() h2 = md5(pickle.dumps(P2('sabres'))).hexdigest() print h1 == h2 >>> False Just something to be aware of. Depending on what you're trying to accomplish, it may make sense to simply define a metho

Re: What is the actual type of "interrupted system call"?

2009-06-09 Thread Jeff McNeil
7;t an "InterruptedSystemCall" error or equivalent in the standard exception hierarchy. EnvironmentError is the parent of OSError & IOError, which is where you'll most likely be encountering that state. Thanks, Jeff mcjeff.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Re: multi-core software

2009-06-10 Thread Jeff M.
would be wasted every day around the world - ignoring the fact that Google wouldn't exist if that were the case ;-). Obviously Google engineers work incredibly hard every day to ensure correct results, but performance better be right up there at the top of the list as well. Jeff M. -- http://mail.python.org/mailman/listinfo/python-list

Re: Printing dictionary values rather than references

2009-06-10 Thread Jeff McNeil
;}''' >     print dict >     ''' Actual output: {'a': <__main__.MyClass instance at 0x79cfc8>}''' > > Thanks, > Amit class MyClass: def __repr__(self): # <--- see http://docs.python.org/library/functions.html#repr return str(self.__dict__) HTH, Jeff mcjeff.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Connection tester

2009-06-10 Thread Jeff McNeil
On Jun 10, 10:26 am, Sparky wrote: > Hey! I am developing a small application that tests multiple websites > and compares their "response time". Some of these sites do not respond > to a ping and, for the measurement to be standardized, all sites must > have the same action preformed upon them. An

Re: multi-core software

2009-06-10 Thread Jeff M.
On Jun 10, 12:49 pm, Seamus MacRae wrote: > Jeff M. wrote: > > On Jun 9, 9:08 pm, Arved Sandstrom wrote: > >> Jon Harrop wrote: > >>> Arved Sandstrom wrote: > >>>> Jon, I do concurrent programming all the time, as do most of my peers. > >>&g

Re: reading from file

2009-06-11 Thread Jeff McNeil
xea+\xef\xee\xe7\xe2\xee\xed\xe8\xf2\xfc" with open('test.txt', 'w') as f: print >>f, s print chardet.detect(open('test.txt').read()) (t)j...@marvin:~/t$ python test.py {'confidence': 0.98999, 'encoding': 'windows-1251'} (t)j...@marvin:~/t$ HTH, Jeff mcjeff.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Question about None

2009-06-12 Thread Jeff McNeil
g against None: if var is None: do_stuff() The use of the 'is' operator checks whether objects are exactly the same (id(var) == id(None)) as opposed to 'isinstance' or '==.' You might also try defining descriptors in order to make your type checks slightly more t

Re: Funny xmlrpc / linux problem

2009-06-16 Thread Jeff McNeil
erver.server_bind(self) s = MyXMLServer(('127.0.0.1', 8080)) print s.socket.getsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY) HTH, Jeff -- http://mail.python.org/mailman/listinfo/python-list

Re: I look for private Python Index server on my local network... What do you use ?

2009-06-23 Thread Jeff McNeil
nent [r...@buildslave01 eggs]# [r...@buildslave01 eggs]# ls Beaker/ Beaker-1.1.2-py2.4.egg Beaker-1.2.1-py2.4.egg [r...@buildslave01 eggs]# On this particular system, buildbot drops successfully built eggs into the correct location automatically for testing purposes. HTH, Jeff -- http://mail.python.org/mailman/listinfo/python-list

Re: How to find info about python 3.x extension module availability?

2009-06-23 Thread Jeff McNeil
On Jun 23, 6:59 am, Francesco Bochicchio wrote: > Hi all, > > is there any site that reports the current porting (to Python 3.x) > status of the main non-standard extension modules (such as pygtk, > pywin32, wxpython, ...) ? > I think such information would be very useful for people - like me - >

Re: Granularity of OSError

2009-09-18 Thread Jeff McNeil
, or else raise. > > ~Sean I do this myself in a lot of places, almost exactly like this. It's slightly clearer to use 'if e.errno == errno.ENOENT' in my opinion, but, whatever. The only place I've run into issues with this is when dealing with socket programming across oper

Re: Unable to import package over NFS in solaris

2009-09-23 Thread Jeff McNeil
r the '/net/sqlhost/usr/ lib/python2.4/site-packages/ SQLAlchemy-0.5.6-py2.4.egg/' path. Using your configuration, Python is looking for: /net/sqlhost/usr/lib/python2.4/site-packages/ SQLAlchemy-0.5.6-py2.4.egg/sqlalchemy/sqlalchemy/ As an example, see below. Note that this is in a virtual en

Re: Getting return code for a Python script invoked from a Linux shell script

2009-09-23 Thread Jeff McNeil
What's wrong here? (I am no Linux guru) > > Thanks in advance > Mark Assuming Bash, you'll want $? instead. The '!$' construct is used to pull the last argument of the previous command. Also, if I remember correctly, the history mechanism is disabled within shell sc

Re: Get error message from FTPLib

2009-09-23 Thread Jeff McNeil
n do something like the following: try: FTP_instance.do_something() except ftplib.all_errors, e: handle_an_error(e) I do something much like that in an NMS-like application I wrote. -- Thanks, Jeff mcjeff.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Good libraries for network programming (not asynchronous)

2009-09-23 Thread Jeff McNeil
ut the socketserver from standard library and I'm asking if > there is anything else. > > Thanks, > Tvrtko I know this probably isn't overly helpful, but Twisted allows you to defer a blocking call to a thread using a 'deferToThread' construct. It ex

Re: tix problem in ubuntu karmic

2010-09-28 Thread Jeff Hobbs
8.4 =8.4.19-3 > tix  =8.4.0-6ubuntu1 > tix-dev =8.4.0-6ubuntu1 As the first link indicates, Tix 8.4.3 has this fixed, which is the latest stable version: https://sourceforge.net/projects/tix/files/ Try building that from source and using it in place of Tix 8.4.0 that you are currently

Re: Tkinter: Exception RuntimeError: 'maximum recursion depth exceeded'

2010-10-12 Thread Jeff Hobbs
ing in the > script above to make the whole thing more robust? > > Thanks in advance for any help or suggestions It seems very heavy-handed to create 1-pixel images for drawing onto the canvas. Any reason not to use something lighter weight? I suspect the "self.root.update()" is the problem. Try update_idletasks() instead, or to even avoid it if possible. You don't want to call update in the event loop, because you are likely reprocessing from the same call, causing the recursion. Jeff -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: Exception RuntimeError: 'maximum recursion depth exceeded'

2010-10-13 Thread Jeff Hobbs
On Oct 13, 2:18 am, [email protected] (Olaf Dietrich) wrote: > Jeff  Hobbs : > > > > > > > On Oct 12, 9:43 am, [email protected] (Olaf Dietrich) wrote: > > >> After some somewhat heavy mouse action inside the > >> canvas (with the left button pressed), the applic

Re: Python 2.7

2010-11-08 Thread Jeff Hobbs
lease... If you need Python 2.7, PIL is available via pypm for ActivePython 2.7: http://code.activestate.com/pypm/pil/ Jeff -- http://mail.python.org/mailman/listinfo/python-list

Python 2.7 on Windows: Copy&Paste install

2017-05-04 Thread jeff saremi
es 2. Add the new Python2.7\bin to PATH 3. Add C:\python2.7\Lib and C:\python2.7\Lib\site-packages to PYTHONPATH thanks Jeff -- https://mail.python.org/mailman/listinfo/python-list

bugs.python.org registration never completes

2017-05-04 Thread jeff saremi
i've been waiting for my confirmation email. Never received it Someone should look into the registration. And there is no admin emails where you could send your issue to! thanks Jeff -- https://mail.python.org/mailman/listinfo/python-list

Python 2.7: no such module pip

2017-05-04 Thread jeff saremi
Did a fresh install of python-2.7.amd64.msi on windows 10. The install finishes with success. Python runs. No pip when the following is run: C:\> python -m pip install elastalert C:\Python27\python.exe: No module named pip -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 2.7: no such module pip

2017-05-05 Thread jeff saremi
. From: eryk sun Sent: Thursday, May 4, 2017 9:58:40 PM To: [email protected] Cc: jeff saremi Subject: Re: Python 2.7: no such module pip On Thu, May 4, 2017 at 8:24 PM, jeff saremi wrote: > Did a fresh install of python-2.7.amd64.msi on windows 10. > > Th

Re: Python 2.7: no such module pip

2017-05-05 Thread jeff saremi
module named ensurepip From: eryk sun Sent: Friday, May 5, 2017 9:49:18 AM To: [email protected] Cc: jeff saremi Subject: Re: Python 2.7: no such module pip On Fri, May 5, 2017 at 4:30 PM, jeff saremi wrote: > i checked the installation again. There is no option to

Re: Python 2.7: no such module pip

2017-05-05 Thread jeff saremi
forgot the attachment From: jeff saremi Sent: Friday, May 5, 2017 9:57:30 AM To: eryk sun; [email protected] Subject: Re: Python 2.7: no such module pip Eryk There is no such option in the installation. Please take a look at the screenshot I enclosed. If

Re: Python 2.7 on Windows: Copy&Paste install

2017-05-05 Thread jeff saremi
Thanks very much Eryk. I will look into WinPython. And as for the PYTHONPATH i came up with that. I will unset it. From: eryk sun Sent: Thursday, May 4, 2017 10:21:20 PM To: [email protected] Cc: jeff saremi Subject: Re: Python 2.7 on Windows: Copy&P

Re: Python 2.7: no such module pip

2017-05-05 Thread jeff saremi
nt: Friday, May 5, 2017 10:07:33 AM To: [email protected] Cc: jeff saremi Subject: Re: Python 2.7: no such module pip On Fri, May 5, 2017 at 4:57 PM, jeff saremi wrote: > > There is no such option in the installation. Please take a look at the > screenshot I enclosed. Sorry, I overl

Re: Pillow lib for x86_64 GNU/Linux

2013-06-03 Thread Jeff SKI Kinsey
Sorry. Should have been more clear. This is a hosting account server. I am not in the sudoers file. Was able to get PIL v1.1.7 to create a tiff file. Problem solved. Thanks. On Monday, June 3, 2013 12:41:17 PM UTC-4, Irmen de Jong wrote: > On 3-6-2013 18:23, [email protected] wrote: > > >

Seeking Assistance with Python's IDLE for Blind Users

2024-11-11 Thread Jeff via Python-list
d for blind users on how to effectively use Python's IDLE. Any guidance or resources you could provide would be greatly appreciated. Thank you for your assistance. Best regards, Jeff -- https://mail.python.org/mailman/listinfo/python-list

<    6   7   8   9   10   11