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
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
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
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
--
Whats the reason that python is growing fast?
--
https://mail.python.org/mailman/listinfo/python-list
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
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
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.
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
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
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
==
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
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 ="""
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()))
> > ...)
> > ...
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],
... 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,
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]
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
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':
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
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],
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,
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
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':
> [
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
>> &
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
-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
>
> >
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
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
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
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
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
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
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
[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
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
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
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 )
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
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
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
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
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
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
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
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
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
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
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
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
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
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
-
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
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
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
> 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
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
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
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
> 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
> 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
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
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
>
> 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
[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
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
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
86 matches
Mail list logo