This typically indicates that the peer at the other end of the tcp
connection severed the session without the typical FIN packet. If you're
treating the printer as a blackbox then there really isn't anything you
can do here except catch the exception and attempt to reconnect.
*Matt Jones
Matt Jones added the comment:
Is this really a documentation issue? Is it not generally understood that
using absolute paths to libraries is a bad idea due to the amount of
PATH/symlink spaghetti that the average file system contains?
--
nosy: +Matt.Jones
I've never used ConfigParser either, but shouldn't the [client] section
have the options mmz, pass1, or localhost somewhere? Do you need to
add them to that file?
*Matt Jones*
On Mon, May 6, 2013 at 2:20 PM, MMZ programmer.toro...@gmail.com wrote:
On Monday, May 6, 2013 3:11:33 PM UTC-4
[client]
#password = your_password
port= 3306
socket = /tmp/mysql.sock
mmz = bleh
pass1 = blah
localhost = bluargh
*Matt Jones*
On Mon, May 6, 2013 at 3:37 PM, MMZ programmer.toro...@gmail.com wrote:
Thanks Matt.
my.cnf is a readonly file
When slicing: l[start:end:step]
In your example of a[2::-1] you are reversing the list by using a step of
-1, then you are slicing at index 2 (third element).
*Matt Jones*
On Tue, Apr 16, 2013 at 10:30 AM, Chris Angelico ros...@gmail.com wrote:
On Wed, Apr 17, 2013 at 1:20 AM, idkfaidkfaid
Store the day as well as the serial_number in your file. If the day is the
same as today's day, use the serial_number, if not, use 1. At the end of
you program write the current day and serial_number.
*Matt Jones*
On Thu, Feb 28, 2013 at 1:00 PM, Morten Engvoldsen mortene...@gmail.comwrote
#
*Matt Jones*
On Mon, Feb 18, 2013 at 1:42 PM, leonardo selmi l.se...@icloud.com wrote:
pls i need help:
i have copied the following from a book and tried to make it work:
import math
def area(radius):
return math.pi * radius**2
def circumference(radius):
return 2 * math.pi * radius
Only in Python 3.
Use best practices always, not just when you have to.
*Matt Jones*
On Fri, Feb 15, 2013 at 11:52 AM, MRAB pyt...@mrabarnett.plus.com wrote:
On 2013-02-15 16:17, Neil Cerutti wrote:
On 2013-02-15, Oscar Benjamin oscar.j.benja...@gmail.com wrote:
if score best_score
Please post the code, or a link to the code...
Also, what version of python are you running this code over?
*Matt Jones*
On Thu, Feb 14, 2013 at 12:26 PM, md...@nycap.rr.com wrote:
using ubuntu 12.10 i am trying to run a python block, namely OP25, in
GNU Radio Companion v3.6.3-35
Sending back to the maillist
*Matt Jones*
-- Forwarded message --
From: md...@nycap.rr.com
Date: Thu, Feb 14, 2013 at 1:42 PM
Subject: Re: Re:
To: Matt Jones matt.walker.jo...@gmail.com
thanks for replying Matt. I am using version 2.7.3. im not sure if this
is right
warning though that the SQL Server my still be working even if you
cancel an operation from the outside (which could compound your problem).
*Matt Jones*
On Sat, Jan 26, 2013 at 9:43 AM, Jason Friedman jsf80...@gmail.com wrote:
Sometimes it happens that a query on one of the database servers
/?SiteId=cbmsn43218sc_extcmp=JS_3218_advice
*Matt Jones*
On Mon, Jan 21, 2013 at 10:18 AM, Jason Hsu jhsu802...@gmail.com wrote:
I am looking for a position as a software development engineer. I'm
currently learning to develop Android apps (
http://www.jasonhsu.com/android-apps), and I use
What version of python and os are you running?
*Matt Jones*
On Fri, Jan 18, 2013 at 6:04 AM, Marcin Szewczyk python-l...@wodny.orgwrote:
Hi,
I've done some experiments with:
1) multiprocessing.Process.join()
2) os.waitpid()
3) subprocess.Popen.wait()
These three methods behave
Explicit is better than implicit. Define the dunder methods so you know
exactly what your class is doing when being indexed. You only need
__getitem__ and __setitem__ really, but if you want to treat it just like a
dict you'll need __delitem__, __len__, __iter__, __contains__ as well.
*Matt
Or do what Steven said if its exactly a dict and doesn't require special
management of the underlying dict.
*Matt Jones*
On Wed, Jan 16, 2013 at 8:58 AM, Matt Jones matt.walker.jo...@gmail.comwrote:
Explicit is better than implicit. Define the dunder methods so you know
exactly what your
Pay isn't linked to the people in any way. A dictionary would serve this
purpose better (at least in this simple example).
database = {
'Mac' : 1000,
'Sam' : 2000
}
name = raw_input('Enter your name:')
if name in database.keys(): print your pay is $, database[name]
*Matt Jones
return those literals thought,
you'd want to do something meaningful inside of SystemList's methods.
*Matt Jones*
On Wed, Jan 9, 2013 at 3:28 PM, MRAB pyt...@mrabarnett.plus.com wrote:
On 2013-01-09 20:13, Rodrick Brown wrote:
How can I make a class that has methods with attributes and other
Does this look sufficient for what? You haven't actually told us what it
is you're trying to accomplish. I gave you the how, you must supply the
why.
*Matt Jones*
On Wed, Jan 9, 2013 at 6:43 PM, Rodrick Brown rodrick.br...@gmail.comwrote:
Can anyone care to advise on the following? Based
Run the unittests. the test___all___.py test runner can be found under
your python installation directory's lib/python-X.X/test/.
*Matt Jones*
On Thu, Jan 3, 2013 at 8:43 AM, Rita rmorgan...@gmail.com wrote:
For those building python from source what are some tests you do to make
sure
to do this.
*Matt Jones*
On Thu, Jan 3, 2013 at 2:21 PM, MRAB pyt...@mrabarnett.plus.com wrote:
On 2013-01-03 20:04, subhabangal...@gmail.com wrote:
Dear Group,
If I take a list like the following:
fruits = ['banana', 'apple', 'mango']
for fruit in fruits:
print 'Current fruit
or
rooms_on_floor is received from the user.
something like...:
rooms_on_floor = int(input(Enter the number of rooms on floor: ))
total_rooms += rooms_on_floor
*Matt Jones*
On Tue, Jan 1, 2013 at 2:14 PM, worldsbiggestsabres...@gmail.com wrote:
OK, thank you all for your help yesterday!
Here's
Matt Jones added the comment:
Andrew, below is a revision of your comment with a few corrections made by a
native english speaker.
Function :c:func:`Py_SetProgramName` should be called before
:c:func:`Py_Initialize` to inform the interpreter about paths to Python
run
I have an opportunity for talented Python Developers with Django experience
based in the South of the UK.
I am recruiting for a funded new venture set up by two successful entrepreneurs
who are experienced and well--respected scientists and mathematicians. They're
building a new and radical
23 matches
Mail list logo