mds-utils 1.3.0 release

2012-11-05 Thread Michele De Stefano
After 3 years of no enhancement I'm pleased to announce a new release of the mds-utils http://code.google.com/p/mds-utils library (general purpose utilities for C++ and Python developers). The library contains useful C++ code for developing Python extensions through Boost.Python but also through

Django Fundamentals Bootcamp

2012-11-05 Thread Chris Calloway
Triangle Python Users Group members Caktus Consulting Group announce Django Fundamentals Bootcamp, a two day beginners course for anyone who wants to learn the basics of building a Django web application. Designed for developers with basic programming experience, this course will provide you

traad-0.2: client-server rope refactoring

2012-11-05 Thread Austin Bingham
I'm happy to announce the 0.2 release of traad, a client-server (XMLRPC) system for using the rope Python refactoring library. The goal of traad is to make it easier to access rope functionality from clients where it's not easy to run Python. In its current state, traad is really only fit for

Re: Multi-dimensional list initialization

2012-11-05 Thread Chris Angelico
On Mon, Nov 5, 2012 at 6:54 PM, Andrew Robinson andr...@r3dsolutions.com wrote: On 11/04/2012 11:27 PM, Chris Angelico wrote: On Mon, Nov 5, 2012 at 6:07 PM, Chris Rebertc...@rebertia.com wrote: x = None x.a = 42 Traceback (most recent call last): File stdin, line 1, inmodule

Re: python destructor

2012-11-05 Thread Ferencik Ioan
On Monday, November 5, 2012 8:51:00 AM UTC+2, Ferencik Ioan wrote: Hello there folks, I have a bit of a special issue. I'll start by disclosing myself for what i am doing. I am a postgraduate student and I really have good reasons to do what I am doing. At least i think so.

Re: Multi-dimensional list initialization

2012-11-05 Thread Hans Mulder
On 5/11/12 07:27:52, Demian Brecht wrote: So, here I was thinking oh, this is a nice, easy way to initialize a 4D matrix (running 2.7.3, non-core libs not allowed): m = [[None] * 4] * 4 The way to get what I was after was: m = [[None] * 4, [None] * 4, [None] * 4, [None * 4]] Or

Re: Multi-dimensional list initialization

2012-11-05 Thread wxjmfauth
Le lundi 5 novembre 2012 07:28:00 UTC+1, Demian Brecht a écrit : So, here I was thinking oh, this is a nice, easy way to initialize a 4D matrix (running 2.7.3, non-core libs not allowed): m = [[None] * 4] * 4 The way to get what I was after was: m = [[None] * 4, [None] * 4,

Re: accepting file path or file object?

2012-11-05 Thread Peter Otten
andrea crotti wrote: Quite often I find convenient to get a filename or a file object as argument of a function, and do something as below: def grep_file(regexp, filepath_obj): Check if the given text is found in any of the file lines, take a path to a file or an opened file object

Re: Obnoxious postings from Google Groups

2012-11-05 Thread Roy Smith
In article mailman.3269.1352097585.27098.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: It's nothing to do with operating system. File names are names, and spaces in them are seldom worth the hassle unless you manipulate those files solely using a GUI. That's a very

Re: accepting file path or file object?

2012-11-05 Thread andrea crotti
2012/11/5 Peter Otten __pete...@web.de: I sometimes do something like this: $ cat xopen.py import re import sys from contextlib import contextmanager @contextmanager def xopen(file=None, mode=r): if hasattr(file, read): yield file elif file == -: if w in mode:

Re: accepting file path or file object?

2012-11-05 Thread Ulrich Eckhardt
Am 05.11.2012 11:54, schrieb andrea crotti: Quite often I find convenient to get a filename or a file object as argument of a function, and do something as below: def grep_file(regexp, filepath_obj): Check if the given text is found in any of the file lines, take a path to a file or

Re: accepting file path or file object?

2012-11-05 Thread Peter Otten
andrea crotti wrote: 2012/11/5 Peter Otten __pete...@web.de: I sometimes do something like this: @contextmanager def xopen(file=None, mode=r): if hasattr(file, read): yield file elif file == - or file is None: # add file=None handling if w in mode:

Re: Obnoxious postings from Google Groups

2012-11-05 Thread Chris Angelico
On Mon, Nov 5, 2012 at 11:56 PM, Roy Smith r...@panix.com wrote: That's a very ascii-esqe attitude. In a fully unicode world, I could easily see using U+00A0 (NO-BREAK SPACE) in file names, and still have space-delimited CLI work just fine. Oh, do you have a U+00A0-bar on your keyboard?

Difference between range and xrange ??

2012-11-05 Thread inshu chauhan
what is the difference between range and xrange.. both seem to work the same. ? And which should be used where and in what situations.. ?? -- http://mail.python.org/mailman/listinfo/python-list

Re: Difference between range and xrange ??

2012-11-05 Thread Dave Angel
On 11/05/2012 09:23 AM, inshu chauhan wrote: what is the difference between range and xrange.. both seem to work the same. ? And which should be used where and in what situations.. ?? One difference is that from versions of Python 3.0 and later, xrange doesn't exist, and range takes over the

Re: Difference between range and xrange ??

2012-11-05 Thread Joel Goldstick
in python 2.x xrange is a generator and range returns a list. In python 3.x xrange is renamed to range replacing the list function with the generator On Mon, Nov 5, 2012 at 9:23 AM, inshu chauhan insidesh...@gmail.com wrote: what is the difference between range and xrange.. both seem to work

Re: Multi-dimensional list initialization

2012-11-05 Thread Demian Brecht
On 2012-11-04, at 10:44 PM, Andrew Robinson andr...@r3dsolutions.com wrote: but I think you meant: m = [[None] * 4, [None] * 4, [None] * 4, [None] *4 ] rather than: m = [[None] * 4, [None] * 4, [None] * 4, [None * 4]] Yes, I meant the former, thanks for catching the typo. Demian Brecht

Re: Obnoxious postings from Google Groups

2012-11-05 Thread Grant Edwards
On 2012-11-05, Roy Smith r...@panix.com wrote: In article mailman.3269.1352097585.27098.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: It's nothing to do with operating system. File names are names, and spaces in them are seldom worth the hassle unless you manipulate those

Re: Multi-dimensional list initialization

2012-11-05 Thread Demian Brecht
On 2012-11-04, at 11:07 PM, Chris Rebert c...@rebertia.com wrote: However, unlike a list object (as in your latter example), the object `None` is completely immutable (and what's more, a singleton value), so you just-so-happen *not to be able to* run into the same problem of mutating an

Re: accepting file path or file object?

2012-11-05 Thread Grant Edwards
On 2012-11-05, andrea crotti andrea.crott...@gmail.com wrote: Quite often I find convenient to get a filename or a file object as argument of a function, and do something as below: def grep_file(regexp, filepath_obj): [...] if isinstance(filepath_obj, basestring): fobj =

Re: Obnoxious postings from Google Groups

2012-11-05 Thread Grant Edwards
On 2012-11-05, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Mon, 5 Nov 2012 17:39:35 +1100, Chris Angelico ros...@gmail.com declaimed the following in gmane.comp.python.general: It's nothing to do with operating system. File names are names, and spaces in them are seldom worth the

Re: accepting file path or file object?

2012-11-05 Thread Terry Reedy
On 11/5/2012 5:54 AM, andrea crotti wrote: Quite often I find convenient to get a filename or a file object as argument of a function, and do something as below: def grep_file(regexp, filepath_obj): Check if the given text is found in any of the file lines, take a path to a file or an

Re: Difference between range and xrange ??

2012-11-05 Thread Terry Reedy
On 11/5/2012 9:23 AM, inshu chauhan wrote: what is the difference between range and xrange.. both seem to work the same. ? range(3) [0, 1, 2] xrange(3) xrange(3) You should read the appropriate manual entries before asking trivial questions. They say pretty clearly that range returns a

py2exe with python 3.x

2012-11-05 Thread Monkey
Hi, i wonderd if there is a way to convert a py-file to a exe-file with version 3.x of python. I know that it was possible till version 2.7.x. But is there a way to do it in version 3.x? Yours sincerely, Monkey -- http://mail.python.org/mailman/listinfo/python-list

Re: py2exe with python 3.x

2012-11-05 Thread Kwpolska
On Mon, Nov 5, 2012 at 8:34 PM, Monkey pascalwinkelma...@gmail.com wrote: Hi, i wonderd if there is a way to convert a py-file to a exe-file with version 3.x of python. I know that it was possible till version 2.7.x. But is there a way to do it in version 3.x? Yours sincerely, Monkey

Re: Obnoxious postings from Google Groups

2012-11-05 Thread rurpy
On 11/04/2012 04:13 AM, Jamie Paul Griffin wrote: / ru...@yahoo.com wrote on Fri 2.Nov'12 at 11:39:10 -0700 / (I also hope I haven't just been suckered by a troll attempt, windows/unix is better then unix/windows being an age-old means of trolling.) No, i'm not a troll. I was just adding

Re: Proper place for everything

2012-11-05 Thread rurpy
On 11/02/2012 04:12 PM, Steven D'Aprano wrote: On Fri, 02 Nov 2012 11:51:29 -0700, Jason Benjamin wrote: On another note, it appears that Google (the only archive I can find for this group) only has a little under 400 messages archived for this group, Google Groups is poison. If you post

Re: Coordination between developers in the Python project

2012-11-05 Thread Chris Angelico
On Tue, Nov 6, 2012 at 6:09 AM, Terry Reedy tjre...@udel.edu wrote: I would like to remind you that the participation is absolutely anonymous and voluntary, and you can quit it at any time. Your answers will be strictly confidential and will be used only for research purpose (no commercial use

Re: Multi-dimensional list initialization

2012-11-05 Thread Joshua Landau
On 5 November 2012 06:27, Demian Brecht demianbre...@gmail.com wrote: a = [None] * 4 a[0] = 'a' a ['a', None, None, None] m = [[None] * 4] * 4 m[0][0] = 'm' m [['m', None, None, None], ['m', None, None, None], ['m', None, None, None], ['m', None, None, None]] Is this expected

Re: accepting file path or file object?

2012-11-05 Thread Cameron Simpson
On 05Nov2012 10:54, andrea crotti andrea.crott...@gmail.com wrote: | Quite often I find convenient to get a filename or a file object as | argument of a function, and do something as below: I tend to do this: def f(fp): if isinstance(fp, str): with open(fp) as subfp: return

Re: Coordination between developers in the Python project

2012-11-05 Thread Chris Angelico
On Fri, Nov 2, 2012 at 7:49 AM, Tengy Td duret.tan...@gmail.com wrote: It would be a great help for me if you could answer a short online survey (it should take approximately 5 minutes). This survey is designed to reach a better understanding of the cooperation and coordination between

Re: Multi-dimensional list initialization

2012-11-05 Thread Oscar Benjamin
On 5 November 2012 09:13, Hans Mulder han...@xs4all.nl wrote: On 5/11/12 07:27:52, Demian Brecht wrote: So, here I was thinking oh, this is a nice, easy way to initialize a 4D matrix (running 2.7.3, non-core libs not allowed): m = [[None] * 4] * 4 The way to get what I was after was: m

Re: Multi-dimensional list initialization

2012-11-05 Thread Chris Angelico
On Tue, Nov 6, 2012 at 12:32 PM, Oscar Benjamin oscar.j.benja...@gmail.com wrote: I was just thinking to myself that it would be a hard thing to change because the list would need to know how to instantiate copies of all the different types of the elements in the list. Then I realised it

Re: Multi-dimensional list initialization

2012-11-05 Thread Oscar Benjamin
On 6 November 2012 02:01, Chris Angelico ros...@gmail.com wrote: On Tue, Nov 6, 2012 at 12:32 PM, Oscar Benjamin oscar.j.benja...@gmail.com wrote: I was just thinking to myself that it would be a hard thing to change because the list would need to know how to instantiate copies of all the

problem with eval and time

2012-11-05 Thread Wincent
Dear all, I would like to convert tstr to representation of time, but encounter the following error. Is there a simple way to get what I want? Thanks. import time tstr = str(time.localtime()) eval(tstr) Traceback (most recent call last): File stdin, line 1, in module File string, line 1,

Re: How to improve the usability of nested packages

2012-11-05 Thread Rouslan Korneychuk
On 11/02/2012 12:11 PM, Michael Schwarz wrote: … which doesn't work. Some of the modules reference other modules in the same package. I'm not talking about cyclic references, but, for example, the dialog module uses the transaction module. The problem is that the dialog module uses the same

Re: problem with eval and time

2012-11-05 Thread alex23
On Nov 6, 1:32 pm, Wincent ronggui.hu...@gmail.com wrote: Dear all, I would like to convert tstr to representation of time, but encounter the following error. Is there a simple way to get what I want? Thanks. import time tstr = str(time.localtime()) eval(tstr) Traceback (most recent

Re: problem with eval and time

2012-11-05 Thread Wincent
Thanks. I fetch data from social networking sites and want to mark the time of access. I store all the information in a redis database, which converts everything into strings and I need to convert those strings back to original python objects when analyzing the data. Best Regards On Tuesday,

Re: Coordination between developers in the Python project

2012-11-05 Thread Steven D'Aprano
On Mon, 05 Nov 2012 14:09:08 -0500, Terry Reedy wrote: On 11/1/2012 4:49 PM, Tengy Td wrote: Hello, I am a French student and I am currently realizing my final thesis in the field of Free/libre open source software. If you really are what you claim, you should give more details to make

Re: problem with eval and time

2012-11-05 Thread Chris Angelico
On Tue, Nov 6, 2012 at 3:29 PM, Wincent ronggui.hu...@gmail.com wrote: Thanks. I fetch data from social networking sites and want to mark the time of access. I store all the information in a redis database, which converts everything into strings and I need to convert those strings back to

Re: problem with eval and time

2012-11-05 Thread Dave Angel
On 11/05/2012 11:29 PM, Wincent wrote: (Please don't top-post. it messes everything up. And your use of Google-groups is making everything double-spaced) Thanks. I fetch data from social networking sites and want to mark the time of access. I store all the information in a redis database,

Re: Obnoxious postings from Google Groups

2012-11-05 Thread Steven D'Aprano
On Mon, 05 Nov 2012 14:47:47 -0500, Dennis Lee Bieber wrote: Don't most OSes allow non-printing characters in filenames? VMS and Unix always have. AFAIK, there are only two characters that can't appear in a Unix filename: '\x00' and '/'. But can you /enter/ them with common

Re: Obnoxious postings from Google Groups

2012-11-05 Thread Steven D'Aprano
On Mon, 05 Nov 2012 17:39:35 +1100, Chris Angelico wrote: On Mon, Nov 5, 2012 at 5:10 PM, rusi rustompm...@gmail.com wrote: Among people who know me, I am a linux nerd: My sister scolded me yesterday because I put files on her computer without spaces: DoesAnyoneWriteLikeThis?!?! My

How to only get a list of the names of the non-directory files in current directory ('.')?

2012-11-05 Thread iMath
How to only get a list of the names of the non-directory files in current directory ('.')? (Note excluding its subdirectories ). I need the code : ) -- http://mail.python.org/mailman/listinfo/python-list

Re: How to only get a list of the names of the non-directory files in current directory ('.')?

2012-11-05 Thread Chris Angelico
On Tue, Nov 6, 2012 at 4:19 PM, iMath redstone-c...@163.com wrote: How to only get a list of the names of the non-directory files in current directory ('.')? (Note excluding its subdirectories ). I need the code : ) Start by getting a list of names of everything in the current directory.

Re: Multi-dimensional list initialization

2012-11-05 Thread Andrew Robinson
On 11/05/2012 06:30 PM, Oscar Benjamin wrote: On 6 November 2012 02:01, Chris Angelicoros...@gmail.com wrote: On Tue, Nov 6, 2012 at 12:32 PM, Oscar Benjamin oscar.j.benja...@gmail.com wrote: I was just thinking to myself that it would be a hard thing to change because the list would need to

Re: Multi-dimensional list initialization

2012-11-05 Thread Chris Angelico
On Tue, Nov 6, 2012 at 4:51 PM, Andrew Robinson andr...@r3dsolutions.com wrote: I really don't think doing a shallow copy of lists would break anyone's program. Well, it's a change, a semantic change. It's almost certainly going to break _something_. But for the sake of argument, we can suppose

[issue16218] Python launcher does not support unicode characters

2012-11-05 Thread STINNER Victor
STINNER Victor added the comment: It tests nothing on utf-8 locale (test passed even when bug is not fixed). The issue is about Windows and UTF-8 is never used as filesystem encoding on Windows. -- ___ Python tracker rep...@bugs.python.org

[issue16218] Python launcher does not support unicode characters

2012-11-05 Thread STINNER Victor
STINNER Victor added the comment: The test is still failing on Mac OS X: == FAIL: test_non_ascii (test.test_cmd_line_script.CmdLineTest) -- Traceback (most

[issue9584] Allow curly brace expansion

2012-11-05 Thread Tim Golden
Tim Golden added the comment: I've got a patch for this which applies cleanly to the 3.4 tip. I still need to sort out the Windows issues (which I don't think will be difficult; it looks like a test issue, not a code issue) -- assignee: - tim.golden

[issue9584] Allow curly brace expansion

2012-11-05 Thread Mathieu Bridon
Mathieu Bridon added the comment: I have to apologize for not following up on this patch. At first I had no time to go on pushing for it, and then (after a change of job), I completely forgot about it. :( I guess rebasing the patch on the latest tip is not that useful if you already have

[issue16218] Python launcher does not support unicode characters

2012-11-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The issue is about Windows and UTF-8 is never used as filesystem encoding on Windows. The issue exists on Linux as I reported in msg173373. -- ___ Python tracker rep...@bugs.python.org

[issue9584] Allow curly brace expansion

2012-11-05 Thread Tim Golden
Tim Golden added the comment: I'm planning to refactor the tests and the code very slightly. When I've got a reworked patch I'll ping it back to you to ensure it matches your intent. IIUC you're implementing comma-separated lists {abc,def} and nested braces {a{b,c}d,efg} but not ranges {a..z}.

[issue9584] Allow curly brace expansion

2012-11-05 Thread Mathieu Bridon
Mathieu Bridon added the comment: IIUC you're implementing comma-separated lists {abc,def} and nested braces {a{b,c}d,efg} but not ranges {a..z}. Exactly. Although that's just because at the time I sent the patch, I didn't know about ranges in shells. So I just implemented the part of

[issue16281] TODO in tailmatch(): it does not support backward in all cases

2012-11-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, PyUnicode_Tailmatch() documentation doesn't mention that the function can fail. But it does. .. c:function:: int PyUnicode_Tailmatch(PyObject *str, PyObject *substr, \ Py_ssize_t start, Py_ssize_t end, int direction) Return

[issue16353] add function to os module for getting path to default shell

2012-11-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: Christian, Is there ``os.confstr`` supported by MaxOS X? Is there using of environ['PATH'] makes sense as good callback if former is not present? About COMSPEC. From my point of view it's useful if we need default path. Or if we have Win9x, where shell is

[issue16353] add function to os module for getting path to default shell

2012-11-05 Thread Chris Jerdonek
Chris Jerdonek added the comment: Any interest in doing like os.get_terminal_size/shutil.get_terminal_size If functions with two different behaviors are needed, I think the two functions should probably have different names (e.g. get_shell() and get_user_shell()). Otherwise, it may create

[issue10050] urllib.request still has old 2.x urllib primitives

2012-11-05 Thread anatoly techtonik
anatoly techtonik added the comment: Please note that changes to urlretrieve to return block size 0 in callback breaks existing PyPI apps, such as http://pypi.python.org/pypi/wget It would be nice if you revert this part from http://hg.python.org/cpython/rev/53715804dc71 Also if you change

[issue10050] urllib.request still has old 2.x urllib primitives

2012-11-05 Thread anatoly techtonik
Changes by anatoly techtonik techto...@gmail.com: -- versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10050 ___ ___

[issue2636] Adding a new regex module (compatible with re)

2012-11-05 Thread Nick Coghlan
Nick Coghlan added the comment: I've been working through the known crashers list in the stdlib. The recursive import one was fixed with the migration to importlib in 3.3, the compiler one will be fixed in 3.3.1 (with an enforced nesting limit). One of those remaining is actually a

[issue16411] zlib.Decompress.decompress() retains pointer to input buffer without acquiring reference to it

2012-11-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The decompressor does not hold a reference to the data object, but it holds a reference to the data. It's the unconsumed_tail attribute. The patch is simple. -- keywords: +patch Added file: http://bugs.python.org/file27891/issue16411.patch

[issue16411] zlib.Decompress.decompress() retains pointer to input buffer without acquiring reference to it

2012-11-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16411 ___ ___

[issue16413] Non cross-platform behavior of os.path.split

2012-11-05 Thread anatoly techtonik
New submission from anatoly techtonik: os.path.split('c:foo') gives ('c:', 'foo') on Windows and ('', 'c:foo') on Linux, which is not documented. IIUC, the behavior change in os module is not possible, so a documentation note will be appreciated. -- assignee: docs@python components:

[issue16413] Non cross-platform behavior of os.path.split

2012-11-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: .. note:: Since different operating systems have different path name conventions, there are several versions of this module in the standard library. The :mod:`os.path` module is always the path module suitable for the operating system Python is

[issue6717] Some problem with recursion handling

2012-11-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0dfa3b09a6fe by Nick Coghlan in branch '3.2': Record a known crasher from #6717 http://hg.python.org/cpython/rev/0dfa3b09a6fe New changeset 509f7a53f8cc by Nick Coghlan in branch '3.3': Merge #6717 crasher from 3.2

[issue16281] TODO in tailmatch(): it does not support backward in all cases

2012-11-05 Thread STINNER Victor
STINNER Victor added the comment: Oh, PyUnicode_Tailmatch() documentation doesn't mention that the function can fail. But it does. .. c:function:: int PyUnicode_Tailmatch(PyObject *str, PyObject *substr, \ Py_ssize_t start, Py_ssize_t end, int direction)

[issue9405] Test fix for past crash when calling urllib.getproxies() under OSX with subprocess / particular memory usage

2012-11-05 Thread Nick Coghlan
Nick Coghlan added the comment: Changing the type, since the crash bug has been fixed for a long time. -- nosy: +ncoghlan stage: - test needed title: crash when calling urllib.getproxies() under OSX with subprocess / particular memory usage - Test fix for past crash when calling

[issue3367] Uninitialized value read in parsetok.c

2012-11-05 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3367 ___ ___ Python-bugs-list mailing

[issue16413] Non cross-platform behavior of os.path.split

2012-11-05 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16413 ___

[issue16413] Non cross-platform behavior of os.path.split

2012-11-05 Thread anatoly techtonik
anatoly techtonik added the comment: Historically os.path.split() on Windows is able to grok UNIX paths easily. Don't you think that Python language reference for the os.path should include less vague definition of Windows, UNIX-style and old-style MacOS paths it works with? --

[issue16413] Non cross-platform behavior of os.path.split

2012-11-05 Thread anatoly techtonik
anatoly techtonik added the comment: User story: as a Python programmer working with different systems, I'd like to know how os.path module threats paths on these systems. -- ___ Python tracker rep...@bugs.python.org

[issue16414] Add support.NONASCII to test non-ASCII characters

2012-11-05 Thread STINNER Victor
New submission from STINNER Victor: Attached patch adds support.NONASCII to have a portable non-ASCII character that can be used to test non-ASCII strings. The patch uses it in some existing functions. I wrote the patch on the default branch, we may start to use it since Python 3.2.

[issue15001] segmentation fault with del sys.module['__main__']

2012-11-05 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15001 ___ ___ Python-bugs-list

[issue16218] Python launcher does not support unicode characters

2012-11-05 Thread STINNER Victor
STINNER Victor added the comment: It skipped on locales which does not support £ (cp1006, cp1250, cp1251, cp737, cp852, cp855, cp866, cp874, cp949, euc_kr, gb2312, gbk, hz, iso2022_kr, iso8859_10, iso8859_11, iso8859_16, iso8859_2, iso8859_4, iso8859_5, iso8859_6, johab, koi8_r, koi8_u,

[issue16218] Python launcher does not support unicode characters

2012-11-05 Thread STINNER Victor
STINNER Victor added the comment: It tests nothing on utf-8 locale (test passed even when bug is not fixed). The issue is about Windows and UTF-8 is never used as filesystem encoding on Windows. The issue exists on Linux as I reported in msg173373. I don't understand your problem.

[issue16414] Add support.NONASCII to test non-ASCII characters

2012-11-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think you should ensure that os.fsdecode(os.fsencode(character)) == character. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16414 ___

[issue16218] Python launcher does not support unicode characters

2012-11-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Non-ASCII filenames were already supported with UTF-8 locale encoding. Test the example in msg173373. It fails without fix. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16218

[issue8913] Document that datetime.__format__ is datetime.strftime

2012-11-05 Thread Eric V. Smith
Eric V. Smith added the comment: To Heikki Partanen excellent point in the review about date __format__ strings allowing you to combine date formatting with other types of formatting: This is a great point. It's the lack of this that (for example) requires the logging module to have a

[issue5364] documentation in epub format

2012-11-05 Thread Kristof Csillag
Kristof Csillag added the comment: I have prepared a patch to build the 2.7 docs in EPUB format, too. (Since this was already done on Python 3; this is only a very simple backport of a few lines in a Makefile, a readme and a HTML download page.) -- keywords: +patch nosy: +csillag Added

[issue14266] pyunit script as shorthand for python -m unittest

2012-11-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: Is it should be separate binary? Or problem can be solved by regular python script with executable bit? What's about Windows? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14266

[issue16339] Document exec(stmt, global_dict, local_dict) form in Python 2?

2012-11-05 Thread Mark Dickinson
Mark Dickinson added the comment: Thread on #python-dev: http://mail.python.org/pipermail/python-dev/2012-November/122543.html If this is documented, direct tests for this form of exec should also be added. -- ___ Python tracker

[issue14266] pyunit script as shorthand for python -m unittest

2012-11-05 Thread Michael Foord
Michael Foord added the comment: A python script should be fine - this is what unittest2 does and I haven't had any requests from Windows users for a binary. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14266

[issue8243] curses writing to window's bottom right position raises: `_curses.error: addstr() returned ERR'

2012-11-05 Thread Ramchandra Apte
Changes by Ramchandra Apte maniandra...@gmail.com: -- components: +Library (Lib) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8243 ___ ___

[issue8243] curses writing to window's bottom right position raises: `_curses.error: addstr() returned ERR'

2012-11-05 Thread Ramchandra Apte
New submission from Ramchandra Apte: AutoBump™. -- nosy: +ramchandra.apte ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8243 ___ ___

[issue4887] environment inspection and manipulation API is buggy, inconsistent with Python philosophy for wrapping native APIs

2012-11-05 Thread Ramchandra Apte
Changes by Ramchandra Apte maniandra...@gmail.com: -- versions: +Python 3.4 -Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4887 ___

[issue7292] Multiprocessing Joinable race condition?

2012-11-05 Thread Ramchandra Apte
Ramchandra Apte added the comment: Buu..mp -- nosy: +ramchandra.apte ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7292 ___ ___ Python-bugs-list

[issue16350] zlib.Decompress.decompress() after EOF discards existing value of unused_data

2012-11-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: These were not idle questions. I wrote the patch, and I had to know what behavior is correct. Here's the patch. It fixes potential memory bug (unconsumed_tail sets to NULL in case of out of memory), resets the unconsumed_tail to b'' after EOF, updates

[issue8243] curses writing to window's bottom right position raises: `_curses.error: addstr() returned ERR'

2012-11-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- components: +Extension Modules -Library (Lib) versions: +Python 2.7, Python 3.2, Python 3.3, Python 3.4 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8243

[issue14965] super() and property inheritance behavior

2012-11-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: I would say @x.deleter def x(self): del super().x confuses me a bit. But I'm only -0, let's see other developers for their opinions. -- ___ Python tracker rep...@bugs.python.org

[issue15955] gzip, bz2, lzma: add option to limit output size

2012-11-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: unconsumed_tail should be private hidden attribute, which automatically prepends any consumed data. This should not be very complicated. But benchmarks needed to show what kind of approach is more efficient. --

[issue16409] urlretrieve regression: first call returns block size as 0

2012-11-05 Thread akira
akira added the comment: The summary assumes that issue 10050 is valid i.e., urlretrieve is reimplemented using new urlopen and 2.x FancyURLopener is deprecated. It might not be so [1]. In this case the summary is incorrect. Old implementation is available as: opener = FancyURLopener()

[issue16408] zipfile.testzip() opens file but does not close it.

2012-11-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Quite the contrary. The ZipExtFile closes the file descriptor if the ZipFile is constructed on a filename. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16408

[issue16415] eventlet.monkey_patch() breaks subprocess.Popen on Windows

2012-11-05 Thread Alessandro Pilotti
New submission from Alessandro Pilotti: eventlet.monkey_patch() breaks subprocess.Popen on Windows with error: NotImplementedError: set_nonblocking() on a file object with no setblocking() method (Windows pipes don't support non-blocking I/O) Here's the full stack trace:

[issue9584] Allow curly brace expansion

2012-11-05 Thread Tim Golden
Tim Golden added the comment: Attached is a refactored version of Mathieu's patch which, when applied to tip, passes all tests. -- Added file: http://bugs.python.org/file27894/0003-reworked-issue9584.patch ___ Python tracker rep...@bugs.python.org

[issue16415] eventlet.monkey_patch() breaks subprocess.Popen on Windows

2012-11-05 Thread R. David Murray
R. David Murray added the comment: eventlet is not a part of the Python standard library. Please report this bug to the project's bug tracker. -- nosy: +r.david.murray resolution: - invalid stage: - committed/rejected status: open - closed ___

[issue16389] re._compiled_typed's lru_cache causes significant degradation of the mako_v2 bench

2012-11-05 Thread Ezio Melotti
Ezio Melotti added the comment: Attached a proof of concept that removes the caching for re.compile, as suggested in msg174599. -- Added file: http://bugs.python.org/file27895/issue16389.diff ___ Python tracker rep...@bugs.python.org

[issue9584] Allow curly brace expansion

2012-11-05 Thread Tim Golden
Tim Golden added the comment: Something went wrong with that patch; it doesn't include all the changes to test_glob. I'll upload a newer patch later. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9584

[issue16385] evaluating literal dict with repeated keys gives no warnings/errors

2012-11-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, I agree with this rejection. -- nosy: +rhettinger stage: - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16385 ___

[issue16404] Uses of PyLong_FromLong that don't check for errors

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

[issue16408] zipfile.testzip() opens file but does not close it.

2012-11-05 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: I think this is a duplicate of issue #16183. Are you sure python 3 is affected?. -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16408 ___

  1   2   >