Rustom Mody wrote:
> On Thursday, October 9, 2014 10:26:41 AM UTC+5:30, Steven D'Aprano wrote:
>> On Wed, 08 Oct 2014 19:34:30 -0700, Rustom Mody wrote:
>
>> Color.Red
>> print (Color.Red)
>> > Color.Red
>> > # Not sure what to make of that distinction...
>
>> That's because the intera
Find a new release of python-ldap:
http://pypi.python.org/pypi/python-ldap/2.4.18
python-ldap provides an object-oriented API to access LDAP directory
servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for
that purpose. Additionally it contains modules for other LDAP-related
st
On 10/9/2014 2:52 AM, Rustom Mody wrote:
Been using emacs for over 20 years and teaching python for 10.
And getting fed up that my audience looks at me like Rip van Winkle
each time I start up emacs...
So trying out Idle...
Some specific and some general questions:
My audience consists of peopl
Hi,
I need to develop a python CLI framework.
For example if i need to set an ip address in linux:
ifconfig eth0 172.16.25.125
I should be able to use python to do the above.
1. The user will execute a python script to which i will pass the params eth0
and ip address (something like ifconf.py
Am new to python and Jython...
Kindly help me on My issue please !
My Issue is:
XML parsing using Jython..
I am sucessfully reading XML file using xml.etree.ElementTree package ..
But I have a issue in below scenario . this scenario my code is not working.
In my XML file , One main node is th
On Thursday, October 9, 2014 1:21:49 PM UTC+5:30, Peter Otten wrote:
> Rustom Mody wrote:
> > BTW is there some flag that can make them identical?
> No flag, but you can tweak that P:
> >>> import sys
> >>> sys.displayhook = print
> >>> "foo"
> foo
> >>> def f(): pass
> ...
> >>> f()
> None
Yea
On Thu, Oct 9, 2014, at 05:26, Terry Reedy wrote:
> On 10/9/2014 2:52 AM, Rustom Mody wrote:
> > Particularly with macs my knowledge is at the level:
> > "How the ^%*)( do you right click without a right-click button?"
>
> I believe control-click, but Macs users could say better.
Control-click wa
On 10/9/2014 12:44 AM, Ian Kelly wrote:
On Wed, Oct 8, 2014 at 4:53 AM, Gelonida N wrote:
Hi,
I just read about sys.meta_path, which allows to install custom importers
*BEFORE* the default importers.
However I have a use case where I would like to add a custom importer
*AFTER* all other impo
On Thursday, October 9, 2014 2:56:56 PM UTC+5:30, Terry Reedy wrote:
> > Specific:
> > Is there a way to cut-paste a snippet from the interpreter window
> > containing ">>> " "... " into the file window and auto-remove the prompts?
> > [I have a vague recollection of Terry showing somethin...]
> I
Hey all!
I'm trying to find out the best way to multiply an uint64 (numpy). Could
someone help me find the best way to achieve that and where can I find the time
and space complexity in a Big O notation?
--
https://mail.python.org/mailman/listinfo/python-list
On Thursday, October 9, 2014 2:56:56 PM UTC+5:30, Terry Reedy wrote:
> On 10/9/2014 2:52 AM, Rustom Mody wrote:
> > My audience consists of people having linux and windows and macbooks.
> > Does Idle run on all these?
> If macbook runs OSX, and the linux has recent tcl/tk installed, the
> answer
- Original Message -
> From: "Gelonida N"
> To: python-list@python.org
> Sent: Thursday, 9 October, 2014 12:09:50 AM
> Subject: virtualenv question: include just a few site packages
>
> virtualenv has the switch
> --system-site-packages (including all system site pacgaes)
> and the switch
On Oct 9, 2014 6:53 AM, "Gelonida N" wrote:
> I'm using Puthon 2.7 for the given project and there sys.meta_path is [].
>
> Just for fun I started Python3.3 and looked at it's meta_path, which
contained for example _frozen_importlib.PathFinder
>
> Unfortunately python 2.7 does not seem to have the
On Thu, 09 Oct 2014 17:57:03 +1300, Gregory Ewing wrote:
> Seymore4Head wrote:
>> I want to toggle between color="Red" and color="Blue"
>
> toggle = {"Red": "Blue", "Blue": "Red"}
> color = toggle[color]
How about a simple
colour = 'red' if colour == 'blue' else 'blue'
--
The light at the e
Hello,
Go for Optparse.. Look at below docs on how to use it.
http://pymotw.com/2/optparse/
Regards,
DJ
On Thu, Oct 9, 2014 at 5:50 PM, wrote:
> Hi,
>
> I need to develop a python CLI framework.
>
> For example if i need to set an ip address in linux:
>
> ifconfig eth0 172.16.25.125
>
> I sho
On Mon, 06 Oct 2014 22:06:09 -0400, Seymore4Head wrote:
> On Tue, 7 Oct 2014 01:46:37 + (UTC), Denis McMahon
> wrote:
>
>>On Sun, 05 Oct 2014 19:02:31 -0400, Seymore4Head wrote:
>>
>>> For the record, I don't want a hint. I want the answer.
>>> I see a practice question is similar to this.
On Thu, Oct 9, 2014 at 8:08 AM, wrote:
> I'm trying to find out the best way to multiply an uint64 (numpy). Could
> someone help me find the best way to achieve that and where can I find the
> time and space complexity in a Big O notation?
Multiply it by what? This works fine for me:
>>> imp
On 10/09/2014 03:19 PM, Jean-Michel Pichavant wrote:
- Original Message -
virtualenv has the switch
--system-site-packages (including all system site pacgaes)
and the switch
--no-site-packages (to expclude all site packages)
Does anyone know an easy way to include just a few site-packag
On 10/09/2014 05:25 PM, Unix SA wrote:
Hello,
Go for Optparse.. Look at below docs on how to use it.
http://pymotw.com/2/optparse/
For newer projects I'd suggest argparse (part of Python since 2.7 and
can be downloaded / installed for 2.5 / 2.6).
https://docs.python.org/2.7/library/argpar
On Wed, Oct 8, 2014 at 8:34 PM, Rustom Mody wrote:
> On Thursday, October 9, 2014 7:12:41 AM UTC+5:30, Ben Finney wrote:
>> Seymore4Head writes:
>
>> > I want to toggle between color="Red" and color="Blue"
>
>> It's good to cultivate ongoing familiarity with the standard library
>
> And language.
On 09-10-14 14:20, vijna...@gmail.com wrote:
Hi,
I need to develop a python CLI framework.
For example if i need to set an ip address in linux:
ifconfig eth0 172.16.25.125
I should be able to use python to do the above.
1. The user will execute a python script to which i will pass the param
(For future reference, when responding to answers, it's worthwhile to
continue to cc python-list.)
On Thu, Oct 9, 2014 at 11:12 AM, Marcos Schratzenstaller <
marksabb...@gmail.com> wrote:
> The numpy has a function which manipulate 64 bits integers, but I couldn't
> find a specific method to multi
On Thursday, October 9, 2014 9:39:07 PM UTC+5:30, Ian wrote:
> On Wed, Oct 8, 2014 at 8:34 PM, Rustom Mody wrote:
> > On Thursday, October 9, 2014 7:12:41 AM UTC+5:30, Ben Finney wrote:
> >> Seymore4Head writes:
> >> > I want to toggle between color="Red" and color="Blue"
> >> It's good to cultivat
On 09/10/2014 02:29, Steven D'Aprano wrote:
Apart from the horrible spelling of colour :-)
I've always spelt colour as "color" when programming and as "colour"
when writing language including documentation about software.
colour in a programme doesn't seem right.
--
https://mail.python.org/
On 09/10/14 18:43, mm0fmf wrote:
> On 09/10/2014 02:29, Steven D'Aprano wrote:
>> Apart from the horrible spelling of colour :-)
>
> I've always spelt colour as "color" when programming and as "colour"
> when writing language including documentation about software.
>
> colour in a programme doesn
for i in range(1,10):
print (str(i)*i)
Seymour, please don't do this. When you "help" someone by just giving
him the answer to a homework problem, you get him past his immediate
issue of "I need to submit my homework for this problem". That lets
him get through his course without understand
Hello All,
I am writing some code to get captured wiresahrk pcap file , using
popen.subprocess and extract some table csv format related to SMB, but for some
reason i can get the csv when using off-course regular cmd line its work
The code as follow below , maybe someone with exprience with such
On 10 October 2014 05:24, duncan smith wrote:
> On 09/10/14 18:43, mm0fmf wrote:
> > On 09/10/2014 02:29, Steven D'Aprano wrote:
> >> Apart from the horrible spelling of colour :-)
> >
> > I've always spelt colour as "color" when programming and as "colour"
> > when writing language including doc
On 10/9/2014 9:12 AM, Rustom Mody wrote:
On Thursday, October 9, 2014 2:56:56 PM UTC+5:30, Terry Reedy wrote:
On 10/9/2014 2:52 AM, Rustom Mody wrote:
My audience consists of people having linux and windows and macbooks.
Does Idle run on all these?
If macbook runs OSX, and the linux has rece
Tim Delaney :
> It's very annoying to have some methods use "z" and others "s" in the
> same package.
"-ize" is standard everywhere in the English-speaking world.
Americans insist on "analyze," "paralyze" and "catalyze" but
paradoxically also on "lyse".
> So since I'm currently working for a US
On 10/9/2014 8:42 AM, Rustom Mody wrote:
On Thursday, October 9, 2014 1:21:49 PM UTC+5:30, Peter Otten wrote:
Rustom Mody wrote:
BTW is there some flag that can make them identical?
No flag, but you can tweak that P:
import sys
sys.displayhook = print
"foo"
foo
def f(): pass
...
f()
On Fri, Oct 10, 2014 at 5:26 AM, Tobiah wrote:
>> So don't do people's homework for them. PLEASE!!
>
>
> Wow. How do you react when someone does something that's
> actually harmful? I don't think you'd have the words! :)
You just saw it. Doing someone's homework *is* harmful. Harms the
student,
On 10/8/2014 10:28 AM, bryanjugglercryptograp...@yahoo.com.dmarc.invalid
wrote:
That doesn't mean to tell a human administrator to regularly restart the
server. It's programmatic and it's a reasonably simple and well-established
design pattern.
I'd call it more a compensation technique than
On Fri, Oct 10, 2014 at 8:39 AM, Emile van Sebille wrote:
> On 10/8/2014 10:28 AM, bryanjugglercryptograp...@yahoo.com.dmarc.invalid
> wrote:
>
>> That doesn't mean to tell a human administrator to regularly restart the
>> server. It's programmatic and it's a reasonably simple and well-established
On 10/9/2014 1:43 PM, mm0fmf wrote:
On 09/10/2014 02:29, Steven D'Aprano wrote:
Apart from the horrible spelling of colour :-)
I've always spelt colour as "color" when programming and as "colour"
when writing language including documentation about software.
Like it or not, Python uses Americ
On Fri, Oct 10, 2014 at 9:53 AM, Terry Reedy wrote:
>
>> colour in a programme doesn't seem right.
>
> Perhaps ironically, there are 52 uses of 'colour' in the stdlib, all but 4
> in idlelib, and most of those in one file. I just changed all except in the
> one file.
I agree, although I wouldn't
On Thu, 09 Oct 2014 05:30:21 -0700, Venugopal Reddy wrote:
> XML parsing using Jython..
> In my XML file , One main node is there and Multiple child tags are
> there. But In Child tags , same name repeated twice (like tag
> repeated twice)
> Please help me on this
Normally, when pulling da
On Friday, October 10, 2014 2:19:53 AM UTC+5:30, Terry Reedy wrote:
> On 10/9/2014 9:12 AM, Rustom Mody wrote:
> > On Thursday, October 9, 2014 2:56:56 PM UTC+5:30, Terry Reedy wrote:
> >> On 10/9/2014 2:52 AM, Rustom Mody wrote:
> >>> My audience consists of people having linux and windows and mac
Hi, ALL,
When I am on Windows, I can write something like this:
sys.path.append('C:\Users\Igor\Documents\MyLib')
Now, when I'm on Linux, can I do this:
sys.path.append('~/MyLib')
?
I.e., will '~' sign be expanded correctly?
Thank you.
--
https://mail.python.org/mailman/listinfo/python-list
Try:
sys.path.append(os.path.expanduser('~/MyLib'))
On Thu, Oct 9, 2014 at 9:21 PM, Igor Korot wrote:
> Hi, ALL,
> When I am on Windows, I can write something like this:
>
> sys.path.append('C:\Users\Igor\Documents\MyLib')
>
> Now, when I'm on Linux, can I do this:
>
> sys.path.append('~/MyLib')
In Igor Korot
writes:
> sys.path.append('~/MyLib')
> I.e., will '~' sign be expanded correctly?
Not as written.
Use os.path.expanduser() to get user's home directories.
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a
karthik.sha...@gmail.com writes:
> I am using zero-mq for IPC between two machines.
>
> My zmq function is given below
>
> def recieve_messages(self):
> string = self.sub_socket.recv(flags=zmq.NOBLOCK)
> print('flow mod messages recieved {}'.format(string))
>
>
> When
Emile van Sebille writes:
> On 10/8/2014 10:28 AM,
> bryanjugglercryptograp...@yahoo.com.dmarc.invalid wrote:
>
>> That doesn't mean to tell a human administrator to regularly restart the
>> server. It's programmatic and it's a reasonably simple and well-established
>> design pattern.
>
> I'd c
On 10-10-2014 6:21, Igor Korot wrote:
> Hi, ALL,
> When I am on Windows, I can write something like this:
>
> sys.path.append('C:\Users\Igor\Documents\MyLib')
While this might work on your system, it may not work on others.
- you need to escape the backslashes (or just use forward slashes, they
On Fri, Oct 10, 2014 at 5:09 PM, dieter wrote:
> Python does not use memory compaction but places many objects on the
> heap and therefore, long running processes
> usually are subject to memory fragmentation. As a consequence, those
> processes need to be restarted from time to time.
Pike doesn'
mm0fmf wrote:
> On 09/10/2014 02:29, Steven D'Aprano wrote:
>> Apart from the horrible spelling of colour :-)
>
> I've always spelt colour as "color" when programming and as "colour"
> when writing language including documentation about software.
>
> colour in a programme doesn't seem right.
"N
46 matches
Mail list logo