WSME 0.5b1 released

2013-01-31 Thread Christophe de Vienne
About WSME -- Web Service Made Easy (WSME) simplify the writing of REST web services by providing simple yet powerful typing which removes the need to directly manipulate the request and the response objects. WSME can work standalone or on top of your favorite python web

Final reminder: OSCON Call for Proposals (deadline 2/4)

2013-01-31 Thread Aahz
DEADLINE Monday February 4 OSCON (O'Reilly Open Source Convention), the premier Open Source gathering, will be held in Portland, OR July 22-26. We're looking for people to deliver tutorials and shorter presentations. http://www.oscon.com/oscon2013 http://www.oscon.com/oscon2013/public/cfp/251

Re: looping versus comprehension

2013-01-31 Thread Roy Smith
In article 5109fe6b$0$11104$c3e8...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Thu, 31 Jan 2013 02:49:31 +1100, Chris Angelico wrote: it's worth noting that list appending is not going to be O(N*N), because it's going to allow room for expansion.

Python launcher (PEP 397) and emacs python-mode.el

2013-01-31 Thread Thomas Heller
Has someone managed to patch python-mode.el to use the PEP 397 python launcher when you hit C-c C-c? It seems that emacs should parse the shebang line in the edited python script and pass the corresponding arguments to py.exe. Thomas -- http://mail.python.org/mailman/listinfo/python-list

Re: [Distutils] A new script which creates Python 3.3 venvs with Distribute and pip installed in them

2013-01-31 Thread Philippe Ombredanne
On Wed, Jan 30, 2013 at 9:09 PM, Vinay Sajip vinay_sa...@yahoo.co.uk wrote: Python 3.3 includes a script, pyvenv, which is used to create virtual environments. However, Distribute and pip are not installed in such environments - because, though they are popular, they are third-party packages

Arpex Capital seleciona:Programador Python Jr.

2013-01-31 Thread zughumancapital
Arpex Capital seleciona para uma de suas startups: Programador Python Jr. Requisitos: - Python/Lua/Lisp/Go/Erlang, etc qualquer linguagem exótica vale, mesmo não sendo python; - Interesse por Software Livre; - Inglês fluente. Local de Trabalho: Centro/RJ. Formação: Gradução completa e/ou

Re: Python launcher (PEP 397) and emacs python-mode.el

2013-01-31 Thread Andreas Röhler
Am 31.01.2013 10:03, schrieb Thomas Heller: Has someone managed to patch python-mode.el to use the PEP 397 python launcher when you hit C-c C-c? It seems that emacs should parse the shebang line in the edited python script and pass the corresponding arguments to py.exe. Yes, that's the way

Re: confusion with decorators

2013-01-31 Thread Jason Swails
On Thu, Jan 31, 2013 at 12:46 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Wed, 30 Jan 2013 19:34:03 -0500, Jason Swails wrote: Hello, I was having some trouble understanding decorators and inheritance and all that. This is what I was trying to do: # untested

advice, python for binary to xml

2013-01-31 Thread noydb
I'm looking for knowlegde about how best to go about converting a binary file (from a GPS unit) to GPX/XML. I am completely clueless on this, so any start-from-the-beginning info would be greatly appreciated! I'm guessing the level of effort will be huge? Python 2.7, Windows 7 --

Re: The best, friendly and easy use Python Editor.

2013-01-31 Thread Wayne Werner
On Thu, 24 Jan 2013, Tim Chase wrote: On 01/24/13 13:34, Leonard, Arah wrote: All true (especially the holy wars bit!). OP didn't (as far as I can see) even say which OS he is using. Anyway, my suggestion is generally that people use the editor with which they are already comfortable. Sound

Re: advice, python for binary to xml

2013-01-31 Thread Maarten
On Thursday, January 31, 2013 2:33:48 PM UTC+1, noydb wrote: I'm looking for knowlegde about how best to go about converting a binary file (from a GPS unit) to GPX/XML. I am completely clueless on this, so any start-from-the-beginning info would be greatly appreciated! I'm guessing the

PyGresql 4.1.1 for python2.7

2013-01-31 Thread alexandra
Hello, I'm trying to upgrade to python2.7. Installed PyGresql 4.1.1 for python 2.7. When running "import pg" command I get the following error: from _pg import * ImportError: DLL load failed: The operating system cannot run %1. I'm using Windows XP

Re: security quirk

2013-01-31 Thread Gandalf Parker
RichD r_delaney2...@yahoo.com contributed wisdom to news:badd4188-196b- 45e3-ba8a-511d47128...@nh8g2000pbc.googlegroups.com: On Jan 30, Gandalf Parker gand...@the.dead.isp.of.community.net wrote: Web gurus, what's going on? That is the fault of the site itself. If they are going to block

Writing Idiomatic Python book now available

2013-01-31 Thread jknupp
Just wanted to let everyone know I've just released a book: Writing Idiomatic Python (http://www.jeffknupp.com/writing-idiomatic-python-ebook/). It's presented as a series of examples of Pythonic code broken down by topic (e.g. lists, strings, classes, arranging your code, etc.). There are

Re: advice, python for binary to xml

2013-01-31 Thread noydb
On Thursday, January 31, 2013 8:41:34 AM UTC-5, Maarten wrote: On Thursday, January 31, 2013 2:33:48 PM UTC+1, noydb wrote: I'm looking for knowlegde about how best to go about converting a binary file (from a GPS unit) to GPX/XML. I am completely clueless on this, so any

Re: confusion with decorators

2013-01-31 Thread Chris Angelico
On Fri, Feb 1, 2013 at 12:25 AM, Jason Swails jason.swa...@gmail.com wrote: On Thu, Jan 31, 2013 at 12:46 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Wed, 30 Jan 2013 19:34:03 -0500, Jason Swails wrote: Hello, I was having some trouble understanding decorators and

Re: confusion with decorators

2013-01-31 Thread Jason Swails
On Thu, Jan 31, 2013 at 10:28 AM, Chris Angelico ros...@gmail.com wrote: Well, that surely isn't going to work, because it always decorates the same function, the global fcn. I don't think this is right. fcn is a passed function (at least if it acts as a decorator) that is declared

Re: Python launcher (PEP 397) and emacs python-mode.el

2013-01-31 Thread Thomas Heller
Am 31.01.2013 12:05, schrieb Andreas Röhler: Am 31.01.2013 10:03, schrieb Thomas Heller: Has someone managed to patch python-mode.el to use the PEP 397 python launcher when you hit C-c C-c? It seems that emacs should parse the shebang line in the edited python script and pass the corresponding

Need some help confirming transactions using sha256

2013-01-31 Thread kryptox . exchange
I'm wondering if anyone can help me as I can't seem to get this to work. There is an online dice game that is provably fair by calculating the 'dice roll' using using a sha256 hash calculated against my transaction ID generated by me. The secret used to make the calculation is revealed at the

Re: advice, python for binary to xml

2013-01-31 Thread Maarten
On Thursday, January 31, 2013 4:05:43 PM UTC+1, noydb wrote: I assume that you've looked into GPSBabel? http://www.gpsbabel.org/ Yes, I have. Was hoping to use it, but client is very resistent to adding such things to their system - python is desireable. So what GPSbabel does is what I

Re: Need some help confirming transactions using sha256

2013-01-31 Thread kryptox . exchange
Ok, I'm still stuck! :( I do however now think that I'm not supposed to use hmac here. -- http://mail.python.org/mailman/listinfo/python-list

Re: advice, python for binary to xml

2013-01-31 Thread noydb
:-) yeah... -- http://mail.python.org/mailman/listinfo/python-list

Re: confusion with decorators

2013-01-31 Thread Jason Swails
On Thu, Jan 31, 2013 at 11:00 AM, Jason Swails jason.swa...@gmail.comwrote: On Thu, Jan 31, 2013 at 10:28 AM, Chris Angelico ros...@gmail.com wrote: Well, that surely isn't going to work, because it always decorates the same function, the global fcn. I don't think this is right.

Re: Need some help confirming transactions using sha256

2013-01-31 Thread Peter Pearson
On Thu, 31 Jan 2013 08:43:03 -0800 (PST), kryptox.excha...@gmail.com wrote: I'm wondering if anyone can help me as I can't seem to get this to work. There is an online dice game that is provably fair by calculating the 'dice roll' using using a sha256 hash calculated against my transaction ID

Re: Python launcher (PEP 397) and emacs python-mode.el

2013-01-31 Thread Andreas Röhler
Am 31.01.2013 17:35, schrieb Thomas Heller: Am 31.01.2013 12:05, schrieb Andreas Röhler: Am 31.01.2013 10:03, schrieb Thomas Heller: Has someone managed to patch python-mode.el to use the PEP 397 python launcher when you hit C-c C-c? It seems that emacs should parse the shebang line in the

Re: Need some help confirming transactions using sha256

2013-01-31 Thread kryptox . exchange
On Thursday, January 31, 2013 6:55:05 PM UTC+1, Peter Pearson wrote: On Thu, 31 Jan 2013 08:43:03 -0800 (PST), kryptox.excha...@gmail.com wrote: I'm wondering if anyone can help me as I can't seem to get this to work. There is an online dice game that is provably fair by

(any)dbm module lacks a context manager

2013-01-31 Thread python . list
I don't know if this has been remedied in a more recent version than I've got on my box (Debian Stable), but it seems like it should work out of the box: Python 3.1.3 (r313:86834, Nov 28 2010, 10:01:07) [GCC 4.4.5] on linux2 Type help, copyright, credits or license for more information. import

RE: (any)dbm module lacks a context manager

2013-01-31 Thread Nick Cash
import dbm with dbm.open(mydb, 'c') as d: ... d[hello] = world ... Traceback (most recent call last): File stdin, line 1, in module AttributeError: '_dbm.dbm' object has no attribute '__exit__' This error message is somewhat misleading... it actually means you're trying to use an

Re: confusion with decorators

2013-01-31 Thread Steven D'Aprano
Steven D'Aprano wrote: def _protector_decorator(fcn): def newfcn(self, *args, **kwargs): return fcn(self, *args, **kwargs) return newfcn Well, that surely isn't going to work, because it always decorates the same function, the global fcn. Good grief, I can't believe I

xlrd 0.9.0 released, now with Python 3 support!

2013-01-31 Thread Chris Withers
Hi All, I'm pleased to announce the release of xlrd 0.9.0: http://pypi.python.org/pypi/xlrd/0.9.0 This release means the supported versions of Python supported by xlrd are 2.6, 2.7, 3.2 and 3.3! Very exciting stuff, and a massive thank you to Thomas Kluyver (@takluyver on GitHub) for doing

Re: (any)dbm module lacks a context manager

2013-01-31 Thread Terry Reedy
On 1/31/2013 2:03 PM, python.l...@tim.thechases.com wrote: I don't know if this has been remedied in a more recent version than I've got on my box (Debian Stable), but it seems like it should work out of the box: Python 3.1.3 (r313:86834, Nov 28 2010, 10:01:07) [GCC 4.4.5] on linux2 Type help,

Re: confusion with decorators

2013-01-31 Thread Steven D'Aprano
Jason Swails wrote: On Thu, Jan 31, 2013 at 12:46 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Well, that surely isn't going to work, because it always decorates the same function, the global fcn. I don't think this is right. It certainly isn't. Sorry for the

Re: Python launcher (PEP 397) and emacs python-mode.el

2013-01-31 Thread Vinay Sajip
Thomas Heller theller at ctypes.org writes: What I meant to write is this: when the shebang line in script.py contains this: #!/usr/bin/python3.1-32 then emacs SHOULD run py.exe -3.1-32 script.py and the launcher runs c:\Python31\python.exe script.py IMO it would be better for

Help the visibility of Python in computational science

2013-01-31 Thread dg . google . groups
Hi everyone, There is currently a competition running that could help give Python in computational science a bit of visibility. The competition is for the most popular recently published article on the Scholarpedia website, one of which is about a Python package Brian for computational

Re: Help the visibility of Python in computational science

2013-01-31 Thread Chris Angelico
On Fri, Feb 1, 2013 at 12:05 PM, dg.google.gro...@thesamovar.net wrote: Brian is a package I wrote (with several others) to do simulations of spiking neural networks in Python. Read the article if you want to know more! :) Ah, I don't need to read it. You're simulating a brain; the rest is

Re: why no pydoc python?

2013-01-31 Thread Ben Finney
rh richard_hubb...@lavabit.com writes: I installed python from tarball and I wonder if I did something wrong. pydoc pydoc works fine but there's no pydoc python. What would you expect ‘pydoc python’ to show? The word “python” is not a keyword, is not a built-in identifier, is not a standard

Re: Help the visibility of Python in computational science

2013-01-31 Thread Terry Reedy
On 1/31/2013 8:05 PM, dg.google.gro...@thesamovar.net wrote: Hi everyone, There is currently a competition running that could help give Python in computational science a bit of visibility. The competition is for the most popular recently published article on the Scholarpedia website, one of

Re: confusion with decorators

2013-01-31 Thread Jason Swails
On Thu, Jan 31, 2013 at 6:16 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Normally, subclasses should extend functionality, not take it away. A fundamental principle of OO design is that anywhere you could sensibly allow an instance, should also be able to use a subclass.

Re: Help the visibility of Python in computational science

2013-01-31 Thread dg . google . groups
On Thursday, January 31, 2013 10:06:44 PM UTC-5, Terry Reedy wrote: On 1/31/2013 8:05 PM, dg.google.gro...@thesamovar.net wrote: Here's the link to the article: http://www.scholarpedia.org/article/Brian_simulator 'Brian' is obviously a play on 'brain', with two letters transposed. But

Python 2 multiprocessing examples in docs.python.org

2013-01-31 Thread Xavier Ho
Hey all, I ran the example code on multiprocessing. On the Pool example, an assertion failed with testing garbage collection. Traceback (most recent call last): File test.py, line 314, in module test() File test.py, line 295, in test assert not worker.is_alive() AssertionError The

Re: why no pydoc python?

2013-01-31 Thread Ben Finney
rh richard_hubb...@lavabit.com writes: pydoc can be invoked from the operating system shell. Which is irrelevant to what ‘pydoc’ produces, since it is looking in the Python documentation. You'll notice that ‘pydoc pydoc’ does not give the contents of the ‘pydoc’ manpage. Instead, it gives

Re: Help the visibility of Python in computational science

2013-01-31 Thread Steven D'Aprano
dg.google.gro...@thesamovar.net wrote: If you could take one minute to make sure you are signed in to your Google+ account Which Google+ account would that be? I have so few. -- Steven -- http://mail.python.org/mailman/listinfo/python-list

Re: Help the visibility of Python in computational science

2013-01-31 Thread Chris Angelico
On Fri, Feb 1, 2013 at 4:00 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: dg.google.gro...@thesamovar.net wrote: If you could take one minute to make sure you are signed in to your Google+ account Which Google+ account would that be? I have so few. It's a thing non-nerds

Re: Python launcher (PEP 397) and emacs python-mode.el

2013-01-31 Thread Andreas Röhler
Am 01.02.2013 00:59, schrieb Vinay Sajip: Thomas Heller theller at ctypes.org writes: What I meant to write is this: when the shebang line in script.py contains this: #!/usr/bin/python3.1-32 then emacs SHOULD run py.exe -3.1-32 script.py and the launcher runs

Re: Cheat Engine In Python

2013-01-31 Thread Chris Angelico
On Fri, Feb 1, 2013 at 6:21 PM, wheelman...@gmail.com wrote: Why there isn't any replys ? . Because you posted it only a couple of hours ago, for one :) My initial guess is: No. Feel free to disprove me by searching on Google and finding one. ChrisA --

[issue17028] launcher does not read shebang line when arguments are given

2013-01-31 Thread Vinay Sajip
Vinay Sajip added the comment: A test would also be nice :-) I do test the launcher in a standalone environment, but it's not straightforward to test in a standard build or buildbot environment. For example, it needs 4 sets of Python (Python 2.x and 3.x, 32-bit and 64-bit builds for each)

[issue15182] find_library_file() should try to link

2013-01-31 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: Sorry for the late answer, but yes: I found this out using an actual compilation. I must admit it was in a bit of an usual situation (32-bit userspace on a mixed 32/64-bit mutilib installation), but most other software packages have no problems configuring

[issue13590] extension module builds fail with python.org OS X installers on OS X 10.7 and 10.6 with Xcode 4.2

2013-01-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1d061f83a6bf by Ned Deily in branch '2.7': Issue #13590: OS X Xcode 4 - improve support for universal extension modules http://hg.python.org/cpython/rev/1d061f83a6bf New changeset 502b139b3b19 by Ned Deily in branch '3.2': Issue #13590: OS X Xcode

[issue13590] extension module builds fail with python.org OS X installers on OS X 10.7 and 10.6 with Xcode 4.2

2013-01-31 Thread Ned Deily
Ned Deily added the comment: Backports committed for 2.7 (2.7.4) and 3.2 (3.2.4). Note that, although the uploaded review patches also included backported changes to ./configure to improve defaults for building Python itself under Xcode 4, I decided not to commit them here as they might

[issue17063] assert_called_with could be more powerful if it allowed placeholders

2013-01-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think a better possibility would be to return an indexable match object (as bit like re match objects): my_mock(1, someobj(), bar=someotherobj()): match = my_mock.assert_called_with( 1, ANY, bar=ANY) self.assertIsInstance(match[0], someobj)

[issue17089] Expat parser parses strings only when XML encoding is UTF-8

2013-01-31 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: xmlparser.Parse() works with string data only if XML encoding is utf-8 (or ascii). Examples: import xml.parsers.expat parser = xml.parsers.expat.ParserCreate() content = [] parser.CharacterDataHandler = content.append parser.Parse(?xml version='1.0'

[issue2175] Expat sax parser silently ignores the InputSource protocol

2013-01-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- dependencies: +Expat parser parses strings only when XML encoding is UTF-8 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2175 ___

[issue2174] xml.sax.xmlreader does not support the InputSource protocol

2013-01-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- dependencies: +Expat parser parses strings only when XML encoding is UTF-8 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2174 ___

[issue1483] xml.sax.saxutils.prepare_input_source ignores character stream in InputSource

2013-01-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- dependencies: +Expat parser parses strings only when XML encoding is UTF-8 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1483 ___

[issue10590] Parameter type error for xml.sax.parseString(string, ...)

2013-01-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- dependencies: +Expat parser parses strings only when XML encoding is UTF-8 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10590 ___

[issue12681] unittest expectedFailure could take a message argument like skip does

2013-01-31 Thread Adam Collard
Changes by Adam Collard adam.coll...@gmail.com: -- nosy: +adam-collard ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12681 ___ ___

[issue9495] argparse unittest tracebacks are confusing if an error is raised when not expected

2013-01-31 Thread Adam Collard
Changes by Adam Collard adam.coll...@gmail.com: -- nosy: +adam-collard ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9495 ___ ___ Python-bugs-list

[issue11485] Default SDK value on MacOSX needs changing

2013-01-31 Thread Ned Deily
Ned Deily added the comment: For 3.3.0, ./configure (configure.ac) was modified in 688d48e434e4 for Issue13590 to use more appropriate defaults for universal builds on newer releases. In particular, --enable-universalsdk=yes uses the Xcode default SDK (as returned by xcodebuild) instead of

[issue11485] Default SDK value on MacOSX needs changing

2013-01-31 Thread Ned Deily
Changes by Ned Deily n...@acm.org: Added file: http://bugs.python.org/file28918/issue11485_backport_32.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11485 ___

[issue17086] backport cross-build patches to the 2.7 branch

2013-01-31 Thread Matthias Klose
Matthias Klose added the comment: config.add and config.sub are needed for the AC_CANONICAL_HOST macro. the patch includes these and the regenerated configure script. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17086

[issue16904] http.client.HTTPConnection.send double send data

2013-01-31 Thread Attila Gerendi
Attila Gerendi added the comment: Renamed the report since it's unsafe for sure. This problem was previously called: Avoid unnecessary and possibly unsafe code from http.client.HTTPConnection.send. Imagine that the data parameter from HTTPConnection it's a file like object but it's not

[issue17041] Fix tests for build --without-doc-strings

2013-01-31 Thread Stefan Krah
Stefan Krah added the comment: Serhiy, if you have time, I think it would be nice to get the remaining fix into the upcoming release candidates. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17041

[issue4844] ZipFile doesn't range check in _EndRecData()

2013-01-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 32de35f0f877 by Serhiy Storchaka in branch '2.7': Issue #4844: ZipFile now raises BadZipfile when opens a ZIP file with an http://hg.python.org/cpython/rev/32de35f0f877 New changeset 01147e468c8c by Serhiy Storchaka in branch '3.2': Issue #4844:

[issue17041] Fix tests for build --without-doc-strings

2013-01-31 Thread Michael Foord
Changes by Michael Foord mich...@voidspace.org.uk: -- nosy: -michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17041 ___ ___

[issue17049] calendar throws UnicodeEncodeError when locale is specified

2013-01-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset af41eca1959e by Serhiy Storchaka in branch '2.7': Issue #17049: Localized calendar methods now return unicode if a locale http://hg.python.org/cpython/rev/af41eca1959e -- nosy: +python-dev ___ Python

[issue17041] Fix tests for build --without-doc-strings

2013-01-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset df9f8feb7444 by Serhiy Storchaka in branch '2.7': Issue #17041: Fix doctesting when Python is configured with the http://hg.python.org/cpython/rev/df9f8feb7444 New changeset 9c0cd608464e by Serhiy Storchaka in branch '3.2': Issue #17041: Fix

[issue4844] ZipFile doesn't range check in _EndRecData()

2013-01-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4844 ___

[issue17049] calendar throws UnicodeEncodeError when locale is specified

2013-01-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Committed. Thank you for reports, Robert Xiao and psam. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue17041] Fix tests for build --without-doc-strings

2013-01-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for review, Stefan Krah. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17041

[issue12983] byte string literals with invalid hex escape codes raise ValueError instead of SyntaxError

2013-01-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12983 ___ ___

[issue14462] In re's named group the name cannot contain unicode characters

2013-01-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: docs@python - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14462 ___

[issue15881] multiprocessing 'NoneType' object is not callable

2013-01-31 Thread Benjamin Peterson
Benjamin Peterson added the comment: Philip, if you could backport, that'd be great. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15881 ___

[issue13169] Regular expressions with 0 to 65536 repetitions raises OverflowError

2013-01-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13169 ___ ___

[issue17034] Initialization of globals in stringobject.c and bytesobject.c

2013-01-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17034 ___ ___

[issue16723] io.TextIOWrapper on urllib.request.urlopen terminates prematurely

2013-01-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16723 ___ ___

[issue17043] Invalid read in test_codecs

2013-01-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17043 ___ ___

[issue13169] Regular expressions with 0 to 65536 repetitions raises OverflowError

2013-01-31 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- nosy: -brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13169 ___ ___ Python-bugs-list

[issue17034] Initialization of globals in stringobject.c and bytesobject.c

2013-01-31 Thread Stefan Krah
Stefan Krah added the comment: This is mainly about Py_CLEAR(), right? The initializations to NULL should be guaranteed by the C standard. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17034

[issue13169] Regular expressions with 0 to 65536 repetitions raises OverflowError

2013-01-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here are patches for 2.7, 3.2 and updated patch for 3.3+ (test_repeat_minmax_overflow_maxrepeat is changed). -- Added file: http://bugs.python.org/file28919/re_maxrepeat4-2.7.patch Added file: http://bugs.python.org/file28920/re_maxrepeat4-3.2.patch

[issue17034] Initialization of globals in stringobject.c and bytesobject.c

2013-01-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The initializations to NULL should be guaranteed by the C standard. I don't sure. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17034 ___

[issue17090] io.TextIOWrapper does not handle UTF-8 encoded streams correctly

2013-01-31 Thread Christoph Rauch
New submission from Christoph Rauch: I have uncovered a strange behavior in io.TextIOWrapper which I think is a bug. #!/usr/bin/env python # encoding: utf-8 import csv import io

[issue17034] Use Py_CLEAR() in stringobject.c and bytesobject.c

2013-01-31 Thread Stefan Krah
Stefan Krah added the comment: Yes, it's guaranteed: 6.7.8 Initialization 10) If an object that has automatic storage duration is not initialized explicitly, its value is indeterminate. If an object that has static storage duration is not initialized explicitly,

[issue17090] io.TextIOWrapper does not handle UTF-8 encoded streams correctly

2013-01-31 Thread R. David Murray
R. David Murray added the comment: As noted in the documentation, the csv module in 2.7 does not handle unicode. You'll have to switch to python3 if you want unicode support in csv. -- nosy: +r.david.murray resolution: - invalid stage: - committed/rejected status: open - closed

[issue17090] io.TextIOWrapper does not handle UTF-8 encoded streams correctly

2013-01-31 Thread Christoph Rauch
Christoph Rauch added the comment: Thanks for the information. Will work around that. Miss-diagnosed the problem. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17090 ___

[issue17034] Use Py_CLEAR() in stringobject.c and bytesobject.c

2013-01-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Indeed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17034 ___ ___ Python-bugs-list mailing list

[issue7225] fwrite() compiler warnings

2013-01-31 Thread Ramchandra Apte
Ramchandra Apte added the comment: I'm pretty sure this is invalid now. -- nosy: +ramchandra.apte ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7225 ___

[issue16432] Template strings documentation in Python 3 refers to % substitution in present tense

2013-01-31 Thread Ramchandra Apte
Ramchandra Apte added the comment: ... as it is not the preferred system. I prefer .format() but I don't think that's true for many people. -- nosy: +ramchandra.apte ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16432

[issue17091] thread.lock.acquire docstring bug

2013-01-31 Thread Armin Rigo
New submission from Armin Rigo: The docstring of thread.lock.acquire() (or _thread on Python 3) is bogus: it says that if called without argument, the return value is None; it is only if called with a blocking argument that it returns True or False. But since a long time it was always

[issue4591] 32-bits unsigned user/group identifier

2013-01-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Are there any objections, nitpicks or suggestions? -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4591 ___

[issue17092] Disable TIPC in configure

2013-01-31 Thread ddve...@ucar.edu
New submission from ddve...@ucar.edu: This is related to Issue17085 and Issue1646 My system is a cluster Red Hat Enterprise Linux Server release 6.2 (Santiago) and it happens to have /usr/include/linux/tipc.h but probably tipc disabled in the kernel for some reasons which I ignore. There is

[issue16163] Wrong name in Lib/pkgutil.py:iter_importers

2013-01-31 Thread Berker Peksag
Berker Peksag added the comment: Sorry for the delay and thanks for the suggestions Ezio and Nick. Given the lack of proper tests for iter_importers, wouldn't adding a proper test that returns something useful, rather than testing only with a non-existent module be better (this test could be

[issue17092] Disable TIPC in configure

2013-01-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Why would you disable TIPC? If TIPC crashes the test suite, you probably have a system bug. I would suggest you try to diagnose what happens exactly. (normally, the TIPC tests are skipped if the tipc kernel module isn't loaded) -- nosy: +pitrou

[issue17092] Disable TIPC in configure

2013-01-31 Thread ddve...@ucar.edu
ddve...@ucar.edu added the comment: Antoine, the exact reason why I want to disable TIPC in configure, is that either the test suite or the TIPC test case or both has/have a bug (not my system). Therefore I suggest that you re-post your comment in Issue17085, and I'll be happy to provide more

[issue16555] Add es_cu to locale aliases

2013-01-31 Thread Berker Peksag
Berker Peksag added the comment: LGTM. Thanks for the review, Éric. Do you have time to commit the patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16555 ___

[issue2824] zipfile to handle duplicate files in archive

2013-01-31 Thread Michael Driscoll
Michael Driscoll added the comment: Whatever became of this? We just stumbled across this bug in our code at work where we accidentally put multiple files of the same name into the zip file and not only does it not overwrite the others, but when you go to access that file name, it grabs the

[issue17087] Improve the repr for regular expression match objects

2013-01-31 Thread Ezio Melotti
Ezio Melotti added the comment: #13592 is indeed the issue I was thinking about, but apparently that's about _sre.SRE_Pattern, so it's not the same thing. Just showing group(0) should be helpful. Often the interesting group is group(1), so showing only group(0) seems a bit arbitrary. And

[issue6972] zipfile.ZipFile overwrites files outside destination path

2013-01-31 Thread Catalin Iacob
Changes by Catalin Iacob iacobcata...@gmail.com: -- nosy: +catalin.iacob ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6972 ___ ___

[issue17093] Make importlib.abc more inheritance-friendly

2013-01-31 Thread Brett Cannon
New submission from Brett Cannon: ABCs, even though they are almost always at the bottom of an inheritance hierarchy, should still do the right thing in the face of being in the middle of an MRO. That means that they should call super() as appropriate. So for methods that return a value,

[issue17093] Make importlib.abc more inheritance-friendly

2013-01-31 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- assignee: - brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17093 ___ ___

[issue17094] sys._current_frames() reports too many/wrong stack frames

2013-01-31 Thread Stefan Ring
New submission from Stefan Ring: After a fork, the list of thread states contains all the threads from before. It is especially unfortunate that, at least for me, it usually happens that threads created in the forked process reuse the same thread ids, and sys._current_frames will then return

  1   2   >