On 2016-07-19 22:21, alister wrote:
On Tue, 19 Jul 2016 13:06:39 +1000, Steven D'Aprano wrote:
On Tue, 19 Jul 2016 06:20 am, alister wrote:
I suggest next time you stay awake during lessons.
That's an uncalled for nasty comment. You don't know the O.P's issues or
why he is having difficulty
On Tue, 19 Jul 2016 13:06:39 +1000, Steven D'Aprano wrote:
> On Tue, 19 Jul 2016 06:20 am, alister wrote:
>
>> I suggest next time you stay awake during lessons.
>
> That's an uncalled for nasty comment. You don't know the O.P's issues or
> why he is having difficulty.
because he has failed to
On Mon, 18 Jul 2016 07:50 pm, Eric kago wrote:
> Hi Pythoners
>
> I need help in understanding hoe to put up the code to the following
> command
Hi Eric,
You might find that the "Tutor" mailing list is better for simple questions
like this:
https://mail.python.org/mailman/listinfo/tutor
Reme
On Tue, 19 Jul 2016 06:20 am, alister wrote:
> I suggest next time you stay awake during lessons.
That's an uncalled for nasty comment. You don't know the O.P's issues or why
he is having difficulty.
--
Steven
“Cheer up,” they said, “things could be worse.” So I cheered up, and sure
enough, t
On Mon, 18 Jul 2016 12:50:04 +0300, Eric kago wrote:
> Hi Pythoners
>
> I need help in understanding hoe to put up the code to the following
> command
>
>
>- Create a constructor that takes in an integer and assigns this to a
>`balance` property
>
>
>
>
> Regards,
>
> Eric Kago +25
Hi Pythoners
I need help in understanding hoe to put up the code to the following command
- Create a constructor that takes in an integer and assigns this to a
`balance` property
Regards,
Eric Kago
+254(0)714249373
Nairobi
Kenya
--
https://mail.python.org/mailman/listinfo/python-list
On Tuesday 19 November 2013 17:20:54 Ethan Furman did opine:
> On 11/19/2013 08:19 AM, Gene Heskett wrote:
> > On Tuesday 19 November 2013 11:16:10 Peter Otten did opine:
> >> Gene Heskett wrote:
> >>> OSError: [Errno 2] No such file or directory
> >>>
> >>> No clue, even when straced, as to what
On Tuesday 19 November 2013 16:48:40 xDog Walker did opine:
> On Tuesday 2013 November 19 10:57, Tim Chase wrote:
> > Just an observation here, it looks like you might have a "one"
> > instead of an "ell" in "float" in the file-name.
>
> That is exactly what I see using Monospace font where the l
On Tuesday 19 November 2013 17:17:12 xDog Walker did opine:
> On Tuesday 2013 November 19 10:57, Tim Chase wrote:
> > Just an observation here, it looks like you might have a "one"
> > instead of an "ell" in "float" in the file-name.
>
> Gene,
> In an earlier email in this thread I lied when
On Tuesday 19 November 2013 17:02:37 Mark Lawrence did opine:
> On 19/11/2013 19:06, xDog Walker wrote:
> > On Tuesday 2013 November 19 10:43, Gene Heskett wrote:
> >> Interesting, a print cmd immediately in front of that is quite noisy:
> >> ['./camview-emc-f1oat.py', '-v', '1280x720', '-C', 'cam
On Tuesday 19 November 2013 16:03:23 Tim Chase did opine:
> On 2013-11-19 13:43, Gene Heskett wrote:
> > Interesting, a print cmd immediately in front of that is quite
> > noisy: ['./camview-emc-f1oat.py', '-v', '1280x720', '-C',
> > 'camview.cfg', '-g', 'cam.ui', '-H', 'campins.hal', '-w',
> > '1
On Tuesday 2013 November 19 10:57, Tim Chase wrote:
> Just an observation here, it looks like you might have a "one"
> instead of an "ell" in "float" in the file-name.
Gene,
In an earlier email in this thread I lied when I stated the name of the
file you were missing (I retyped what I tho
On 19/11/2013 19:06, xDog Walker wrote:
On Tuesday 2013 November 19 10:43, Gene Heskett wrote:
Interesting, a print cmd immediately in front of that is quite noisy:
['./camview-emc-f1oat.py', '-v', '1280x720', '-C', 'camview.cfg', '-g',
'cam.ui', '-H', 'campins.hal', '-w', '150995278']
The fil
On Tuesday 2013 November 19 10:57, Tim Chase wrote:
> Just an observation here, it looks like you might have a "one"
> instead of an "ell" in "float" in the file-name.
That is exactly what I see using Monospace font where the letter and digit are
different shapes.
--
Yonder nor sorghum stenches
On Tuesday 2013 November 19 10:43, Gene Heskett wrote:
> Interesting, a print cmd immediately in front of that is quite noisy:
> ['./camview-emc-f1oat.py', '-v', '1280x720', '-C', 'camview.cfg', '-g',
> 'cam.ui', '-H', 'campins.hal', '-w', '150995278']
The file it cannot find is apparently ./camvi
On 2013-11-19 13:43, Gene Heskett wrote:
> Interesting, a print cmd immediately in front of that is quite
> noisy: ['./camview-emc-f1oat.py', '-v', '1280x720', '-C',
> 'camview.cfg', '-g', 'cam.ui', '-H', 'campins.hal', '-w',
> '150995278']
This suggests that the value of "cmd" is indeed a list of
On Tuesday 19 November 2013 12:42:28 Tim Chase did opine:
> On 2013-11-19 12:19, Gene Heskett wrote:
> > > On 2013-11-19 11:19, Gene Heskett wrote:
> > > >>> Traceback (most recent call last):
> > > >>> File "/usr/bin/axis", line 3326, in
> > > >>>
> > > >>> _dynamic_tabs(inifile)
> > >
On 11/19/2013 08:19 AM, Gene Heskett wrote:
On Tuesday 19 November 2013 11:16:10 Peter Otten did opine:
Gene Heskett wrote:
OSError: [Errno 2] No such file or directory
No clue, even when straced, as to what file might be missing.
So, how do I find out?
How about inserting a
print cmd
be
Gene Heskett wrote:
> On Tuesday 19 November 2013 11:16:10 Peter Otten did opine:
>
>> Gene Heskett wrote:
>> > Old python, 2.6.4 I believe, not update able from the Ubuntu 10.04.3
>> > LTS repo's.
>> >
>> > Should be a mauchs nichs as the code was written on, and is running
>> > on, several of
On Tuesday 2013 November 19 09:19, Gene Heskett wrote:
> _dynamic_tabs is not a file in /usr/lib/python2.6, nor does it "grep" in
> that directory.
The Traceback says that _dynamic_tabs is in /usr/bin/axis .
--
Yonder nor sorghum stenches shut ladle gulls stopper torque wet
strainers.
--
http
On 2013-11-19 12:19, Gene Heskett wrote:
> > On 2013-11-19 11:19, Gene Heskett wrote:
> > >>> Traceback (most recent call last):
> > >>> File "/usr/bin/axis", line 3326, in
> > >>>
> > >>> _dynamic_tabs(inifile)
> > >>>
> > >>> File "/usr/bin/axis", line 3182, in _dynamic_tabs
> >
On Tuesday 19 November 2013 12:12:49 Tim Chase did opine:
> On 2013-11-19 11:19, Gene Heskett wrote:
> >>> Traceback (most recent call last):
> >>> File "/usr/bin/axis", line 3326, in
> >>>
> >>> _dynamic_tabs(inifile)
> >>>
> >>> File "/usr/bin/axis", line 3182, in _dynamic_tabs
>
On Tuesday 2013 November 19 08:19, Gene Heskett wrote:
> You are suggesting I edit /usr/lib/python2.6/subprocess.py?
You should use either
subprocess.Popen(["ls", "-l"])
or
subprocess.Popen("ls -l")
The argument to the first is a two element list.
The argument to the second is a str
On 2013-11-19 11:19, Gene Heskett wrote:
>>> Traceback (most recent call last):
>>> File "/usr/bin/axis", line 3326, in
>>>
>>> _dynamic_tabs(inifile)
>>>
>>> File "/usr/bin/axis", line 3182, in _dynamic_tabs
>>>
>>> child = Popen(cmd)
>
> You are suggesting I edit /usr/lib/py
On Tuesday 19 November 2013 11:16:10 Peter Otten did opine:
> Gene Heskett wrote:
> > Old python, 2.6.4 I believe, not update able from the Ubuntu 10.04.3
> > LTS repo's.
> >
> > Should be a mauchs nichs as the code was written on, and is running
> > on, several of these same linuxcnc installs.
>
On Tuesday 19 November 2013 08:51:09 Albert Dengg did opine:
> On Tue, Nov 19, 2013 at 04:31:15AM -0500, Gene Heskett wrote:
> ...
>
> > But when I switch in, as one of the plugins a new .py version of
> > camview- emc, I get this when I attempt to run linuxcnc -l, where the
> > -l is "use the sa
Gene Heskett wrote:
> Old python, 2.6.4 I believe, not update able from the Ubuntu 10.04.3 LTS
> repo's.
>
> Should be a mauchs nichs as the code was written on, and is running on,
> several of these same linuxcnc installs.
>
> But when I switch in, as one of the plugins a new .py version of cam
On Tue, Nov 19, 2013 at 04:31:15AM -0500, Gene Heskett wrote:
...
> But when I switch in, as one of the plugins a new .py version of camview-
> emc, I get this when I attempt to run linuxcnc -l, where the -l is "use the
> same config as last time" option.
>
> Starting LinuxCNC...
> Traceback (mos
Old python, 2.6.4 I believe, not update able from the Ubuntu 10.04.3 LTS
repo's.
Should be a mauchs nichs as the code was written on, and is running on,
several of these same linuxcnc installs.
But when I switch in, as one of the plugins a new .py version of camview-
emc, I get this when I atte
On 2/18/2013 2:42 PM, leonardo selmi wrote:
i saved the above program from python shell into a file as "circle.py" .
Which copied too much into the file.
Edit circle.py until it is a proper python program.
My initial guess was that you copied the >>> prompts, but you later
message shows that
leonardo libero.it> writes:
> here is the error message:
> [...]
Okay, now we are on the road to solving this problem.
But first we need to take a slight detour and learn about python packaging,
because no matter what the current error is, naming a module "circle" and then
throwing it naked out
On 02/18/2013 12:14 PM, leonardo wrote:
thanks guys and sorry for my incomplete datas, here is the error message:
Traceback (most recent call last):
File "", line 1, in
import circle
File "circle.py", line 1
Python 2.7.3 (v2.7.3:70274d53c1dd, Apr 9 2012, 20:52:43)
^
Sy
thanks guys and sorry for my incomplete datas, here is the error message:
Traceback (most recent call last):
File "", line 1, in
import circle
File "circle.py", line 1
Python 2.7.3 (v2.7.3:70274d53c1dd, Apr 9 2012, 20:52:43)
^
SyntaxError: invalid syntax
thanks for any hel
Leonardi,
> i saved the above program from python shell into a file as "circle.py" . when
> i type "import circle" i get error..
Next time, please mention what kind of error you're getting.
Was it an indentation error? Because, as you pasted it, your code would lead to
one.
If I fix the ind
On 02/18/2013 11:42 AM, 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):
return 2 * math.pi * radius
i saved the above program from python shell into a
leonardo selmi icloud.com> writes:
> [...]
> i saved the above program from python shell into a file as
> "circle.py" . when i type "import circle" i get error..
Urm... would you be so kind as to copy and paste the error message verbatim? You
have obvious syntax errors in this code due to improp
Is this exactly how it shows in your shell? If so, it seems you need to
indent your methods.
#
import math
def area(radius):
return math.pi * radius**2
def circumference(radius):
return 2 * math.pi * radius
#***
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
i saved the above program from python shell into a file as "circle.py" . when i
type "import circ
On Sep 5, 2011, at 8:33 AM, Simon Cropper wrote:
> Dabo is a great product. Spoke extensively with Ed Leafe and Paul McNett.
> Unfortunately the framework is not 'dynamic'. If you have an fixed database
> and tables it can quite quickly create a basic data entry setup and menu.
> Looks great wh
On 06/09/11 00:40, alex23 wrote:
On Sep 5, 3:18 pm, Simon Cropper
wrote:
My investigations have generally found that windows/forms/data entry
screen can be created for a specific table or view, but these are
hard-wired during development. Is there anyway of rapidly defining the
grid during runti
On Sep 5, 3:18 pm, Simon Cropper
wrote:
> My investigations have generally found that windows/forms/data entry
> screen can be created for a specific table or view, but these are
> hard-wired during development. Is there anyway of rapidly defining the
> grid during runtime so any table can be view
On 05/09/11 23:23, pyt...@bdurham.com wrote:
Check out dabodev.com. Dabo is a Python framework created by former VFP
developers.
Dabo is a great product. Spoke extensively with Ed Leafe and Paul
McNett. Unfortunately the framework is not 'dynamic'. If you have an
fixed database and tables it
Hi Simon,
> I am a applications developer - originally from Windows using primarily
Visual Foxpro, although I am familiar with a variety of other xbase
derivatives.
Check out dabodev.com. Dabo is a Python framework created by former VFP
developers.
Highly recommended.
Malcolm
--
http://mail
On 05/09/11 20:40, Thomas Jollans wrote:
It depends on which windowing toolkit you're planning to use. If you use
PyGTK, you'd want a TreeView widget to display the list. Fill a
ListStore instance with your data and give that to the TreeView. You can
implement filtering and sorting on top of that
On 05/09/11 07:18, Simon Cropper wrote:
> I am looking for the ability to create dynamic grids in a window but
> can't for the life of me find how to do this.
It depends on which windowing toolkit you're planning to use. If you use
PyGTK, you'd want a TreeView widget to display the list. Fill a
Li
On 05/09/11 17:19, Steven D'Aprano wrote:
On Mon, 5 Sep 2011 03:18 pm Simon Cropper wrote:
I am looking for the ability to create dynamic grids in a window but
can't for the life of me find how to do this.
What GUI toolkit are you using?
I have looked at wxGlade, Boa Constructor, wxFormBu
On Mon, 5 Sep 2011 03:18 pm Simon Cropper wrote:
> I am looking for the ability to create dynamic grids in a window but
> can't for the life of me find how to do this.
What GUI toolkit are you using?
--
Steven
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I am a applications developer - originally from Windows using primarily
Visual Foxpro, although I am familiar with a variety of other xbase
derivatives. I now use Linux / Ubuntu, and have been actively teaching
myself Python with the view to migrate most of my applications to
sqlite-based
Hi, If you like programming problems and reading about/creating
solutions to tasks in many languages not just Python, then take a look
at Rosetta Code: http://www.rosettacode.org . If you 'lurk' for a
while and read the submissions of others to get a feal for the site,
then their is a list of tasks
>
> ...where the image data is loaded into a numpy array
> (1600x1200x3)...
One comment: that is a big array, too big for the cache memory. I know
that in these cases it makes a difference how many times the slices of
the array are loaded and unloaded from RAM onto cache. One issue is
that a 2D a
ttest wrote:
>> Reimplement colorsys.rgb_to_hsv() such that it operates on arrays instead of
>> scalars. Only minor modifications are necessary.
>>
>> --
>> Robert Kern
>
> Thanks! I'll try and see if a newcomer like me can get his head
> around the array-centric modifications to colorsys.
If yo
> Reimplement colorsys.rgb_to_hsv() such that it operates on arrays instead of
> scalars. Only minor modifications are necessary.
>
> --
> Robert Kern
Thanks! I'll try and see if a newcomer like me can get his head
around the array-centric modifications to colorsys.
--
http://mail.python.org/mai
ttest wrote:
> Hello,
>
> I'm working on an image processing project using the Python Imaging
> Library along with numpy. Right now, I'm trying to build a speedy
> script for converting whole images between the RGB and the HSV (a.k.a.
> HSB) color spaces. Unfortunately, the code I've made so far
Hello,
I'm working on an image processing project using the Python Imaging
Library along with numpy. Right now, I'm trying to build a speedy
script for converting whole images between the RGB and the HSV (a.k.a.
HSB) color spaces. Unfortunately, the code I've made so far runs
dreadfully slow wit
On Monday 13 June 2005 03:59 am, Steven D'Aprano wrote:
> Are there any useful naming conventions for modules, classes and functions?
>
> For instance, should I name functions as verbs and classes as nouns?
Hmm. Okay, here's a few I use:
Classes are generally: Capitalized or CapWords and I use
Steven D'Aprano wrote:
> Are there any useful naming conventions for modules, classes and
> functions?
>
> For instance, should I name functions as verbs and classes as nouns?
>
> eg
> class Transformer():
> pass
>
> def transform():
> do_stuff
>
> What about the module name? transform
Are there any useful naming conventions for modules, classes and functions?
For instance, should I name functions as verbs and classes as nouns?
eg
class Transformer():
pass
def transform():
do_stuff
What about the module name? transformations.py or transform.py?
What do people do wit
www.sourceforge.net
--
http://mail.python.org/mailman/listinfo/python-list
I love Python and started back when 1.52 was the popular version.
Whilst learning Python, I created a website framework called [EMAIL PROTECTED],
which I run at the following two sites :
http://www.meeks.ca
All content is done in [EMAIL PROTECTED] and static pages are created.
http://www.programm
59 matches
Mail list logo