Re: How to reset system proxy using pyhton code

2018-02-19 Thread Thomas Jollans
On 2018-02-19 09:57, Sum J wrote: > Hi, > > I am using below python code (Python 2.7) to reset the proxy of my Ubuntu > (Cent OS 6) system, but I am unable to reset the proxy: I'm sure you know this, but CentOS and Ubuntu are two different things. > > Code : > import os > print "Unsett

How to reset system proxy using pyhton code

2018-02-19 Thread Sum J
Hi, I am using below python code (Python 2.7) to reset the proxy of my Ubuntu (Cent OS 6) system, but I am unable to reset the proxy: Code : import os print "Unsetting http..." os.system("unset http_proxy") os.system("echo $http_proxy") print "http is reset" O

Re: Pyhton

2017-09-27 Thread Irving Duran
Besides being easy to learn and develop, there is a large number of dev supporters. Which it makes it more compelling. Thank You, Irving Duran On Wed, Sep 27, 2017 at 9:27 AM, wrote: > On Wednesday, September 27, 2017 at 3:10:30 PM UTC+1, [email protected] > wrote: > > Whats the reason that

Re: Pyhton

2017-09-27 Thread breamoreboy
On Wednesday, September 27, 2017 at 3:10:30 PM UTC+1, [email protected] wrote: > Whats the reason that python is growing fast? It would be growing faster but it is only the second best language in the world. Please see https://mail.python.org/pipermail/python-list/2002-November/141486.html --

Pyhton

2017-09-27 Thread darwinbin19
Whats the reason that python is growing fast? -- https://mail.python.org/mailman/listinfo/python-list

Re: PYhton Mercator projection

2017-04-18 Thread Vincent Vande Vyvre
Le 18/04/17 à 16:04, [email protected] a écrit : Hi, I copy the script merc.py from: https://matplotlib.org/basemap/users/merc.html then I did: python merc.py and I had: Segmentation fault Please can someone help me. Conrado Add some print() to see where the code

PYhton Mercator projection

2017-04-18 Thread jorge . conrado
Hi, I copy the script merc.py from: https://matplotlib.org/basemap/users/merc.html then I did: python merc.py and I had: Segmentation fault Please can someone help me. Conrado -- https://mail.python.org/mailman/listinfo/python-list

Re: How to add a built-in library in pyhton

2017-03-17 Thread Lutz Horn
Am 17.03.2017 05:08 schrieb chenchao: I use python2.7.10 and want to add a c language library in python. So how can i built it as a built-in module in python? Why do you want to build it as a built-in module? Why not a simple module as described on https://docs.python.org/2/extending/index.

How to add a built-in library in pyhton

2017-03-16 Thread chenchao
Hello, everybody: I use python2.7.10 and want to add a c language library in python. So how can i built it as a built-in module in python? -- https://mail.python.org/mailman/listinfo/python-list

Re: Configuraion to run pyhton script on ubuntu 12.04

2013-07-29 Thread Jaiky
Problem solved regarding cgi configuration on ubuntu 12.04 lts Concept:-) file used:-) /etc/apache2/httpd.conf /etc/apache2/sites-available/default steps done 1:-) in /etc/apache2/httpd.conf added line

Re: Configuraion to run pyhton script on ubuntu 12.04

2013-07-28 Thread Jaiky
Sir i already tried this "Alias" concept I did the following steps === Step 1: added "ScriptAlias /cgi-bin/ /var/www/cgi-bin/" in /etc/apache2/sites-available/default ==

Re: Configuraion to run pyhton script on ubuntu 12.04

2013-07-28 Thread Pierre Jaury
Jaiky writes: > want to run a python script which contains simple form of html on firefox > browser , but dont know what should be the configuration on ubuntu 12.04 to > run this script i.e cgi configuration > > > > My code is > ubder > in /var/www/cgi-bin/forms__.py > > > > #!/usr/bin/en

Configuraion to run pyhton script on ubuntu 12.04

2013-07-28 Thread Jaiky
want to run a python script which contains simple form of html on firefox browser , but dont know what should be the configuration on ubuntu 12.04 to run this script i.e cgi configuration My code is ubder in /var/www/cgi-bin/forms__.py #!/usr/bin/env python import webapp2 form ="""

Re: Learning Pyhton - Functional Programming - How intersect/difference two dict with dict/values? fast!

2010-11-11 Thread Alexander Gattin
On Thu, Nov 11, 2010 at 11:51:33AM +0200, Alexander Gattin wrote: > functional-style code emerges: > > > >>> dict(filter(lambda t: t[1], > > ... map(lambda k: (k, filter(lambda v: v in dict2[k][0], dict1[k][0])), > > ...filter(dict2.has_key, dict1.iterkeys())) > > ...) > > ...

Re: Learning Pyhton - Functional Programming - How intersect/difference two dict with dict/values? fast!

2010-11-11 Thread Alexander Gattin
Hello, On Tue, Nov 09, 2010 at 09:32:17AM -0800, macm wrote: > dict1 = {'ab':[[1,2,3,'d3','d4',5],12],'ac':[[1,3,'78a','79b'], > 54],'ad': [[56,57,58,59],34], 'ax': [[56,57,58,59],34]} > dict2 = {'ab':[[22,2,'a0','42s','c4','d3'],12],'ab':[[2,4,50,42,'c4'], > 12],'ac':[[1,3,'79b',45,65,'er4'],54],

Re: Learning Pyhton - Functional Programming - How intersect/difference two dict with dict/values? fast!

2010-11-10 Thread macm
... and this works! >>> def intersect(s1, s2): ... d = {} ... e = {} ... r1 = filter(s1.has_key, s2.keys()) ... for x in r1: ... d[x]= filter(lambda z:z in s1[x][0],s2[x][0]) ... if len(d[x]) > 0: ... e[x] = d[x] ... return e ... >>> intersect(dict1,

Re: Learning Pyhton - Functional Programming - How intersect/difference two dict with dict/values? fast!

2010-11-10 Thread macm
Hi Folks I am studing yet (with fever, grasp and headache). I know I can do better, but first I should learn more about "dictionary comprehension syntax" in python 2.65 >>> dict1 = {'ab':[[1,2,3,'d3','d4',5],12],'ac':[[1,3,'78a','79b'],54],'ad': >>> [[56,57,58,59],34], 'ax': [[56,57,58,59],34]

Re: Learning Pyhton - Functional Programming - How intersect/difference two dict with dict/values? fast!

2010-11-10 Thread Paul Rudin
Lawrence D'Oliveiro writes: > In message , Terry Reedy > wrote: > >> To echo John Nagle's point, if you want non-masochist volunteers to read >> your code, write something readable like: >> >> dict1 = {'ab': [[1,2,3,'d3','d4',5], 12], >> 'ac': [[1,3,'78a','79b'], 54], >> 'ad

Re: Learning Pyhton - Functional Programming - How intersect/difference two dict with dict/values? fast!

2010-11-10 Thread Lawrence D'Oliveiro
In message , Terry Reedy wrote: > To echo John Nagle's point, if you want non-masochist volunteers to read > your code, write something readable like: > > dict1 = {'ab': [[1,2,3,'d3','d4',5], 12], > 'ac': [[1,3,'78a','79b'], 54], > 'ad': [[56,57,58,59], 34], > 'ax':

Re: Learning Pyhton - Functional Programming - How intersect/difference two dict with dict/values? fast!

2010-11-09 Thread macm
Sorry Mr. Nagle and Folks I had a bad day today. I need forward but with fever, a grasp and headache is hard. You are absolute right, I was rude and I ask your pardon. About my code, sorry I thought was the best way to copy and paste in python console. Best Regards macm On Nov 9, 7:03 pm, "D

Re: Learning Pyhton - Functional Programming - How intersect/difference two dict with dict/values? fast!

2010-11-09 Thread D'Arcy J.M. Cain
On Tue, 09 Nov 2010 15:55:16 -0500 Terry Reedy wrote: > To echo John Nagle's point, if you want non-masochist volunteers to read > your code, write something readable like: > > dict1 = {'ab': [[1,2,3,'d3','d4',5], 12], > 'ac': [[1,3,'78a','79b'], 54], > 'ad': [[56,57,58,59],

Re: Learning Pyhton - Functional Programming - How intersect/difference two dict with dict/values? fast!

2010-11-09 Thread Terry Reedy
On 11/9/2010 9:32 AM, macm wrote: dict1 = {'ab':[[1,2,3,'d3','d4',5],12],'ac':[[1,3,'78a','79b'], 54],'ad': [[56,57,58,59],34], 'ax': [[56,57,58,59],34]} To echo John Nagle's point, if you want non-masochist volunteers to read your code, write something readable like: dict1 = {'ab': [[1,

Re: Learning Pyhton - Functional Programming - How intersect/difference two dict with dict/values? fast!

2010-11-09 Thread John Nagle
On 11/9/2010 9:32 AM, macm wrote: Hi Folks, dict1 = {'ab':[[1,2,3,'d3','d4',5],12],'ac':[[1,3,'78a','79b'], 54],'ad': [[56,57,58,59],34], 'ax': [[56,57,58,59],34]} dict2 = {'ab':[[22,2,'a0','42s','c4','d3'],12],'ab':[[2,4,50,42,'c4'], 12],'ac':[[1,3,'79b',45,65,'er4'],54],'ae': [[56,57,58,59],34

Re: Learning Pyhton - Functional Programming - How intersect/difference two dict with dict/values? fast!

2010-11-09 Thread Peter Otten
macm wrote: > Hi Folks, > > dict1 = {'ab':[[1,2,3,'d3','d4',5],12],'ac':[[1,3,'78a','79b'], > 54],'ad': [[56,57,58,59],34], 'ax': [[56,57,58,59],34]} > dict2 = {'ab':[[22,2,'a0','42s','c4','d3'],12],'ab':[[2,4,50,42,'c4'], > 12],'ac':[[1,3,'79b',45,65,'er4'],54],'ae': [[56,57,58,59],34],'ax': > [

Learning Pyhton - Functional Programming - How intersect/difference two dict with dict/values? fast!

2010-11-09 Thread macm
Hi Folks, dict1 = {'ab':[[1,2,3,'d3','d4',5],12],'ac':[[1,3,'78a','79b'], 54],'ad': [[56,57,58,59],34], 'ax': [[56,57,58,59],34]} dict2 = {'ab':[[22,2,'a0','42s','c4','d3'],12],'ab':[[2,4,50,42,'c4'], 12],'ac':[[1,3,'79b',45,65,'er4'],54],'ae': [[56,57,58,59],34],'ax': [[9],34]} dict3 = {'ac':[[1,

Re: Copy & Paste in a Dos box (was: Pyhton script to call another program)

2009-05-06 Thread Dave Angel
Mensanator wrote: On May 6, 3:46 pm, Dave Angel wrote: Mensanator wrote: And when prompted, do "(.) modify shortcut that started this window" After which, you can dispense with the menus (except when pasting), just select the text and hit . To paste into a DOS bo

Re: Copy & Paste in a Dos box (was: Pyhton script to call another program)

2009-05-06 Thread Mensanator
On May 6, 3:46 pm, Dave Angel wrote: > Mensanator wrote: > > > > > And when prompted, do "(.) modify shortcut that started this window" > > > After which, you can dispense with the menus (except when pasting), > > just select the text and hit . > > To paste into a DOS box, once Quick Edit is enab

Re: Copy & Paste in a Dos box (was: Pyhton script to call another program)

2009-05-06 Thread Dave Angel
Mensanator wrote: And when prompted, do "(.) modify shortcut that started this window" After which, you can dispense with the menus (except when pasting), just select the text and hit . To paste into a DOS box, once Quick Edit is enabled, use Right-Click. They keystrokes will be sent t

Re: Copy & Paste in a Dos box (was: Pyhton script to call another program)

2009-05-06 Thread Dave Angel
Tim Chase wrote: > for windows this works: (can't cut and paste from a dos box!###%*&!!!) Depending on how it was spawned, you can either right-click in the window and choose Mark/Paste (when marking, use to terminate the selection; and selections are blockwise rectangular rather than line

Re: Copy & Paste in a Dos box (was: Pyhton script to call another program)

2009-05-06 Thread Mensanator
On May 6, 12:54 pm, Tim Chase wrote: > > for windows this works: > > (can't cut and paste from a dos box!###%*&!!!) > > Depending on how it was spawned, you can either right-click in > the window and choose Mark/Paste (when marking, use to > terminate the selection; and selections are blockwise r

Re: Copy & Paste in a Dos box (was: Pyhton script to call another program)

2009-05-06 Thread Grant Edwards
On 2009-05-06, Shawn Milochik wrote: >>> That way, you can basically use PuTTY to shell into your >>> Windows box. >> >> Better yet, set up sshd in your Cygwin install, and then use >> whatever terminal you normally use on your Linux/MacOS box to >> ssh into the Cygwin box. ??When run that way, w

Re: Copy & Paste in a Dos box (was: Pyhton script to call another program)

2009-05-06 Thread Shawn Milochik
On Wed, May 6, 2009 at 2:39 PM, Grant Edwards wrote: > On 2009-05-06, Shawn Milochik wrote: > >> I know I'm coming to the conversation late, but here's what I do*: >> >> 1. Use Cygwin. (http://www.cygwin.com/) >> 2. Use PuttyCYG (http://code.google.com/p/puttycyg/) >> >> That way, you can basical

Re: Copy & Paste in a Dos box (was: Pyhton script to call another program)

2009-05-06 Thread Grant Edwards
On 2009-05-06, Shawn Milochik wrote: > I know I'm coming to the conversation late, but here's what I do*: > > 1. Use Cygwin. (http://www.cygwin.com/) > 2. Use PuttyCYG (http://code.google.com/p/puttycyg/) > > That way, you can basically use PuTTY to shell into your > Windows box. Better yet, set

Re: Copy & Paste in a Dos box (was: Pyhton script to call another program)

2009-05-06 Thread Shawn Milochik
On Wed, May 6, 2009 at 1:54 PM, Tim Chase wrote: >> for windows this works: >> (can't cut and paste from a dos box!###%*&!!!) > > Depending on how it was spawned, you can either right-click in the window > and choose Mark/Paste (when marking, use to terminate the selection; > and selections are b

Re: Pyhton script to call another program

2009-05-06 Thread David
Il Wed, 06 May 2009 11:31:58 -0400, Ben Keshet ha scritto: > Hi, > > I am trying to write a simple python script to manipulate files and call > other programs. I have a program installed (rocs) which I run using > cygwin on my XP (but is not in python). Can I run the py

Re: Copy & Paste in a Dos box (was: Pyhton script to call another program)

2009-05-06 Thread Tim Chase
for windows this works: (can't cut and paste from a dos box!###%*&!!!) Depending on how it was spawned, you can either right-click in the window and choose Mark/Paste (when marking, use to terminate the selection; and selections are blockwise rectangular rather than linewise or characterwise

Re: Pyhton script to call another program

2009-05-06 Thread norseman
Ben Keshet wrote: Hi, I am trying to write a simple python script to manipulate files and call other programs. I have a program installed (rocs) which I run using cygwin on my XP (but is not in python). Can I run the pyhton script and then call the other program in the same script? For

Re: Pyhton script to call another program

2009-05-06 Thread Diez B. Roggisch
Ben Keshet wrote: > Hi, > > I am trying to write a simple python script to manipulate files and call > other programs. I have a program installed (rocs) which I run using > cygwin on my XP (but is not in python). Can I run the pyhton script and > then call the other program

Pyhton script to call another program

2009-05-06 Thread Ben Keshet
Hi, I am trying to write a simple python script to manipulate files and call other programs. I have a program installed (rocs) which I run using cygwin on my XP (but is not in python). Can I run the pyhton script and then call the other program in the same script? For example: Python Code

Re: running pyhton IDLE on windows vista

2009-03-30 Thread Scott David Daniels
ryan wrote: I am facing problems running python25 on vista . i was able to successfully install it but when i try to run it then, its throws errors saying Firewall issues .. I tried disabling the firewall but no go.. Yes, we believe you. Read "smart questions" http://www.catb.org/~esr/fa

running pyhton IDLE on windows vista

2009-03-30 Thread ryan
Hi guys , I am facing problems running python25 on vista . i was able to successfully install it but when i try to run it then, its throws errors saying Firewall issues .. I tried disabling the firewall but no go.. Thanks in advance!! -- http://mail.python.org/mailman/listinfo/python-list

Re: pyhton or json, list or array?

2008-10-02 Thread Bernhard Walle
Hi, * bruce [2008-09-30 13:01]: > > i was told > that it's json, but i have no idea how to convert it/manipulate it.. See http://json.org/ for a list of available JSON parsers for Python. I personally used python-simplejson, and I was happy with it. :-) Regards, Bernhard -- http://mail.python.o

Re: What's the limit of variables size in pyhton?

2008-01-04 Thread Artur M. Piwko
In the darkest hour on Mon, 31 Dec 2007 20:53:28 -0200, Gabriel Genellina <[EMAIL PROTECTED]> screamed: >> Is that mean that i can deal with files with size more than 2GB only >> if the available memory allow > > To be more precise, that depends on the OS. On Windows there is a limit of > 2GB adr

Re: What's the limit of variables size in pyhton?

2007-12-31 Thread Gabriel Genellina
Gabriel Genellina <[EMAIL PROTECTED]> >> wrote: >> >> > En Mon, 31 Dec 2007 15:40:31 -0200, هنداوى <[EMAIL PROTECTED]> >> > escribi�: >> >> > > Python allow you to only take care about variable name and ignore >> it's >> &

Re: What's the limit of variables size in pyhton?

2007-12-31 Thread [EMAIL PROTECTED]
enellina <[EMAIL PROTECTED]> wrote: > > > > En Mon, 31 Dec 2007 15:40:31 -0200, هنداوى <[EMAIL PROTECTED]> > > > escribi�: > > > > > Python allow you to only take care about variable name and ignore it's > > > > size because pyhton dyn

Re: What's the limit of variables size in pyhton?

2007-12-31 Thread هنداوى
-0200, هنداوى <[EMAIL PROTECTED]> > > escribi�: > > > > Python allow you to only take care about variable name and ignore it's > > > size because pyhton dynamicly allocate it > > > so what's the limit in the allocated size in the memory > > >

Re: What's the limit of variables size in pyhton?

2007-12-31 Thread James Matthews
ut variable name and ignore it's > > size because pyhton dynamicly allocate it > > so what's the limit in the allocated size in the memory > > As big as would fit on available memory. > > -- > Gabriel Genellina > > -- > http://mail.python.org/mailman/list

Re: What's the limit of variables size in pyhton?

2007-12-31 Thread Gabriel Genellina
En Mon, 31 Dec 2007 15:40:31 -0200, هنداوى <[EMAIL PROTECTED]> escribi�: > Python allow you to only take care about variable name and ignore it's > size because pyhton dynamicly allocate it > so what's the limit in the allocated size in the memory As big as woul

What's the limit of variables size in pyhton?

2007-12-31 Thread هنداوى
Python allow you to only take care about variable name and ignore it's size because pyhton dynamicly allocate it so what's the limit in the allocated size in the memory -- http://mail.python.org/mailman/listinfo/python-list

Re: Object Oriented Database with interface for Pyhton

2007-03-30 Thread Joshua J. Kugler
On Friday 30 March 2007 01:04, [EMAIL PROTECTED] wrote: > Hello all > > I am looking for an object oriented database with interffaces for > python. Either open source or commercial. > > I am looking for a Database not a object persistence system. I would > like to be able to execute queries outs

Re: Object Oriented Database with interface for Pyhton

2007-03-30 Thread kyosohma
On Mar 30, 8:51 am, Laurent Pointal <[EMAIL PROTECTED]> wrote: > MC a écrit : > > > Salut! > > > Heureusement qu'il y a qq français pour faire un peu de ménage... > > Question de décalage horaire ? Here is a list of all the popular database interface modules: http://www.python.org/topics/database

Re: Object Oriented Database with interface for Pyhton

2007-03-30 Thread Laurent Pointal
MC a écrit : > Salut! > > Heureusement qu'il y a qq français pour faire un peu de ménage... Question de décalage horaire ? -- http://mail.python.org/mailman/listinfo/python-list

Re: Object Oriented Database with interface for Pyhton

2007-03-30 Thread MC
Salut! Heureusement qu'il y a qq français pour faire un peu de ménage... -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Object Oriented Database with interface for Pyhton

2007-03-30 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : (top-post corrected) > > On 30 Mart, 12:04, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: >> Hello all >> >> I am looking for an object oriented database with interffaces for >> python. Either open source or commercial. >> >> I am looking for a Database not a object pe

Re: Object Oriented Database with interface for Pyhton

2007-03-30 Thread M�ta-MCI
Hi! >>> http://www.sqlalchemy.org/ No. sqlalchemy is an object-oriented-interface(or wrapper) Alfaeco want an Object-Oriented-Database (like Jasmin, Caché, etc.) @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Object Oriented Database with interface for Pyhton

2007-03-30 Thread csselo
http://www.sqlalchemy.org/ you ll like it. On 30 Mart, 12:04, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hello all > > I am looking for an object oriented database with interffaces for > python. Either open source or commercial. > > I am looking for a Database not a object persistence syste

Object Oriented Database with interface for Pyhton

2007-03-30 Thread [EMAIL PROTECTED]
Hello all I am looking for an object oriented database with interffaces for python. Either open source or commercial. I am looking for a Database not a object persistence system. I would like to be able to execute queries outside from the aplication. If posible wih OQL ( object query language )

Re: Pyhton script

2007-02-11 Thread Jonathan Curran
e on the Linux server, some actions: Copy, gzip, mv etc... > 3- to use a config file for the parameters: server name, login, password... > > Regards; > -- > View this message in context: > http://www.nabble.com/Pyhton-script-tf3209528.html#a8912801 Sent from the > Python - pyth

Re: Pyhton script

2007-02-11 Thread Jonathan Curran
e on the Linux server, some actions: Copy, gzip, mv etc... > 3- to use a config file for the parameters: server name, login, password... > > Regards; > -- > View this message in context: > http://www.nabble.com/Pyhton-script-tf3209528.html#a8912801 Sent from the > Python - python-lis

Pyhton script

2007-02-11 Thread soussou97
for the parameters: server name, login, password... Regards; -- View this message in context: http://www.nabble.com/Pyhton-script-tf3209528.html#a8912801 Sent from the Python - python-list mailing list archive at Nabble.com. -- http://mail.python.org/mailman/listinfo/python-list

Re: Anyone use GD with pyhton?

2006-12-08 Thread jeff
thanks, it works :D Jonathan Curran wrote: > On Friday 08 December 2006 16:17, jeff wrote: > > could somebody explain to me how to install (or compile) GD for linux, > > so that it works in pyhton? > > Jefff, the gd-library's website is at http://www.boutell.com/gd/ an

Re: Anyone use GD with pyhton?

2006-12-08 Thread jeff
thanks, it works :D Jonathan Curran wrote: > On Friday 08 December 2006 16:17, jeff wrote: > > could somebody explain to me how to install (or compile) GD for linux, > > so that it works in pyhton? > > Jefff, the gd-library's website is at http://www.boutell.com/gd/ an

Re: Anyone use GD with pyhton?

2006-12-08 Thread jeff
thanks, it works :D Jonathan Curran wrote: > On Friday 08 December 2006 16:17, jeff wrote: > > could somebody explain to me how to install (or compile) GD for linux, > > so that it works in pyhton? > > Jefff, the gd-library's website is at http://www.boutell.com/gd/ an

Re: Anyone use GD with pyhton?

2006-12-08 Thread jeff
thanks, it works :D Jonathan Curran wrote: > On Friday 08 December 2006 16:17, jeff wrote: > > could somebody explain to me how to install (or compile) GD for linux, > > so that it works in pyhton? > > Jefff, the gd-library's website is at http://www.boutell.com/gd/ an

Re: Anyone use GD with pyhton?

2006-12-08 Thread Jonathan Curran
On Friday 08 December 2006 16:17, jeff wrote: > could somebody explain to me how to install (or compile) GD for linux, > so that it works in pyhton? Jefff, the gd-library's website is at http://www.boutell.com/gd/ and they have a link there for download as well. It is highly likel

Anyone use GD with pyhton?

2006-12-08 Thread jeff
could somebody explain to me how to install (or compile) GD for linux, so that it works in pyhton? -- http://mail.python.org/mailman/listinfo/python-list

Capturing gdb output in pyhton script using gdb -batch -x arguments

2006-03-23 Thread Surendra
Hi Friends, I am in need of gudance for getting ouput from the gdb objfile -batch -x gdb batch_command_file But I am not able to see messages on display. So kindly guide me if u have any experience about it. batch_command_file: list *0x840230fd echo bla bla... -- http://mail.python.org/mai

Re: Hashtables in pyhton ...

2006-03-09 Thread Konrad Mühler
Max M wrote: > >>> a_hash_is_a_dict = {'key':'value'} > >>> a_hash_is_a_dict['key2'] = 'value 2' > >>> a_hash_is_a_dict['key'] > 'value' Thank you very much. This is I was looking for :-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Hashtables in pyhton ...

2006-03-09 Thread Xavier Morel
Konrad Mühler wrote: > Hi, > > are there predefinded chances to use hashtables in python? How can I use > Hashtable in python? Or do I have to implement this on my own? > > Thanks A Java Hashtable/Hashmap is equivalent to a Python dictionary, which is a builtin objects (and not a second-class c

Re: Hashtables in pyhton ...

2006-03-09 Thread Ravi Teja
Hashtables (dictonaries) and ArrayLists(lists) are integral parts of modern languages (for example: Python, Ruby, OCaml, D). They are builtin data types unlike say, Java or C++, where they are added to the library as an afterthought. -- http://mail.python.org/mailman/listinfo/python-list

Re: Hashtables in pyhton ...

2006-03-09 Thread Larry Bates
Konrad Mühler wrote: > Hi, > > are there predefinded chances to use hashtables in python? How can I use > Hashtable in python? Or do I have to implement this on my own? > > Thanks Take a look at a python dictionary. keys in dictionaries are hashed and lookups are very efficient. -Larry Bates -

Re: Hashtables in pyhton ...

2006-03-09 Thread Fredrik Lundh
Konrad Mühler wrote: > are there predefinded chances to use hashtables in python? How can I use > Hashtable in python? Or do I have to implement this on my own? is this what you want? http://docs.python.org/tut/node7.html#SECTION00750 -- http://mail.python.org/mailman/list

Re: Hashtables in pyhton ...

2006-03-09 Thread Max M
Konrad Mühler wrote: > Hi, > > are there predefinded chances to use hashtables in python? How can I use > Hashtable in python? Or do I have to implement this on my own? >>> a_hash_is_a_dict = {'key':'value'} >>> a_hash_is_a_dict['key2'] = 'value 2' >>> a_hash_is_a_dict['key'] 'value' -- h

Hashtables in pyhton ...

2006-03-09 Thread Konrad Mühler
Hi, are there predefinded chances to use hashtables in python? How can I use Hashtable in python? Or do I have to implement this on my own? Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Extended Language c++ in pyhton

2005-09-01 Thread Phil Thompson
> Decide your self: > > http://seal.web.cern.ch/seal/snapshot/work-packages/scripting/evaluation-report.html A shame that it's so out of date. Phil -- http://mail.python.org/mailman/listinfo/python-list

Re: Extended Language c++ in pyhton

2005-09-01 Thread Roman Yakovenko
Decide your self: http://seal.web.cern.ch/seal/snapshot/work-packages/scripting/evaluation-report.html My recomendation is boost.python. If you choose boost.python then there are a few code generator tools for it. One of them is pyplusplus ( see http://pygccxml.sourceforge.net/pyplusplus/pyplusp

Extended Language c++ in pyhton

2005-09-01 Thread elho
I found serveral tool for using C++ as extended languate in python - but what's the best / easiest to use? With C I used wrappy - not sure if it's the wright name, it's included since Python 1.6 and it ist pretty ease to use. You know an example with this util for C++ or isn't it possible for C

Re: Email client in Pyhton

2005-08-26 Thread Gregory K. Johnson
On Thu, Aug 25, 2005 at 11:28:33PM -0700, Oren Tirosh wrote: > The mailbox module has recently been upgraded for full read-write > access by a student participating in google's Summer of Code. It is > currently under review for inclusion in the standard library. Yeah. I'm the student. :-) The OP

Re: Email client in Pyhton

2005-08-25 Thread Oren Tirosh
> IIRC, many of the mailbox modules (such as mailbox and > mhlib) are read-only, but they should provide a good starting point. The mailbox module has recently been upgraded for full read-write access by a student participating in google's Summer of Code. It is currently under review for inclusion

Re: Email client in Pyhton

2005-08-25 Thread knaren
> Start reading related RFCs like RFC2822, RFC2045/6/7, RFC2231, RFC821 > ... and then read Python documentation and you'll find that most of > these RFC are supported/implemented by python modules like > > - email > - smtlib > - rfc822 > > As far I know the most complete mail client written in

Re: Email client in Pyhton

2005-08-25 Thread knaren
Thanks micheal, for help. I think this could solve most of problem. -- K Naren,MeTel Team. http://www.midascomm.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Email client in Pyhton

2005-08-24 Thread Nemesis
Mentre io pensavo ad una intro simpatica "[EMAIL PROTECTED]" scriveva: > now i am planning to write a bear minimum email client in > pyhton. i found the smtp module of python could serve my > pupose. I can send message using mails using the smtp lib. > Now i'm looking

Re: Email client in Pyhton

2005-08-24 Thread rafi
> > now i am planning to write a bear minimum email client in > pyhton. i found the smtp module of python could serve my > pupose. I can send message using mails using the smtp lib. > Now i'm looking for some modules which can help me in > fetching the mails from the mailserver a

Re: Email client in Pyhton

2005-08-24 Thread Jonas Geiregat
[EMAIL PROTECTED] wrote: > Hi grp, > I new to this grp and python too. > i have started writing few python scripts myself. > > now i am planning to write a bear minimum email client in > pyhton. i found the smtp module of python could serve my > pupose. I can send message

Re: Email client in Pyhton

2005-08-24 Thread Michael Ekstrand
On Wed, 24 Aug 2005 20:15:01 +0530 (IST) [EMAIL PROTECTED] wrote: > now i am planning to write a bear minimum email client in > pyhton. i found the smtp module of python could serve my > pupose. I can send message using mails using the smtp lib. > Now i'm looking for some modules

Email client in Pyhton

2005-08-24 Thread knaren
Hi grp, I new to this grp and python too. i have started writing few python scripts myself. now i am planning to write a bear minimum email client in pyhton. i found the smtp module of python could serve my pupose. I can send message using mails using the smtp lib. Now i'm looking for