ink level reset

2008-10-11 Thread robin
PROBLEM I need to know how to reset the ink level counter of the Canon MP160. It says " Low ink" when I just refilled the ink tanks. Please help. I need the tricks or software that resets the counter. find solution here http://pc-solution4u.blogspot.com/search/label/Canon%20PIXMA%20MP160%20All-I

E5 and 2,114,0 errors

2008-10-11 Thread robin
PROBLEM I've just bought a second hand MP160,which I only intended to used as a scanner.I can't get the scanner to operate due to an E5 error on the display,and a 2,114,0 error which appears as a pop-up when I attempt to scan.Although empty,the cartridges are of the correct type and are seated pro

Canon PIXMA MP160 All-In-One InkJet Printer

2008-10-11 Thread robin
PROBLEM I have a very basic question... how to take black and white print? I am getting colored print even if I press black button on the printer. Please advice.I'll be thankful if you please let me know the steps to make sure that how can I make sure that my printer settings at computer level are

Canon mp160 drivers

2008-10-11 Thread robin
PROBLEM i lost my canon mp160 drivers for the printer and scanner. how to i download from the drivers for the printerI lost my start up disk for my canon mp180 all in one printer.How can I download another oneNeed to find the drivers to downloadmy computer has much viruses and i installed it. after

Re: Most compact "X if X else Y" idiom

2008-10-11 Thread jbperez808
Thanks, folks. Short-circuit boolean was the syntax I had in mind which momentarily escaped me, but the "if not x: x='blah'" idiom was instructive as well. -- http://mail.python.org/mailman/listinfo/python-list

Re: Most compact "X if X else Y" idiom

2008-10-11 Thread Steven D'Aprano
On Sun, 12 Oct 2008 05:30:33 +, Steven D'Aprano wrote: > Use short-circuit Booleans: > > y = x or "blah" Except of course you don't use x, you use the complex expression. y = (some complex expression) or "blah" Sorry for the itchy posting finger. -- Steven -- http://mail.python.org/m

Re: Most compact "X if X else Y" idiom

2008-10-11 Thread Steven D'Aprano
On Sat, 11 Oct 2008 22:01:46 -0700, jbperez808 wrote: > I find myself having to do the following: > > x = (some complex expression) > y = x if x else "blah" > > and I was wondering if there is any built-in idiom that can remove the > need to put (some complex expression) in the temporary var

Re: Most compact "X if X else Y" idiom

2008-10-11 Thread Aaron "Castironpi" Brady
On Oct 12, 12:01 am, [EMAIL PROTECTED] wrote: > I find myself having to do the following: > >   x = (some complex expression) >   y = x if x else "blah" > > and I was wondering if there is any built-in idiom that > can remove the need to put (some complex expression) > in the temporary variable x.

Re: Most compact "X if X else Y" idiom

2008-10-11 Thread Terry Reedy
[EMAIL PROTECTED] wrote: I find myself having to do the following: x = (some complex expression) y = x if x else "blah" and I was wondering if there is any built-in idiom that can remove the need to put (some complex expression) in the temporary variable x. A common idiom for this particu

Re: default value in __init__

2008-10-11 Thread Aaron "Castironpi" Brady
On Oct 11, 4:41 am, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > On Fri, 10 Oct 2008 06:20:35 -0700, bearophileHUGS wrote: snip > > I have seen professional programmers too use class attributes instead of > > instance ones... > > That's only a mistake if you don't mean to use cla

please solve

2008-10-11 Thread shweta mani
hi folks, i have been assigned a project on Python. i need to execute a remote shell script file from a windows machine through SSH twisted or paramiko. if it is a normal file then directly with the command sh .sh it is getting executed. self.conn.sendRequest(self, 'exec', common.NS(sh test1.sh),

Re: default value in __init__

2008-10-11 Thread Aaron "Castironpi" Brady
On Oct 10, 12:30 pm, Duncan Booth <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > >> I don't think simply re-executing the default argument > >> expression on each call works either: that would confuse at least as > >> many people as the current system. > > > May I ask you why? I think I do

Most compact "X if X else Y" idiom

2008-10-11 Thread jbperez808
I find myself having to do the following: x = (some complex expression) y = x if x else "blah" and I was wondering if there is any built-in idiom that can remove the need to put (some complex expression) in the temporary variable x. e.g. something like the below: y= foobar ((some complex e

Re: unicode .replace not working - why?

2008-10-11 Thread Kurt Peters
I had done that about 21 revisions ago. Nevertheless, why would you think that would work, when the code as shown doesn't? kurt "Dennis Lee Bieber" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Sat, 11 Oct 2008 15:05:43 -0500, Kurt Peters > <[EMAIL PROTECTED]> declaimed the

ANN: starpy-1.0.0a13

2008-10-11 Thread Godson Gera
Hi All, I am happy to announce new release of starpy (Asterisk protocols for Twisted http://starpy.sf.net ) on behalf of starpy team. starpy-1.0.0a13 can be downloaded from here https://sourceforge.net/project/showfiles.php?group_id=164040 This release contains addition of many

Re: What do _ast Load | Store | Del | AugLoad | AugStore | Param mean?

2008-10-11 Thread Eloff
On Oct 11, 9:22 pm, Benjamin <[EMAIL PROTECTED]> wrote: > Load: > a = 2 > Module(body=[Assign(targets=[Name(id='a', ctx=Store())], > value=Num(n=2))]) > > Store: > print a > Module(body=[Print(dest=None, values=[Name(id='a', ctx=Load())], > nl=True)]) > > Del: > del a > Module(body=[Delete(targets=

Re: Unicode equality from raw_input

2008-10-11 Thread Karen Tracey
2008/10/11 Damian Johnson <[EMAIL PROTECTED]> > Hi, when getting text via the raw_input method it's always a string (even > if it contains non-ASCII characters). The problem lies in that whenever I > try to check equality against a Unicode string it fails. I've tried using > the unicode method to

Re: Decrease code redundancy without breaking references

2008-10-11 Thread Chris Rebert
for cfg in settings_modules: cfg.TEMPLATE_DIRS = ("/clients/"+ cfg.SITE_FOLDER+"/templates", "/packages/apps/templates") cfg.MEDIA_FILES_PREFIX = 'http://'+ cfg.SITE_DOMAIN+'/media/' cfg.VIDEO_FILES_URL = 'http://'+ cfg.SITE_DOMAIN+'/video/' cfg.VIDEO_FILES_ROOT = '/clients/'+ cfg.S

Re: Unicode equality from raw_input

2008-10-11 Thread Chris Rebert
In order to convert a byte sequence to Unicode, Python needs to know the encoding being used. When you don't specify a encoding, it tries ASCII, which obviously errors if your byte sequence isn't ASCII, like in your case. Figure out what encoding your terminal/system is set to, then use the .decod

Re: Efficient Bit addressing in Python.

2008-10-11 Thread Ross Ridge
Ross Ridge wrote: >I don't think you can do anything faster with standard modules, although >it might not be efficient if you're only working with a single byte. Hendrik van Rooyen <[EMAIL PROTECTED]> wrote: >Thanks I was not aware of binascii module this looks powerful. Not really. It's just u

Re: Define a 2d Array?

2008-10-11 Thread skip
Jill> How do I define a 2d list? Python doesn't truly have 2d lists in the way you might think of 2d arrays in C or Fortran. It has 1d lists which can contain any Python object, including other lists. If you wanted to create a 4x5 list you'd do something like this: N = 4 M = 5

Decrease code redundancy without breaking references

2008-10-11 Thread bmalinova
My settings file --- from global_settings import * SITE_FOLDER = 'mypipe' SITE_DOMAIN = 'localhost' SITE_NAME = 'My Pipe' SITE_ID = 1 TEMPLATE_DIRS = ("/clients/"+SITE_FOLDER+"/templates", "/packages/apps/ templates") MEDIA_FILES_PREFIX = 'http://'+SITE_DOMAIN+'/medi

Re: What do _ast Load | Store | Del | AugLoad | AugStore | Param mean?

2008-10-11 Thread Benjamin
On Oct 11, 12:57 pm, Eloff <[EMAIL PROTECTED]> wrote: > In the _ast module Attribute, Subscript, Name, List, Tuple all have an > expr_context associated with them which is defined as: > > expr_context = Load | Store | Del | AugLoad | AugStore | Param > > I have no idea what they mean, and what's th

Define a 2d Array?

2008-10-11 Thread Jillian Calderon
Hi. How do I define a 2d list? For instance, to define a 4 by 5 list, I wanted to do this: n=4 m=5 world = [n][m] However, it gives me an invalid syntax error saying the index is out of range. I know this is a real newbie question, but if you could help me out, I'd really appreciate it! Thanks,

Re: pyserial: failed to readlines() after many hours running.

2008-10-11 Thread zxo102
On 10月12日, 上午1时13分, Terry Reedy <[EMAIL PROTECTED]> wrote: > Unknown wrote: > > On2008-10-11,zxo102<[EMAIL PROTECTED]> wrote: > > >> I have a system. An instrument attched to 'com1' is wireless connected > >> to many sensors at different locations. The instrument can forward > >> the "commands" (

Re: pyserial: failed to readlines() after many hours running.

2008-10-11 Thread zxo102
On 10月11日, 下午11时00分, Grant Edwards <[EMAIL PROTECTED]> wrote: > On2008-10-11,zxo102<[EMAIL PROTECTED]> wrote: > > > I have a system. An instrument attched to 'com1' is wireless connected > > to many sensors at different locations. The instrument can forward > > the "commands" (from pyserial's wri

Unicode equality from raw_input

2008-10-11 Thread Damian Johnson
Hi, when getting text via the raw_input method it's always a string (even if it contains non-ASCII characters). The problem lies in that whenever I try to check equality against a Unicode string it fails. I've tried using the unicode method to 'cast' the string to the Unicode type but this throws a

Re: connection reset by peer error

2008-10-11 Thread gigs
D'Arcy J.M. Cain wrote: On Sat, 11 Oct 2008 15:52:48 +0200 gigs <[EMAIL PROTECTED]> wrote: I connect to web site with httplib.HTTPConnection. after some time i get this error: 104 "connection reset by peer". What exception i should use to catche this error Well, what exception do you get? Yo

Re: unicode .replace not working - why?

2008-10-11 Thread John Machin
On Oct 12, 7:05 am, Kurt Peters <[EMAIL PROTECTED]> wrote: > I'm using the code below to read a pdf document, and it has no line feeds > or carriage returns in the imported text.  I'm therefore trying to just > replace the symbol that looks like it would be an end of line (found by > examining the

Re: How to do regular BASH work in Python?

2008-10-11 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Michael Torrie wrote: > But unfortunately Python is definitely not a shell-scripting language > and some things that are easy in bash are really, really hard in python ... Why not combine the two . -- h

Re: PyGUI as a standard GUI API for Python?

2008-10-11 Thread Terry Reedy
lkcl wrote: I got the impression that there is currently no Windows binary available. Correct? If not, perhaps someone trustworthy will someday donate one. -- http://mail.python.org/mailman/listinfo/python-list

Re: PyGUI as a standard GUI API for Python?

2008-10-11 Thread David Boddie
On Saturday 11 October 2008 21:40, lkcl wrote: > On Oct 11, 3:31 pm, David Boddie <[EMAIL PROTECTED]> wrote: >> You can remove layouts from layouts with the QLayout.removeItem() method. > > yes... it didn't work. a layout within a layout - i think it was a > QHorizontalLayout within a QGridLayo

class point in python

2008-10-11 Thread [EMAIL PROTECTED]
i am looking for a python implementation of this class, a point X,Y representation http://msdn.microsoft.com/en-us/library/system.drawing.point_methods.aspx is there any library that has this class? thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: regular expression question (re module)

2008-10-11 Thread bearophileHUGS
Faheem Mitha: > I need to match a string of the form > ... Please, show the code you have written so far, with your input-output examples included (as doctests, for example), and we can try to find ways to help you remove the bugs you have. Bye, bearophile -- http://mail.python.org/mailman/listin

Re: how to acess mplayer with slavemode in python?

2008-10-11 Thread Matthias Bläsing
Am Sat, 11 Oct 2008 10:46:51 -0700 schrieb [EMAIL PROTECTED]: > how to acess mplayer with slavemode in python? Have a look at: http://developer.berlios.de/projects/lbrc/ the magic is done in LBRC/MPlayer.py there are two variants present - one utiliasing a FIFO, the other starting mplayer with

regular expression question (re module)

2008-10-11 Thread Faheem Mitha
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 Eg D_A1 needs to match with DUKE1_plateD_A1.CEL, but not any of DUKE1_pla

unicode .replace not working - why?

2008-10-11 Thread Kurt Peters
I'm using the code below to read a pdf document, and it has no line feeds or carriage returns in the imported text. I'm therefore trying to just replace the symbol that looks like it would be an end of line (found by examining the characters in the "for loop") unichr(167). Unfortunately, the

Re: PyGUI as a standard GUI API for Python?

2008-10-11 Thread lkcl
ofhttp://code.google.com, and you'll need to check out a revision some > time around sep 2007 of the llpamies branch. rsrrmsrrwssrrfssnrssrr :) http://code.google.com/p/pyjamas then follow through to svn instructions, bearing in mind that, other than the llpamies branch, that code is out-of-dat

Re: book recommendation for Python newbie?

2008-10-11 Thread nage
I would have a look on Amazon at Python Programming: An Introduction to Computer Science (Paperback) -- nage nage's Profile: http://nettechguide.com/forums/member.php?u=268 View this thread: http://nettechguide.com/forums/

Re: PyGUI as a standard GUI API for Python?

2008-10-11 Thread lkcl
On Oct 11, 3:31 pm, David Boddie <[EMAIL PROTECTED]> wrote: > On Saturday 11 October 2008 11:19, lkcl wrote: > > > pyqt4 has the concept of layouts. a layout can be a horizontal > > layout, vertical, grid, and you can even specify the percentage or > > ratio of the width (or height) that individua

Re: extracting null pointer address from PyCObject with ctypes

2008-10-11 Thread Gordon Allott
Aaron "Castironpi" Brady wrote: ctypes.pythonapi.PyCObject_AsVoidPtr.restype > ctypes.pythonapi.PyCObject_AsVoidPtr.argtypes thank you so much, this works perfectly :) -- Gord Allott ([EMAIL PROTECTED]) signature.asc Description: OpenPGP digital signature -- http://mail.pytho

Re: Free to a good home - Python Pocket Reference

2008-10-11 Thread Evans
On 11 Oct, 16:59, [EMAIL PROTECTED] wrote: > Trying to get rid of stuff in preparation for moving I came across an unused > Python Pocket Reference by Mark Lutz (1st ed, published 1998).  If you'd > like it, drop me a note.  No charge for the book, but you pay the actual > postage. > > -- > Skip Mo

Re: extracting null pointer address from PyCObject with ctypes

2008-10-11 Thread Aaron "Castironpi" Brady
On Oct 11, 1:59 pm, Gordon Allott <[EMAIL PROTECTED]> wrote: > Aaron "Castironpi" Brady wrote: > > > What does print pythonapi.PyCObject_AsVoidPtr(display) give you? > > -- > >http://mail.python.org/mailman/listinfo/python-list > > Traceback (most recent call last): >   File "pygametest.py", line 1

Re: extracting null pointer address from PyCObject with ctypes

2008-10-11 Thread Gordon Allott
Aaron "Castironpi" Brady wrote: > > What does print pythonapi.PyCObject_AsVoidPtr(display) give you? > -- > http://mail.python.org/mailman/listinfo/python-list Traceback (most recent call last): File "pygametest.py", line 125, in app = PyGameOGREApp() File "pygametest.py", line 33, in __

Re: extracting null pointer address from PyCObject with ctypes

2008-10-11 Thread Aaron "Castironpi" Brady
On Oct 11, 9:45 am, Gordon Allott <[EMAIL PROTECTED]> wrote: > Aaron "Castironpi" Brady wrote: > > > My pygame install just returns an integer in get_wm_info.  Take a > > look: > > pygame.display.get_wm_info() > > {'window': 1180066, 'hglrc': 0} > pygame.display.get_wm_info()['window'] >

Re: 2to3 refactoring [was Re: Tuple parameter unpacking in 3.x]

2008-10-11 Thread Aaron "Castironpi" Brady
On Oct 11, 2:23 am, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: snip > I am talking about a clash between *conventions*, where there could be > many argument names of the form a_b which are not intended to be two item > tuples. > > In Python 2.x, when you see the function signatur

Re: how to set the time of a directory?

2008-10-11 Thread MRAB
On Oct 11, 1:18 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Oct 11, 1:27 am, "Timothy Grant" <[EMAIL PROTECTED]> wrote:> On Fri, Oct > 10, 2008 at 10:16 PM, oyster <[EMAIL PROTECTED]> wrote: > > > os.utime works only against files. so what to do for a directory? > > > thanx > > > Not s

Re: 2to3 refactoring [was Re: Tuple parameter unpacking in 3.x]

2008-10-11 Thread MRAB
On Oct 11, 8:23 am, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > On Sun, 05 Oct 2008 17:15:27 +0200, Peter Otten wrote: > > Steven D'Aprano wrote: > > >> PEP 3113 offers the following recommendation for refactoring tuple > >> arguments: > > >> def fxn((a, (b, c))): > >>     pass

What do _ast Load | Store | Del | AugLoad | AugStore | Param mean?

2008-10-11 Thread Eloff
In the _ast module Attribute, Subscript, Name, List, Tuple all have an expr_context associated with them which is defined as: expr_context = Load | Store | Del | AugLoad | AugStore | Param I have no idea what they mean, and what's the difference between them. I'm porting _ast to IronPython and th

how to acess mplayer with slavemode in python?

2008-10-11 Thread [EMAIL PROTECTED]
how to acess mplayer with slavemode in python? -- http://mail.python.org/mailman/listinfo/python-list

Re: pyserial: failed to readlines() after many hours running.

2008-10-11 Thread Grant Edwards
On 2008-10-11, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2008-10-11, zxo102 <[EMAIL PROTECTED]> wrote: > >> I have a system. An instrument attched to 'com1' is wireless >> connected to many sensors at different locations. The >> instrument can forward the "commands" (from pyserial's >> write()

Re: pyserial: failed to readlines() after many hours running.

2008-10-11 Thread Terry Reedy
Unknown wrote: On 2008-10-11, zxo102 <[EMAIL PROTECTED]> wrote: I have a system. An instrument attched to 'com1' is wireless connected to many sensors at different locations. The instrument can forward the "commands" (from pyserial's write()) to those sensors. Based on the "commands", the s

Re: Python pre-release announcements

2008-10-11 Thread Terry Reedy
Steven D'Aprano wrote: I've always hated the term "release candidate". It's been released, it is a release. A release candidate is something which may be released, but hasn't yet been chosen. I agree. They are candidates for the final release. Suffix .c1, etc, instead of .rc1 would be suff

Free to a good home - Python Pocket Reference

2008-10-11 Thread skip
Trying to get rid of stuff in preparation for moving I came across an unused Python Pocket Reference by Mark Lutz (1st ed, published 1998). If you'd like it, drop me a note. No charge for the book, but you pay the actual postage. -- Skip Montanaro - [EMAIL PROTECTED] - http://www.webfast.com/~s

Re: Porn Addiction Solutions?

2008-10-11 Thread Ph . T
BTW, this is the newsgroup of python.org, not python.com; but python does have tools that let you synth new graphics from old, and it would be interesting to know if there were any other programming approaches to this problem . On Wed, Oct 8, 2008 at 12:07 PM, <[EMAIL PROTECTED]> wrote: > Help,

Looking for a web-based messaging system

2008-10-11 Thread John Oldweiler
Mike, I hope you don't mind that I am reaching out to you this way. I came across your post on line and am looking for the exact same thing. Did you ever find something? John -- http://mail.python.org/mailman/listinfo/python-list

Re: Efficient Bit addressing in Python.

2008-10-11 Thread Hendrik van Rooyen
Lie wrote: >> This of course means that there has to be another >> thread active to actually do the i/o on a periodic basis, >> gathering the outputs and writing them out, and reading >> the inputs and scattering them to the various named input >> bits > >Not necessarily. You've mentioned two way

Re: Efficient Bit addressing in Python.

2008-10-11 Thread Hendrik van Rooyen
Ross Ridge wrote: >This is the code I use to convert large bit arrays to byte strings and >back: > >import string >import binascii >import array 8<--- examples -- >I don't think you can do anything faster with standard modules, although >it might not be efficient

Re: Efficient Bit addressing in Python.

2008-10-11 Thread Hendrik van Rooyen
"Aaron \"Castironpi\" Brady" wrote: >This is tolerable. Â If you've got a better 'clear' operation than >'xor', you're welcome to it. *grin* xor is a toggle bit fuction, and I did not like the recursive call in your code. so here is a module bsed on your BitSet: (I hope my tabs survive the journe

PyYAML: How to register my yaml.YAMLObject subclasses?

2008-10-11 Thread Matthew Wilson
I suspect the solution to my problem is something really trivial. I wrote a module called pitz that contains a class Issue: >>> pitz.Issue.yaml_tag u'ditz.rubyforge.org,2008-03-06/issue' Then I try to load a document with that same tag, but I get a ConstructorError: ConstructorError

Re: PyGUI as a standard GUI API for Python?

2008-10-11 Thread David Boddie
On Saturday 11 October 2008 11:19, lkcl wrote: > pyqt4 has the concept of layouts. a layout can be a horizontal > layout, vertical, grid, and you can even specify the percentage or > ratio of the width (or height) that individual cells can use. you > attach a layout to a widget; you can attach la

Re: HARD REAL TIME PYTHON

2008-10-11 Thread John Nagle
James Mills wrote: $ ./bench.py -m latency -t 10 -f 100 Setting up latency Test... Latency: 1.52 ms Latency: 0.78 ms Latency: 0.76 ms Latency: 0.76 ms Latency: 0.77 ms Latency: 0.77 ms Latency: 0.76 ms Latency: 0.76 ms Latency: 0.76 ms Latency: 0.77 ms Interesting. Can you do something to

Re: python debugger tips?

2008-10-11 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : 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

Scanning error

2008-10-11 Thread robin
PROBLEM I connect to my laptop to scan pictures, and each time, each single time the scanner will start scanning an inch but it stops and I get the message Cannot communicate with scanner. Cable may be disconnected or scanner may be turned off. Check status. Scanner driver will be closed. Code: 2,

sceanner connection to the pc

2008-10-11 Thread robin
PROBLEM i have already installed the software canon mp 160..the machine can print out the paper andn copy something perfectly..BUT, when i tried to scan a paper to the PC,It can't work..there's is a message 'CANNOT COMMUNICATE TO THE SCANNER. PLEASE TURN ON OR CONNECT THE MACHINE' whereas i have t

I can't get the scanner to work on my mp160.

2008-10-11 Thread robin
PROBLEM I have tried everything but I am unable to get the scanner to work . I have reinstalled drivers checked connections I have windows 2000 and all other requirements. There is a windows error code 31 that pops up. This says check connections and make sure scanner is turned on. find solution

Re: pyserial: failed to readlines() after many hours running.

2008-10-11 Thread Grant Edwards
On 2008-10-11, zxo102 <[EMAIL PROTECTED]> wrote: > I have a system. An instrument attched to 'com1' is wireless connected > to many sensors at different locations. The instrument can forward > the "commands" (from pyserial's write()) to those sensors. Based on > the "commands", the sensors kee

Ink level monitor on Canon Prixma...

2008-10-11 Thread robin
After the ink cartridge for the Canon Prixma MP 160 have been refilled and test then I press the button Stop / Reset several times but unfortunately the problem low ink indicator is still remaining as before although I have done as some user online suggested. Please tell me what to do the correct s

Error code MP170

2008-10-11 Thread robin
PROBLEM hi i'm Pauline Revelli'v just brought a canon pixma mp180/mp160. i have installed the software and everything. the printer works fine but the scanner dose not. it trys to scan but a thing comes up that says its not plug in or cable not connected with numbers. the canon is pluged in of cour

Split entries from LDAP

2008-10-11 Thread Lars
Hi I got some programming experience and I recently started looking into Python. I've read much of the tutorial from 2.6 documentation. But it was more interesting to get started on something I needed. I'm trying to create a script that creates a variable list (just a txt file to be included in bas

Re: extracting null pointer address from PyCObject with ctypes

2008-10-11 Thread Gordon Allott
Aaron "Castironpi" Brady wrote: > > My pygame install just returns an integer in get_wm_info. Take a > look: > pygame.display.get_wm_info() > {'window': 1180066, 'hglrc': 0} pygame.display.get_wm_info()['window'] > 1180066 ctypes.c_void_p( _ ) > c_void_p(1180066) > > You're sugge

pyserial: failed to readlines() after many hours running.

2008-10-11 Thread zxo102
Hello All, I have a system. An instrument attched to 'com1' is wireless connected to many sensors at different locations. The instrument can forward the "commands" (from pyserial's write()) to those sensors. Based on the "commands", the sensors keep sending corresponding data back to the instr

Re: connection reset by peer error

2008-10-11 Thread D'Arcy J.M. Cain
On Sat, 11 Oct 2008 15:52:48 +0200 gigs <[EMAIL PROTECTED]> wrote: > I connect to web site with httplib.HTTPConnection. after some time i get this > error: 104 "connection reset by peer". What exception i should use to catche > this error Well, what exception do you get? Your traceback should t

connection reset by peer error

2008-10-11 Thread gigs
I connect to web site with httplib.HTTPConnection. after some time i get this error: 104 "connection reset by peer". What exception i should use to catche this error thx! -- http://mail.python.org/mailman/listinfo/python-list

comp.lang.python u see website get some doller

2008-10-11 Thread kavitha
www.artsandscience4.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Re: how to set the time of a directory?

2008-10-11 Thread [EMAIL PROTECTED]
On Oct 11, 1:27 am, "Timothy Grant" <[EMAIL PROTECTED]> wrote: > On Fri, Oct 10, 2008 at 10:16 PM, oyster <[EMAIL PROTECTED]> wrote: > > os.utime works only against files. so what to do for a directory? > > thanx > > Not sure why you'd say that. I am. He's running Windows. > > drwxr-xr-x  2 tjg  t

Re: type-checking support in Python?

2008-10-11 Thread Arnaud Delobelle
On Oct 7, 9:52 pm, Erik Max Francis <[EMAIL PROTECTED]> wrote: > I have a unit system module (unity) in progress as well (it's working > but it's as yet unreleased), but which takes a different approach which > I think has more promise.  Instead of having multiple united types > derived from diffe

Re: default value in __init__

2008-10-11 Thread Steven D'Aprano
On Fri, 10 Oct 2008 06:20:35 -0700, bearophileHUGS wrote: >> I don't think simply re-executing the default argument expression on >> each call works either: that would confuse at least as many people as >> the current system. > > May I ask you why? I think I don't agree, but I am not sure. x = 1

Re: PyGUI as a standard GUI API for Python?

2008-10-11 Thread lkcl
On Sep 3, 4:34 pm, Michael Palmer <[EMAIL PROTECTED]> wrote: > So far, development of PyGUI seems to be a one-man effort, and it may > be slowed down by the attempt to develop the API and the > implementations concurrently. Could it be useful to uncouple the two, > such that the API would be speci

Re: default value in __init__

2008-10-11 Thread Steven D'Aprano
On Thu, 09 Oct 2008 01:39:30 -0700, kenneth (a.k.a. Paolo) wrote: > On Oct 9, 10:14 am, Christian Heimes <[EMAIL PROTECTED]> wrote: >> kenneth wrote: >> > the 'd' variable already contains the 'self.d' value of the first >> > instance and not the default argument {}. >> >> > Am I doing some stupid

Re: Python pre-release announcements

2008-10-11 Thread Steven D'Aprano
On Wed, 08 Oct 2008 08:19:33 +1100, Ben Finney wrote: >> I disagree. These say exactly what has happened and tell me what I >> want to know, which is that something new has been released, which is >> to say, made available for download. > > Which is entirely different from the “release” implicit

Re: PyGUI as a standard GUI API for Python?

2008-10-11 Thread lkcl
On Sep 17, 1:16 am, Todd Whiteman <[EMAIL PROTECTED]> wrote: > Todd Whiteman wrote: > > Mark Hammond's Python/Mozilla work has enabled products like Komodo, > > Miro (Democracy) and the OLPC project to use Python as a major driver > > for consistent cross-platform GUI applications. > > > Personally

Re: PyGUI as a standard GUI API for Python?

2008-10-11 Thread lkcl
> The role of Python is somewhat arbitrary. This could change only if > Python becomes a client side language executed by AVM, V8 etc. pyv8 - http://advogato.org/article/985.html pyjs.py - standalone python-to-javascript compiler, see http://pyjs.org. -- http://mail.python.org/mailman/listinfo/p

Re: PyGUI as a standard GUI API for Python?

2008-10-11 Thread lkcl
> 3) Following the public rumor mill and the latest hype RIA i.e. the > merge of web- and desktop applications with systems like Adobe AIR, > JavaFX, Google Gears and MS Silverlight is the future of frontend > development. With the exception of IronPython and Silverlight, Python > hasn't even enter

Re: Get "code object" of class

2008-10-11 Thread Okko Willeboordse
Thanks, "Why do you even need the classes code object anyway?" I need to instantiate and use the class in another process. This other process doesn't has access to the py or pyc file holding the m_class (source) code so I can't use pickle. Something like; In the first process (that has access to

prototpye wtp released

2008-10-11 Thread javascript fish
from:http://www.googlemother.com/wpblogs/?p=7281";>prototype wtp Prototype WTP 0.2 released,this release for Prototype 1.6.0 Prototype Prototype is a JavaScript Framework that aims to ease development of dynamic web applications. Featuring a unique, easy-to-use toolkit for class-driven developmen

Re: 2to3 refactoring [was Re: Tuple parameter unpacking in 3.x]

2008-10-11 Thread Steven D'Aprano
On Sun, 05 Oct 2008 17:15:27 +0200, Peter Otten wrote: > Steven D'Aprano wrote: > >> PEP 3113 offers the following recommendation for refactoring tuple >> arguments: >> >> def fxn((a, (b, c))): >> pass >> >> will be translated into: >> >> def fxn(a_b_c): >> (a, (b, c)) = a_b_c >> p