ANN: SfePy 2012.4

2012-11-22 Thread Robert Cimrman
I am pleased to announce release 2012.4 of SfePy. Description --- SfePy (simple finite elements in Python) is a software for solving systems of coupled partial differential equations by the finite element method. The code is based on NumPy and SciPy packages. It is distributed under the

PyPy 2.0 beta 1 released

2012-11-22 Thread Maciej Fijalkowski
We're pleased to announce the 2.0 beta 1 release of PyPy. This release is not a typical beta, in a sense the stability is the same or better than 1.9 and can be used in production. It does however include a few performance regressions documented below that don't allow us to label is as 2.0 final.

Re: mysql insert with tuple

2012-11-22 Thread Christian
Am Mittwoch, 21. November 2012 20:49:14 UTC+1 schrieb Hans Mulder: On 21/11/12 18:19:15, Christian wrote: Hi , my purpose is a generic insert via tuple , because the number of fields and can differ. But I'm stucking . ilist=['hello',None,7,None,None] #This

Re: Inconsistent behaviour os str.find/str.index when providing optional parameters

2012-11-22 Thread Steven D'Aprano
On Wed, 21 Nov 2012 23:01:47 -0800, Giacomo Alzetta wrote: Il giorno giovedì 22 novembre 2012 05:00:39 UTC+1, MRAB ha scritto: On 2012-11-22 03:41, Terry Reedy wrote: It can't return 5 because 5 isn't an index in 'spam'. It can't return 4 because 4 is below the start index. Uhm.

Re: Constructing JSON data structures from non-string key python dictionaries

2012-11-22 Thread Paul Kölle
Am 21.11.2012 17:04, schrieb hfo...@gmail.com: Thanks for your reply, but the javascript function expects option names to be unquoted, otherwise it won't work. Others have shown you how to solve this, but I would like to note that the function does NOT expect JSON but a simple javascript object

Re: Web Frameworks Excessive Complexity

2012-11-22 Thread Thomas Bach
On Wed, Nov 21, 2012 at 12:49:52PM -0800, rh wrote: wheezy + myvirtualenv = 3.3MB pyramid = 92MB $ mkvirtualenv --no-site-packages -p python2.7 pyramid $ pip install -U distribute $ pip install pyramid $ du -h .virtualenvs/pyramid 22M .virtualenvs/pyramid $ du -s

Re: Update slider widget range

2012-11-22 Thread Mark Lawrence
On 21/11/2012 13:59, moadeep wrote: I am trying to write a small bit of code that interactively deletes selected slices in an image series using matplotlib. I have created a button 'delete' which stores a number of indices to be deleted when the button 'update' is selected. However, I am

Re: Suitable software stacks for simple python web service

2012-11-22 Thread Kev Dwyer
Dieter Maurer wrote: snip From your description (so far), you would not need a web framework but could use any way to integrate Python scripts into a web server, e.g. mod_python, cgi, WSGI, Check what ways your web server will suport. Hello Dieter Thanks for your comment. I

Re: Simple Question regarding running .py program

2012-11-22 Thread Duncan Booth
Grant Edwards invalid@invalid.invalid wrote: [1] OK, so I'm am annoyed with them after my Google phone updated to Android 4.2 this afternoon and the lock-screen clock is now _physically_painful_ to look at. However, I'm convinced that's not evil -- just a complete and utter lack

Re: Yet another Python textbook

2012-11-22 Thread Colin J. Williams
From Yet another Python textbook On 21/11/2012 5:17 PM, Chris Angelico wrote: On Thu, Nov 22, 2012 at 4:03 AM, Colin J. Williams c...@ncf.ca wrote: On 20/11/2012 4:00 PM, Chris Angelico wrote: To the OP: jmf has an unnatural hatred of Python 3.3 and PEP 393 strings. Take no notice; the rest of

method that can be called from a class and also from an instance

2012-11-22 Thread Marc Aymerich
Hi, I want to create a method within a class that is able to accept either a class or an instance. class MyClass(object): @magic_decorator def method(param): # param can be MyClass (cls) or an instance of MyClass (self) so I can do something like: instance = MyClass()

Re: method that can be called from a class and also from an instance

2012-11-22 Thread Peter Otten
Marc Aymerich wrote: Hi, I want to create a method within a class that is able to accept either a class or an instance. class MyClass(object): @magic_decorator def method(param): # param can be MyClass (cls) or an instance of MyClass (self) so I can do something

Re: method that can be called from a class and also from an instance

2012-11-22 Thread Dave Angel
On 11/22/2012 10:14 AM, Marc Aymerich wrote: Hi, I want to create a method within a class that is able to accept either a class or an instance. class MyClass(object): @magic_decorator def method(param): # param can be MyClass (cls) or an instance of MyClass (self) so I

Re: method that can be called from a class and also from an instance

2012-11-22 Thread Thomas Bach
On Thu, Nov 22, 2012 at 10:52:56AM -0500, Dave Angel wrote: On 11/22/2012 10:14 AM, Marc Aymerich wrote: I want to create a method within a class that is able to accept either a class or an instance. I haven't tried it, but how about if you do a @classmethod decorator, and then just

Re: method that can be called from a class and also from an instance

2012-11-22 Thread Dave Angel
On 11/22/2012 11:12 AM, Thomas Bach wrote: On Thu, Nov 22, 2012 at 10:52:56AM -0500, Dave Angel wrote: On 11/22/2012 10:14 AM, Marc Aymerich wrote: I want to create a method within a class that is able to accept either a class or an instance. I haven't tried it, but how about if you do a

Re: method that can be called from a class and also from an instance

2012-11-22 Thread Marc Aymerich
On Thursday, November 22, 2012 4:51:30 PM UTC+1, Peter Otten wrote: Marc Aymerich wrote: Hi, I want to create a method within a class that is able to accept either a class or an instance. class MyClass(object): @magic_decorator def method(param):

Re: method that can be called from a class and also from an instance

2012-11-22 Thread Marc Aymerich
On Thursday, November 22, 2012 5:26:59 PM UTC+1, Dave Angel wrote: On 11/22/2012 11:12 AM, Thomas Bach wrote: On Thu, Nov 22, 2012 at 10:52:56AM -0500, Dave Angel wrote: On 11/22/2012 10:14 AM, Marc Aymerich wrote: I want to create a method within a class that is able to accept either

Re: Constructing JSON data structures from non-string key python dictionaries

2012-11-22 Thread saikari78
Thanks for all these very clarifying and useful replies -- http://mail.python.org/mailman/listinfo/python-list

Re: 10 sec poll - please reply!

2012-11-22 Thread Michael Herrmann
Dear all, thank you for your replies. After experimenting with your suggestions, we have arrived at a solution that we believe fits well with our existing API. However, before we implement this solution, we would like to ask you one last time to sign off on our proposal or raise any serious

Re: Inconsistent behaviour os str.find/str.index when providing optional parameters

2012-11-22 Thread Giacomo Alzetta
Il giorno giovedì 22 novembre 2012 09:44:21 UTC+1, Steven D'Aprano ha scritto: On Wed, 21 Nov 2012 23:01:47 -0800, Giacomo Alzetta wrote: Il giorno giovedì 22 novembre 2012 05:00:39 UTC+1, MRAB ha scritto: On 2012-11-22 03:41, Terry Reedy wrote: It can't return 5 because 5 isn't

Re: Yet another Python textbook

2012-11-22 Thread Ian Kelly
On Thu, Nov 22, 2012 at 5:24 AM, Colin J. Williams c...@ncf.ca wrote: From my reading of the docs, it seems to me that the three following should be equivalent: (a) formattingStr.format(values) with (b) format(values, formattingStr) or (c) tupleOfValues.__format__(formattingStr

Print value from array

2012-11-22 Thread Mike
Hello, I am noob en python programing, i wrote a perl script for read from csv but now i wish print value but the value must be within double quote and I can not do this. For example now the output is: ma user@domain displayName Name SecondName givenName Name sn SecondName cn Name and i

Re: Print value from array

2012-11-22 Thread Alister
On Thu, 22 Nov 2012 10:44:02 -0800, Mike wrote: Hello, I am noob en python programing, i wrote a perl script for read from csv but now i wish print value but the value must be within double quote and I can not do this. For example now the output is: ma user@domain displayName Name

Re: 10 sec poll - please reply!

2012-11-22 Thread Chris Angelico
On Fri, Nov 23, 2012 at 5:00 AM, Michael Herrmann michael.herrm...@getautoma.com wrote: In our gut feeling, the words apart from `type` that would most normally be used in an everyday conversation to express the three examples I have given in my first mail are: press(CTRL + 'a')

Re: 10 sec poll - please reply!

2012-11-22 Thread Michael Herrmann
Hi, thanks for your prompt reply; I agree that there is also this ambiguity. This would go away if we were to use `type` but as I said we don't dare to do that. That's the problem with short names - they're always ambiguous at least to some extent. The only alleviation I can offer for the

Re: Spam source (Re: Horror Horror Horror!!!!!)

2012-11-22 Thread Robert Miles
On Sunday, November 18, 2012 8:18:53 PM UTC-6, Mark Lawrence wrote: On 18/11/2012 19:31, Terry Reedy wrote: The question was raised as to how much spam comes from googlegroups. I don't know the answer but I take the greatest pleasure in hurtling onto the dread googlegroups and gmane to

Re: Yet another Python textbook

2012-11-22 Thread Terry Reedy
On 11/22/2012 7:24 AM, Colin J. Williams wrote: From my reading of the docs, it seems to me that the three following should be equivalent: We read differently... (a) formattingStr.format(values) Where 'values' is multiple arguments with (b) format(values, formattingStr)

Re: Yet another Python textbook

2012-11-22 Thread Colin J. Williams
On 22/11/2012 1:27 PM, Ian Kelly wrote: On Thu, Nov 22, 2012 at 5:24 AM, Colin J. Williams c...@ncf.ca wrote: From my reading of the docs, it seems to me that the three following should be equivalent: (a) formattingStr.format(values) with (b) format(values, formattingStr) or (c)

Re: Inconsistent behaviour os str.find/str.index when providing optional parameters

2012-11-22 Thread Joshua Landau
If you reply through Google Groups, please be careful not to do it the traditional way as us poor saps get hundreds of lines of added in. I believe (but this is mere recollection) that a good way to use the site is by selecting the text you want to quote before replying (even if it is the whole

Re: Yet another Python textbook

2012-11-22 Thread Joshua Landau
On 22 November 2012 22:41, Colin J. Williams c...@ncf.ca wrote: On 22/11/2012 1:27 PM, Ian Kelly wrote: On Thu, Nov 22, 2012 at 5:24 AM, Colin J. Williams c...@ncf.ca wrote: From my reading of the docs, it seems to me that the three following should be equivalent: (a)

Re: Managing multiple packages

2012-11-22 Thread Thomas Bach
On Tue, Nov 20, 2012 at 03:24:59PM -0600, Evan Driscoll wrote: Suppose I have packages A-C. In addition to being modules in the Python sense, they are logically distinct, probably sit in different repositories, etc., so there's a directory layout like [SNIP] Finally, suppose that you're

Re: Print value from array

2012-11-22 Thread Mike
El jueves, 22 de noviembre de 2012 16:02:30 UTC-3, Alister escribió: On Thu, 22 Nov 2012 10:44:02 -0800, Mike wrote: Hello, I am noob en python programing, i wrote a perl script for read from csv but now i wish print value but the value must be within double quote and I can

Re: Spam source (Re: Horror Horror Horror!!!!!)

2012-11-22 Thread Steven D'Aprano
On Thu, 22 Nov 2012 14:08:58 -0800, Robert Miles wrote: It now takes two people reporting the same spam to get google groups to do much about it. I just reported this one as well, though. Speaking of spam, googlegroups, and other annoyances, please don't CC python-list@python.org as well as

Migrate from Access 2010 / VBA

2012-11-22 Thread kgard
Greetings: I am the lone developer of db apps at a company of 350+ employees. Everything is done in MS Access 2010 and VBA. I'm frustrated with the limitations of this platform and have been considering switching to Python. I've been experimenting with the language for a year or so, and feel

Re: Yet another Python textbook

2012-11-22 Thread Steven D'Aprano
On Thu, 22 Nov 2012 17:41:22 -0500, Colin J. Williams wrote: You and I used __format__. I understand that the use of double underscore functions is deprecated. Double leading and trailing underscore methods are not deprecated, they are very much part of the public interface. But they are

Re: Migrate from Access 2010 / VBA

2012-11-22 Thread David Hutto
On Thu, Nov 22, 2012 at 10:19 PM, kgard kag...@gmail.com wrote: Greetings: I am the lone developer of db apps at a company of 350+ employees. Everything is done in MS Access 2010 and VBA. I'm frustrated with the limitations of this platform and have been considering switching to Python.

Re: Yet another Python textbook

2012-11-22 Thread Alec Taylor
No worries, I've just sent you my pull-request :) On Thu, Nov 22, 2012 at 1:11 PM, Pavel Solin solin.pa...@gmail.com wrote: Hi Alec, Can you put your website—http://femhub.com/textbook-python/—on your github—https://github.com/femhub/nclab-textbook-python? Done, thank you so much. I

Re: method that can be called from a class and also from an instance

2012-11-22 Thread Steven D'Aprano
On Thu, 22 Nov 2012 16:51:27 +0100, Peter Otten wrote: Marc Aymerich wrote: Hi, I want to create a method within a class that is able to accept either a class or an instance. [...] Why would you overload a method that way? The use-case I have is that I have a number of classes with

Re: Migrate from Access 2010 / VBA

2012-11-22 Thread Jason Friedman
I am the lone developer of db apps at a company of 350+ employees. Everything is done in MS Access 2010 and VBA. I'm frustrated with the limitations of this platform and have been considering switching to Python. I've been experimenting with the language for a year or so, and feel

Re: 10 sec poll - please reply!

2012-11-22 Thread Steven D'Aprano
On Thu, 22 Nov 2012 10:00:54 -0800, Michael Herrmann wrote: We took the fact that naming our one function 'type' was so difficult to name as an indicator that it may be trying to do too many things: I don't think it is difficult to name at all. On the one hand, it allows you to enter plain

Data manipulation tool built with bottle and redis

2012-11-22 Thread markcial
Hi, i have little expertise on python and redis, but i started a project on github, i'm looking for any guidelines, help, or advices, hope you don't mind my noob coding. https://github.com/Markcial/BottledJinn -- http://mail.python.org/mailman/listinfo/python-list

Re: PyPy 2.0 beta 1 released

2012-11-22 Thread Peter Funk
Maciej Fijalkowski wrote 22.11.2012 12:54: We're pleased to announce the 2.0 beta 1 release of PyPy. ... It also supports ARM machines running Linux. ... Is it be possible to use PyPy to develop Apps for Android phones and tablets? Or will it be possible to do so in the future? Regards, Peter

Python on Android (was: PyPy 2.0 beta 1 released)

2012-11-22 Thread Stefan Behnel
Peter Funk, 23.11.2012 07:54: Is it be possible to use PyPy to develop Apps for Android phones and tablets? Or will it be possible to do so in the future? You can use CPython and kivy for that. Nik Klever gave a quick intro to Python on Android at this year's PyCon-DE:

[issue16527] (very) long list of elif causes segfault

2012-11-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 22.11.2012 00:41, Alexis Daboville wrote: A possible cause (if I understood http://greentreesnakes.readthedocs.org/en/latest/nodes.html#If well) is that there are no elif nodes in the AST, elif are just plain ifs which are stored recursively in

[issue16529] Compiler error when trying to compile ceval.c on OpenSUSE 11.3

2012-11-22 Thread Marc-Andre Lemburg
New submission from Marc-Andre Lemburg: When trying to compile the hg checkout (2012-11-22), I'm getting a compiler error from GCC when trying to compile ceval.c on OpenSUSE 11.3 x64: gcc -pthread -c -Wno-unused-result -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include

[issue16527] (very) long list of elif causes segfault

2012-11-22 Thread Alexis Daboville
Alexis Daboville added the comment: I don't think it can be fixed with sys.setrecursionlimit for a few reasons: * I think the issue arises when the AST is built. Otherwise if we put code before the if it would execute. But that's not the case (try putting a print('hello') before the if and it

[issue16527] (very) long list of elif causes segfault

2012-11-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 22.11.2012 10:26, Alexis Daboville wrote: Alexis Daboville added the comment: I don't think it can be fixed with sys.setrecursionlimit for a few reasons: I think you misunderstood. The suggestion was to use the sys function to check whether the

[issue16382] Better warnings exception for bad category

2012-11-22 Thread Phil Elson
Changes by Phil Elson pelson@gmail.com: Added file: http://bugs.python.org/file28072/pelson_warnings_fix_3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16382 ___

[issue16527] (very) long list of elif causes segfault

2012-11-22 Thread Mark Dickinson
Mark Dickinson added the comment: I think the issue arises when the AST is built. It's occurring when generating a code object from the AST, after the AST is built: Python 3.3.0+ (3.3:bf1bf3bf3fe2, Nov 22 2012, 10:45:24) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin Type help, copyright,

[issue16522] Add 'FAIL_FAST' flag to doctest

2012-11-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset e456da396ad9 by R David Murray in branch 'default': #16522: s/always 1/at most 1/. http://hg.python.org/cpython/rev/e456da396ad9 -- ___ Python tracker rep...@bugs.python.org

[issue16528] 3.2 docs not updating on docs.python.org

2012-11-22 Thread R. David Murray
R. David Murray added the comment: I don't know. If it is would be in wherever documenting Python is these days. The policy is that only the versions in active maintenance are automatically rebuilt. 3.2 is technically no longer in maintenance, it's just that there are reasons that we are

[issue16490] inspect.getargspec() and inspect.getcallargs() don't work for builtins

2012-11-22 Thread David Villa Alises
Changes by David Villa Alises david.vi...@gmail.com: -- nosy: +David.Villa.Alises ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16490 ___ ___

[issue12614] Allow to explicitly set the method of urllib.request.Request

2012-11-22 Thread Senthil Kumaran
Senthil Kumaran added the comment: Hello Miki Tebeka, The change requested by this issue (and provided by the patch) is already in place in 3.3. This was committed as part of issue1673007 has the same behavior too. I am closing this as duplicate. Thank you, Senthil -- resolution:

[issue16464] urllib.request: opener not resetting content-length

2012-11-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: I'm agree with solution, see my comments in review for the patch. -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16464 ___

[issue16464] urllib.request: opener not resetting content-length

2012-11-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: Perhaps it's a bit new behavior and should be applied to 3.4 only. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16464 ___

[issue15990] solidify argument/parameter terminology

2012-11-22 Thread Ezio Melotti
Ezio Melotti added the comment: I modified the last patch to use bullet lists and include more examples, and also added a FAQ entry to explain the difference between args and parameters. I'll leave further comments on rietveld. -- nosy: +eric.araujo Added file:

[issue16527] (very) long list of elif causes segfault

2012-11-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This may be a duplicate of issue5765. -- nosy: +serhiy.storchaka resolution: - duplicate superseder: - stack overflow evaluating eval(() * 3) ___ Python tracker rep...@bugs.python.org

[issue16527] (very) long list of elif causes segfault

2012-11-22 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- nosy: +brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16527 ___ ___ Python-bugs-list

[issue16530] documentation of os.wait3

2012-11-22 Thread George Yoshida
New submission from George Yoshida: Documentation defines os.wait3 function as : os.wait3([options]) but, this argument is required(no default options are set), so os.wait3(options) is the correct definition. http://docs.python.org/3.3/library/os.html#os.wait3 -- assignee:

[issue16527] (very) long list of elif causes segfault

2012-11-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 22.11.2012 17:15, Serhiy Storchaka wrote: This may be a duplicate of issue5765. It's certainly similar, but this ticket is not about expressions, it's about statements that are meant to be repeated often, so in a way less artificial :-) It would be

[issue16464] urllib.request: opener not resetting content-length

2012-11-22 Thread Alexey Kachayev
Alexey Kachayev added the comment: Fixed patch is attached. Documentation is updated. -- Added file: http://bugs.python.org/file28074/issue16464_fixed.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16464

[issue16528] 3.2 docs not updating on docs.python.org

2012-11-22 Thread Georg Brandl
Georg Brandl added the comment: That's correct. Documenting Python is in the devguide now; feel free to remark this somewhere. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16528 ___

[issue13266] Add inspect.unwrap(f) to easily unravel __wrapped__ chains

2012-11-22 Thread Daniel Urban
Changes by Daniel Urban urban.dani...@gmail.com: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13266 ___ ___

[issue16528] 3.2 docs not updating on docs.python.org

2012-11-22 Thread Chris Jerdonek
Chris Jerdonek added the comment: The policy is that only the versions in active maintenance are automatically rebuilt. 3.2 is technically no longer in maintenance, it's just that there are reasons that we are delaying the final release. Okay, below the devguide says it is still in

[issue16528] 3.2 docs not updating on docs.python.org

2012-11-22 Thread Georg Brandl
Georg Brandl added the comment: 3.2 is still in maintenance, but the docs are not rebuilt daily for any past stable version, whether they are in maintenance or not. Maybe it's not such a big deal at all? -- ___ Python tracker rep...@bugs.python.org

[issue16527] (very) long list of elif causes segfault

2012-11-22 Thread Christian Heimes
Christian Heimes added the comment: I'm unable to reproduce the issue with 3.3 and default head. With v3.3.0 the script causes a segfault. I guess Serhiy has a point, the fix for #5765 also fixes this issue. -- ___ Python tracker

[issue16528] 3.2 docs not updating on docs.python.org

2012-11-22 Thread Chris Jerdonek
Chris Jerdonek added the comment: It's not. Thanks for the clarification and info. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16528 ___ ___

[issue16527] (very) long list of elif causes segfault

2012-11-22 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16527 ___ ___ Python-bugs-list

[issue15990] solidify argument/parameter terminology

2012-11-22 Thread Chris Jerdonek
Chris Jerdonek added the comment: I have a number of comments but it is a holiday this weekend so I might not be able to get to it for a day or two. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15990

[issue16499] CLI option for isolated mode

2012-11-22 Thread Christian Heimes
Christian Heimes added the comment: How shall I handle venv? I'm reluctant to disable venv in site.py although it allows a user to modify sys.path. However it's only an issue under two circumstances: (1) The user either needs write permissions to the parent directory of the python

[issue16499] CLI option for isolated mode

2012-11-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: How shall I handle venv? I'm reluctant to disable venv in site.py although it allows a user to modify sys.path. However it's only an issue under two circumstances: (1) The user either needs write permissions to the parent directory of the python

[issue14525] ia64-hp-hpux11.31 won't compile 2.7 without -D_TERMIOS_INCLUDED

2012-11-22 Thread Stefan Krah
Stefan Krah added the comment: Closing, since this is fixed on the buildslave. -- components: +Extension Modules -Build keywords: +buildbot resolution: - duplicate stage: needs patch - committed/rejected status: open - closed superseder: - termios fix for QNX breaks HP-UX type:

[issue1690840] xmlrpclib methods submit call on __str__, __repr__

2012-11-22 Thread anatoly techtonik
anatoly techtonik added the comment: I'd say this one worthy to be backported. -- nosy: +techtonik status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1690840 ___

[issue3580] failures in test_os

2012-11-22 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3580 ___ ___ Python-bugs-list

[issue4473] POP3 missing support for starttls

2012-11-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: where? In `caps=self.capa()` (you need a space around the assignment operator). Here I'm following: at :ref:`pop3-objects` in Doc/library/poplib.rst, Ah, ok. Then I agree it makes sense to call it stls(). No need for an alias, IMO. --

[issue16438] Numeric operator predecence confusing

2012-11-22 Thread Kiet Tran
Kiet Tran added the comment: Good idea. -- keywords: +patch Added file: http://bugs.python.org/file28075/16438.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16438 ___

[issue13057] Thread not working for python 2.7.1 built with HP Compiler on HP-UX 11.31 ia64

2012-11-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset b4f6cd5f9ab7 by Stefan Krah in branch '2.7': Issue #13057: Include stdio.h when NULL is used in configure.ac. http://hg.python.org/cpython/rev/b4f6cd5f9ab7 -- nosy: +python-dev ___ Python tracker

[issue13057] Thread not working for python 2.7.1 built with HP Compiler on HP-UX 11.31 ia64

2012-11-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset f0baa6be2bf1 by Stefan Krah in branch '3.3': Issue #13057: Include stdio.h when NULL is used in configure.ac. http://hg.python.org/cpython/rev/f0baa6be2bf1 -- ___ Python tracker rep...@bugs.python.org

[issue16531] Allow IPNetwork to take a tuple

2012-11-22 Thread Antoine Pitrou
New submission from Antoine Pitrou: I am in a situation where I'm building an IPNetwork from separate address and mask information. So roughly I'd like to write either: addr = IPAddress('192.168.0.0') network = IPNetwork((addr, '255.255.0.0')) or addr = '192.168.0.0' network =

[issue16306] Multiple error line for unknown command line parameter

2012-11-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: You broke the Ubuntu Shared buildbot, could you fix it? http://buildbot.python.org/all/buildslaves/bolen-ubuntu -- nosy: +pitrou status: closed - open ___ Python tracker rep...@bugs.python.org

[issue16532] AMD64 Windows 7 build failures

2012-11-22 Thread Antoine Pitrou
New submission from Antoine Pitrou: The AMD64 Windows 7 buildbot shows weird build failures in ctypes: http://buildbot.python.org/all/buildslaves/kloth-win64 -- keywords: buildbot messages: 176131 nosy: jeremy.kloth, jkloth, pitrou priority: high severity: normal status: open title:

[issue16533] HPUX: Unable to fork() in thread

2012-11-22 Thread Stefan Krah
New submission from Stefan Krah: There's an error on the HPUX-IA64 buildbot that might be due to some kernel limits. Trent, could you check if the following helps (requires root)? http://zensonic.dk/?p=326 test_forkinthread (test.test_thread.TestForkInThread) ... Fatal Python error: Invalid

[issue16534] test_float failure on IA64 (HPUX)

2012-11-22 Thread Stefan Krah
New submission from Stefan Krah: There's a test_float failure on HPUX (and many compiler warnings): test test_float failed -- Traceback (most recent call last): File /home/cpython/buildslave/2.7.snakebite-hpux11iv3-ia64-1/build/Lib/test/test_float.py, line 622, in test_format_testfile

[issue13057] Thread not working for python 2.7.1 built with HP Compiler on HP-UX 11.31 ia64

2012-11-22 Thread Stefan Krah
Stefan Krah added the comment: Fixed in 2.7, 3.3 and 3.4. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13057

[issue16535] json encoder unable to handle decimal

2012-11-22 Thread Éric Araujo
New submission from Éric Araujo: In 2.7 and other versions, the json module has incomplete support for decimals: json.loads('0.2', parse_float=Decimal) Decimal('0.2') json.dumps(json.loads('0.2', parse_float=Decimal)) Traceback (most recent call last): File stdin, line 1, in module File

[issue16535] json encoder unable to handle decimal

2012-11-22 Thread Éric Araujo
Éric Araujo added the comment: See lengthy discussion that lead to inclusion in simplejson here: http://code.google.com/p/simplejson/issues/detail?id=34 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16535

[issue15474] Differentiate decorator and decorator factory in docs

2012-11-22 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +chris.jerdonek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15474 ___ ___

[issue16535] json encoder unable to handle decimal

2012-11-22 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16535 ___ ___ Python-bugs-list

[issue16531] Allow IPNetwork to take a tuple

2012-11-22 Thread Nick Coghlan
Nick Coghlan added the comment: Sounds reasonable, especially as it also allows networks and interfaces with prefixes other than /32 or /128 to be easily constructed based on integer address values. Should we also allow integers as the second argument, with the same prefix length meaning as the

[issue15474] Differentiate decorator and decorator factory in docs

2012-11-22 Thread Ezio Melotti
Ezio Melotti added the comment: The tutorial doesn't seem to mention decorators, do you think this should be covered there? FWIW while explaining decorators I usually use 3 examples: 1) a simple decorator that accepts a function, does something, and returns the same function; 2) a decorator

[issue3244] multipart/form-data encoding

2012-11-22 Thread Piotr Dobrogost
Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net: -- nosy: +piotr.dobrogost ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3244 ___ ___

[issue16536] test_cmd_line: failure on Ubuntu Shared

2012-11-22 Thread Stefan Krah
New submission from Stefan Krah: == FAIL: test_unknown_options (test.test_cmd_line.CmdLineTest) -- Traceback (most recent call last): File

[issue16536] test_cmd_line: failure on Ubuntu Shared

2012-11-22 Thread Ezio Melotti
Ezio Melotti added the comment: Already reported in #16306. (Also it's easier if you add a link to the failing buildbot.) -- nosy: +ezio.melotti resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - Multiple error line for unknown command line

[issue16309] PYTHONPATH= different from no PYTHONPATH at all

2012-11-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 803e5a732331 by Ezio Melotti in branch 'default': #16309: avoid using deprecated method and turn docstring in a comment. http://hg.python.org/cpython/rev/803e5a732331 -- ___ Python tracker

[issue16537] setup.py throws a ValueError when self.extensions is empty

2012-11-22 Thread Jonathan Hosmer
New submission from Jonathan Hosmer: When disabled_module_list contains all the module names that are not built by Modules/Setup.dist, self.extensions in setup.py will be an empty list and when build_extensions tries to determine the max length of all extension names it raises a ValueError

[issue16537] setup.py throws a ValueError when self.extensions is empty

2012-11-22 Thread Jonathan Hosmer
Changes by Jonathan Hosmer tetri...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file28076/Python-2.6.8-setup.py.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16537

[issue16537] setup.py throws a ValueError when self.extensions is empty

2012-11-22 Thread Jonathan Hosmer
Jonathan Hosmer added the comment: setup.py patch for 2.7.3 -- Added file: http://bugs.python.org/file28077/Python-2.7.3-setup.py.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16537

[issue16537] setup.py throws a ValueError when self.extensions is empty

2012-11-22 Thread Jonathan Hosmer
Jonathan Hosmer added the comment: setup.py patch for 3.0.1 -- Added file: http://bugs.python.org/file28078/Python-3.0.1-setup.py.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16537

[issue16537] setup.py throws a ValueError when self.extensions is empty

2012-11-22 Thread Jonathan Hosmer
Jonathan Hosmer added the comment: setup.py patch for 3.1.5 -- Added file: http://bugs.python.org/file28079/Python-3.1.5-setup.py.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16537

[issue16537] setup.py throws a ValueError when self.extensions is empty

2012-11-22 Thread Jonathan Hosmer
Jonathan Hosmer added the comment: setup.py patch for 3.3.0 -- Added file: http://bugs.python.org/file28081/Python-3.3.0-setup.py.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16537

  1   2   >