Re: using python to post data to a form

2011-04-03 Thread Chris Rebert
On Sun, Apr 3, 2011 at 10:36 PM, Littlefield, Tyler wrote: > Hello: > I have some data that needs to be fed through a html form to get validated > and processed and the like. How can I use python to send data through that > form, given a specific url? the form says it uses post, but I"m not really

Re: integer multiplication

2011-04-03 Thread Paul Rubin
geremy condra writes: >> Does anyone know what algorithms for integer multiplication does Python use? >> I am trying to compare it to those used by Sage as it seems like it takes >> much longer for Python to do large integer multiplication as compared to >> Sage (anyone know off the top of their h

using python to post data to a form

2011-04-03 Thread Littlefield, Tyler
Hello: I have some data that needs to be fed through a html form to get validated and processed and the like. How can I use python to send data through that form, given a specific url? the form says it uses post, but I"m not really sure what the difference is. would it just be: http://mysite.c

Re: Guido rethinking removal of cmp from sort method

2011-04-03 Thread Terry Reedy
On 4/3/2011 1:26 AM, harrismh777 wrote: Very interesting. Your explanations (and other excellent contributions here) have shown an intense variation of diversity of viewpoint within at least the comp.lang. community with regard to the Python language. If you really want to see variation of opi

Re: proposal to allow to set the delimiter in str.format to something other than curly bracket

2011-04-03 Thread Terry Reedy
On 4/3/2011 6:07 AM, Alia Khouri wrote: Hi folks, I've been using ironpython2.7 in a project, and I was generating some csharp code when i discovered that I couldn't use use str.format because the interference with the brackets-aplenty situation in csharp. In [1]: code = "class {0}Model { publi

Re: string to path problem

2011-04-03 Thread ecu_jon
On Apr 4, 12:17 am, Chris Rebert wrote: > On Sun, Apr 3, 2011 at 8:30 PM, ecu_jon wrote: > > i am writing a basic backup program for my school. so they wanted the > > possibility to be able to set source/destination from a config file. > > my source/destination was fine before, i would build it u

Re: string to path problem

2011-04-03 Thread Chris Rebert
On Sun, Apr 3, 2011 at 8:30 PM, ecu_jon wrote: > i am writing a basic backup program for my school. so they wanted the > possibility to be able to set source/destination from a config file. > my source/destination was fine before, i would build it up with > functions, like 1 that got the user-name

string to path problem

2011-04-03 Thread ecu_jon
i am writing a basic backup program for my school. so they wanted the possibility to be able to set source/destination from a config file. my source/destination was fine before, i would build it up with functions, like 1 that got the user-name, and put it all together with os.path.join. but if they

Re: integer multiplication

2011-04-03 Thread geremy condra
On Sun, Apr 3, 2011 at 6:41 PM, Eddie Tsay wrote: > > On Sun, Apr 3, 2011 at 6:33 PM, geremy condra wrote: >> >> On Sun, Apr 3, 2011 at 6:20 PM, Eddie Tsay wrote: >> > Does anyone know what algorithms for integer multiplication does Python >> > use? >> > I am trying to compare it to those used b

Re: integer multiplication

2011-04-03 Thread geremy condra
On Sun, Apr 3, 2011 at 6:20 PM, Eddie Tsay wrote: > Does anyone know what algorithms for integer multiplication does Python use? > I am trying to compare it to those used by Sage as it seems like it takes > much longer for Python to do large integer multiplication as compared to > Sage (anyone kno

integer multiplication

2011-04-03 Thread Eddie Tsay
Does anyone know what algorithms for integer multiplication does Python use? I am trying to compare it to those used by Sage as it seems like it takes much longer for Python to do large integer multiplication as compared to Sage (anyone know off the top of their heads?) thank you -- http://mail.p

Re: Looking for ideas on controlling python module loading

2011-04-03 Thread Chris Angelico
On Mon, Apr 4, 2011 at 10:44 AM, Nathan Coulson wrote: > Hello, I am working on a client/server program (game) that uses C w/ > an embedded python interpreter, that uses python to script what > objects do in the game.   (primarily a C environment) > > I was wondering if it is possible to control w

Looking for ideas on controlling python module loading

2011-04-03 Thread Nathan Coulson
Hello, I am working on a client/server program (game) that uses C w/ an embedded python interpreter, that uses python to script what objects do in the game. (primarily a C environment) I was wondering if it is possible to control what modules get loaded (or not). perhaps by determining if the h

Light weight IDE like pywin for os x 10.6

2011-04-03 Thread python
I have looked a while for this answer. Sorry if it right before me. I have move from Windows to os x. The thing I miss most is pywin. I know you can purchase or download full IDE's for python or even use Eclipse. I really liked the ability to switch from interactive interpreter to editor easil

Re: Python users in Stavanger, Norway?

2011-04-03 Thread Rafe Kettler
On Apr 3, 3:32 am, Austin Bingham wrote: > Hei! > > I'm a Python developer in Stavanger, Norway looking for other Python > users/developers/etc. who might be interested in starting a local user > group. Anyone interested? This group might actually evolve into a > general programming/computer group

Re: Python CPU

2011-04-03 Thread Nobody
On Sun, 03 Apr 2011 10:15:34 -0700, John Nagle wrote: > Note that if you run out of return point stack, or parameter > stack, you're stuck. So there's a hardware limit on call depth. > National Semiconductor once built a CPU with a separate return > point stack with a depth of 20. Big mista

Re: Guido rethinking removal of cmp from sort method

2011-04-03 Thread geremy condra
On Sun, Apr 3, 2011 at 3:21 AM, Steven D'Aprano wrote: > On Sun, 03 Apr 2011 16:34:34 +1000, Brian Quinlan wrote: > >> On 3 Apr 2011, at 16:22, geremy condra wrote: >>> I think we're talking at cross purposes. The point I'm making is that >>> there are lots of issues where popularity as a third pa

Re: [Twisted-Python] [ANNOUNCE] Twisted 11.0.0 Released

2011-04-03 Thread Laurens Van Houtven
Today is indeed a very, very good day. Thanks! lvh -- http://mail.python.org/mailman/listinfo/python-list

[ANNOUNCE] Twisted 11.0.0 Released

2011-04-03 Thread Jessica McKellar
PAS MAINTENANT CHEF! CHUIS EN TRAIN DE BRANCHER LE REACTEUR On behalf of Twisted Matrix Laboratories, I am honored to announce the release of Twisted 11.0.0. Highlights include: * a new templating system in Twisted Web, "twisted.web.template", derived from Divmod Nevow. * improved beh

Re: Python CPU

2011-04-03 Thread John Nagle
On 4/3/2011 8:44 AM, Werner Thie wrote: You probably heard of the infamous FORTH chips like the Harris RTX2000, or ShhBoom, which implemented a stack oriented very low power design before there were FPGAs in silicon. To my knowledge the RTX2000 is still used for space hardened application and if

Re: Python users in Stavanger, Norway?

2011-04-03 Thread David Boddie
On Sunday 03 April 2011 09:32, Austin Bingham wrote: > I'm a Python developer in Stavanger, Norway looking for other Python > users/developers/etc. who might be interested in starting a local user > group. Anyone interested? This group might actually evolve into a > general programming/computer gr

Re: Python CPU

2011-04-03 Thread Werner Thie
You probably heard of the infamous FORTH chips like the Harris RTX2000, or ShhBoom, which implemented a stack oriented very low power design before there were FPGAs in silicon. To my knowledge the RTX2000 is still used for space hardened application and if I search long enough I might fine the

[Fwd: Re: about Pyclutter]

2011-04-03 Thread craf
Thanks for the answer. Regards. Cristian - Mensaje reenviado > De: Blockheads Oi Oi > Para: python-list@python.org > Asunto: Re: about Pyclutter > Fecha: Sun, 03 Apr 2011 11:41:32 +0100 > > On 02/04/2011 17:54, craf wrote: > > Hi > > > > Does anyone know how mature is Pyclutter

[Fwd: Re: Another location of the PyGTK tutorial]

2011-04-03 Thread craf
¡Thank you very much Dotan! Regards. Cristian - Mensaje reenviado > De: Dotan Cohen > Para: craf > Cc: Python Ingles > Asunto: Re: Another location of the PyGTK tutorial > Fecha: Sun, 3 Apr 2011 13:40:35 +0300 > > http://gitorious.org/pygtk-tutorial > > On Fri, Apr 1, 2011 a

Re: TypeError: iterable argument required

2011-04-03 Thread eryksun ()
On Saturday, April 2, 2011 12:26:18 PM UTC-4, Νικόλαος Κούρας wrote: > Hello, after inserting this line if "@" in mail and comment not in > ("Σχολιάστε ή ρωτήστε με σχετικά", ""): > > iam getting the following error which i dont understand > > *

Re: proposal to allow to set the delimiter in str.format to something other than curly bracket

2011-04-03 Thread Alia Khouri
On Apr 3, 1:53 pm, Corey Richardson wrote: > On 04/03/2011 06:07 AM, Alia Khouri wrote: > > > Hi folks, > > > I've been using ironpython2.7 in a project, and I was generating some > > csharp code when i discovered that I couldn't use use str.format > > because the interference with the brackets-ap

Re: better way to do this in python

2011-04-03 Thread Mag Gam
Thanks for the responses. Basically, I have a large file with this format, Date INFO username command srcipaddress filename I would like to do statistics on: total number of usernames and who they are username and commands username and filenames unique source ip addresses unique filenames The

Re: proposal to allow to set the delimiter in str.format to something other than curly bracket

2011-04-03 Thread Corey Richardson
On 04/03/2011 06:07 AM, Alia Khouri wrote: > Hi folks, > > I've been using ironpython2.7 in a project, and I was generating some > csharp code when i discovered that I couldn't use use str.format > because the interference with the brackets-aplenty situation in > csharp. > Roll your own http://d

Re: about Pyclutter

2011-04-03 Thread Blockheads Oi Oi
On 02/04/2011 17:54, craf wrote: Hi Does anyone know how mature is Pyclutter?. Regards Cristian Abarzúa I don't kow about mature but from http://wiki.clutter-project.org/wiki/PyClutter. "WARNING: PyClutter only covers the 1.0 API, and it is going to be deprecated in favour of introspect

Re: Another location of the PyGTK tutorial

2011-04-03 Thread Dotan Cohen
http://gitorious.org/pygtk-tutorial On Fri, Apr 1, 2011 at 21:03, craf wrote: > Hi. > > Anyone know if the pygtk tutorial that was in this direction > http://www.learnpygtk.org/pygtktutorial/index.html,  can be located > elsewhere. > > Regards. > > Cristian > > -- > http://mail.python.org/mailman

Re: Another location of the PyGTK tutorial

2011-04-03 Thread Dotan Cohen
http://gitorious.org/pygtk-tutorial On Sat, Apr 2, 2011 at 19:53, craf wrote: > Hi. > > Anyone know if the pygtk tutorial that was in this direction > http://www.learnpygtk.org/pygtktutorial/index.html,  can be located > elsewhere. > > Regards. > > Cristian > > -- > http://mail.python.org/mailman

Re: Guido rethinking removal of cmp from sort method

2011-04-03 Thread Steven D'Aprano
On Sun, 03 Apr 2011 16:34:34 +1000, Brian Quinlan wrote: > On 3 Apr 2011, at 16:22, geremy condra wrote: >> I think we're talking at cross purposes. The point I'm making is that >> there are lots of issues where popularity as a third party module isn't >> really a viable test for whether a feature

proposal to allow to set the delimiter in str.format to something other than curly bracket

2011-04-03 Thread Alia Khouri
Hi folks, I've been using ironpython2.7 in a project, and I was generating some csharp code when i discovered that I couldn't use use str.format because the interference with the brackets-aplenty situation in csharp. In [1]: code = "class {0}Model { public bool IsModel(){ return true; } }" In [2

about Pyclutter

2011-04-03 Thread craf
Hi Does anyone know how mature is Pyclutter?. Regards Cristian Abarzúa -- http://mail.python.org/mailman/listinfo/python-list

Another location of the PyGTK tutorial

2011-04-03 Thread craf
Hi. Anyone know if the pygtk tutorial that was in this direction http://www.learnpygtk.org/pygtktutorial/index.html, can be located elsewhere. Regards. Cristian -- http://mail.python.org/mailman/listinfo/python-list

Another location of the PyGTK tutorial

2011-04-03 Thread craf
Hi. Anyone know if the pygtk tutorial that was in this direction http://www.learnpygtk.org/pygtktutorial/index.html, can be located elsewhere. Regards. Cristian -- http://mail.python.org/mailman/listinfo/python-list

Re: Python CPU

2011-04-03 Thread Paul Rubin
John Nagle writes: > The Forth chips were cute, and got more done with fewer gates than > almost anything else. But that didn't matter for long. > Willow Garage has a custom Forth chip they use in their Ethernet > cameras, but it's really a FPGA. You can order 144-core Forth chips right now,

ami&bigchurch messages

2011-04-03 Thread asif m.asif
http://123maza.com/75/offer210/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem regarding returning list

2011-04-03 Thread Ian Kelly
On Sun, Apr 3, 2011 at 1:12 AM, sl33k wrote: > I am trying to return a list of items modified with each item also > showing like the number of modifications. > > Returning a list of user modified items was done easily but I would > also like to display the item modified by the user and the > modif

Re: Python CPU

2011-04-03 Thread Carl Banks
It'd be kind of hard. Python bytecode operates on objects, not memory slots, registers, or other low-level entities like that. Therefore, in order to implement a "Python machine" one would have to implement the whole object system in the hardware, more or less. So it'd be possible but not too

Python users in Stavanger, Norway?

2011-04-03 Thread Austin Bingham
Hei! I'm a Python developer in Stavanger, Norway looking for other Python users/developers/etc. who might be interested in starting a local user group. Anyone interested? This group might actually evolve into a general programming/computer group, depending on the mix of people, but I think that's

Re: Problem regarding returning list

2011-04-03 Thread sl33k
On Apr 3, 3:12 am, sl33k wrote: > I am trying to return a list of items modified with each item also > showing like the number of modifications. > > Returning a list of user modified items was done easily but I would > also like to display the item modified by the user and the > modifications of t

Re: Guido rethinking removal of cmp from sort method

2011-04-03 Thread harrismh777
geremy condra wrote: Something to consider is that OOP philosophy is technically one of the most > aesthetic concepts in all of computer science--- with pure functional > programming (haskel, erlang) as a close second... I like how you inserted the word 'technically' in there to give this tota

Re: Python CPU

2011-04-03 Thread John Nagle
On 4/2/2011 9:01 PM, Steven D'Aprano wrote: There were also Forth chips, which let you run Forth in hardware. I believe they were much faster than Forth in software, but were killed by the falling popularity of Forth. The Forth chips were cute, and got more done with fewer gates than almost

Problem regarding returning list

2011-04-03 Thread sl33k
I am trying to return a list of items modified with each item also showing like the number of modifications. Returning a list of user modified items was done easily but I would also like to display the item modified by the user and the modifications of that particular item. Typical way it coould b