Re: Message passing syntax for objects | OOPv2

2013-04-13 Thread Mark Janssen
Mark, this proposal is out of place on a Python list, because it proposes an object methodology radically different from any that is implemented in Python now, or is even remotely likely to be implemented in Python in the future. Wow, you guys are a bunch of ninnies. I'm going to find some

Re: Message passing syntax for objects | OOPv2

2013-04-13 Thread Chris Angelico
On Sat, Apr 13, 2013 at 4:28 PM, Mark Janssen dreamingforw...@gmail.com wrote: Mark, this proposal is out of place on a Python list, because it proposes an object methodology radically different from any that is implemented in Python now, or is even remotely likely to be implemented in Python

Re: Functional vs. Object oriented API

2013-04-13 Thread Rui Maciel
Max Bucknell wrote: Hi, I'm currently learning Python, and it's going great. I've dabbled before, but really getting into it is good fun. To test myself, and not detract too much from my actual studies (mathematics), I've been writing my own package to do linear algebra, and I am unsure

Re: Unicode issue with Python v3.3

2013-04-13 Thread Cameron Simpson
On 12Apr2013 21:50, nagia.rets...@gmail.com nagia.rets...@gmail.com wrote: | Ookey after that is corrected, i then tried the plain solution and i got this response back form the shell: | | Traceback (most recent call last): | File metrites.py, line 213, in lt;modulegt; | htmldata =

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread someone
On 04/13/2013 03:44 AM, Steven D'Aprano wrote: On Fri, 12 Apr 2013 23:26:05 +, Cousin Stanley wrote: The firefox browser keeps different sqlite database files for various uses Yes, and I *really* wish they wouldn't. It's my number 1 cause of major problems with Firefox. E.g.

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread Chris Angelico
On Sat, Apr 13, 2013 at 9:08 PM, someone newsbo...@gmail.com wrote: I just had to google what ACID compliance means and accordingly to this: http://en.wikipedia.org/wiki/SQLite SQLite is ACID-compliant and implements most of the SQL standard, using a dynamically and weakly typed SQL syntax

Re: CSV to matrix array

2013-04-13 Thread giacomo boffi
Ana Dionísio anadionisio...@gmail.com writes: Hello! I have a CSV file with 20 rows and 12 columns and I need to store it as a matrix. array=numpy.array([row for row in csv.reader(open('Cenarios.csv'))]) NB: i used array= as in your sample code, BUT --

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread someone
On 04/13/2013 01:39 PM, Chris Angelico wrote: On Sat, Apr 13, 2013 at 9:08 PM, someone newsbo...@gmail.com wrote: I just had to google what ACID compliance means and accordingly to this: http://en.wikipedia.org/wiki/SQLite SQLite is ACID-compliant and implements most of the SQL standard,

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread Chris Angelico
On Sat, Apr 13, 2013 at 11:30 PM, someone newsbo...@gmail.com wrote: On 04/13/2013 01:39 PM, Chris Angelico wrote: Note that there's a caveat: You have to tell SQLite to be ACID compliant, effectively. So, you're saying to me that by default SQLite isn't ACID compliant, if I begin to use it

Re: Unicode issue with Python v3.3

2013-04-13 Thread nagia . retsina
Τη Σάββατο, 13 Απριλίου 2013 1:28:07 μ.μ. UTC+3, ο χρήστης Cameron Simpson έγραψε: On 12Apr2013 21:50, nagia.rets...@gmail.com nagia.rets...@gmail.com wrote: | Ookey after that is corrected, i then tried the plain solution and i got this response back form the shell: | | Traceback

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread Roy Smith
In article mailman.551.1365861813.3114.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: 2) The database engine must employ some form of write-ahead log. [...] one way or another, there must be a way to detect half-done transactions. 3) The operating system and filesystem

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread someone
On 04/13/2013 04:03 PM, Chris Angelico wrote: On Sat, Apr 13, 2013 at 11:30 PM, someone newsbo...@gmail.com wrote: On 04/13/2013 01:39 PM, Chris Angelico wrote: Note that there's a caveat: You have to tell SQLite to be ACID compliant, effectively. So, you're saying to me that by default

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread Walter Hurry
On Sat, 13 Apr 2013 16:39:12 +0200, someone wrote: I'm not so rich, so I prefer to go for a free database solution rather than an expensive license (paraphrasing but I do care about ACID compliance) Sounds to me that PostgreSQL is your man, then. --

Re: CSV to matrix array

2013-04-13 Thread Ana Dionísio
It's still not working. I still have one column with all the data inside, like this: 2999;T3;3;1;1;Off;ON;OFF;ON;ON;ON;ON;Night;; How can I split this data in a way that if I want to print T3 I would just do print array[0][1]? -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode issue with Python v3.3

2013-04-13 Thread Chris Angelico
On Sun, Apr 14, 2013 at 12:16 AM, nagia.rets...@gmail.com wrote: Also i have foudn the error log and i tried to view it but it was empty and then i removed it and then run the script both from shell and broswer but it didnt reappeared. root@macgyver [/home/nikos/public_html/cgi-bin]# cat

Re: Invalid syntax with print Hello World

2013-04-13 Thread andygong . happy
On Thursday, March 12, 2009 3:25:53 PM UTC+8, John Machin wrote: On Mar 12, 5:57 pm, Henrik Bechmann hbechm...@gmail.com wrote: obviously total mewbiew: My first program in Python Windows What is that you are callind Python Windows? What version of Python are you running? 2.X: print

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread Chris Angelico
On Sun, Apr 14, 2013 at 12:39 AM, someone newsbo...@gmail.com wrote: On 04/13/2013 04:03 PM, Chris Angelico wrote: Failure at any level means the overall system is not ACID compliant. Roger... But google says sqlite is supposed to be ACID compliant (although maybe not fully as you indicate,

API design for Python 2 / 3 compatibility

2013-04-13 Thread Stefan Schwarzer
Hello, I'm currently changing the FTP client library ftputil [1] so that the same code of the library works with Python 2 (2.6 and up) and Python 3. (At the moment the code is for Python 2 only.) I've run into a API design issue where I don't know which API I should offer ftputil users under

Re: splinter web browser simulator causing constant BSODs

2013-04-13 Thread Kev Dwyer
matt.topolin...@gmail.com wrote: Hello, I'm trying to torubleshoot this issue for a user I support. He is running the splinter web browser simulator trough Google Chrome, and it appears to be causing his workstation to constantly BSOD. His machine has the following hardware: Dual Xeon

Re: CSV to matrix array

2013-04-13 Thread Mark Lawrence
On 13/04/2013 16:30, Ana Dionísio wrote: It's still not working. I still have one column with all the data inside, like this: 2999;T3;3;1;1;Off;ON;OFF;ON;ON;ON;ON;Night;; How can I split this data in a way that if I want to print T3 I would just do print array[0][1]? I said before I'm

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread rusi
On Apr 13, 9:15 pm, Chris Angelico ros...@gmail.com wrote: On Sun, Apr 14, 2013 at 12:39 AM, someone newsbo...@gmail.com wrote: On 04/13/2013 04:03 PM, Chris Angelico wrote: Failure at any level means the overall system is not ACID compliant. Roger... But google says sqlite is supposed to

Re: CSV to matrix array

2013-04-13 Thread cantorp
Dear Ana, your example data could be transformed into a matrix with import csv rows = csv.reader(open(your_data_file.csv), delimiter= ) array = [row for row in rows] array[0][3] 4 HTH Paolo Am Freitag, 12. April 2013 19:29:05 UTC+2 schrieb Ana Dionísio: That only puts the data in one column,

Re: Message passing syntax for objects | OOPv2

2013-04-13 Thread Michael Torrie
On 04/13/2013 12:28 AM, Mark Janssen wrote: Mark, this proposal is out of place on a Python list, because it proposes an object methodology radically different from any that is implemented in Python now, or is even remotely likely to be implemented in Python in the future. Wow, you guys are

Re: SimpleHTTPRequestHandler used with HTTP/1.1 hangs after the second resource on a page.

2013-04-13 Thread Piotr Dobrogost
On Saturday, April 13, 2013 12:21:33 AM UTC+2, Terry Jan Reedy wrote: I find the doc slightly confusing. The SO code uses BaseHTTPServer. The doc says Usually, this module isn’t used directly, On the other hand, SimpleHTTPServer only defines a request handler and not a server itself. Thanks

Re: Python pdb bug, followed by bug in bugs.python.org

2013-04-13 Thread Piotr Dobrogost
On Thursday, April 11, 2013 5:12:53 PM UTC+2, donald...@gmail.com wrote: I just submitted a bug report on the pdb issue. It would be nice of you to share the link to this issue. -- http://mail.python.org/mailman/listinfo/python-list

Re: API design for Python 2 / 3 compatibility

2013-04-13 Thread Terry Jan Reedy
On 4/13/2013 12:36 PM, Stefan Schwarzer wrote: Hello, I'm currently changing the FTP client library ftputil [1] so that the same code of the library works with Python 2 (2.6 and up) and Python 3. (At the moment the code is for Python 2 only.) I've run into a API design issue where I don't know

Re: Python pdb bug, followed by bug in bugs.python.org

2013-04-13 Thread Ned Deily
In article eba316f9-cf50-418f-bbd8-ecdeb6dbc...@googlegroups.com, Piotr Dobrogost p...@google-groups-2013.dobrogost.net wrote: On Thursday, April 11, 2013 5:12:53 PM UTC+2, donald...@gmail.com wrote: I just submitted a bug report on the pdb issue. It would be nice of you to share the link to

Re: API design for Python 2 / 3 compatibility

2013-04-13 Thread Ethan Furman
On 04/13/2013 09:36 AM, Stefan Schwarzer wrote: * Approach 2 When opening remote text files for reading, ftputil will always return unicode strings from `read(line/s)`, regardless of whether it runs under Python 2 or Python 3. Pro: Uniform API, independent on underlying Python

Re: IDE for GUI Designer

2013-04-13 Thread Wolfgang Keller
Well, I usually use the Qt Designer and it does work well for me. It generates a .ui file with it which has to be passed to pyuic to generate the actual Python code Wow. Even one more step than with code generation directly from the GUI builder. Clumsy, tedious, static. Cocoa's Interface

Re: IDE for GUI Designer

2013-04-13 Thread Robert Kern
On 2013-04-14 00:01, Wolfgang Keller wrote: Well, I usually use the Qt Designer and it does work well for me. It generates a .ui file with it which has to be passed to pyuic to generate the actual Python code Wow. Even one more step than with code generation directly from the GUI builder.

Re: CSV to matrix array

2013-04-13 Thread Oscar Benjamin
On 13 April 2013 16:30, Ana Dionísio anadionisio...@gmail.com wrote: It's still not working. I still have one column with all the data inside, like this: 2999;T3;3;1;1;Off;ON;OFF;ON;ON;ON;ON;Night;; How can I split this data in a way that if I want to print T3 I would just do print

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread someone
On 04/13/2013 04:36 PM, Roy Smith wrote: In article mailman.551.1365861813.3114.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: 2) The database engine must employ some form of write-ahead log. [...] one way or another, there must be a way to detect half-done transactions. 3)

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread someone
On 04/13/2013 04:56 PM, Walter Hurry wrote: On Sat, 13 Apr 2013 16:39:12 +0200, someone wrote: I'm not so rich, so I prefer to go for a free database solution rather than an expensive license (paraphrasing but I do care about ACID compliance) Sounds to me that PostgreSQL is your man, then.

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread someone
On 04/13/2013 06:15 PM, Chris Angelico wrote: On Sun, Apr 14, 2013 at 12:39 AM, someone newsbo...@gmail.com wrote: On 04/13/2013 04:03 PM, Chris Angelico wrote: Failure at any level means the overall system is not ACID compliant. Roger... But google says sqlite is supposed to be ACID

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread someone
On 04/13/2013 07:02 PM, rusi wrote: On Apr 13, 9:15 pm, Chris Angelico ros...@gmail.com wrote: On Sun, Apr 14, 2013 at 12:39 AM, someone newsbo...@gmail.com wrote: On 04/13/2013 04:03 PM, Chris Angelico wrote: . . Failure at any level means the overall system is not ACID compliant.

How to install/uninstall manpages with distutils/setuptools?

2013-04-13 Thread Santosh Kumar
Hey, I have an app hosted on PyPi, it actually is a small script which is in bin/ directory of the project. Here is the part of setup.py file of my app: #!/usr/bin/env python #-*- coding: utf-8 -*- import sys, os, shutil try: from setuptools import setup except ImportError: from

Microsoft accuses Google of pushing services to Android

2013-04-13 Thread 23alagmy
Microsoft accuses Google of pushing services to Android http://natigtas7ab.blogspot.com/2013/04/microsoft-accuses-google-of-pushing.html -- http://mail.python.org/mailman/listinfo/python-list

Issue 16061 performance regression in string replace for 3.3

2013-04-13 Thread Mark Lawrence
Fixed full details here http://bugs.python.org/issue16061 -- If you're using GoogleCrap™ please read this http://wiki.python.org/moin/GoogleGroupsPython. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread someone
On 04/13/2013 10:01 PM, Dennis Lee Bieber wrote: On Sun, 14 Apr 2013 00:03:25 +1000, Chris Angelico ros...@gmail.com declaimed the following in gmane.comp.python.general: [ ] * Create a table with a number of rows with an ID and a counter, initialized to 0 * Repeatedly, in parallel,

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread Roy Smith
In article kkcb9f$pei$1...@dont-email.me, someone newsbo...@gmail.com wrote: Some of the early Unix file systems were very fragile. One of the (often under-appreciated) major advances in BSD (it was certainly in 4.2, not sure how much earlier) was a new filesystem which was much more

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread Walter Hurry
On Sat, 13 Apr 2013 21:34:38 +0200, someone wrote: On 04/13/2013 04:56 PM, Walter Hurry wrote: On Sat, 13 Apr 2013 16:39:12 +0200, someone wrote: I'm not so rich, so I prefer to go for a free database solution rather than an expensive license (paraphrasing but I do care about ACID

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread Chris Angelico
On Sun, Apr 14, 2013 at 5:34 AM, someone newsbo...@gmail.com wrote: I think maybe I'll experiment a bit with both mySql (small/medium sized databases) and for critical/important stuff I should go with PostgreSQL PostgreSQL isn't majorly slower than MySQL, and it's a lot more trustworthy in

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread someone
On 04/14/2013 12:22 AM, Walter Hurry wrote: On Sat, 13 Apr 2013 21:34:38 +0200, someone wrote: On 04/13/2013 04:56 PM, Walter Hurry wrote: On Sat, 13 Apr 2013 16:39:12 +0200, someone wrote: I'm not so rich, so I prefer to go for a free database solution rather than an expensive license

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread Chris Angelico
On Sun, Apr 14, 2013 at 6:01 AM, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Sun, 14 Apr 2013 00:03:25 +1000, Chris Angelico ros...@gmail.com declaimed the following in gmane.comp.python.general: True ACID compliance demands support at every level: 1) The application has to operate in

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread Chris Angelico
On Sun, Apr 14, 2013 at 8:31 AM, someone newsbo...@gmail.com wrote: Ok, thank you. I just came across a blog that said pytables is also a very good option? http://www.pytables.org/moin/PyTables?action=AttachFiledo=viewtarget=non-indexed.png From what I gather, that's looking at performance of

[ANNC] pynguin-0.14 python turtle graphics application

2013-04-13 Thread Lee Harr
Pynguin is a python-based turtle graphics application.     It combines an editor, interactive interpreter, and     graphics display area. It is meant to be an easy environment for introducing     some programming concepts to beginning programmers. http://pynguin.googlecode.com/ This release

Re: Unicode issue with Python v3.3

2013-04-13 Thread Cameron Simpson
On 13Apr2013 07:16, nagia.rets...@gmail.com nagia.rets...@gmail.com wrote: | root@macgyver [/home/nikos/public_html/cgi-bin]# ls ../cgi.err.out | ../cgi.err.out I prefer ls -ld myself. | root@macgyver [/home/nikos/public_html/cgi-bin]# cat ../cgi.err.out | | Also i have foudn the error log

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread someone
On 04/14/2013 12:54 AM, Chris Angelico wrote: On Sun, Apr 14, 2013 at 8:31 AM, someone newsbo...@gmail.com wrote: Ok, thank you. I just came across a blog that said pytables is also a very good option? http://www.pytables.org/moin/PyTables?action=AttachFiledo=viewtarget=non-indexed.png From

Re: [ANNC] pynguin-0.14 python turtle graphics application

2013-04-13 Thread Miki Tebeka
Pynguin is a python-based turtle graphics application. I wonder why Pynguin does not get more traction in the teaching sector. Looks ideal for teaching kids. -- http://mail.python.org/mailman/listinfo/python-list

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread someone
On 04/14/2013 12:34 AM, Chris Angelico wrote: On Sun, Apr 14, 2013 at 5:34 AM, someone newsbo...@gmail.com wrote: I think maybe I'll experiment a bit with both mySql (small/medium sized databases) and for critical/important stuff I should go with PostgreSQL PostgreSQL isn't majorly slower

Re: [LONG] docstring-driven testing

2013-04-13 Thread zipher
On Saturday, March 6, 1999 12:00:00 AM UTC-8, Tim Peters wrote: If you're like me, you've been using Python since '91, and every scheme you've come up with for testing basically sucked. Some observations: + Examples are priceless. + Examples that don't work are worse than worthless. +

[issue13355] random.triangular error when low = high=mode

2013-04-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: I haven't had a chance to look at this one yet and am reopening. The triangular code was originally written so that low and high could be reversed and it would still work. I don't want to break any code that might be relying on that. Andrew Svetlov, this

[issue9253] argparse: optional subparsers

2013-04-13 Thread paul j3
paul j3 added the comment: This patch addresses both issues raised here: - throw an error when the subparser argument is missing - allow the subparser argument to be optional argparse.py: _SubParsersAction - add 'required=True' keyword. name(self) method - creates a name of the form

[issue17707] Multiprocessing queue get method does not block for short timeouts

2013-04-13 Thread Charles-François Natali
Charles-François Natali added the comment: Indeed, that's a regression introduced by fix for issue #10527. Just a rounding error: --- Lib/multiprocessing/connection.py.orig 2013-04-13 06:27:57.0 + +++ Lib/multiprocessing/connection.py 2013-04-13 06:25:23.0 + @@

[issue17707] Multiprocessing queue get method does not block for short timeouts

2013-04-13 Thread Charles-François Natali
Changes by Charles-François Natali cf.nat...@gmail.com: -- priority: normal - high ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17707 ___ ___

[issue17709] http://docs.python.org/2.7/objects.inv doesn't support :func:`repr` or :exc:`Exception`

2013-04-13 Thread Russell Stuart
New submission from Russell Stuart: .. topic:: http://docs.python.org/2.7/objects.inv doesn't support :func:`repr` or :exc:`Exception` A bug report for Python 2.7's docs. .. _intro: Bug === Running:: sphinx-build -c conf2.7 -n -b html -E . html Produces:: Running Sphinx v1.1.3

[issue17709] http://docs.python.org/2.7/objects.inv doesn't support :func:`repr` or :exc:`Exception`

2013-04-13 Thread Russell Stuart
Changes by Russell Stuart russell+pyt...@stuart.id.au: Added file: http://bugs.python.org/file29795/conf.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17709 ___

[issue17709] http://docs.python.org/2.7/objects.inv doesn't support :func:`repr` or :exc:`Exception`

2013-04-13 Thread Russell Stuart
Changes by Russell Stuart russell+pyt...@stuart.id.au: Added file: http://bugs.python.org/file29796/conf.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17709 ___

[issue17659] no way to determine First weekday (based on locale)

2013-04-13 Thread Izidor Matušov
Izidor Matušov added the comment: Yes, I need to find out calendar-week-start-day information based on the current locale. Or in the other words, I need to find out what the correct parameter for calendar.Calendar([firstweekday]) object is. With locale en_US it should be Sunday, with locale

[issue17709] http://docs.python.org/2.7/objects.inv doesn't support :func:`repr` or :exc:`Exception`

2013-04-13 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo, georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17709 ___ ___

[issue13355] random.triangular error when low = high=mode

2013-04-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: Andrew Svetlov, please revert the commit. It breaks code that may have been working before the commit. Also, I don't want to change the exceptions being raised in old versions of Python. -- resolution: fixed -

[issue16309] PYTHONPATH= different from no PYTHONPATH at all

2013-04-13 Thread Armin Rigo
Armin Rigo added the comment: Grrr, ok, I have an alias ls='/bin/ls'. It seems that both PATH= and unset PATH are equivalent to PATH=.. This is behavior that we cannot add to PYTHONPATH, I fear, because so far . is not implicitly included if PYTHONPATH is not set. Or if we do it's a big

[issue17665] convert test_wsgiref to idiomatic unittest code

2013-04-13 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: I don't think the second change is correct. See also issue16510. -- nosy: +serhiy.storchaka type: performance - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17665

[issue14735] Version 3.2.3 IDLE CTRL-Z plus Carriage Return to end does not work

2013-04-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14735 ___ ___ Python-bugs-list

[issue17656] Python 2.7.4 breaks ZipFile extraction of zip files with unicode member paths

2013-04-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset d02507c9f973 by Serhiy Storchaka in branch '2.7': Issue #17656: Fix extraction of zip files with unicode member paths. http://hg.python.org/cpython/rev/d02507c9f973 -- ___ Python tracker

[issue17710] SystemError in cPickle for incorrect input

2013-04-13 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: import cPickle cPickle.loads(bS' \np0\n.) Traceback (most recent call last): File stdin, line 1, in module SystemError: Negative size passed to PyString_FromStringAndSize pickle.loads(bS' \np0\n.) Traceback (most recent call last): File stdin, line 1,

[issue17710] SystemError in cPickle for incorrect input

2013-04-13 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17710 ___ ___ Python-bugs-list

[issue17711] Persistent id in pickle with protocol version 0

2013-04-13 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Python 2 allows pickling and unpickling non-ascii persistent ids. In Python 3 C implementation of pickle saves persistent ids with protocol version 0 as utf8-encoded strings and loads as bytes. import pickle, io class MyPickler(pickle.Pickler): ...

[issue17706] Segfault in PyErr_SetObject

2013-04-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: What is xerbla? PyThreadState_GET() returning NULL means the GIL has been released, sounds like a bug in a third-party C extension. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org

[issue17707] Multiprocessing queue get method does not block for short timeouts

2013-04-13 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +benjamin.peterson, georg.brandl, giampaolo.rodola, larry priority: high - release blocker stage: - patch review versions: +Python 2.7, Python 3.2, Python 3.4 ___ Python tracker

[issue17707] Multiprocessing queue get method does not block for short timeouts

2013-04-13 Thread Georg Brandl
Georg Brandl added the comment: Very good, regression #2 for 3.3.2. Keep them coming right now :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17707 ___

[issue17712] test_gdb failures

2013-04-13 Thread Antoine Pitrou
New submission from Antoine Pitrou: I'm getting multiple test_gdb failures on a new (XUbuntu 13.04) system: == FAIL: test_basic_command (test.test_gdb.PyLocalsTests)

[issue17707] Multiprocessing queue get method does not block for short timeouts

2013-04-13 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: My patch, my fault. I'm very sorry. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17707 ___ ___

[issue17707] Multiprocessing queue get method does not block for short timeouts

2013-04-13 Thread Georg Brandl
Georg Brandl added the comment: Don't worry, mistakes happen. My message was actually positive: it's better to catch the problems now than two weeks after the regression fix release... -- ___ Python tracker rep...@bugs.python.org

[issue17712] test_gdb failures

2013-04-13 Thread Georg Brandl
Georg Brandl added the comment: I guess that warning needs to be added to all the others in test_gdb around line 150... -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17712

[issue17712] test_gdb failures

2013-04-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: (if anyone knows why that warning appears, by the way, I'll be glad to hear about it :-)) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17712 ___

[issue16510] Using appropriate checks in tests

2013-04-13 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16510 ___ ___

[issue16510] Using appropriate checks in tests

2013-04-13 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe added the comment: @David is that policy documented in the devguide? If not, should it be? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16510 ___

[issue17706] Segfault in PyErr_SetObject

2013-04-13 Thread Pauli Virtanen
Pauli Virtanen added the comment: Yes, this is a bug in numpy.linalg --- the GIL is released but the error handling code assumes it's not. The error doesn't appear with in typical LAPACK installations, so this code branch was missed. -- nosy: +pv

[issue17706] Segfault in PyErr_SetObject

2013-04-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you, closing then. -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17706 ___

[issue16551] Cleanup the pure Python pickle implementation

2013-04-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Patch updated in response to Alexandre's comments. In additional to his suggestions some other minor things simplified. _batch_appends and _batch_setitems now use islice instead range. Some bugs found and new issues created (issue17710, issue17711).

[issue17713] test_logging fails in test_compute_rollover_weekly_attime

2013-04-13 Thread Ned Batchelder
New submission from Ned Batchelder: I just pulled down the tip of CPython, built it, and ran the tests, and got this failure: ``` == FAIL: test_compute_rollover_weekly_attime (test.test_logging.TimedRotatingFileHandlerTest)

[issue17713] test_logging fails in test_compute_rollover_weekly_attime

2013-04-13 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17713 ___ ___ Python-bugs-list

[issue16447] SEGFAULT when setting type.__name__

2013-04-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset d5e5017309b1 by Mark Dickinson in branch '2.7': Issue #16447: Fix potential segfault when setting __name__ on a class. http://hg.python.org/cpython/rev/d5e5017309b1 -- nosy: +python-dev ___ Python

[issue16447] SEGFAULT when setting type.__name__

2013-04-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset e6d1328412c8 by Mark Dickinson in branch '3.3': Issue #16447: Fix potential segfault when setting __name__ on a class. http://hg.python.org/cpython/rev/e6d1328412c8 New changeset c8d771f10022 by Mark Dickinson in branch 'default': Issue #16447:

[issue16447] SEGFAULT when setting type.__name__

2013-04-13 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16447 ___ ___

[issue16447] SEGFAULT when setting type.__name__

2013-04-13 Thread Mark Dickinson
Mark Dickinson added the comment: Fixed. -- resolution: - fixed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16447 ___ ___ Python-bugs-list

[issue16447] SEGFAULT when setting type.__name__

2013-04-13 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- stage: commit review - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16447 ___

[issue13355] random.triangular error when low = high=mode

2013-04-13 Thread Mark Dickinson
Mark Dickinson added the comment: I agree that the issue_13355.patch commit should be reverted: the code used to work fine in the case high mode low, and now does not. (Similarly, a call to random.uniform(2.0, 1.0) works as expected at the moment.) Really, I think all that's needed here is

[issue17643] Expose weakref callback for introspection purposes.

2013-04-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9e7d31b04d78 by Mark Dickinson in branch 'default': Issue #17643: Add __callback__ attribute to weakref.ref. http://hg.python.org/cpython/rev/9e7d31b04d78 -- nosy: +python-dev ___ Python tracker

[issue17643] Expose weakref callback for introspection purposes.

2013-04-13 Thread Mark Dickinson
Mark Dickinson added the comment: Committed, using support.gc_collect for the test that requires garbage collection. Thanks for the reviews! -- assignee: - mark.dickinson resolution: - fixed stage: patch review - committed/rejected status: open - closed

[issue17705] Fill Character cannot be \0

2013-04-13 Thread Stefan Krah
Stefan Krah added the comment: Unsurprisingly (libmpdec is a C library) this also does not work in _decimal. I could add a special case in _decimal.c at the cost of two additional if statements for all regular use cases. Is padding with NUL a legitimate use case? IOW, is the slowdown

[issue12181] SIGBUS error on OpenBSD (sparc64)

2013-04-13 Thread Federico Schwindt
Federico Schwindt added the comment: Trent, would be possible to update the OpenBSD slaves to 5.3 (or -current)? There has been too many changes since 5.1 that affect python (for example the threads implementation). -- ___ Python tracker

[issue17705] Fill Character cannot be \0

2013-04-13 Thread Mark Dickinson
Mark Dickinson added the comment: Is padding with NUL a legitimate use case? I don't see a good reason to disallow it, and it seems like a fairly plausible need. Numpy, for example, pads strings will NUL bytes when placing a short string in long fixed-width field. -- nosy:

[issue17671] io.BufferedRWPair can use uninitialized members

2013-04-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +serhiy.storchaka stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17671 ___

[issue17536] update browser list with additional browser names

2013-04-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5a1429e9b621 by doko in branch '2.7': - Issue #17536: Add to webbrowser's browser list: xdg-open, gvfs-open, http://hg.python.org/cpython/rev/5a1429e9b621 -- ___ Python tracker rep...@bugs.python.org

[issue13355] random.triangular error when low = high=mode

2013-04-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset e948154af406 by Andrew Svetlov in branch '3.3': Revert changes for #13355 by request from Raymond Hettinger http://hg.python.org/cpython/rev/e948154af406 New changeset 39bbbf5d7b01 by Andrew Svetlov in branch 'default': Revert changes for #13355 by

[issue17536] update browser list with additional browser names

2013-04-13 Thread Matthias Klose
Matthias Klose added the comment: now in 2.7 -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17536 ___

[issue13355] random.triangular error when low = high=mode

2013-04-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: Reverted. Sorry. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13355 ___ ___ Python-bugs-list mailing list

[issue17705] Fill Character cannot be \0

2013-04-13 Thread Stefan Krah
Stefan Krah added the comment: Mark Dickinson rep...@bugs.python.org wrote: Numpy, for example, pads strings will NUL bytes when placing a short string in long fixed-width field. I was hoping to escape the work, but that's quite convincing. ;) Changing libmpdec doesn't look very appealing,

  1   2   3   >