In article ,
Chris Rebert wrote:
>On Fri, Aug 19, 2011 at 1:02 PM, johnny.venter wrote:
>>
>> Hello, I am looking for the Python Windows Extensions to see if they can be
>> installed on a Mac.THanks.
>
>Your request is nonsensical.
That's not completely true.
>pywin32 wraps the Windows API
On Sat, Aug 20, 2011 at 9:24 AM, Albert W. Hopkins
wrote:
>
>
> On Friday, August 19 at 17:12 (-0400), Matty Sarro said:
>
>>
>> If you're that offended then spend the cycles fixing the damn list so
>> it
>> stops having so much spam. You realize spam comes in almost
>> constantly,
>> right? Enoug
Hi,
I have a list of tuples:
[(2,),(12,13),(2,3,4),(8,),(5,6),(7,8,9),]
I would like to compare all the tuples to each other and if one
element if found two tuples the smallest tuples is removed from the
list.
example if tuple 1 and tuple 3 are compare it should find that a
single element in ea
On Fri, 19 Aug 2011 14:32:12 -0700 (PDT), Edgar Fuentes
wrote:
> On Aug 19, 4:21 pm, Carl Banks wrote:
>> On Friday, August 19, 2011 12:55:40 PM UTC-7, Edgar Fuentes wrote:
>> > On Aug 19, 1:56 pm, Phil Thompson
>> > wrote:
>> > > On Fri, 19 Aug 2011 10:15:20 -0700 (PDT), Edgar Fuentes
>> > > w
On Sat, Aug 20, 2011 at 1:25 AM, Jurgens de Bruin wrote:
> Hi,
>
> I have a list of tuples:
>
> [(2,),(12,13),(2,3,4),(8,),(5,6),(7,8,9),]
>
> I would like to compare all the tuples to each other and if one
> element if found two tuples the smallest tuples is removed from the
> list.
So, would [(
On Aug 20, 10:45 am, Chris Rebert wrote:
> On Sat, Aug 20, 2011 at 1:25 AM, Jurgens de Bruin wrote:
>
> > Hi,
>
> > I have a list of tuples:
>
> > [(2,),(12,13),(2,3,4),(8,),(5,6),(7,8,9),]
>
> > I would like to compare all the tuples to each other and if one
> > element if found two tuples the s
On Aug 20, 10:45 am, Chris Rebert wrote:
> On Sat, Aug 20, 2011 at 1:25 AM, Jurgens de Bruin wrote:
>
> > Hi,
>
> > I have a list of tuples:
>
> > [(2,),(12,13),(2,3,4),(8,),(5,6),(7,8,9),]
>
> > I would like to compare all the tuples to each other and if one
> > element if found two tuples the s
Hi,
This is the directory tree.
project
└── sme
├── src
│ ├── a.pth
│ ├── sss.py
└── test
└── ttt.py
I need to import sss.py in ttt.py.
Found a few solution in python docs.
A. sys.path.append
B. add ***.pth file
C. edit .../site-packages/site.py
I found out that a.pt
On Fri, 19 Aug 2011 17:10:49 -0400
Rodrick Brown wrote:
> It's not the end of the world calm down I thought it was quite funny for a
> friday joke!
The first message might have been funny (if you are twelve) but the
rest were annoying and insulting.
--
D'Arcy J.M. Cain | Democracy i
from china
--
designed by wk...@qq.com--
http://mail.python.org/mailman/listinfo/python-list
Jurgens de Bruin wrote:
> Hi,
>
> I have a list of tuples:
>
> [(2,),(12,13),(2,3,4),(8,),(5,6),(7,8,9),]
>
> I would like to compare all the tuples to each other and if one
> element if found two tuples the smallest tuples is removed from the
> list.
It's not clear what you mean by "smallest"
On Aug 20, 12:17 pm, Steven D'Aprano wrote:
> Jurgens de Bruin wrote:
> > Hi,
>
> > I have a list of tuples:
>
> > [(2,),(12,13),(2,3,4),(8,),(5,6),(7,8,9),]
>
> > I would like to compare all the tuples to each other and if one
> > element if found two tuples the smallest tuples is removed from th
Jurgens de Bruin wrote:
> Hi,
>
> I have a list of tuples:
>
> [(2,),(12,13),(2,3,4),(8,),(5,6),(7,8,9),]
>
> I would like to compare all the tuples to each other and if one
> element if found two tuples the smallest tuples is removed from the
> list.
>
> example if tuple 1 and tuple 3 are com
Well, they might be indented in the right places but i don't know if
loops, conditions, functions, if they all happen or not.
:)
Happy hacking.
Krishnakant,
On 20/08/11 01:47, Matty Sarro wrote:
That's great - but do they program in python?
On Fri, Aug 19, 2011 at 2:38 PM, Sajjad Ahmad wrote:
On Sat, Aug 20, 2011 at 4:16 AM, Alec Taylor wrote:
>> ...
> I found said joke rather funny :P
Perhaps, as a retired amateur comedian, my standards are too high,
but I don't think adding a smilie to a stupid post suddenly turns it
into a joke. Nevertheless, the quality of the attempt is not reall
On Sat, Aug 20, 2011 at 10:52 AM, Kevin Zhang wrote:
> Found a few solution in python docs.
> A. sys.path.append
> I think A is not so pretty, and I don't have root privilege to use B and C.
> So any both more elegant and practical solutions?
If, as I understand from your directory tree, ttt.py
On Sat, 20 Aug 2011 08:17:32 -0400
David Robinow wrote:
> > I found said joke rather funny :P
> Perhaps, as a retired amateur comedian, my standards are too high,
How does one retire from amateur status? Do you suddenly start
charging for telling jokes? :-)
> but I don't think adding a smilie
On Sat, 20 Aug 2011 15:16:08 +0530
hackingKK wrote:
> Well, they might be indented in the right places but i don't know if
> loops, conditions, functions, if they all happen or not.
> :)
[Entire spam deleted AGAIN]
Good grief! Haven't you seen all the followups to that posting you
replied to?
On Sat, Aug 20, 2011 at 3:57 PM, D'Arcy J.M. Cain wrote:
> Wait, I get it. The spammer, Matty and you are all on gmail. You are
> all the same person, aren't you?
>
Gmail is all one person now? That would explain why I keep seeing
things I agree with. I had no idea there were so many of me arou
On Sat, 20 Aug 2011 01:25:18 -0700 (PDT)
Jurgens de Bruin wrote:
> Hi,
>
> I have a list of tuples:
>
> [(2,),(12,13),(2,3,4),(8,),(5,6),(7,8,9),]
>
> I would like to compare all the tuples to each other and if one
> element if found two tuples the smallest tuples is removed from the
> list.
[
On Mon, Aug 15, 2011 at 4:26 PM, Johannes wrote:
> hi list,
> what is the best way to check if a given list (lets call it l1) is
> totally contained in a second list (l2)?
>
> for example:
> l1 = [1,2], l2 = [1,2,3,4,5] -> l1 is contained in l2
> l1 = [1,2,2,], l2 = [1,2,3,4,5] -> l1 is not contai
On 8/19/11 4:02 PM, johnny.venter wrote:
Hello, I am looking for the Python Windows Extensions to see if they can be
installed on a Mac.THanks.
You can certainly try to install them via easy_install, I supposed, but
it's doubtful they would do anything, as the Mac does not support win32
AP
I find python group is filled with spam mails, is there any way to filter
these mails before sending it to the group.
I can't see this situation with similar user group, such as the jsr.
George.
On 20/08/2011 07:07, "Ben Finney" wrote:
> Javier writes:
> You will lose a lot of people
> askin
Would it be a good idea to change Python definition so that a[10, -1, -1]
referred to the elements starting with position 10, going down to the
beginning?
This would require disabling the "negative stop value means counting from
the end of the array" magic whenever the step value is negative.
The
On Sat, Aug 20, 2011 at 7:20 PM, Max Moroz wrote:
> Would it be a good idea to change Python definition so that a[10, -1, -1]
> referred to the elements starting with position 10, going down to the
> beginning?
Well, first off I think it's a dangerous idea to change semantics of
something like th
Steven D'Aprano writes:
>> You can catch all exceptions by catching the base class Exception:
>
> Except that is nearly always poor advice, because it catches too much: it
> hides bugs in code, as well as things which should be caught.
> You should always catch the absolute minimum you need to cat
On Aug 20, 11:29 am, Chris Angelico wrote:
> If you're using a variable for the stop value, you just need to set it
> to an explicit None if it would fall negative:
>
> >>> a[10:None:-1]
>
That doesn't work if it's set in a loop or if it's calculated as a
formula. For example, this very simple co
On Sat, Aug 20, 2011 at 7:52 PM, Max wrote:
> That doesn't work if it's set in a loop or if it's calculated as a
> formula. For example, this very simple code doesn't work because of
> the "-1 problem".
>
Right, which is what I meant by setting it to an explicit None:
if input[starting_pos:endin
Paul Rubin wrote:
> Steven D'Aprano writes:
>>> You can catch all exceptions by catching the base class Exception:
>>
>> Except that is nearly always poor advice, because it catches too much: it
>> hides bugs in code, as well as things which should be caught.
>> You should always catch the absolu
On 8/19/2011 1:24 PM, John Gordon wrote:
In<4e4ec405$0$29994$c3e8da3$54964...@news.astraweb.com> Steven
D'Aprano writes:
You can catch all exceptions by catching the base class Exception:
Except that is nearly always poor advice, because it catches too much: it
hides bugs in code, as well
Pardon me for breaking threading, but I don't have Max's original post.
On Sat, Aug 20, 2011 at 7:20 PM, Max Moroz wrote:
> Would it be a good idea to change Python definition so that a[10, -1, -1]
I presume you mean slice notation a[10:-1:-1].
> referred to the elements starting with positio
Thank you all for the replies. I would like to query various Windows' objects
and resources from Mac and/or Linux such as Active Directory users, network
shares, group members, etc... What module or methods can I use with python to
accomplish this?
I found dcerpc might be the way to go.
On A
On Sun, Aug 21, 2011 at 12:51 AM, Johnny Venter wrote:
> Thank you all for the replies. I would like to query various Windows' objects
> and resources from Mac and/or Linux such as Active Directory users, network
> shares, group members, etc... What module or methods can I use with python to
>
Robert Kern wrote:
That's just incorrect. You shouldn't use (binary) floats for many
*accounting* purposes, but for many financial/econometric analyses, floats
are de rigeur and work much better than decimals
There's a certain accounting package I work with that *does*
use floats -- binary one
On Sun, Aug 21, 2011 at 1:37 AM, Gregory Ewing
wrote:
> There's a certain accounting package I work with that *does*
> use floats -- binary ones -- for accounting purposes, and
> somehow manages to get away with it. Not something I would
> recommend trying at home, though.
>
Probably quite a few,
Yes, I want to make my queries from a remote non-Windows computer. Here is the
scenario:
>From my mac, I want to use python to access and read objects from a remote
>Windows computer joined to a Windows 2003 functional level domain. Given this,
>what is the best way to accomplish this?
On Au
36 matches
Mail list logo