On Thursday, December 26, 2013 8:29:15 PM UTC-5, Roy Smith wrote:
> In article <59aa73ac-e06e-4c0e-83a4-147ac42ca...@googlegroups.com>,
>
> matt.doolittl...@gmail.com wrote:
>
>
>
> > > In [1]: import time
>
> > > In [2]: time.time()
>
> > > Out[2]: 1388085670.1567955
>
> >
>
> > OK i did
I pretty much stopped using Windows 4
>
> years ago.
>
I got off the plantation over a year ago and have not looked back.
--
https://mail.python.org/mailman/listinfo/python-list
On Thursday, December 26, 2013 11:54:41 PM UTC-5, Dave Angel wrote:
> On Thu, 26 Dec 2013 20:03:34 -0500, Terry Reedy
>
> wrote:
>
> > On 12/26/2013 5:48 PM, Dave Angel wrote:
>
> > > You're probably on Windows, which does time differently.
>
>
>
> > With 3.3 and 3.4 on Windows 7, time.tim
On Friday, December 27, 2013 11:27:58 AM UTC-5, Roy Smith wrote:
> In article <0c33b7e4-edc9-4e1e-b919-fec210c92...@googlegroups.com>,
>
> matt.doolittl...@gmail.com wrote:
>
>
>
> > I am on Ubuntu 12.10. I am still working with the 2 decimal places.
>
> > Sometime ago i had this issue and
t;> import time; time.time()
>
> 1388190102.795531
>
> >>>
>
>
>
> Please show us _exactly_ what you're doing. I'm guessing that print
>
> is confusing you.
>
>
>
matt@matt-Inspiron-1525:~$ python
Python 2.7.3 (default, Sep 26 2013, 1
On Friday, December 27, 2013 1:49:54 PM UTC-5, Ned Batchelder wrote:
> On 12/27/13 1:09 PM, matt.doolittl...@gmail.com wrote:
>
> > On Friday, December 27, 2013 11:27:58 AM UTC-5, Roy Smith wrote:
>
> >> In article <0c33b7e4-edc9-4e1e-b919-fec210c92...@googlegroups.com>,
>
> >>
>
> >> matt.do
On Monday, December 30, 2013 8:01:21 AM UTC-5, Ned Batchelder wrote:
> On 12/30/13 7:50 AM, Ned Batchelder wrote:
>
> > BTW, I said something very similar in this thread 2.5 days ago:
>
> > https://mail.python.org/pipermail/python-list/2013-December/663454.html
>
> > I get the feeling not all me
Getting in the habit of dropping in a google group for any new project -
everyone tends to be so helpful.
I work in the automotive sales industry(management) and find myself doing so
many day to day tasks that could easily be automated. I'm a very tech saavy
person, but after running in fear fr
in your mouth as I am genuinely interested in helping you further your career
or find your dream job.
I look forward to working with any and all of you.
Thanks,
Matt Battista
matthew.batti...@workbridgeassociates.com
--
https://mail.python.org/mailman/listinfo/python-list
/b)
...
>>> num = 3**171
>>> num
3870210234510307998744588107535211184800325224934979257430349324033792477926791547
>>> num2 = 4**80
>>> num2
1461501637330902918203684832716283019655932542976
>>> intdiv(num, num2)
2648105301871818722187687529062555
>>> int(num/n
ut your
script and find out though.
--
Matt Wheeler
http://funkyh.at
--
https://mail.python.org/mailman/listinfo/python-list
On 8 February 2016 at 12:17, Jussi Piitulainen
wrote:
> Also, what would be the nicest current way to express a priority union
> of dicts?
>
> { k:(d if k in d else e)[k] for k in d.keys() | e.keys() }
Since Python 3.5: {**e, **d}
--
Matt Wheeler
http://funkyh.at
--
https://mai
ule then I would
suggest patching it to have an extra, default False, argument to
enable your printing behaviour, so you don't risk messing up anyone
else's use of it.
--
Matt Wheeler
http://funkyh.at
--
https://mail.python.org/mailman/listinfo/python-list
nk our aim was a little off with a few of the
brandings.
--
Matt Wheeler
http://funkyh.at
--
https://mail.python.org/mailman/listinfo/python-list
pfile.NamedTemporaryFile with your newly created temp dir and an
arbitrary suffix, and strip the suffix off to get the name you actually
use.)
--
Matt Wheeler
http://funkyh.at
--
https://mail.python.org/mailman/listinfo/python-list
On Thu, 18 Feb 2016 11:07 Chris Angelico wrote:
> By the way... For bash users, adding this to .bashrc may make venvs a
> bit easier to keep straight:
>
> checkdir() {
> [ -n "$VIRTUAL_ENV" ] && ! [[ `pwd` =~ `dirname $VIRTUAL_ENV`* ]]
> && echo Deactivating venv $VIRTUAL_ENV... && deactivate
m sure there was a recent thread about returning the best fit type
(i.e. int, if not then float, if not then str)?
--
Matt Wheeler
http://funkyh.at
--
https://mail.python.org/mailman/listinfo/python-list
s is wordier and more fragile than using a context manager
to clean up for you, I expect you won't bother :).
[1] https://docs.python.org/2/library/contextlib.html#contextlib.closing
--
Matt Wheeler
http://funkyh.at
--
https://mail.python.org/mailman/listinfo/python-list
ld definitely still do that
too!), especially if your word list is very large.
This is because the set type uses a hashmap internally, making lookups
for matches extremely fast, compared to scanning through the list.
--
Matt Wheeler
http://funkyh.at
--
https://mail.python.org/mailman/listinfo/python-list
On 9 March 2016 at 12:06, Matt Wheeler wrote:
> But we can still do better. A list is a poor choice for this kind of
> lookup, as Python has no way to find elements other than by checking
> them one after another. (given (one of the) name(s) you've given it
> sounds a bit li
On 10 March 2016 at 18:12, wrote:
> Matt, thank you for if...else suggestion, the data of NewTotalTag.txt
> is like a simple list of words with unconventional tags, like,
>
> w1 tag1
> w2 tag2
> w3 tag3
> ...
> ...
> w3 tag3
>
> like that.
I suspected so. The
, prefix=None,
> current_app=None):
>
>
> Some ideas?
I know you have a working solution now with updating the code &
defaults of the function, but what about just injecting your function
into the modules that had already imported it after the
monkeypatching?
Seems perhaps cleaner
Hi all-
I'm writing a backup client for automating the synchronization of btrfs
snapshots between machines -- essentially piping the output of `btrfs
send` on my laptop/desktop to `btrfs receive` on a server. I've been
doing this manually for quite a while, and something automated would be
much mo
On 20 March 2016 at 16:46, Sven R. Kunze wrote:
> On 19.03.2016 00:58, Matt Wheeler wrote:
>>
>> I know you have a working solution now with updating the code &
>> defaults of the function, but what about just injecting your function
>> into the modules that ha
o recover the tuple in a variable t
>
> t = (1, 2, 3, 4)
>
> how would you do ?
>
>
> --
> https://mail.python.org/mailman/listinfo/python-list
--
Matt Wheeler
http://funkyh.at
--
https://mail.python.org/mailman/listinfo/python-list
On Thu, 24 Mar 2016 11:10 Sven R. Kunze, wrote:
> On 24.03.2016 11:57, Matt Wheeler wrote:
> >>>> import ast
> >>>> s = "(1, 2, 3, 4)"
> >>>> t = ast.literal_eval(s)
> >>>> t
> > (1, 2, 3, 4)
>
> I suppose
L[i]=0
That doesn't clear the list, that results in a list of the same length
where every element is 0. That might sound like the same thing if
you're used to a bounded array of ints, for example, but in Python
it's very much not.
--
Matt Wheeler
http://funkyh.at
--
https://mail.python.org/mailman/listinfo/python-list
bad idea -- I much
prefer overwriting self.Process as for Pool.
Does anyone have any advice for the best approach here? Should, like
Pool, BaseManager also use a class variable (Process = Process)?
Thanks in advance for any advice.
--Matt
--
https://mail.python.org/mailman/listinfo/python-list
On Monday, March 24, 2014 7:19:56 PM UTC-5, Chris Angelico wrote:
> On Tue, Mar 25, 2014 at 7:24 AM, Matt Newville
>
> > I'm maintaining a python interface to a C library for a distributed
> > control system (EPICS, sort of a SCADA system) that does a large
> > amou
cess seems more fragile than subclassing it.
It turned out that multiprocessing.pool.Pool was also very easy to subclass.
But cleanly subclassing the Managers in multiprocessing.managers look much
harder. I'm not sure if this is intentional or not, or if it should be filed
as an issue
Hey everybody,
I am using 2.7 on Ubuntu 12.10. All I need to do is to print time with the
microseconds. I have been looking at the docs and trying things for about half
a day now with no success. Currently my code looks like this:
# write date and time and microseocnds
self.
so you are saying that
self.logfile.write('%s\t'%(str(time(
should be:
self.logfile.write('%s\t'%(str(time.time(
???
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
On Friday, August 2, 2013 8:37:45 AM UTC-4, Skip Montanaro wrote:
> Perhaps use datetime?
>
>
>
> >>> now = datetime.datetime.now()
>
> >>> now.isoformat()
>
> '2013-08-02T07:37:08.430131'
>
> >>> now.strftime("%f")
>
> '430131'
>
>
>
> Skip
Thanks Skip, what i currently i have is:
On Friday, August 2, 2013 8:35:13 AM UTC-4, Steven D'Aprano wrote:
> On Fri, 02 Aug 2013 03:54:32 -0700, matt.doolittle33 wrote:
>
>
>
> > Hey everybody,
>
> >
>
> > I am using 2.7 on Ubuntu 12.10. All I need to do is to print time with
>
> > the microseconds. I have been looking at the do
ok so now i import the module like this:
from time import strftime, time
i made the write statement like this:
self.logfile.write('%s\t'%(str(strftime("%Y-%m-%d",
self.logfile.write('%s\t'%(str(strftime("%H:%M:%S",
self.logfile.write('%s\t'%(str(time(
(oh and btw,i kno
>
> Taking a step back, you're probably better off using datetimes. You'll
>
> get all this conversion nonsense for free:
>
i did:
from time import strftime, time
from datetime import datetime
now = datetime.now()
self.logfile.write('%s\t'%(strftime("%Y-%m-%d",)))
self.logf
What you're asking is a Ragged Hierarchy.
On Tuesday, September 10, 2013 5:08:45 PM UTC-4, stas poritskiy wrote:
> Greetings to all!
>
>
>
> i ran into a little logic problem and trying to figure it out.
>
>
>
> my case is as follows:
>
>
>
> i have a list of items each item represents a
Hi all,
I'm part of Plotly, and we've just finished a few releases I thought I'd pass
along.
These tools make it easy to craft interactive graphs and dashboards with D3.js
using Python. We're especially drawn towards matplotlib, pandas, and IPython.
We're still early in building, so any and a
I'll just answer the one part I don't feel has had enough attention yet,
all other parts chopped...
On Sat, 25 Jul 2015 10:39 E.D.G. wrote:
Posted by E.D.G. July 25,
2015
6. What is Python's version of the DOS level "System" command that many
programs use as in:
system "open notepad.exe"
You
turns to the line but doesn't make
> it. And if y do :
>
>>>> a="""test
> . . . to
> . . . see
> . . . if
> . . . it
> . . . is
> . . . working"""
>>>>a
> 'test\nto\nsee\nif\nit\nis\nworking'
>>>>
\n is an escape sequence rather than a command
Have a look at what happens if you try print(a)
> Thanks to fix this problems and good luck ;)
>
>
> PS : I'm sorry for this really bad english but I'm french and I'm 14
Don't worry, it's certainly better than my French!
--
Matt Wheeler
http://funkyh.at
--
https://mail.python.org/mailman/listinfo/python-list
y.make("dog") # okay. Dog is Dog.
> Cat c = Factory.make("cat") # Runtime error. Dog is not Cat.
Though it's intended for performance optimisation rather than simply
static typing for static typing's sake, you could probably use Cython
to achieve what you want...
I am trying to write a program that will loop through a text file and
delete rows in a mysql database.
It seemingly runs but I don't see anything getting deleted in the db.
Is there anything apparent that I am missing?
This is the code:
#!/usr/bin/python
import mysql.connector
#
f=open('/home/smi
i'm curious as to what can be done with (and handled better) by
adjusting sys.setswitchinterval
i've opened a question on SO for this, that people might find of
interest:
http://stackoverflow.com/questions/7376776/sys-setswitchinterval-in-python-3-2-and-beyond
--
http://mail.python.org/mailman/li
5 is the best solution, followed by 2 and 3.
On Sep 22, 2011 11:02 PM, "Steven D'Aprano" <
steve+comp.lang.pyt...@pearwood.info> wrote:
> Chris Withers wrote:
>
>> Hi All,
>>
>> Is there a way to install python on a locked down Windows desktop?
>> (ie: no compilers, no admin rights, etc)
>
> (1) Br
how do you get the call stacks like this?
On Sat, Sep 24, 2011 at 3:59 AM, Atherun wrote:
> On Sep 23, 10:47 am, Nobody wrote:
>> On Fri, 23 Sep 2011 06:59:12 +0100, Nobody wrote:
>> >> kernel32.dll!WaitForSingleObject+0x12
>> >> python26.dll!_Py_svnversion+0xcf8
>>
>> > I haven't a clue how thi
Please continue
On Sun, Sep 25, 2011 at 8:36 AM, rantingrick wrote:
> On Sep 23, 10:36 pm, Fletcher Johnson wrote:
>> The topic says it all:
>> Why is shutil named shutil? What does it stand for? This is just a
>> mild curiosity of mine.
>> The shutil module for
>> reference:http://docs.python.
I'm writing an alternative socket module, and have come across the
code for the makefile call, which mentions the following:
(XXX refactor to share code?)
http://hg.python.org/cpython/file/27adb952813b/Lib/socket.py#l149
Has this been refactored elsewhere? Is there something I can use to
wrap the S
Moving to C++ is _always_ a step backwards.
On Thu, Nov 24, 2011 at 9:29 AM, Alan Meyer wrote:
> On 11/23/2011 12:38 PM, W. eWatson wrote:
>>
>> So unless Alan Meyer has further interest in this, it looks like it's at
>> an end.
>>
>> It may be time to move on to c++.
>>
>
> C++ is a ton of fun.
Yes. Try posting your code.
On Fri, Nov 25, 2011 at 1:02 AM, Ricardo Mansilla
wrote:
> Most of méthods for improving the speed are related to efficient memory
> management and using specific structures for a specific tasks... But i have
> already optimized my code (which is very short actually)
REMOTE_HOST = 'localhost' REMOTE_PORT = 2 try:
from .settings import * except ImportError: pass
This works? If you're using an old version of Python you may need to
mess about with __future__.
On Thu, Nov 24, 2011 at 10:56 PM, Ulrich Eckhardt
wrote:
> Hi!
>
> I have a few
I haven't heard of you before, but feel like I've missed out on something.
Do you (or someone else) care to link to some of your more contentious work?
On Fri, Nov 25, 2011 at 1:19 PM, Rick Johnson
wrote:
> Hello Fellow Pythonistas,
>
> I am very glad to be back after an unfortunate incident cau
http://pyjs.org/
On Sat, Nov 26, 2011 at 3:22 PM, Sells, Fred
wrote:
> I'm looking at a variation on this theme. I currently use
> Flex/ActionScript for client side work, but there is pressure to move
> toward HTML5+Javascript and or iOS. Since I'm an old hand at Python, I
> was wondering if th
Sounds like you want a key-value store. If it's a lot of data, you may
still want a "database", I think it's just relational databases that
you're trying to avoid?
On Sun, Nov 27, 2011 at 10:41 AM, 8 Dihedral
wrote:
> On Saturday, November 26, 2011 1:01:34 AM UTC+8, rusi wrote:
>> On Nov 14,
Agreed. I recently gave Haskell a go, and it was remarkable how
similar the package management is to Python's.
How well does the new "packaging" (set for release in Python 3.3?)
module deal with the problems?
With a better package management system, the half of the standard
library that nobody us
On Sun, Nov 27, 2011 at 4:38 AM, Chris Angelico wrote:
> On Sun, Nov 27, 2011 at 4:11 AM, rusi wrote:
>> Hi Rick!
>> Glad to see you back!
>> [Courts can be dull places without jesters ye-know!]
>
> So, what... you'd take someone to court for being funny? That sounds
> like the -other- Pythons.
>
Note the re.VERBOSE flag allows this whitespace treatment of the pattern.
2011/11/29 Toshiyuki Ogura :
> Hi.
>
> I found a problem with Python 2.5.6.
> test_commands fails when 'make test'.
> bugs.python.org doesn't seem to have an option for Python 2.5 in "Versions:"
> drop-down menu when creatin
def possible_names():
yield "foo"
for i in range(20):
yield "foo-" + str(i)
ಠ_ಠ
On Thu, Dec 1, 2011 at 2:15 PM, Roy Smith wrote:
> I need to try a bunch of names in sequence until I find one that works
> (definition of "works" is unimportant). The algorithm is:
>
> 1) Given a ba
Thank you. ಠ_ಠ
On Fri, Dec 2, 2011 at 1:49 PM, Terry Reedy wrote:
> On 11/30/2011 10:49 PM, Matt Joiner wrote:
>>
>> def possible_names():
>> yield "foo"
>> for i in range(20):
>> yield "foo-" + str(i)
>
>
> Th
As long as we can dump python 2, a big congrats to anyone who makes this
possible. Thanks martin
On Dec 3, 2011 5:51 PM, "Stefan Behnel" wrote:
> Ron, 02.12.2011 22:47:
>
>> It looks like Vinay Sajip has succeeded in porting Django to Python3
>> (in a shared code base for Python 3.2 and Python 2.
2 without a doubt.
On Dec 3, 2011 5:40 PM, "Andrew Berg" wrote:
> On 12/3/2011 12:23 AM, Terry Reedy wrote:
> > PyPy has a roadmap for 3.2
> > http://pypy.org/py3donate.html
> > They definitely plan to do it one way or another.
> I never said there were no plans, but at $2567 out of $60k, I don't
Duh. What's the point you're trying to make?
On Mon, Dec 5, 2011 at 10:17 AM, 8 Dihedral
wrote:
> On Monday, December 5, 2011 4:13:01 AM UTC+8, Ian wrote:
>> On Sun, Dec 4, 2011 at 11:06 AM, 8 Dihedral
>> wrote:
>> >> If you want to talk about ways to use dicts, please start a different
Yes. I sent a mail earlier asking such and it was bounced. I'm one
email from also blocking this fellow.
On Mon, Dec 5, 2011 at 12:59 PM, Lie Ryan wrote:
> On 12/05/2011 11:52 AM, 8 Dihedral wrote:
>>
>> On Monday, December 5, 2011 7:24:49 AM UTC+8, Ian wrote:
>>>
>>> On Sun, Dec 4, 2011 at 4
This guy is an even better troll than that 8 guy. His spelling is
equally bad. His essays make some good points, but I don't see why he
doesn't shut his trap and move on.
ಠ_ಠ
On Tue, Dec 6, 2011 at 6:02 PM, alex23 wrote:
> On Dec 6, 2:36 pm, Xah Lee wrote:
>> The python community is full
;Key_for_Base'
>>> Inherited.key
'Key_for_Inheritor'
You can find more info on metaclasses here:
http://http://docs.python.org/reference/datamodel.html#customizing-class-creation
Regards
Matt
--
http://mail.python.org/mailman/listinfo/python-list
John I'm in a similar position. I've been using Geany for 2+ years and
haven't found anything to replace it.
Either the replacement tool makes it too difficult to work with Python
correctly, or I spend more time trying to understand it, rather than
getting the job done.
I also use vim on occasion w
Guido is too busy secretly pouring his cruelty and malice into a master
ring to answer trolls. Help yourself to a lesser ring on your way out.
On Dec 8, 2011 10:14 PM, "Andrea Crotti" wrote:
> On 12/08/2011 04:10 AM, Rick Johnson wrote:
>
>> ...
>>
>> Why has GvR not admonished the atrocious beha
1.0 2 House, a depended simple module that allow everyone to
> do "import girlfriend"
> money 1.0 2 Money, a depended simple module that allow everyone to
> do "import girlfriend"
> workhard 1.0 2 Keep working hard, a depend
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
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
here is the code in "hier_block2.py":
#
# Copyright 2006,2007 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundatio
oh and the version of python is 2.7.3
THanks in advance!
--
http://mail.python.org/mailman/listinfo/python-list
"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
I am using using ubuntu 12.10 i am trying to run a python block, namely OP25,
in GNU Radio Companion v3.6.3-35-g4435082f, which uses python version 2.7.3 for
some reason although python3.2 is in the lib folder. I run the following trace
command in terminal:
~$ python -m trace --count -C . op25_
>
> I know nothing about this gnuradio thingie, and you didn't supply a
>
> website url. I was wondering if the module is even intended to be run
>
> standalone, but I suppose the if __name__ == "__main__" thing is a clue
>
> that it's supposed to.
>
>
>
> I found the mixture of trace li
#
*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):
>
Hello all; I am using Ubuntu 12.10 and Python v2.7.3. I am trying to add a
directory to the PYTHONPATH. All of the commands I have found on the web have
failed. Please help me to add a directory to the PYHONPATH. The file path is
Home/home/bin. Thanks in advance.
--
http://mail.python.or
like this "~/bin" using the file system folder the path is
home/Home/bin. i have tried commands like, export
PYTHONPATH=${PYTHONPATH}:/users/matt/bin or home/matt/bin or Home/home/bin and
nothing has worked.
from what ive found on the web the Python import process is notoriously
und
My guess would be /home/matt/bin - note the leading slash.
>
>
>
> ChrisA
correct. and in the home directory i run export
PYTHONPATH=${PYTHONPATH}:/home/matt/bin and have had no luck? am i using the
wrong command?
--
http://mail.python.org/mailman/listinfo/python-list
On Tuesday, February 19, 2013 11:39:14 AM UTC-5, Chris Angelico wrote:>
>
> What exactly do you mean by "no luck"? More details would be good.
>
The program i am using (GNU radio companion) that wants to import the modules
from the ~/bin folder shows this error:
Block - import_0_0_0 - Import(
On Tuesday, February 19, 2013 11:44:32 AM UTC-5, Thomas Calmant wrote:
> Hi,
>
> Do you run Python in the same terminal than where you run the export command ?
>
no i dont. the python program looking for the modules in the ~/bin directory is
called GNU radio companion.
--
http://mail.python.
> What is PYTHONPATH actually set to? You can find out by running python
>
> interactively, then
i dont know. how do i run pythoin interactively?
--
http://mail.python.org/mailman/listinfo/python-list
Does anyone know why i keep having these double posts? please excuse them; i
am a super newbie to this forum (and python obviously).
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
>
> What is PYTHONPATH actually set to?
OK so i ran python and then :
import sys
sys.path
bash returned:
['', '/home/matt', '/users/matt/bin', '/home/matt/bin', '/Home/bin',
'/usr/lib/python2.7', '/usr/lib/python2.7/
helper as mh" failed.
The directory /home/matt/bin contains "multimode_helper.py" and this file path
is in the PYTHONPATH. I still get the import error however. so now that i know
the file path is in PYTHONPATH but i am still getting the import error i am
really confused here.
Th
Thanks Lele.
--
http://mail.python.org/mailman/listinfo/python-list
Here is the PYTHONPATH
>>> import sys
>>> sys.path
['', '/home/matt', '/users/matt/bin', '/home/matt/bin', '/Home/bin',
'/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2',
'/usr/lib/python2.7/lib-tk
I am using Ubuntu 12.10, and Python 2.7.3, GNU Radio Companion v3.6.3. I get
the this error in terminal:
in __init__
self.wxgui_waterfallsink2_0.set_callback(wxgui_waterfallsink2_0_callback)
File "/usr/local/lib/python2.7/dist-packages/gnuradio/gr/hier_block2.py",
line 54, in __getattr_
yeah im not a programmer, i have not wrote anything here that i am trying to
use; i am an end user. my only interest in this code is to get the program
working. so i have to do what i have to do try to get it working. im just
hoping that what im going through here, this error thats coming up
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,
>
specific code building the control is at
https://github.com/newville/wxmplot/blob/master/lib/imageframe.py
Hope that helps,
--Matt Newville
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
I'm trying to torubleshoot this issue for a user I support. He is running the
splinter web browser simulator trough Google Chrome, and it appears to be
causing his workstation to constantly BSOD.
His machine has the following hardware:
Dual Xeon E5-2637 Processors
NVIDIA Quadro 600 - co
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
wrote in message news:[EMAIL PROTECTED]
> On 16 Dec 2005 16:52:43 -0800, "Xah Lee" <[EMAIL PROTECTED]> wrote:
>
> physocopic drugs!
>
Please do us all the favour of taking a basic literacy course. You aren't
even close half the time, which just confirms yo
I am starting the design phase of a large project (ERP) where the
backend will mostly be Python (or Ruby) providing web services.
In this type of usage, is there any benenfit to running under Apache
as opposed to a pure Python solution using Medusa, TwistedMatrix, or
the like?
Thanks,
Matt
system from scratch then
> there's not much gained by running under Apache.
Thanks, that is exactly what I was needing to know.
Matt
--
http://mail.python.org/mailman/listinfo/python-list
ick GUIs, but I've never used it
for admin scripting and the downside is that it takes a lot of effort to do
tasks in .Net that are simple in Perl/Python/Ruby (particularly database
work). I wouldn't use C/C++ for the web, but there's nothing stopping you.
Matt
--
http://mail.python.org/mailman/listinfo/python-list
le). So long as the focus is constructive,
it will help the group better understand what they should all be striving
for and what they should all be doing. That more than anything will help
prevent you from winding up in the same mess in a few years when you
discover each person has their own coding ideas for whatever language you
opt for.
Matt
--
http://mail.python.org/mailman/listinfo/python-list
.")
frac = frac.rstrip("0")
if frac:
x = x + "." + frac
Copes if x = "132" too. If there'll always be a decimal point, then you
can leave off the initial "if".
Matt
--
| Matt Hammond
| R&D Engineer, BBC Research & Dev
= x.rstrip(".")
More concise, but slightly less readable IMO:
if "." in x:
x = x.rstrip("0").rstrip(".")
--
| Matt Hammond
| R&D Engineer, BBC Research & Development, Tadworth, Surrey, UK.
| http://kamaelia.sf.net/
| http://www.bbc.co.uk/rd/
--
http://mail.python.org/mailman/listinfo/python-list
essed by another
thread then you need a dbapi module that supports threadsafety level 2 -
"threads may share the module and connections".
- Matt
--
__
/ \__ Matt Goodall, Pollenation Internet Ltd
\__/ \w: http://www.pollenation.net
__/ \__/e:
301 - 400 of 747 matches
Mail list logo