Hope Rouselle writes:
> Hope Rouselle writes:
>
>> Dennis Lee Bieber writes:
>>
>>> On Sun, 15 Aug 2021 00:05:29 -0300, Jack Brandom
>>> declaimed the following:
>>>
Dennis Lee Bieber writes:
>>>
> subscript: '.' '.' '.' | test | [test] ':' [test] [sliceop]
> sliceop: ':' [te
Hope Rouselle writes:
> Dennis Lee Bieber writes:
>
>> On Sun, 15 Aug 2021 00:05:29 -0300, Jack Brandom
>> declaimed the following:
>>
>>>Dennis Lee Bieber writes:
>>>
>>
subscript: '.' '.' '.' | test | [test] ':' [test] [sliceop]
sliceop: ':' [test]
>>
>>>
>>>This is looking less re
Dennis Lee Bieber writes:
> On Sun, 15 Aug 2021 00:05:29 -0300, Jack Brandom
> declaimed the following:
>
>>Dennis Lee Bieber writes:
>>
>
>>> subscript: '.' '.' '.' | test | [test] ':' [test] [sliceop]
>>> sliceop: ':' [test]
>
>>
>>This is looking less readable, so, no, I prefer that previous
On Sun, 15 Aug 2021 00:05:29 -0300, Jack Brandom
declaimed the following:
>Dennis Lee Bieber writes:
>
>> subscript: '.' '.' '.' | test | [test] ':' [test] [sliceop]
>> sliceop: ':' [test]
>
>This is looking less readable, so, no, I prefer that previous, which was
>much clearer about slices.
Dennis Lee Bieber writes:
> On Wed, 11 Aug 2021 11:59:11 -0300, Jack Brandom
> declaimed the following:
>
>>
>>Where are these production rules coming from? They're not at
>>
>> https://docs.python.org/3/reference/grammar.html
>>
>>The word ``stride'' doesn't appear in this grammar.
>
>
On 11/08/2021 20.17, dn wrote:
I've been trying to remember if we had negative-steps in FORTRAN
do-loops
My text for Fortran 77 (the last version that I ever used) says
that negative increments are supported.
Ref: _FORTRAN 77: Language and Style_; Michael J. Merchant;
Wadsworth Publishing Co
On Thu, 12 Aug 2021 13:17:32 +1200, dn via Python-list
declaimed the following:
>I've been trying to remember if we had negative-steps in FORTRAN
>do-loops especially once the capability to define subscripting-ranges
>came 'in' (but can't be bothered researching further). If it was
>available, o
On 12/08/2021 10.32, Dennis Lee Bieber wrote:
> On Wed, 11 Aug 2021 11:59:11 -0300, Jack Brandom
> declaimed the following:
>> Where are these production rules coming from? They're not at
>> https://docs.python.org/3/reference/grammar.html
>> The word ``stride'' doesn't appear in this grammar.
if you can call it that)
>> The above rules describing an index do not apply to a slice's "start",
>> "stop", or "step" values! The documentation expresses:
>>
>> proper_slice ::= [lower_bound] ":" [upper_bound] [ "
On Wed, 11 Aug 2021 11:59:11 -0300, Jack Brandom
declaimed the following:
>
>Where are these production rules coming from? They're not at
>
> https://docs.python.org/3/reference/grammar.html
>
>The word ``stride'' doesn't appear in this grammar.
>
Possibly from older versions of the g
e one of the
> web.refs (offered below) "If i or j is negative, the index is relative
> to the end of sequence s: len(s) + i or len(s) + j is substituted. But
> note that -0 is still 0."
>
> Clear as mud? Please continue...
>
>
>> But this example gives me the idea
0."
Clear as mud? Please continue...
> But this example gives me the idea that perhaps each slice is equivalent
> to a certain loop (which I could write in a procedure). So I'm looking
> for these procedures. If I can have the procedures in mind, I think I
> will be able
Chris Angelico writes:
> On Tue, Aug 10, 2021 at 7:24 AM Jack Brandom wrote:
>>
>> Greg Ewing writes:
>>
>> > On 6/08/21 12:00 pm, Jack Brandom wrote:
>> >> It seems
>> >> that I'd begin at position 3 (that's "k" which I save somewhere), then I
>> >> subtract 1 from 3, getting 2 (that's "c", wh
On Tue, Aug 10, 2021 at 7:24 AM Jack Brandom wrote:
>
> Greg Ewing writes:
>
> > On 6/08/21 12:00 pm, Jack Brandom wrote:
> >> It seems
> >> that I'd begin at position 3 (that's "k" which I save somewhere), then I
> >> subtract 1 from 3, getting 2 (that's "c", which I save somewhere), then
> >> I
Greg Ewing writes:
> On 6/08/21 12:00 pm, Jack Brandom wrote:
>> It seems
>> that I'd begin at position 3 (that's "k" which I save somewhere), then I
>> subtract 1 from 3, getting 2 (that's "c", which I save somewhere), then
>> I subtract 1 from 2, getting 1 (that's "a", ...), then I subtract 1 f
On 6/08/21 12:00 pm, Jack Brandom wrote:
It seems
that I'd begin at position 3 (that's "k" which I save somewhere), then I
subtract 1 from 3, getting 2 (that's "c", which I save somewhere), then
I subtract 1 from 2, getting 1 (that's "a", ...), then I subtract 1 from
1, getting 0 (that's J, ...),
On Sat, Aug 7, 2021 at 5:22 AM Boris Dorestand wrote:
>
> Jach Feng writes:
>
> >> > s = "Jack Brandom"
> >> > s[3 : -13 : -1]
> >> >> 'kcaJ'
> >> >> I have no idea how to replace that -13 with a positive index. Is it
> >> >> possible at all?
> > That's not possible because a positive ind
Jach Feng writes:
>> > s = "Jack Brandom"
>> > s[3 : -13 : -1]
>> >> 'kcaJ'
>> >> I have no idea how to replace that -13 with a positive index. Is it
>> >> possible at all?
> That's not possible because a positive index is relative to the leftmost item > 0
And the middle index is al
> > s = "Jack Brandom"
> > s[3 : -13 : -1]
> >> 'kcaJ'
> >> I have no idea how to replace that -13 with a positive index. Is it
> >> possible at all?
That's not possible because a positive index is relative to the leftmost item 0
Below is some rules of slice usage which I collected so
"Michael F. Stemper" writes:
> On 05/08/2021 12.35, Jack Brandom wrote:
>> The FAQ at
>>https://docs.python.org/3/faq/programming.html#what-s-a-negative-index
>> makes me think that I can always replace negative indices with
>> positive
>> ones --- even in slices, although the FAQ seems not t
On 05/08/2021 12.35, Jack Brandom wrote:
The FAQ at
https://docs.python.org/3/faq/programming.html#what-s-a-negative-index
makes me think that I can always replace negative indices with positive
ones --- even in slices, although the FAQ seems not to say anything
about slices.
With slices, i
quivalent
to a certain loop (which I could write in a procedure). So I'm looking
for these procedures. If I can have the procedures in mind, I think I
will be able to undersand slices without getting surprised.
Do you have these procedures from the top of your mind? While I haven't
On Sun, Jul 31, 2016 at 4:40 PM, Steven D'Aprano wrote:
>> While neither is a syntax error, the latter is definitely a run-time
>> error:
>>
> mylist.sort().reverse()
>> Traceback (most recent call last):
>> File "", line 1, in
>> AttributeError: 'NoneType' object has no attribute 'reverse'
>
> >> mylist = mylist.sort()
> >>
> >> or try to write:
> >>
> >> mylist.sort().reverse()
> >>
> >> If we had procedures, that would be an obvious error (possibly even a
> >> compile-time syntax error) instead of a perp
On Sun, 31 Jul 2016 02:01 pm, D'Arcy J.M. Cain wrote:
> On Sun, 31 Jul 2016 13:32:16 +1000
> Steven D'Aprano wrote:
>> Many beginners make the mistake of writing:
>>
>> mylist = mylist.sort()
>>
>> or try to write:
>>
>> mylist.sort
On Sun, Jul 31, 2016, at 00:01, D'Arcy J.M. Cain wrote:
> On Sun, 31 Jul 2016 13:32:16 +1000
> Steven D'Aprano wrote:
> > Many beginners make the mistake of writing:
> >
> > mylist = mylist.sort()
> >
> > or try to write:
> >
> > m
east that's the theory. In practice its not
> quite cut and dried. Procedures are for things which purely operate by
> side-effect: they're verbs, doing words:
That's all very well in theory, but as you say, it's far from cut and
dried. Taking the example that started all this
On Sun, 31 Jul 2016 13:32:16 +1000
Steven D'Aprano wrote:
> Many beginners make the mistake of writing:
>
> mylist = mylist.sort()
>
> or try to write:
>
> mylist.sort().reverse()
>
> If we had procedures, that would be an obvious error (possibly even a
> co
On Sun, 31 Jul 2016 12:17 pm, Chris Angelico wrote:
> Yeah. The distinction means you have a fundamental API difference
> between the procedures (which don't return anything) and the functions
> (whose return values you mightn't care about).
Correct.
> It means you can&
uot;native" python routine
> where I have the numpy/scipy procedures already written.
>
> Does anyone have any experience with this? Is it possible?
>
> I had toyed with the idea of having jython/java write the data to a
> file/database and then manually kick off the p
thon routine
> where I have the numpy/scipy procedures already written.
>
> Does anyone have any experience with this? Is it possible?
>
> I had toyed with the idea of having jython/java write the data to a
> file/database and then manually kick off the python process, but
>
Hmmm, XML is an interesting angle... I'll noodle it...
--
http://mail.python.org/mailman/listinfo/python-list
jython call a "native" python routine
> where I have the numpy/scipy procedures already written.
>
> Does anyone have any experience with this? Is it possible?
I have no experience with these technologies, and others can point you
to more detailed info, but you could try using XML-RP
Hi there,
I have an application that only publishes a Java API. I can use jython
to access java classes, but jython currently (to the best of my
knowledge) does not support numpy/scipy.
Ideally I would like to have jython call a "native" python routine
where I have the numpy/scipy
> >> "scene 1, pnl 1, 3+8, pnl 2, 1+12, pnl 3, 12, pnl 4, 2+4,"
> >>
> >> I'm parsing the string by finding the commas, and pulling out the
> >> data between them.
> >> No problem so far (I think...) The trouble is, there is a place
>
Greg Reyna wrote:
Learning
Python (on a Mac), with the massive help of Mark Lutz's excellent
book, "Learning Python".
What I want to do is this:
I've got a Class Object that begins with a def. It's designed to be
fed a string that looks like this:
"scene 1, pnl 1, 3+8, pnl 2, 1+12, pnl 3,
; elements
['scene 1', ' pnl 1', ' 3+8', ' pnl 2', ' 1+12', ' pnl 3', ' 12', ' pnl
4', ' 2+4', '']
>>> elements[2]
' 3+8'
> In my previous experience (with a non-OOP language), I co
Learning Python (on a Mac), with the massive help of Mark Lutz's
excellent book, "Learning Python".
What I want to do is this:
I've got a Class Object that begins with a def. It's designed to be
fed a string that looks like this:
"scene 1, pnl 1, 3+8, pnl 2, 1+12, pnl 3, 12, pnl 4, 2+4,"
I'
On 2008-11-07 17:32, [EMAIL PROTECTED] wrote:
> Thanks for that excellent pointer!
>
> I was able to do just what you said with
>
> But if my procedure has an insert statement in its midst, it doesn't
> work. The cursor.fetchall() gets an exception.
> Any ideas?
Try this (I haven't checked that
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello,
>
> I need some help getting output values from my stored procedures when
> using adodbapi. There's an example
> testVariableReturningStoredProcedure in adodbapitest.py, and that
> works for my sys
Thanks for that excellent pointer!
I was able to do just what you said with
But if my procedure has an insert statement in its midst, it doesn't
work. The cursor.fetchall() gets an exception.
Any ideas?
--Li
--
http://mail.python.org/mailman/listinfo/python-list
On 2008-11-07 15:04, [EMAIL PROTECTED] wrote:
> Hello,
>
> I need some help getting output values from my stored procedures when
> using adodbapi. There's an example
> testVariableReturningStoredProcedure in adodbapitest.py, and that
> works for my system. But my stored
Hello,
I need some help getting output values from my stored procedures when
using adodbapi. There's an example
testVariableReturningStoredProcedure in adodbapitest.py, and that
works for my system. But my stored procedure also inserts and
accesses a table in the database. Here's w
On Tue, 21 Oct 2008 20:44:24 +0200, Mike Hansen <[EMAIL PROTECTED]>
wrote:
Hi,
I saw your posting on the python list about pymssql and you mentioned
that you call stored procedures and get back output parameters. Are you
doing this on Windows or Linux? I can't seem to get it
"Jon Clements" <[EMAIL PROTECTED]> writes:
> problem. What I'm unsure of is the best way to design this. Bear in
> mind that network/email server configuration changes can be made. For
> instance, do I connect to the email server and keep polling it every
> 'n' whatever for new messages, or should
Hi All,
I'm hoping someone has some experience in this field and could give me
a pointer in the right direction - it's not purely python related
though. Any modules/links someone has tried and found useful would be
greatly appreciated...
I want to have an automated process which basically has its
Jeff Hobbs wrote:
> chand wrote:
> > can anyone help me how to provide the info about the python file
> > procedure in the tcl script which uses tclpython i.e., is there a way
> > to import that .py file procedure in the tcl script
>
> >>>currently I have wriiten this tcl code which is not working
chand wrote:
> can anyone help me how to provide the info about the python file
> procedure in the tcl script which uses tclpython i.e., is there a way
> to import that .py file procedure in the tcl script
>>>currently I have wriiten this tcl code which is not working
>>>
>>>package require tclpyt
Hi.,
can anyone help me how to provide the info about the python file
procedure in the tcl script which uses tclpython i.e., is there a way
to import that .py file procedure in the tcl script
--BestRegards
--Chandra
Michael Schlenker wrote:
> chand wrote:
> > Hi..
> >
> > I am writing a Gui in
That is exactly i want to know. i.e...,how to provide the python code
path in tcl script file, that loads required function.
--BestRegards.,
--chandra
> definitions etc.
Michael Schlenker wrote:
> chand wrote:
> > Hi..
> >
> > I am writing a Gui in TCL and my backend code is python. I want to ca
chand wrote:
> Hi..
>
> I am writing a Gui in TCL and my backend code is python. I want to call
> python procedure in tcl using tclpyhton. I want to know clearly how
> this should be implemented.
>
> let's say I have procedure test_function(arg1,arg2 ...) defined in
> test.py.
> I want to call th
51 matches
Mail list logo