Re: write binary with struct.pack_into

2012-10-05 Thread Chris Angelico
On Sat, Oct 6, 2012 at 1:27 PM, palmeira wrote: > import struct > bloco='>%df' %(252) #Binary format > > # READ > fa=open('testIN.bin') > my_array=struct.unpack_from(bloco,fa.read()[0*4:251*4])# my_aray = 252 > elements array > ## This read is OK! > > #WRITE > fb=open('testOUT.bin') > test=st

try/except KeyError vs "if name in ..."

2012-10-05 Thread Manuel Pégourié-Gonnard
Hi, I was looking at the example found here [1] which begins with: [1] http://docs.python.org/py3k/library/imp.html#examples def __import__(name, globals=None, locals=None, fromlist=None): # Fast path: see if the module has already been imported. try: return sys.modules[name]

Re: notmm is dead!

2012-10-05 Thread Ramchandra Apte
On Saturday, 6 October 2012 08:29:02 UTC+5:30, Michael Torrie wrote: > On 10/05/2012 07:43 PM, 8 Dihedral wrote: > > > I think it is OK to have some string attatched in those open source > > projects. > > > > What are you talking about? What "string?" > > > > > Nowadays the software i

Re: write binary with struct.pack_into

2012-10-05 Thread 88888 Dihedral
palmeira於 2012年10月6日星期六UTC+8上午11時27分47秒寫道: > Dear pythonists, > > > > I'm having a problem with read/write binary in python. > > I have a binary file that I need to read information, extract a array, > > modify this array and put these values into file again in same binary > > format. > > I

write binary with struct.pack_into

2012-10-05 Thread palmeira
Dear pythonists, I'm having a problem with read/write binary in python. I have a binary file that I need to read information, extract a array, modify this array and put these values into file again in same binary format. I need to use unpack_from and pack_into because sometimes gonna need read/wri

Re: notmm is dead!

2012-10-05 Thread Michael Torrie
On 10/05/2012 07:43 PM, 8 Dihedral wrote: > I think it is OK to have some string attatched in those open source projects. What are you talking about? What "string?" > Nowadays the software industry is just like the perfume and prtinting > and the audio-video entaertainment industry. True

Re: calendar from python to html

2012-10-05 Thread Jason Benjamin
Well, you need a web server, a webpage, a database (could just be a file), a cgi script, and the datetime module. Optionally, you can use a web framework like CherryPy or Django, which covers a lot of these by itself. I only know Python 2, but here are some examples: A basic web server: web

Re: notmm is dead!

2012-10-05 Thread 88888 Dihedral
Prasad, Ramit於 2012年10月6日星期六UTC+8上午4時06分31秒寫道: > Steven D'Aprano wrote: > > > Sent: Thursday, October 04, 2012 7:22 PM > > > To: python-list@python.org > > > Subject: Re: notmm is dead! > > > > > > On Thu, 04 Oct 2012 14:10:46 -0400, Etienne Robillard wrote: > > > > > > > Dear list, > > >

Re: Problems building Python from hg trunk on Open SUSE

2012-10-05 Thread Ned Deily
In article , Skip Montanaro wrote: > I haven't messed around with Python 3 recently, so decided to give it > a whirl again. I cloned the trunk (cpython) and set about it. This > is on an OpenSUSE 12.1 system. I configured like so: [...] > Any suggestions about how to resolve this would be a

Re: Coexistence of Python 2.x and 3.x on same OS

2012-10-05 Thread Edward Diener
On 10/5/2012 5:32 PM, Dennis Lee Bieber wrote: On Fri, 05 Oct 2012 08:15:30 -0400, Edward Diener declaimed the following in gmane.comp.python.general: Windows installs of Python do not distinguish releases by Pythonx(.x) but just install different versions of Python in different directories.

Problems building Python from hg trunk on Open SUSE

2012-10-05 Thread Skip Montanaro
I haven't messed around with Python 3 recently, so decided to give it a whirl again. I cloned the trunk (cpython) and set about it. This is on an OpenSUSE 12.1 system. I configured like so: ./configure --prefix=/home/skipm/.linux-local and ran the usual "make ; make install". I'm a bit perp

Re: + in regular expression

2012-10-05 Thread Cameron Simpson
On 05Oct2012 10:27, Evan Driscoll wrote: | I can understand that you can create a grammar that excludes it. [...] | Was it because such patterns often reveal a mistake? For myself, I would consider that sufficient reason. I've seen plenty of languages (C and shell, for example, though they are n

Re: fmap(), "inverse" of Python map() function

2012-10-05 Thread Devin Jeanpierre
On Fri, Oct 5, 2012 at 7:24 PM, Ian Kelly wrote: > I realize that. My point is that the function *feels* more like a > variant of reduce than of map. > >> If it's meant as a complaint, it's a poor one. > > It's not. Fair enough all around. Sorry for misunderstanding. -- Devin -- http://mail.py

Re: instance.attribute lookup

2012-10-05 Thread Mark Lawrence
On 06/10/2012 00:12, Ethan Furman wrote: Steven D'Aprano wrote: On Fri, 05 Oct 2012 10:39:53 -0700, Ethan Furman wrote: There is a StackOverflow question [1] that points to this on-line book [2] which has a five-step sequence for looking up attributes: > When retrieving an attribute from an

Re: instance.attribute lookup

2012-10-05 Thread Ian Kelly
On Fri, Oct 5, 2012 at 11:39 AM, Ethan Furman wrote: > There is a StackOverflow question [1] that points to this on-line book [2] > which has a five-step sequence for looking up attributes: > >> When retrieving an attribute from an object (print >> objectname.attrname) Python follows these steps:

Re: instance.attribute lookup

2012-10-05 Thread Christian Heimes
Am 05.10.2012 19:39, schrieb Ethan Furman: > I'm thinking step 1 is flat-out wrong and doesn't exist. Does anybody > know otherwise? The answer is confusing and also wrong. For instance it ignores the existence of __slots__, metaclasses and the different lookup strategy of __special__ methods in

Re: fmap(), "inverse" of Python map() function

2012-10-05 Thread Ian Kelly
On Fri, Oct 5, 2012 at 4:52 PM, Devin Jeanpierre wrote: > On Fri, Oct 5, 2012 at 5:31 PM, Ian Kelly wrote: >> On Fri, Oct 5, 2012 at 2:19 PM, vasudevram wrote: >>> >>> http://jugad2.blogspot.in/2012/10/fmap-inverse-of-python-map-function.html >> >> Your fmap is a special case of reduce. > > So i

Re: instance.attribute lookup

2012-10-05 Thread Ethan Furman
Steven D'Aprano wrote: On Fri, 05 Oct 2012 10:39:53 -0700, Ethan Furman wrote: There is a StackOverflow question [1] that points to this on-line book [2] which has a five-step sequence for looking up attributes: > When retrieving an attribute from an object (print > objectname.attrname) Pyth

Re: instance.attribute lookup

2012-10-05 Thread Steven D'Aprano
On Fri, 05 Oct 2012 10:39:53 -0700, Ethan Furman wrote: > There is a StackOverflow question [1] that points to this on-line book > [2] which has a five-step sequence for looking up attributes: > > > When retrieving an attribute from an object (print > > objectname.attrname) Python follows these

Re: fmap(), "inverse" of Python map() function

2012-10-05 Thread Devin Jeanpierre
On Fri, Oct 5, 2012 at 5:31 PM, Ian Kelly wrote: > On Fri, Oct 5, 2012 at 2:19 PM, vasudevram wrote: >> >> http://jugad2.blogspot.in/2012/10/fmap-inverse-of-python-map-function.html > > Your fmap is a special case of reduce. So is map. def map(f, seq): return reduce( lambda rseq, ne

Executing untrusted scripts in a sandboxed environment

2012-10-05 Thread Robin Krahl
Hi all, I need to execute untrusted scripts in my Python application. To avoid security issues, I want to use a sandboxed environment. This means that the script authors have no access to the file system. They may only access objects, modules and classes that are "flagged" or "approved" for scr

Job

2012-10-05 Thread dave
Looking for entry to mid level Python Developer for Contract job in New England. Let me know if you want to hear more. -- http://mail.python.org/mailman/listinfo/python-list

Re: fmap(), "inverse" of Python map() function

2012-10-05 Thread Ian Kelly
On Fri, Oct 5, 2012 at 3:31 PM, Ian Kelly wrote: > On Fri, Oct 5, 2012 at 2:19 PM, vasudevram wrote: >> >> http://jugad2.blogspot.in/2012/10/fmap-inverse-of-python-map-function.html > > Your fmap is a special case of reduce. > > def fmap(functions, argument): > return reduce(lambda result, fu

Re: fmap(), "inverse" of Python map() function

2012-10-05 Thread Ian Kelly
On Fri, Oct 5, 2012 at 2:19 PM, vasudevram wrote: > > http://jugad2.blogspot.in/2012/10/fmap-inverse-of-python-map-function.html Your fmap is a special case of reduce. def fmap(functions, argument): return reduce(lambda result, func: func(result), functions, argument) -- http://mail.python.

Re: sum function

2012-10-05 Thread Mike
That worked, Ian. Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: sum function

2012-10-05 Thread Dave Angel
On 10/05/2012 04:09 PM, Mike wrote: > Terry, > > I am not using the mail client. I am just posting on the site. And which site would that be (that you're using)? There are a few. I'm guessing you use google-groups. And all of them get gatewayed to the actual list, with differing numbers of bugs

fmap(), "inverse" of Python map() function

2012-10-05 Thread vasudevram
http://jugad2.blogspot.in/2012/10/fmap-inverse-of-python-map-function.html - Vasudev Ram www.dancingbison.com jugad2.blogspot.com twitter.com/vasudevram -- http://mail.python.org/mailman/listinfo/python-list

Re: sum function

2012-10-05 Thread Ian Kelly
On Fri, Oct 5, 2012 at 2:03 PM, Mike wrote: > I added the print command. > > It prints [] when there is no data. Change "iter(next_r, None)" to "iter(next_r, [])" -- http://mail.python.org/mailman/listinfo/python-list

Re: sum function

2012-10-05 Thread Mike
Terry, I am not using the mail client. I am just posting on the site. Something wrong with this site. When you do individual reply, it does the double posting which it shouldn't. See "Ramachandra Apte's" reply. It is posted twice too. Thanks -- http://mail.python.org/mailman/listinfo/pytho

RE: notmm is dead!

2012-10-05 Thread Prasad, Ramit
Steven D'Aprano wrote: > Sent: Thursday, October 04, 2012 7:22 PM > To: python-list@python.org > Subject: Re: notmm is dead! > > On Thu, 04 Oct 2012 14:10:46 -0400, Etienne Robillard wrote: > > > Dear list, > > > > Due to lack of energy and resources i'm really sad to announce the > > removal of

Re: sum function

2012-10-05 Thread Mike
I added the print command. It prints [] when there is no data. Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Are ABCs an anti-pattern?

2012-10-05 Thread Trent Nelson
On Tue, Oct 02, 2012 at 07:23:05AM -0700, Demian Brecht wrote: > I don't use them anymore, but I'm curious about others opinions on this > list... I like them. In particular, I like that I can enumerate all the subclasses that happen to implement the ABC via the metaclass's __subclas

Re: sum function

2012-10-05 Thread Ian Kelly
On Fri, Oct 5, 2012 at 7:39 AM, Mike wrote: > Sorry about that. Here you go > > Traceback (most recent call last): > File "test.py", line 17, in > total = sum(float(col.value) for r in iter(next_r, None) for col in > r[0].columns.itervalues()) > File "test.py", line 17, in > total =

calendar from python to html

2012-10-05 Thread Luca Sanna
hi, I enter a calendar in an html page in each calendar day, I enter a time that is used by the program to perform actions with python What can I use to do this? thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: sum function

2012-10-05 Thread Terry Reedy
On 10/5/2012 9:47 AM, Mike wrote: On Friday, October 5, 2012 9:41:44 AM UTC-4, Ramchandra Apte wrote: On Friday, 5 October 2012 19:09:15 UTC+5:30, Mike wrote: On Thursday, October 4, 2012 4:52:50 PM UTC-4, Mike wrote: Hi All, I am new to python and am get

instance.attribute lookup

2012-10-05 Thread Ethan Furman
There is a StackOverflow question [1] that points to this on-line book [2] which has a five-step sequence for looking up attributes: > When retrieving an attribute from an object (print > objectname.attrname) Python follows these steps: > > 1. If attrname is a special (i.e. Python-provided) attr

Re: [fcgi.py] Force cache upgrade?

2012-10-05 Thread Michael Ströder
Gilles wrote: > On Fri, 28 Sep 2012 23:57:14 +0200, Gilles wrote: >> I guess the FastCGI server (Flup) only updates its cache every so >> often. Do I need to type a command to force Flup to recompile the >> Python script? > > Turns out that, yes, mod_fcgid is configured to reload a script only >

Re: + in regular expression

2012-10-05 Thread MRAB
On 2012-10-05 16:27, Evan Driscoll wrote: On 10/05/2012 04:23 AM, Duncan Booth wrote: A regular expression element may be followed by a quantifier. Quantifiers are '*', '+', '?', '{n}', '{n,m}' (and lazy quantifiers '*?', '+?', '{n,m}?'). There's nothing in the regex language which says you can

Re: notmm is dead!

2012-10-05 Thread Etienne Robillard
On Fri, 5 Oct 2012 09:29:39 -0600 Ian Kelly wrote: > On Oct 4, 2012 6:56 PM, "Etienne Robillard" wrote: > > > > You probably have a old tarball or something... > > Not unless you've replaced it since I made my post, as I had just > downloaded it to check the license. The 0.4.4 release is old,

RE: When was the last time you did something for the first time?

2012-10-05 Thread Hector Chapa
I learn trigonometry -Original Message- From: Ramchandra Apte [mailto:maniandra...@gmail.com] Sent: Friday, October 05, 2012 8:03 AM To: python-list@python.org Subject: Re: When was the last time you did something for the first time? On Friday, 5 October 2012 16:33:52 UTC+5:30, The Match

Re: + in regular expression

2012-10-05 Thread Evan Driscoll
On 10/05/2012 10:27 AM, Evan Driscoll wrote: On 10/05/2012 04:23 AM, Duncan Booth wrote: A regular expression element may be followed by a quantifier. Quantifiers are '*', '+', '?', '{n}', '{n,m}' (and lazy quantifiers '*?', '+?', '{n,m}?'). There's nothing in the regex language which says you c

Re: notmm is dead!

2012-10-05 Thread Ian Kelly
On Oct 4, 2012 6:56 PM, "Etienne Robillard" wrote: > > You probably have a old tarball or something... Not unless you've replaced it since I made my post, as I had just downloaded it to check the license. -- http://mail.python.org/mailman/listinfo/python-list

Re: Re: + in regular expression

2012-10-05 Thread Evan Driscoll
On 10/05/2012 04:23 AM, Duncan Booth wrote: A regular expression element may be followed by a quantifier. Quantifiers are '*', '+', '?', '{n}', '{n,m}' (and lazy quantifiers '*?', '+?', '{n,m}?'). There's nothing in the regex language which says you can follow an element with two quantifiers. In

Re: notmm is dead!

2012-10-05 Thread Michael Torrie
On 10/05/2012 04:43 AM, Etienne Robillard wrote: > No. All past notmm licenses were and still ARE ISC licensed. The license fee > is simply because I'm shifting into commercial license for new releases, > including > the newer 0.4.5 version... Pypi was not the authority source for notmm and > nei

Re: How to create a login screen using core python language without using any framework

2012-10-05 Thread Demian Brecht
On 12-10-05 06:11 AM, Joel Goldstick wrote: I totally agree about using a framework. You say you want a 'simple' 3 page website. Why do you think it is simple? You say you don't have any skills at creating websites with python. From your description, you will need to build a directory of ent

Re: How to call python script from web.

2012-10-05 Thread Joel Goldstick
On Fri, Oct 5, 2012 at 9:59 AM, Mike wrote: > Hi, > > I can call the php script from browser assuming apache web server exists. > > How can I call the python script like php script? > > Any thought? > > Thanks > -- > http://mail.python.org/mailman/listinfo/python-list A popular way for apache is

Re: sum function

2012-10-05 Thread Mike
On Friday, October 5, 2012 9:41:44 AM UTC-4, Ramchandra Apte wrote: > On Friday, 5 October 2012 19:09:15 UTC+5:30, Mike wrote: > > > On Thursday, October 4, 2012 4:52:50 PM UTC-4, Mike wrote: > > > > > > > Hi All, > > > > > > > > > > > > > > > > > > > > > > > > > > > > I am new

Re: sum function

2012-10-05 Thread Ramchandra Apte
On Friday, 5 October 2012 19:09:15 UTC+5:30, Mike wrote: > On Thursday, October 4, 2012 4:52:50 PM UTC-4, Mike wrote: > > > Hi All, > > > > > > > > > > > > I am new to python and am getting the data from hbase. > > > > > > I am trying to do sum on the column as below > > > > > > >

Re: sum function

2012-10-05 Thread Mike
On Thursday, October 4, 2012 4:52:50 PM UTC-4, Mike wrote: > Hi All, > > > > I am new to python and am getting the data from hbase. > > I am trying to do sum on the column as below > > > > > > scanner = client.scannerOpenWithStop("tab", "10", "1000", ["cf:col1"]) > > total = 0.0 > > r =

Re: final question: logging to stdout and updating files

2012-10-05 Thread Ramchandra Apte
On Thursday, 4 October 2012 19:30:26 UTC+5:30, Steven D'Aprano wrote: > On Thu, 04 Oct 2012 06:34:28 -0700, Ramchandra Apte wrote: > > > > > "Optimize code always even if it causes bugs" - Ramchandra Apte, 2001- > > > > Well, you've just added yourself into my list of people whose advice >

Re: How to create a login screen using core python language without using any framework

2012-10-05 Thread Joel Goldstick
On Fri, Oct 5, 2012 at 5:29 AM, Hans Mulder wrote: > On 5/10/12 10:03:56, shivakrsh...@gmail.com wrote: >> I need to develop a simple login page using Python language with >> two fields and a button, like: >> >> Username, Password, Login >> >> I know there are some beautiful Python frameworks

Re: When was the last time you did something for the first time?

2012-10-05 Thread Ramchandra Apte
On Friday, 5 October 2012 16:33:52 UTC+5:30, The Matchmaker wrote: > What do you want to talk about today? Nothing. -- http://mail.python.org/mailman/listinfo/python-list

Re: Coexistence of Python 2.x and 3.x on same OS

2012-10-05 Thread Mark Lawrence
On 05/10/2012 13:15, Edward Diener wrote: On 10/1/2012 12:02 PM, Alister wrote: On Sun, 30 Sep 2012 15:14:17 -0400, Edward Diener wrote: Has there been any official software that allows both the Python 2.x and 3.x releases to coexist on the same OS so that the end-user can easily switch betwee

Re: Coexistence of Python 2.x and 3.x on same OS

2012-10-05 Thread Edward Diener
On 9/30/2012 3:38 PM, Andrew Berg wrote: On 2012.09.30 14:14, Edward Diener wrote: The situation is so confusing on Windows, where the file associations, registry entries, and other internal software which allows a given Python release to work properly when invoking Python is so complicated, tha

Re: Coexistence of Python 2.x and 3.x on same OS

2012-10-05 Thread Edward Diener
On 10/1/2012 12:02 PM, Alister wrote: On Sun, 30 Sep 2012 15:14:17 -0400, Edward Diener wrote: Has there been any official software that allows both the Python 2.x and 3.x releases to coexist on the same OS so that the end-user can easily switch between them when invoking Python scripts after e

Re: Coexistence of Python 2.x and 3.x on same OS

2012-10-05 Thread Edward Diener
On 10/1/2012 1:32 PM, Dennis Lee Bieber wrote: On Sun, 30 Sep 2012 23:06:04 -0400, Edward Diener declaimed the following in gmane.comp.python.general: My thought is a program distributed by Python which finds the versions of Python on an OS, lets the end-user choose which version should be in

Re: error bluetooth

2012-10-05 Thread Luca Sanna
Il giorno venerdì 5 ottobre 2012 13:33:14 UTC+2, Hans Mulder ha scritto: > On 5/10/12 10:51:42, Luca Sanna wrote: > > > > > from bluetooth import * > > > > [..] > > > > > luca@luca-XPS-M1330:~/py-temperature/py-temperature$ python bluetooth.py > > > > When you say "from bluetooth im

Re: Reading properties file in Python, except using ConfigParser()

2012-10-05 Thread Günther Dietrich
justmailha...@gmail.com wrote: >How to read properties file in Python? I found ConfigParser() but it has a >'section' limitation, so looking for other alternatives. Have a look at PyYAML. Best regards, Günther -- http://mail.python.org/mailman/listinfo/python-list

Re: error bluetooth

2012-10-05 Thread Hans Mulder
On 5/10/12 10:51:42, Luca Sanna wrote: > from bluetooth import * [..] > luca@luca-XPS-M1330:~/py-temperature/py-temperature$ python bluetooth.py When you say "from bluetooth import *", Python will find a file name "bluetooth.py" and import stuff from that file. Since your script happens to

Re: When was the last time you did something for the first time?

2012-10-05 Thread Etienne Robillard
Micro$oft :) On Fri, 5 Oct 2012 04:03:52 -0700 (PDT) The Matchmaker wrote: > What do you want to talk about today? > -- > http://mail.python.org/mailman/listinfo/python-list -- Etienne Robillard Green Tea Hackers Club Fine Software Carpentry For The Rest Of Us! http://gthc.org/ e...@gthcfou

When was the last time you did something for the first time?

2012-10-05 Thread The Matchmaker
What do you want to talk about today? -- http://mail.python.org/mailman/listinfo/python-list

Re: notmm is dead!

2012-10-05 Thread Etienne Robillard
No. All past notmm licenses were and still ARE ISC licensed. The license fee is simply because I'm shifting into commercial license for new releases, including the newer 0.4.5 version... Pypi was not the authority source for notmm and neither anyone can claim the license was left blank, thats onc

Re: error bluetooth

2012-10-05 Thread Dave Angel
On 10/05/2012 04:51 AM, Luca Sanna wrote: > the code is output the error of the ubuntu > > from bluetooth import * > > target_name = "My Phone" > target_address = None > > nearby_devices = discover_devices() > > for address in nearby_devices: > if target_name == lookup_name( address ): >

Re: error bluetooth

2012-10-05 Thread Ulrich Eckhardt
Am 05.10.2012 10:51, schrieb Luca Sanna: the code is output the error of the ubuntu from bluetooth import * [...] nearby_devices = discover_devices() [...] the error luca@luca-XPS-M1330:~/py-temperature/py-temperature$ python bluetooth.py Traceback (most recent call last): File "blue

Re: How to create a login screen using core python language without using any framework

2012-10-05 Thread Hans Mulder
On 5/10/12 10:03:56, shivakrsh...@gmail.com wrote: > I need to develop a simple login page using Python language with > two fields and a button, like: > > Username, Password, Login > > I know there are some beautiful Python frameworks like > > Django, Grok, WebPy, TurboGears > > which su

Re: How can I hide my stack frames in a TestCase subclass?

2012-10-05 Thread Peter Otten
Manuel Pégourié-Gonnard wrote: > However, there was an implied question in the "documented" part: can > we rely on it? Isn't it considered an implementation detail (names > starting with underscores)? "Not documented" was my implied answer. I think you have a valid use case, though, so you could

Re: + in regular expression

2012-10-05 Thread Duncan Booth
Cameron Simpson wrote: > On 03Oct2012 21:17, Ian Kelly wrote: >| On Wed, Oct 3, 2012 at 9:01 PM, contro opinion >| wrote: >| > why the "\s{6}+" is not a regular pattern? >| >| Use a group: "(?:\s{6})+" > > Yeah, it is probably a precedence issue in the grammar. > "(\s{6})+" is also accepte

error bluetooth

2012-10-05 Thread Luca Sanna
the code is output the error of the ubuntu from bluetooth import * target_name = "My Phone" target_address = None nearby_devices = discover_devices() for address in nearby_devices: if target_name == lookup_name( address ): target_address = address break if target_address is

Re: How can I hide my stack frames in a TestCase subclass?

2012-10-05 Thread Manuel Pégourié-Gonnard
Peter Otten scripsit : > Manuel Pégourié-Gonnard wrote: > >> Peter Otten scripsit : >> >>> __unittest = True >>> >> Hum, is it documented somewhere? I can't find it in the doc. Also, I'm >> curious to know what kind of magic it's using. > > I took advantage of the fact that Python is open source

Re: sum function

2012-10-05 Thread Ramchandra Apte
On Friday, 5 October 2012 07:31:24 UTC+5:30, Mike wrote: > I agree with you, Ian. Thanks for all the help. Now I get the below error. > > > > File "test.py", line 17, in > > total = sum(float(col.value) for r in iter(next_r, None) for col in > r[0].columns.itervalues()) > > File "t

Re: notmm is dead!

2012-10-05 Thread Ramchandra Apte
On Thursday, 4 October 2012 23:40:47 UTC+5:30, Etienne Robillard wrote: > Dear list, > > > > Due to lack of energy and resources i'm really sad to announce the removal of > notmm from pypi and bitbucket. I deleted > > also my account from bitbucket as it was not really useful for me. notmm wi

Re: How to print html in python the normal way

2012-10-05 Thread ashishjain . ash
Hi, Thanks for the reply. Apologies for my question not clear. Yes I am using django framework for it. - Regards Ashish -- http://mail.python.org/mailman/listinfo/python-list

Re: final question: logging to stdout and updating files

2012-10-05 Thread Mark Lawrence
On 04/10/2012 23:36, Prasad, Ramit wrote: Python is a product for Americans! ;) It should ensure America wins the Test Matchwait, do we even have a cricket team? ChrisA could have been talking rugby, your rugby union team isn't't too bad for a bunch of amateurs, some of whom had to take u

Re: How to create a login screen using core python language without using any framework

2012-10-05 Thread Сахнов Михаил
Hi, you can write a simple wsgi app for that, and run it through simple server, for example. http://docs.python.org/library/wsgiref.html 05.10.2012 12:06 пользователь написал: > I need to develop a simple login page using Python language with two > fields and a button, like: > > Username, Pa

Re: How can I hide my stack frames in a TestCase subclass?

2012-10-05 Thread Peter Otten
Manuel Pégourié-Gonnard wrote: > Peter Otten scripsit : > >> David Banks wrote: >> >>> Note that the custom assert method causes a stack trace with two frames, >>> one inside the method itself, whereas the stock unittest method only has >>> one frame, the relevant line in the user's code. How ca

Re: final question: logging to stdout and updating files

2012-10-05 Thread Mark Lawrence
On 04/10/2012 15:27, Chris Angelico wrote: ensured that Australia won the next Test Match ChrisA may need to schedule surgical detongueing of his cheek I'll arrange the cheek detonguing very cheaply after a comment like that :) -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/li

Re: Reading properties file in Python, except using ConfigParser()

2012-10-05 Thread Laszlo Nagy
On 2012-10-05 09:20, justmailha...@gmail.com wrote: Hi All, How to read properties file in Python? I found ConfigParser() but it has a 'section' limitation, so looking for other alternatives. http://wiki.python.org/moin/ConfigParserShootout -- http://mail.python.org/mailman/listinfo/python-li

How to create a login screen using core python language without using any framework

2012-10-05 Thread shivakrshn49
I need to develop a simple login page using Python language with two fields and a button, like: Username, Password, Login I know there are some beautiful Python frameworks like Django, Grok, WebPy, TurboGears which support web development using Python, but mine is a basic requirement

Reading properties file in Python, except using ConfigParser()

2012-10-05 Thread justmailharsh
Hi All, How to read properties file in Python? I found ConfigParser() but it has a 'section' limitation, so looking for other alternatives. Thanks, Harsh -- http://mail.python.org/mailman/listinfo/python-list