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 atte
ients
[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 wrote:
> Thanks Matt.
> my.cnf is a readonly file and cannot be
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 wrote:
> On M
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 wrote:
> On Wed, Apr 17, 2013 at 1:20 AM, wrot
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 wrote:
> Hi,
>
#
*Matt Jones*
On Mon, Feb 18, 2013 at 1:42 PM, leonardo selmi 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):
>
"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 wrote:
> On 2013-02-15 16:17, Neil Cerutti wrote:
>
>> On 2013-02-15, Oscar Benjamin wrote:
>>
>>> if score > best_score o
Sending back to the maillist
*Matt Jones*
-- Forwarded message --
From:
Date: Thu, Feb 14, 2013 at 1:42 PM
Subject: Re: Re:
To: Matt Jones
thanks for replying Matt. I am using version 2.7.3. im not sure if this
is right but here is the code from
"/usr/local/lib/pyth
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, wrote:
> using ubuntu 12.10 i am trying to run a python block, namely OP25, in
> GNU Radio Companion v3.6.3-35-g4435082f. i g
x27;s 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 wrote:
> > Sometimes it happens that a query on one of the database servers
> >
field/?SiteId=cbmsn43218&sc_extcmp=JS_3218_advice
*Matt Jones*
On Mon, Jan 21, 2013 at 10:18 AM, Jason Hsu 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
What version of python and os are you running?
*Matt Jones*
On Fri, Jan 18, 2013 at 6:04 AM, Marcin Szewczyk wrote:
> Hi,
>
> I've done some experiments with:
> 1) multiprocessing.Process.join()
> 2) os.waitpid()
> 3) subprocess.Popen.wait()
>
> These three method
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 wrote:
> Explicit is better than implicit. Define the dunder methods so you know
> exactly what your class is doing
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.
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
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 wrote:
> Can anyone care to advise on the
you wrote would work, only 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 wrote:
> On 2013-01-09 20:13, Rodrick Brown wrote:
>
>> How can I make a class that has methods wi
nt key, value
However I'm still not sure why you'd want to do this.
*Matt Jones*
On Thu, Jan 3, 2013 at 2:21 PM, MRAB wrote:
> On 2013-01-03 20:04, subhabangal...@gmail.com wrote:
>
>> Dear Group,
>> If I take a list like the following:
>>
>> fruits = [
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 wrote:
> For those building python from source what are some tests you do to make
> sur
ms 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, wrote:
> OK, thank you all for your help yesterday!
>
> Here
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 way
21 matches
Mail list logo