Announce: Cobra 2.0 - Windows GUI test automation tool

2012-08-03 Thread Nagappan Alagappan
Hello, Highlights * Java / C# / VB.NET http://vb.net/ / PowerShell / Ruby are now officially supported LDTP scripting languages other than Python * Approximately 130 APIs are compatible with Linux version of LDTP * C# client is compatible with Mono .NET framework and we have tested it on

RE: Is Python a commercial proposition ?

2012-08-03 Thread Prasad, Ramit
I'm in stuck record mode here, but one of the things I really enjoy about reading here is the way things do go off topic. IMHO makes for a far more interesting experience. YMMV. +1 Ramit This email is confidential and subject to important disclaimers and conditions including on offers for

RE: attribute is accessed from Nonetype

2012-08-03 Thread Prasad, Ramit
Also, please use the names correctly and consistently. The None object (yes, there is only one) is not the same as a none object. And there is no standard type called Nonetype. To be fair, this is not very clear to a beginner. len(None) # Python 2.6 TypeError: object of type 'NoneType'

Re: dbf.py API question

2012-08-03 Thread Peter Otten
Ethan Furman wrote: SQLite has a neat feature where if you give it a the file-name of ':memory:' the resulting table is in memory and not on disk. I thought it was a cool feature, but expanded it slightly: any name surrounded by colons results in an in-memory table. I'm looking at the

Re: Is Python a commercial proposition ?

2012-08-03 Thread Stefan Behnel
Prasad, Ramit, 03.08.2012 08:51: I'm in stuck record mode here, but one of the things I really enjoy about reading here is the way things do go off topic. IMHO makes for a far more interesting experience. YMMV. +1 Ramit This email is confidential and subject to important disclaimers

Eclipse and the Python plugin

2012-08-03 Thread lipska the kat
A while ago someone asked me what I thought of the Eclipse plugin for python, well I just downloaded and installed the latest version of Eclipse for Java (Juno) followed by the Python plugin. After a while messing about with it I can only say ... phew, what a relief. The plugin looks like it

Calling Values

2012-08-03 Thread Subhabrata
Dear Group, I am trying to call the values of one function in the another function in the following way: def func1(): num1=10 num2=20 print The Second Number is:,num2 return def func2(): num3=num1+num2 num4=num3+num1 print New Number One

Re: Calling Values

2012-08-03 Thread Mark Lawrence
On 03/08/2012 12:49, Subhabrata wrote: Dear Group, I am trying to call the values of one function in the another function in the following way: def func1(): num1=10 num2=20 print The Second Number is:,num2 return def func2(): num3=num1+num2

Re: Eclipse and the Python plugin

2012-08-03 Thread Mark Lawrence
On 03/08/2012 12:34, lipska the kat wrote: A while ago someone asked me what I thought of the Eclipse plugin for python, well I just downloaded and installed the latest version of Eclipse for Java (Juno) followed by the Python plugin. After a while messing about with it I can only say ... phew,

Re: ANN: dbf.py 0.94

2012-08-03 Thread Mark Lawrence
On 21/07/2012 00:59, Ethan Furman wrote: Getting closer to a stable release. Latest version has a simpler, cleaner API, and works on PyPy (and hopefully the other implementations as well ;), as well as CPython. Get your copy at http://python.org/pypi/dbf. Bug reports, comments, and kudos

Re: Eclipse and the Python plugin

2012-08-03 Thread lipska the kat
On 03/08/12 13:10, Mark Lawrence wrote: On 03/08/2012 12:34, lipska the kat wrote: A while ago someone asked me what I thought of the Eclipse plugin for python, snip My opinion of Eclipse is unchanged by your words, it's like trying to run a legless carthorse in the Grand National or the

Re: Eclipse and the Python plugin

2012-08-03 Thread Mark Lawrence
On 03/08/2012 13:23, lipska the kat wrote: On 03/08/12 13:10, Mark Lawrence wrote: On 03/08/2012 12:34, lipska the kat wrote: A while ago someone asked me what I thought of the Eclipse plugin for python, snip My opinion of Eclipse is unchanged by your words, it's like trying to run a

Re: Calling Values

2012-08-03 Thread Nobody
On Fri, 03 Aug 2012 04:49:46 -0700, Subhabrata wrote: I am trying to call the values of one function in the another function in the following way: def func1(): num1=10 num2=20 print The Second Number is:,num2 return def func2(): num3=num1+num2

Re: ANN: dbf.py 0.94

2012-08-03 Thread Alex Strickland
On 2012/07/21 11:49 PM, Mark Lawrence wrote: and PS is spelt p.s. :) Ahem, the absolutely authoritative reference on the subject: http://en.wikipedia.org/wiki/Postscript says PS or P.S. -- Regards Alex -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: dbf.py 0.94

2012-08-03 Thread Mark Lawrence
On 03/08/2012 13:50, Alex Strickland wrote: On 2012/07/21 11:49 PM, Mark Lawrence wrote: and PS is spelt p.s. :) Ahem, the absolutely authoritative reference on the subject: http://en.wikipedia.org/wiki/Postscript says PS or P.S. I'm sorry but you can't read my writing[1]. [1] another

Re: Calling Values

2012-08-03 Thread Ulrich Eckhardt
Am 03.08.2012 13:49, schrieb Subhabrata: I am trying to call the values of one function in the another function in the following way: def func1(): num1=10 num2=20 print The Second Number is:,num2 return def func2(): num3=num1+num2

Re: dbf.py API question

2012-08-03 Thread Ethan Furman
Peter Otten wrote: Ethan Furman wrote: SQLite has a neat feature where if you give it a the file-name of ':memory:' the resulting table is in memory and not on disk. I thought it was a cool feature, but expanded it slightly: any name surrounded by colons results in an in-memory table. I'm

Re: ANN: dbf.py 0.94

2012-08-03 Thread Ethan Furman
Mark Lawrence wrote: On 21/07/2012 00:59, Ethan Furman wrote: Getting closer to a stable release. Latest version has a simpler, cleaner API, and works on PyPy (and hopefully the other implementations as well ;), as well as CPython. Get your copy at http://python.org/pypi/dbf. Bug reports,

Re: Eclipse and the Python plugin

2012-08-03 Thread lipska the kat
On 03/08/12 13:40, Mark Lawrence wrote: On 03/08/2012 13:23, lipska the kat wrote: On 03/08/12 13:10, Mark Lawrence wrote: On 03/08/2012 12:34, lipska the kat wrote: A while ago someone asked me what I thought of the Eclipse plugin for python, snip it's like trying to run a legless

Re: Eclipse and the Python plugin

2012-08-03 Thread rusi
On Aug 3, 4:34 pm, lipska the kat lipskathe...@yahoo.co.uk wrote: A while ago someone asked me what I thought of the Eclipse plugin for python, well I just downloaded and installed the latest version of Eclipse for Java (Juno) followed by the Python plugin. Thanks Lipska for reporting back. I

Re: xlrd 0.8.0 released!

2012-08-03 Thread pruebauno
On Wednesday, August 1, 2012 11:01:56 AM UTC-4, Chris Withers wrote: Hi All, I'm pleased to announce the release of xlrd 0.8.0: http://pypi.python.org/pypi/xlrd/0.8.0 This release finally lands the support for both .xls and .xlsx files. Many thanks to John Machin for all

Re: Calling Values

2012-08-03 Thread subhabangalore
On Friday, August 3, 2012 5:19:46 PM UTC+5:30, Subhabrata wrote: Dear Group, I am trying to call the values of one function in the another function in the following way: def func1(): num1=10 num2=20 print The Second Number is:,num2 return def

Demise of Mr. Kenneth Gonsalves

2012-08-03 Thread Anoop Thomas Mathew
With my heartfelt condolence, I'd like to inform you all the unfortunate demise of Mr.Kenneth Gonsalves (KG - law...@thenilgiris.com), who was a strong advocate of Python, Django and Free Software in India. He had served as the President of IPSS(Indian Python Software Society), which initiated the

Re: Demise of Mr. Kenneth Gonsalves

2012-08-03 Thread Marcin Tustin
What happened to him? He was posting on this list in the last week? On Fri, Aug 3, 2012 at 11:12 AM, Anoop Thomas Mathew atm...@gmail.comwrote: With my heartfelt condolence, I'd like to inform you all the unfortunate demise of Mr.Kenneth Gonsalves (KG - law...@thenilgiris.com), who was a

Re: Demise of Mr. Kenneth Gonsalves

2012-08-03 Thread Anoop Thomas Mathew
Chronic Asthma. He was hospitalized yesterday, and passed away today. On 3 August 2012 20:45, Marcin Tustin marcin.tus...@gmail.com wrote: What happened to him? He was posting on this list in the last week? On Fri, Aug 3, 2012 at 11:12 AM, Anoop Thomas Mathew atm...@gmail.comwrote: With

RE: Calling Values

2012-08-03 Thread Prasad, Ramit
def func1(): num1=10 num2=20 print The Second Number is:,num2 return def func2(): func1() num3=num1+num2 num4=num3+num1 print New Number One is:,num3 print New Number Two is:,num4 This works. Even you can

Re: Calling Values

2012-08-03 Thread Ethan Furman
subhabangal...@gmail.com wrote: On Friday, August 3, 2012 5:19:46 PM UTC+5:30, Subhabrata wrote: Dear Group, I am trying to call the values of one function in the another function in the following way: def func1(): num1=10 num2=20 print The Second Number is:,num2

Re: Eclipse and the Python plugin

2012-08-03 Thread lipska the kat
On 03/08/12 14:54, rusi wrote: On Aug 3, 4:34 pm, lipska the katlipskathe...@yahoo.co.uk wrote: A while ago someone asked me what I thought of the Eclipse plugin for python, well I just downloaded and installed the latest version of Eclipse for Java (Juno) followed by the Python plugin.

Re: Calling Values

2012-08-03 Thread Steven D'Aprano
On Fri, 03 Aug 2012 04:49:46 -0700, Subhabrata wrote: I am preferring not to use argument passing It's not 1964 any more and you're not programming in BASIC. What you have just told us is that you prefer not to write good quality programs, and that you prefer to write buggy, hard to maintain

avlhqw avlhqeavlhqino ovfqalmw avlhqei avlhqeaivscunqw

2012-08-03 Thread Martin Michael Musatov
Thanks to technology, a memorandum of understanding (thanks from Tel Aviva / s, F `u / n (I [I TO rotate HM), and try to think, nature is E | .. (no offense to kiloton preparation. .. has C, E (Visor / s Chest on Tuesday Kin \ 2 I auto. Hi Lasso, Wilson vest / Na` martin / NH MW `. brought / \ n

Fwd: unable to get simple html file up

2012-08-03 Thread Smaran Harihar
guys i m still waiting for a reply -- Forwarded message -- From: Smaran Harihar smaran.hari...@gmail.com Date: Thu, Aug 2, 2012 at 12:26 PM Subject: unable to get simple html file up To: python-list@python.org Hi, I am following this

Re: Eclipse and the Python plugin

2012-08-03 Thread Steven D'Aprano
On Fri, 03 Aug 2012 16:51:26 +0100, lipska the kat wrote: I can write a Python class and call it Foo and save it in a file called Bar and it's no big deal (at least Eclipse doesn't get excited) If I try that in Java the sky falls in. :) Correct. Python does not require, or even encourage,

Re: unable to get simple html file up

2012-08-03 Thread Rod Person
On Fri, 3 Aug 2012 09:40:44 -0700 Smaran Harihar smaran.hari...@gmail.com wrote: guys i m still waiting for a reply -- Forwarded message -- From: Smaran Harihar smaran.hari...@gmail.com Date: Thu, Aug 2, 2012 at 12:26 PM Subject: unable to get simple html file up To:

Re: unable to get simple html file up

2012-08-03 Thread Chris Angelico
On Sat, Aug 4, 2012 at 2:40 AM, Smaran Harihar smaran.hari...@gmail.com wrote: guys i m still waiting for a reply You may get more helpful results if you add more information to your question. Also, be aware that you're asking volunteers to donate their time to you; according to the timestamps,

Re: Eclipse and the Python plugin

2012-08-03 Thread lipska the kat
On 03/08/12 17:40, Steven D'Aprano wrote: On Fri, 03 Aug 2012 16:51:26 +0100, lipska the kat wrote: I can write a Python class and call it Foo and save it in a file called Bar and it's no big deal (at least Eclipse doesn't get excited) If I try that in Java the sky falls in. :) Correct.

Re: Demise of Mr. Kenneth Gonsalves

2012-08-03 Thread Javier Guerra Giraldez
On Fri, Aug 3, 2012 at 10:12 AM, Anoop Thomas Mathew atm...@gmail.com wrote: With my heartfelt condolence, I'd like to inform you all the unfortunate demise of Mr.Kenneth Gonsalves (KG - law...@thenilgiris.com), who was a strong advocate of Python, Django and Free Software in India. certainly

Re: Calling Values

2012-08-03 Thread subhabangalore
On Friday, August 3, 2012 10:50:52 PM UTC+5:30, Dennis Lee Bieber wrote: On Fri, 3 Aug 2012 04:49:46 -0700 (PDT), Subhabrata subhabangal...@gmail.com declaimed the following in gmane.comp.python.general: Dear Group, I am trying to call the values of one function in the

Re: Eclipse and the Python plugin

2012-08-03 Thread Temia Eszteri
On Fri, 3 Aug 2012 06:54:04 -0700 (PDT), rusi rustompm...@gmail.com wrote: On Aug 3, 4:34 pm, lipska the kat lipskathe...@yahoo.co.uk wrote: A while ago someone asked me what I thought of the Eclipse plugin for python, well I just downloaded and installed the latest version of Eclipse for Java

Re: simplified Python parsing question

2012-08-03 Thread BartC
Eric S. Johansson e...@harvee.org wrote in message news:mailman.2752.1343700723.4697.python-l...@python.org... On 7/30/2012 9:54 PM, Steven D'Aprano wrote: It would please me greatly if you would be willing to try an experiment. live my life for a while. Sit in a chair and tell somebody what

Re: Demise of Mr. Kenneth Gonsalves

2012-08-03 Thread Daniel Roseman
On Friday, 3 August 2012 16:12:35 UTC+1, atm wrote: With my heartfelt condolence, I'd like to inform you all the unfortunate demise of Mr.Kenneth Gonsalves (KG - law...@thenilgiris.com), who was a strong advocate of Python, Django and Free Software in India. He had served as the President

Deciding inheritance at instantiation?

2012-08-03 Thread Tobiah
I have a bunch of classes from another library (the html helpers from web2py). There are certain methods that I'd like to add to every one of them. So I'd like to put those methods in a class, and pass the parent at the time of instantiation. Web2py has a FORM class for instance. I'd like to

Re: Deciding inheritance at instantiation?

2012-08-03 Thread Terry Reedy
On 8/3/2012 4:48 PM, Tobiah wrote: I have a bunch of classes from another library (the html helpers from web2py). There are certain methods that I'd like to add to every one of them. So I'd like to put those methods in a class, and pass the parent at the time of instantiation. Web2py has a

Re: attribute is accessed from Nonetype

2012-08-03 Thread Dave Angel
On 08/03/2012 03:01 AM, Prasad, Ramit wrote: Also, please use the names correctly and consistently. The None object (yes, there is only one) is not the same as a none object. And there is no standard type called Nonetype. To be fair, this is not very clear to a beginner. len(None) #

Re: attribute is accessed from Nonetype

2012-08-03 Thread Chris Angelico
On Sat, Aug 4, 2012 at 8:20 AM, Dave Angel d...@davea.name wrote: I'm sorry, what's not clear? Nonetype is not the same as NoneType. Python is case sensitive. There isn't a NoneType either. I get a NameError. ChrisA -- http://mail.python.org/mailman/listinfo/python-list

Re: attribute is accessed from Nonetype

2012-08-03 Thread Dave Angel
On 08/03/2012 06:41 PM, Chris Angelico wrote: On Sat, Aug 4, 2012 at 8:20 AM, Dave Angel d...@davea.name wrote: I'm sorry, what's not clear? Nonetype is not the same as NoneType. Python is case sensitive. There isn't a NoneType either. I get a NameError. ChrisA NoneType isn't in the

Re: Eclipse and the Python plugin

2012-08-03 Thread Cousin Stanley
lipska the kat wrote: I can now create, debug and test a simple IRC server written in Java and an IRC Bot that I am attempting to build in Python For a bit of inspiration python-irc-bot-wise you might look at supybot It's currently available in debian wheezy so

Re: Deciding inheritance at instantiation?

2012-08-03 Thread Nobody
On Fri, 03 Aug 2012 13:48:08 -0700, Tobiah wrote: I have a bunch of classes from another library (the html helpers from web2py). There are certain methods that I'd like to add to every one of them. So I'd like to put those methods in a class, and pass the parent at the time of

Re: attribute is accessed from Nonetype

2012-08-03 Thread Steven D'Aprano
On Sat, 04 Aug 2012 08:41:20 +1000, Chris Angelico wrote: On Sat, Aug 4, 2012 at 8:20 AM, Dave Angel d...@davea.name wrote: I'm sorry, what's not clear? Nonetype is not the same as NoneType. Python is case sensitive. There isn't a NoneType either. I get a NameError. Shame on you :-P

Re: Deciding inheritance at instantiation?

2012-08-03 Thread Steven D'Aprano
On Fri, 03 Aug 2012 13:48:08 -0700, Tobiah wrote: I have a bunch of classes from another library (the html helpers from web2py). There are certain methods that I'd like to add to every one of them. So I'd like to put those methods in a class, and pass the parent at the time of

Re: attribute is accessed from Nonetype

2012-08-03 Thread Steven D'Aprano
On Fri, 03 Aug 2012 19:03:20 -0400, Dave Angel wrote: On 08/03/2012 06:41 PM, Chris Angelico wrote: On Sat, Aug 4, 2012 at 8:20 AM, Dave Angel d...@davea.name wrote: I'm sorry, what's not clear? Nonetype is not the same as NoneType. Python is case sensitive. There isn't a NoneType either. I

Re: attribute is accessed from Nonetype

2012-08-03 Thread Dave Angel
On 08/03/2012 09:35 PM, Steven D'Aprano wrote: On Fri, 03 Aug 2012 19:03:20 -0400, Dave Angel wrote: On 08/03/2012 06:41 PM, Chris Angelico wrote: On Sat, Aug 4, 2012 at 8:20 AM, Dave Angel d...@davea.name wrote: I'm sorry, what's not clear? Nonetype is not the same as NoneType. Python is

Re: dbf.py API question

2012-08-03 Thread Tim Chase
On 08/03/12 08:11, Ethan Furman wrote: So far all feedback is for the flag, so that's what I'll do. I agree with the flag, though would also be reasonably content with using None for the filename to indicate in-memory rather than on-disk storage. -tkc --

Re: Deciding inheritance at instantiation?

2012-08-03 Thread Steven W. Orr
On 8/3/2012 4:48 PM, Tobiah wrote: I have a bunch of classes from another library (the html helpers from web2py). There are certain methods that I'd like to add to every one of them. So I'd like to put those methods in a class, and pass the parent at the time of instantiation. Web2py has a FORM

trouble with pyplot in os x

2012-08-03 Thread Eric
I'm just starting to futz around with matplotlib and I tried to run this example from the matplotlib doc page (it's the imshow() example): import numpy as np import matplotlib.cm as cm import matplotlib.mlab as mlab import matplotlib.pyplot as plt delta = 0.025 x = y = np.arange(-3.0, 3.0,

test

2012-08-03 Thread sistema
test -- http://mail.python.org/mailman/listinfo/python-list

Re: Eclipse and the Python plugin

2012-08-03 Thread rusi
On Aug 3, 10:04 pm, lipska the kat lipskathe...@yahoo.co.uk wrote: 117 methods seems a lot doesn't it. I'm still trying to get my head around Python packages, I think Eclipse will help me with this and the whole module mix of functions and classes is taking a while to get used to. The

[issue15502] Meta path finders and path entry finders are different, but share an ABC

2012-08-03 Thread Eric Snow
Eric Snow added the comment: This patch implements most of Brett's recommendation. I've held off on actually deprecating Finder just yet. However, it would probably entail a message in the docs like this: The API signatures for meta path finders and path entry finders were separated by PEP

[issue15540] Python 3.3 and numpy

2012-08-03 Thread Martin v . Löwis
Martin v. Löwis added the comment: This is a mis-understanding of what NumPy does and why.There is a need to byte-swap only when the data is stored on disk in the reverse order from the native machine So is there ever a need to byte-swap Unicode strings? I can see how *numeric* data

[issue15544] math.isnan fails with some Decimal NaNs

2012-08-03 Thread Mark Dickinson
Mark Dickinson added the comment: Yep, Decimal.__float__ isn't too sophisticated. Probably it should convert all Decimal quiet NaNs (at least) to float NaNs, keeping the sign if possible but discarding any payload. Not so sure about signaling NaNs, though; I think it would be fine for those

[issue15543] central documentation for 'universal newlines'

2012-08-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See issue15204. -- nosy: +storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15543 ___ ___

[issue13992] Segfault in PyTrash_destroy_chain

2012-08-03 Thread Charles-François Natali
Charles-François Natali added the comment: (gdb) p op $12 = (PyObject *) 0x4dc7bc0 Don't you have GDB 7, to decode Python objects ? You can check the type of the object with : p op-ob_type.tp_name thread all apply bt is going to be very long no ? Could you tell me what you want to know

[issue15545] sqlite3.Connection.iterdump() does not work with row_factory = sqlite3.Row

2012-08-03 Thread Pierre Le Marre
Changes by Pierre Le Marre lema...@eifer.org: -- components: None nosy: plemarre priority: normal severity: normal status: open title: sqlite3.Connection.iterdump() does not work with row_factory = sqlite3.Row type: crash versions: Python 3.2 ___

[issue15545] sqlite3.Connection.iterdump() does not work with row_factory = sqlite3.Row

2012-08-03 Thread Martin v . Löwis
New submission from Martin v. Löwis: Can you please elaborate? Structure your report as follows: 1. this is what I did 2. this is what happened 3. this is what should have happened instead. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org

[issue15204] Deprecate the 'U' open mode

2012-08-03 Thread Chris Jerdonek
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- nosy: +cjerdonek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15204 ___ ___

[issue15545] sqlite3.Connection.iterdump() does not work with row_factory = sqlite3.Row

2012-08-03 Thread Pierre Le Marre
Pierre Le Marre added the comment: I use Python 3.2.3 on GNU/Linux 64bits (openSUSE 12.2). I have created an in-memory connection with the following code: conn = sqlite3.connect(:memory:, detect_types=sqlite3.PARSE_DECLTYPES, check_same_thread=False) conn.row_factory = sqlite3.Row Then I have

[issue15543] central documentation for 'universal newlines'

2012-08-03 Thread Chris Jerdonek
Chris Jerdonek added the comment: Since universal newline mode is discouraged and getting deprecated in the built-in open() function, the central place for describing universal newlines should probably not be the documentation for the open() method. I am leaning towards a glossary entry.

[issue15546] Iteration breaks with bz2.open(filename,'rt')

2012-08-03 Thread David Beazley
New submission from David Beazley: The bz2 library in Python3.3b1 doesn't support iteration for text-mode properly. Example: f = bz2.open('access-log-0108.bz2') next(f) # Works b'140.180.132.213 - - [24/Feb/2008:00:08:59 -0600] GET /ply/ply.html HTTP/1.1 200 97238\n' g =

[issue15544] math.isnan fails with some Decimal NaNs

2012-08-03 Thread Steven D'Aprano
Steven D'Aprano added the comment: Attached is a patch for decimal.py, and test_decimal.py. I cannot provide a patch for the C decimal implementation, sorry. Following Mark's suggestion, my patch keeps the sign but discards the payload for quiet NANs, and raises ValueError for signalling

[issue15540] Python 3.3 and numpy

2012-08-03 Thread Martin v . Löwis
Martin v. Löwis added the comment: FWIW, with regard to Martin's tangential comment about appropriate use of the tracker, I'm personally fine with using the tracker for 'I found this problem, attempted to fix it (but failed), here's my attempt'. I don't mind that at all, either. What

[issue15544] math.isnan fails with some Decimal NaNs

2012-08-03 Thread Stefan Krah
Stefan Krah added the comment: I think math.isnan('snan') probably should not raise. Decimal('snan').is_nan() just returns true and I am under the impression that IEEE 754 specifies the same. I have to admit though that I just consulted Wikipedia for the latter: The predicate isNaN(x)

[issue15540] Python 3.3 and numpy

2012-08-03 Thread Stefan Krah
Stefan Krah added the comment: Martin v. L??wis rep...@bugs.python.org wrote: I don't mind that at all, either. What I dislike is I have this issue, here is what I've got, and I will continue to work on it kind of reports (when Dave clearly said that his patch is work-in-progress). There is a

[issue15546] Iteration breaks with bz2.open(filename,'rt')

2012-08-03 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +nadeem.vawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15546 ___ ___ Python-bugs-list

[issue15530] Enhance Py_MIN and Py_MAX

2012-08-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't understand the point of your patch. Can you explain? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15530 ___

[issue15546] Iteration breaks with bz2.open(filename,'rt')

2012-08-03 Thread Nadeem Vawda
Nadeem Vawda added the comment: I can't seem to reproduce this with an up-to-date checkout from Mercurial: import bz2 g = bz2.open('access-log-0108.bz2','rt') next(g) '140.180.132.213 - - [24/Feb/2008:00:08:59 -0600] GET /ply/ply.html HTTP/1.1 200 97238\n' (where

[issue15530] Enhance Py_MIN and Py_MAX

2012-08-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Yes. It's explained in the comment of the two macros: When compiled with GCC, check also that types of x and y are compatible at compile time. I'm sorry, that doesn't explain anything. The C compiler already checks types for you. So what does it bring? And

[issue15530] Enhance Py_MIN and Py_MAX

2012-08-03 Thread STINNER Victor
STINNER Victor added the comment: I don't understand the point of your patch. Can you explain? Yes. It's explained in the comment of the two macros: When compiled with GCC, check also that types of x and y are compatible at compile time. So it adds a cheap santity check at compile time.

[issue15546] Iteration breaks with bz2.open(filename,'rt')

2012-08-03 Thread David Beazley
David Beazley added the comment: File attached.The file can be read in its entirety in binary mode. -- Added file: http://bugs.python.org/file26673/access-log-0108.bz2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15546

[issue15544] math.isnan fails with some Decimal NaNs

2012-08-03 Thread Mark Dickinson
Mark Dickinson added the comment: Decimal('snan').is_nan() just returns true and I am under the impression that IEEE 754 specifies the same. Sure, but IEEE 754 also specifies that math.sqrt(signalling nan) should signal. Since both math.sqrt and math.isnan are going through __float__, we

[issue15525] test_multiprocessing failure on Windows XP

2012-08-03 Thread Richard Oudkerk
Richard Oudkerk added the comment: Looks like it is fixed. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15525

[issue15547] Why do we have os.truncate() and os.ftruncate() whereas os.truncate() accepts a file descriptor?

2012-08-03 Thread STINNER Victor
New submission from STINNER Victor: posix_truncate() accepts a file descriptor, so os.ftruncate() can be removed from Python 3.3. memset(path, 0, sizeof(path)); path.function_name = truncate; #ifdef HAVE_FTRUNCATE path.allow_fd = 1; #endif if (!PyArg_ParseTupleAndKeywords(args,

[issue15530] Enhance Py_MIN and Py_MAX

2012-08-03 Thread Martin v . Löwis
Martin v. Löwis added the comment: Victor hinted that it would detect errors when combining int and unsigned int. To elaborate, see the attached min.c. It gives [traditional MIN definition] [int, pointer] min.c:18: warning: comparison between pointer and integer min.c:18: warning:

[issue15514] Correct __sizeof__ support for cpu_set

2012-08-03 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15514 ___ ___ Python-bugs-list mailing list

[issue15514] Correct __sizeof__ support for cpu_set

2012-08-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 463d3ad22cdb by Jesus Cea in branch 'default': Closes #15514: Correct __sizeof__ support for cpu_set http://hg.python.org/cpython/rev/463d3ad22cdb -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open - closed

[issue15478] UnicodeDecodeError on OSError on Windows with undecodable (bytes) filename

2012-08-03 Thread STINNER Victor
STINNER Victor added the comment: Attached patch modifies all functions of the os module taking filenames to keep the filename unmodified in OSError.filename. The patch changes also os.link(), os.rename() and os.replace() to use the source, not the destination, in the error message. It is

[issue15512] Correct __sizeof__ support for parser

2012-08-03 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15512 ___ ___ Python-bugs-list mailing list

[issue15547] Why do we have os.truncate() and os.ftruncate() whereas os.truncate() accepts a file descriptor?

2012-08-03 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15547 ___ ___

[issue15548] Mention all new os functions in What's New in Python 3.3

2012-08-03 Thread STINNER Victor
New submission from STINNER Victor: The os module has a lot of new functions in Python 3.3. It looks like only a few are documented in What's New in Python 3.3. Examples : truncate(), ftruncate() and sync() are not mentionned. Does Sphinx have a function to list of new functions added to

[issue15544] math.isnan fails with some Decimal NaNs

2012-08-03 Thread Mark Dickinson
Mark Dickinson added the comment: IEEE 754 doesn't help here, since it doesn't cover decimal floating-point - binary floating-point conversions. OTOH, IEEE 754 *does* cover floating-point to int conversions (5.4.1, 5.8): those fall under 'general-computational operations', and as such

[issue15547] Why do we have os.truncate() and os.ftruncate() whereas os.truncate() accepts a file descriptor?

2012-08-03 Thread STINNER Victor
STINNER Victor added the comment: To check if os.truncate() supports file description, os.truncate in os.supports_fd checek can be used. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15547

[issue15512] Correct __sizeof__ support for parser

2012-08-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset aceb975c4832 by Jesus Cea in branch '2.7': Closes #15512: Correct __sizeof__ support for parser http://hg.python.org/cpython/rev/aceb975c4832 New changeset 91884d04de06 by Jesus Cea in branch '3.2': Closes #15512: Correct __sizeof__ support for

[issue15530] Enhance Py_MIN and Py_MAX

2012-08-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le vendredi 03 août 2012 à 12:15 +, Martin v. Löwis a écrit : So compared to the traditional type checks: a) this gives a hard compile error, whereas the existing check would only produce warnings Warnings are quite visible already, and we try to silence

[issue15469] Correct __sizeof__ support for deque

2012-08-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset a3d49f1de893 by Jesus Cea in branch '2.7': Closes #15469: Correct __sizeof__ support for deque http://hg.python.org/cpython/rev/a3d49f1de893 New changeset b0725c1b3068 by Jesus Cea in branch '3.2': Closes #15469: Correct __sizeof__ support for

[issue15512] Correct __sizeof__ support for parser

2012-08-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Compilation of 2.7 under Windows is broken: http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%202.7/builds/75 -- assignee: - jcea nosy: +pitrou status: closed - open ___ Python tracker

[issue15548] Mention all new os functions in What's New in Python 3.3

2012-08-03 Thread Ross Lagerwall
Ross Lagerwall added the comment: Attached is a diff between dir(os) in 3.2 and 3.3 -- keywords: +patch nosy: +rosslagerwall Added file: http://bugs.python.org/file26676/oschanges.diff ___ Python tracker rep...@bugs.python.org

[issue15544] math.isnan fails with some Decimal NaNs

2012-08-03 Thread Steven D'Aprano
Steven D'Aprano added the comment: On 03/08/12 22:06, Mark Dickinson wrote: Decimal('snan').is_nan() just returns true and I am under the impression that IEEE 754 specifies the same. Sure, but IEEE 754 also specifies that math.sqrt(signalling nan) should signal. Since both math.sqrt and

[issue15512] Correct __sizeof__ support for parser

2012-08-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oops, I forgot to remove the remnants of debugging code. Here's the patch. Sorry. -- Added file: http://bugs.python.org/file26677/parser_sizeof_cleanup.patch ___ Python tracker rep...@bugs.python.org

[issue15473] importlib no longer uses imp.NullImporter

2012-08-03 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15473 ___

[issue15512] Correct __sizeof__ support for parser

2012-08-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Compilation of 2.7 under Windows is broken: Here is a patch for declarations reorganizing. -- Added file: http://bugs.python.org/file26678/parser_methods_declaration_move-2.7.patch ___ Python tracker

[issue15544] math.isnan fails with some Decimal NaNs

2012-08-03 Thread Mark Dickinson
Mark Dickinson added the comment: before the conversion to float. By I have no idea whether that is practical in the math module. That's a much bigger discussion: as it is, most of the math module functions just provide simple wrappers around the system math library, which deals purely

[issue15540] Python 3.3 and numpy

2012-08-03 Thread Ondřej Čertík
Ondřej Čertík added the comment: Martin, So if the byte swapping is done before the Unicode object is created: why did Dave and Ondřej run into problems then? As I wrote above (http://bugs.python.org/msg167280), this happened because of wrong NumPy tests, that need to be fixed. They are

  1   2   >