On Mon, Feb 23, 2009 at 9:41 PM, Benjamin Peterson wrote:
> Michael Crute gmail.com> writes:
>> On Mon, Feb 23, 2009 at 9:03 PM, Steve Holden holdenweb.com>
>> wrote:
>> > No, it's absolutely fine. One common usage is to import symbols from
>> > sub-modules so that they are available from a sim
Mark Hammond wrote:
On 23/02/2009 11:41 PM, Chris Cormie wrote:
If that not-very-technical description [all I've ever needed] doesn't
help, you'll need to read the DW help file (HTFF1K) or wait till
someone who knows what they are doing comes along :-)
LOL, I am that person :p
LOL sounds r
On Feb 23, 5:41 pm, Michael Crute wrote:
> Is it bad form (i.e. non-pythonic) to have code in your __init__.py
> files? I know this is subjective so I'm just looking for the general
> consensus. I've heard both sides of the story and I personally feel
> its okay if the code pertains to the whole m
Gabriel Genellina wrote:
En Mon, 23 Feb 2009 10:41:20 -0200, Chris Cormie
escribió:
If that not-very-technical description [all I've ever needed] doesn't
help, you'll need to read the DW help file (HTFF1K) or wait till
someone who knows what they are doing comes along :-)
LOL, I am that per
John Machin wrote:
On Feb 23, 11:41 pm, Chris Cormie wrote:
If that not-very-technical description [all I've ever needed] doesn't
help, you'll need to read the DW help file (HTFF1K) or wait till
someone who knows what they are doing comes along :-)
LOL, I am that person :p
It wasn't apparent
On Feb 23, 11:02 pm, Chris Rebert wrote:
> On Mon, Feb 23, 2009 at 5:51 AM, venutaurus...@gmail.com
>
> wrote:
> > Hi all,
> > I am trying to find the attributes of afile whose name has
> > non english characters one like given below. When I try to run my
> > python scirpt, it fails givi
I'm trying some examples from the language ref sections on the site in
the process of learning some python in 3.0.1. I've tried to run both
of the samples below ,but the only printout is "generator object chain
at 0x11f4dc8" whether I use print() or not . How do I use the sample
to produce
Martin v. Löwis wrote:
Please don't call something dumb that you don't fully understand. It's
offenses the people who have spent lots of time developing Python --
personal, unpaid and voluntary time!
Some of the people involved are on Google's payroll.
Crying out; "Please do not criticise
Mark Hammond wrote:
On 23/02/2009 11:41 PM, Chris Cormie wrote:
If that not-very-technical description [all I've ever needed] doesn't
help, you'll need to read the DW help file (HTFF1K) or wait till
someone who knows what they are doing comes along :-)
LOL, I am that person :p
LOL sounds r
On Feb 24, 1:31 pm, John Forse wrote:
> I'm trying some examples from the language ref sections on the site in
> the process of learning some python in 3.0.1. I've tried to run both
> of the samples below ,but the only printout is "generator object chain
> at 0x11f4dc8" whether I use print()
On Feb 24, 8:29 am, "venutaurus...@gmail.com"
wrote:
> On Feb 23, 11:02 pm, Chris Rebert wrote:
>
>
>
> > On Mon, Feb 23, 2009 at 5:51 AM, venutaurus...@gmail.com
>
> > wrote:
> > > Hi all,
> > > I am trying to find the attributes of afile whose name has
> > > non english characters one
"harijay" wrote in message
news:4c7d58a1-830f-4f02-ba07-aa4910f5f...@b16g2000yqb.googlegroups.com...
In my last post I had asked about reading data from a binary file
using the struct module.
Thanks to some excellent help , I have managed to read in
successfully
most of the header of this bina
I have this line:
navs.append(A(' '+str(i+1)+'
',_href=self.action(args=request.args,vars={'_page':i,'_query':request.vars._query
or ''})))
How do I do something like this:
vars={'_page':i, if request.vars._query not None then insert this
key/value pair ('_query':request.vars._query) else insert
On Mon, Feb 23, 2009 at 9:35 PM, Wes James wrote:
> I have this line:
>
> navs.append(A(' '+str(i+1)+'
> ',_href=self.action(args=request.args,vars={'_page':i,'_query':request.vars._query
> or ''})))
>
> How do I do something like this:
>
> vars={'_page':i, if request.vars._query not None then ins
On Mon, 23 Feb 2009 21:35:38 -0700, Wes James wrote:
> I have this line:
>
> navs.append(A(' '+str(i+1)+'
> ',_href=self.action(args=request.args,vars=
{'_page':i,'_query':request.vars._query
> or ''})))
What a mess. How can you read it?
> How do I do something like this:
>
> vars={'_page':i,
On Mon, 23 Feb 2009 08:14:34 -0300, andrew cooke wrote:
> Steven D'Aprano wrote:
>> On Sun, 22 Feb 2009 13:37:27 -0300, andrew cooke wrote:
>>
>>> as far as i understand things, the best model is:
>>>
>>> 1 - everything is an object
>>> 2 - everything is passed by reference
>>
>> Except that is wr
On Mon, 23 Feb 2009 08:02:17 -0200, Gabriel Genellina wrote:
> En Mon, 23 Feb 2009 07:40:47 -0200, Kless
> escribió:
>
>> How to access from a class variable to one that is initialized on the
>> constructor?
>> --
>> class Foo():
>> foo = bar # I want to access *from here* to vari
Steven. Thx
(see my question below...)
On Mon, Feb 23, 2009 at 9:47 PM, Steven D'Aprano
wrote:
> On Mon, 23 Feb 2009 21:35:38 -0700, Wes James wrote:
>
>> I have this line:
>>
>> navs.append(A(' '+str(i+1)+'
>> ',_href=self.action(args=request.args,vars=
> {'_page':i,'_query':request.vars._query
Greetings,
As a newbie, starting with Python3, I'm working my way through Mark
Summerfield's tkinter examples. In the toolbar, there's lines like:
for image, command in (
('images/filenew.gif', self.fileNew),
('images/fileopen.gif', self.fileOpen),
('images/filesave.g
klia wrote:
>
> Hey guys;
>
> I am trying to develop a tiny program using python to search inside sqlite
> database with file extension is .db in which the program will ask users to
> enter their search query and base on that it will retrieve the results But
>
> I need the program to have so
On Feb 24, 2:54 pm, Chris Cormie wrote:
> Mark Hammond wrote:
> > On 23/02/2009 11:41 PM, Chris Cormie wrote:
>
> >>> If that not-very-technical description [all I've ever needed] doesn't
> >>> help, you'll need to read the DW help file (HTFF1K) or wait till
> >>> someone who knows what they are d
Hello All,
It occurred to me that I might just want to try copying the
subprocess.py installed in a /usr/lib/python24 installation to the
directory where I place the scripts that I need to launch my
application...I know this was mentioned earlier. Anyway, my
application worked under python 2.3 a
On Mon, 23 Feb 2009 21:56:46 -0700, Wes James wrote:
>> vars = {'_page': i}
>> if request.vars._query is not None:
>> vars['_query'] = request.vars._query
>
> Could this be:
>
> vars = {'_page': i}
> if request.vars._query:
> vars['_query'] = request.vars._query
Instead of typing "requ
For example, if I were to have the code
randomlist = ["1", "2", "3", "4"]
And I want to count the distance between strings "1" and "4" which is
3, what command can I use to do this?
--
http://mail.python.org/mailman/listinfo/python-list
Thanks Gabriel , MRAB and Mark
Instead of using the bitwise operator on the unpacked data I was
trying to do a bitwise operator directly after read. This was giving
the unsupported operand error
i.e
# version in my code - wrong
file.read(2) & 0x001f
Instead of
# version in my example and now i
test
On Sat, Feb 21, 2009 at 3:31 AM, Trip Technician wrote:
> anyone interested in looking at the following problem.
>
> we are trying to express numbers as minimal expressions using only the
> digits one two and three, with conventional arithmetic. so for
> instance
>
> 33 = 2^(3+2)+1 = 3^3+(3*
On Feb 23, 9:35 pm, collin wrote:
> For example, if I were to have the code
>
> randomlist = ["1", "2", "3", "4"]
>
> And I want to count the distance between strings "1" and "4" which is
> 3, what command can I use to do this?
You'd have to get the indexes of the two items and subtract them.
The
On Mon, 23 Feb 2009 21:35:21 -0800, collin wrote:
> For example, if I were to have the code
>
> randomlist = ["1", "2", "3", "4"]
>
> And I want to count the distance between strings "1" and "4" which is 3,
> what command can I use to do this?
This question is ambiguous. It could mean:
int("4"
>> Depends on how you write your code. If you use the bytearray type
>> (which John didn't, despite his apparent believe that he did),
>> then no conversion additional conversion is needed.
>
> According to PEP 3137, there should be no distinction between
> the two for read purposes. In 2.6,
SuPy 1.6 Available
--
http://www.cosc.canterbury.ac.nz/greg.ewing/SuPy/
Fixed some bugs in the Tool and Observer classes, and
in the linetool example.
What is SuPy?
-
SuPy is a plugin for the Sketchup 3D modelling application
that lets you script it in Python.
I am bit new to python and programming and this might be a basic question:
I have a file containing 3 columns.
first two columns are x and y axes and third column is their corresponding
values in the graph.
I want to read this in a matrix as well as plot in 2D.
Could anyone tell me how to do so
A. Your reason for emailing us off-list makes no sense. The list would
garner you more and about as quick responses, not to mention the value
it adds through public archiving. CC-ing us /might/ have made slight
sense.
B. This is your problem:
v = unicode(full_path,errors='skip')
I'd advise you
On Mon, Feb 23, 2009 at 10:41 PM, Dhananjay wrote:
> I am bit new to python and programming and this might be a basic question:
>
> I have a file containing 3 columns.
Your question is much too vague to answer. What defines a "column" for
you? Tab-separated, comma-separated, or something else alt
Well,
The three columns are tab separated and there are 200 such rows having these
3 columns in the file.
First two columns are x and y coordinates and third column is the
corresponding value.
I want to read this file as a matrix in which column1 correspond to row,
column2 corresponds to columns
On Tue, Feb 24, 2009 at 12:16 PM, Chris Rebert wrote:
> A. Your reason for emailing us off-list makes no sense. The list would
> garner you more and about as quick responses, not to mention the value
> it adds through public archiving. CC-ing us /might/ have made slight
> sense.
> B. This is your
Greg Ewing wrote:
...
What is SuPy?
-
SuPy is a plugin for the Sketchup 3D modelling application
that lets you script it in Python.
Hi Greg,
Can you review the SuPy writeup on Py3D? I couldn't get through to your
server this evening, so I couldn't check the license, if there's
a
Try os.walk for recursively walking directories. Also if you use a unicode
parameter with os.walk or os.listdir you get unicode strings in the result. To
run this successfully when you have non-ascii characters in your filenames, you
will need to use an environment that supports the characters
201 - 237 of 237 matches
Mail list logo