MailingLogger 3.6.0 Released!

2011-11-25 Thread Chris Withers
I'm pleased to announce a new release of Mailinglogger. Mailinglogger provides two handlers for the standard python logging framework that enable log entries to be emailed either as the entries are logged or as a summary at the end of the running process. The handlers have the following

ANN: python-ldap 2.4.5

2011-11-25 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.4 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related

Re: What I do and do not know about installing Python on Win 7 with regard to IDLE.

2011-11-25 Thread Chris Angelico
On Fri, Nov 25, 2011 at 3:49 PM, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On 25 Nov 2011 00:04:04 GMT, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info declaimed the following in gmane.comp.python.general: My Linux system includes compilers or interpreters for C, Pascal, Haskell,

MailingLogger 3.6.0 Released!

2011-11-25 Thread Chris Withers
I'm pleased to announce a new release of Mailinglogger. Mailinglogger provides two handlers for the standard python logging framework that enable log entries to be emailed either as the entries are logged or as a summary at the end of the running process. The handlers have the following

Re: Strange result ffor object to bool

2011-11-25 Thread Chris Angelico
On Fri, Nov 25, 2011 at 5:52 PM, ZhouPeng zpeng...@gmail.com wrote: I am sure listen is not None and can be accessed properly. But print bool(listen) is False if not listen  is True Casting something to boolean follows strict rules derived from the notion that emptiness is false and

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-25 Thread Tim Golden
On 25/11/2011 03:47, alex23 wrote: Tim Goldenm...@timgolden.me.uk wrote: The interpreter inherits the command shell's history function: Open a cmd window and then a Python session. Do some stuff. Ctrl-Z to exit to the surrounding cmd window. Do some random cmd stuff: dir, cd, etc. Start a

Re: Strange result ffor object to bool

2011-11-25 Thread Steven D'Aprano
On Fri, 25 Nov 2011 14:52:25 +0800, ZhouPeng wrote: Hi all, In my program, I get a listen element by listen = graphics.find(listen) What is a listen element? It is not a standard Python object. What library is it from? print listen is Element listen at 6afc20 print type listen is type

Re: Strange result ffor object to bool

2011-11-25 Thread Peter Otten
ZhouPeng wrote: In my program, I get a listen element by listen = graphics.find(listen) print listen is Element listen at 6afc20 print type listen is type 'instance' I am sure listen is not None and can be accessed properly. But print bool(listen) is False if not listen is True

Re: Strange result ffor object to bool

2011-11-25 Thread ZhouPeng
Thanks all. I am a c/c++ programer before, So I directly think it is the same roughly between if not obj: (in python) and if (!obj) {(in c/c++) / if obj: (in python) and if (obj) {(in c/c++) That if obj is not None, 'if obj:' goes true branch, 'if not obj:' goes false branch, and I don't need

Re: Return of an old friend

2011-11-25 Thread Noah Hall
On Fri, Nov 25, 2011 at 5:08 AM, Matt Joiner anacro...@gmail.com wrote: I haven't heard of you before, but feel like I've missed out on something. Do you (or someone else) care to link to some of your more contentious work? Ignore him, he's a troll with an unjustly inflated ego. --

Re: Strange result ffor object to bool

2011-11-25 Thread Chris Angelico
On Fri, Nov 25, 2011 at 9:09 PM, ZhouPeng zpeng...@gmail.com wrote: Thanks all. if not obj: (in python) and if (!obj) {(in c/c++) / if obj: (in python) and if (obj) {(in c/c++) Yea,  you are right. And I got it later, when I run my program in python 2.7.2, It complains: FutureWarning:

Re: Using the Python Interpreter as a Reference

2011-11-25 Thread Travis Parks
On Nov 22, 1:37 pm, Alan Meyer amey...@yahoo.com wrote: On 11/20/2011 7:46 PM, Travis Parks wrote: Hello: I am currently working on designing a new programming language. ... I have great respect for people who take on projects like this. Your chances of popularizing the language are

Re: Using the Python Interpreter as a Reference

2011-11-25 Thread Chris Angelico
On Fri, Nov 25, 2011 at 9:55 PM, Travis Parks jehugalea...@gmail.com wrote: I have been thinking about compiling into a language like C++ or C instead of assembler for my first time through. Yep, or any other language you feel like using as an intermediate. Or alternatively, just start with an

getting svn tag in version

2011-11-25 Thread Andrea Crotti
Given a project with many eggs, I would like to make it easy to have all the version numbers synchronized to the upper level SVN version. So for example I might have svn tags 0.1, 0.2 and a development version. The development version should get version -dev, and the others 0.1 and 0.2 I found

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-25 Thread Ulrich Eckhardt
Am 25.11.2011 04:49, schrieb alex23: On Nov 24, 6:51 pm, Tim Goldenm...@timgolden.me.uk wrote: The Ctrl-Z thing is what *exits* the interpreter on Windows (a la Ctrl-D on Linux). With ActivePython, Ctrl-D works as well, which is a godsend as I'm constantly working across Windows linux. In

How to get path to Python standard library directory?

2011-11-25 Thread user
In a Makefile (or sometimes inside python) I need the path to the root of the Python standard lib folder used by env python. e.g. /usr/lib/python2.6/ orC:\Python27\Lib\ what is the best/canonical way to get that? -- http://mail.python.org/mailman/listinfo/python-list

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-25 Thread Tim Golden
On 25/11/2011 10:37, Ulrich Eckhardt wrote: Am 25.11.2011 04:49, schrieb alex23: On Nov 24, 6:51 pm, Tim Goldenm...@timgolden.me.uk wrote: The Ctrl-Z thing is what *exits* the interpreter on Windows (a la Ctrl-D on Linux). With ActivePython, Ctrl-D works as well, which is a godsend as I'm

How to change the file creation timestamp?

2011-11-25 Thread 刘振海
Hi, I want to change the file creation timestamp using python, but I can not find a solution to do it. I know the way to change the file creation timestamp in C under Windows, but I want to change it using python. I really need help! Regards, Liu Zhenhai --

Automatic import of submodules

2011-11-25 Thread Massi
Hi everyone, in my project I have the following directory structure: plugins | -- wav_plug | -- __init__.py -- WavPlug.py -- mp3_plug | -- __init__.py -- Mp3Plug.py ... -- etc_plug | -- __init__.py

Re: How to get path to Python standard library directory?

2011-11-25 Thread Dave Angel
On 11/25/2011 06:24 AM, user wrote: In a Makefile (or sometimes inside python) I need the path to the root of the Python standard lib folder used by env python. e.g. /usr/lib/python2.6/ orC:\Python27\Lib\ what is the best/canonical way to get that? You could look at sys.executable.

Re: Automatic import of submodules

2011-11-25 Thread Dave Angel
On 11/25/2011 08:00 AM, Massi wrote: Hi everyone, in my project I have the following directory structure: plugins | -- wav_plug | -- __init__.py -- WavPlug.py -- mp3_plug | -- __init__.py -- Mp3Plug.py ... --

Re: How to get path to Python standard library directory?

2011-11-25 Thread Calvin Spealman
On Fri, Nov 25, 2011 at 6:24 AM, user user@nospam.invalid wrote: In a Makefile (or sometimes inside python) I need the path to the root of the Python standard lib folder used by env python. e.g.  /usr/lib/python2.6/   or    C:\Python27\Lib\ what is the best/canonical way to get that? This

Re: Automatic import of submodules

2011-11-25 Thread Jean-Michel Pichavant
Massi wrote: Hi everyone, in my project I have the following directory structure: plugins | -- wav_plug | -- __init__.py -- WavPlug.py -- mp3_plug | -- __init__.py -- Mp3Plug.py ... -- etc_plug | --

Re: How to change the file creation timestamp?

2011-11-25 Thread Alec Taylor
import os import time from stat import * #returns a list of all the files on the current directory files = os.listdir('.') for f in files: #my folder has some jpegs and raw images if f.lower().endswith('jpg') or f.lower().endswith('crw'): st = os.stat(f) atime = st[ST_ATIME] #access

suppressing bad characters in output PCDATA (converting JSON to XML)

2011-11-25 Thread Adam Funk
I'm converting JSON data to XML using the standard library's json and xml.dom.minidom modules. I get the input this way: input_source = codecs.open(input_file, 'rb', encoding='UTF-8', errors='replace') big_json = json.load(input_source) input_source.close() Then I recurse through the contents

Re: getting svn tag in version

2011-11-25 Thread Irmen de Jong
On 25-11-2011 12:15, Andrea Crotti wrote: Given a project with many eggs, I would like to make it easy to have all the version numbers synchronized to the upper level SVN version. So for example I might have svn tags 0.1, 0.2 and a development version. The development version should

ANN: python-ldap 2.4.5

2011-11-25 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.4 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related

Re: my new project, is this the right way?

2011-11-25 Thread HoneyMonster
On Mon, 14 Nov 2011 21:55:43 +1100, Chris Angelico wrote: On Mon, Nov 14, 2011 at 9:41 PM, Tracubik affdfsdfds...@b.com wrote: Hi all, i'm developing a new program. Mission: learn a bit of database management If your goal is to learn about databasing, then I strongly recommend a real

Re: my new project, is this the right way?

2011-11-25 Thread Chris Angelico
On Sat, Nov 26, 2011 at 2:44 AM, HoneyMonster someone@someplace.invalid wrote: Just for information, PostgreSQL works very well indeed with Psycopg (a PostgreSQL adapter for Python), but for learning purposes straightforward PSQL is best to start with. Thanks for that. I've used PgSQL from C++

Re: How to get path to Python standard library directory?

2011-11-25 Thread Miki Tebeka
You can try PYLIB = $(shell python -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib()') (or pack the long command line in a script). -- http://mail.python.org/mailman/listinfo/python-list

Re: What I do and do not know about installing Python on Win 7 with regard to IDLE.

2011-11-25 Thread MaxTheMouse
On Nov 24, 10:49 pm, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On 25 Nov 2011 00:16:06 GMT, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info declaimed the following in gmane.comp.python.general: As far as I can tell, nobody running the 64-bit version of Windows 7 has chimed in to

Re: my new project, is this the right way?

2011-11-25 Thread rusi
On Nov 14, 3:41 pm, Tracubik affdfsdfds...@b.com wrote: Hi all, i'm developing a new program. Mission: learn a bit of database management Idea: create a simple, 1 window program that show me a db of movies i've seen with few (10) fields (actors, name, year etc) technologies i'll use: python

Re: my new project, is this the right way?

2011-11-25 Thread Roy Smith
In article 581dab49-e6b0-4fea-915c-4a41fa887...@p7g2000pre.googlegroups.com, rusi rustompm...@gmail.com wrote: First you must figure out how to structure data -- jargon is normalization. After that you can look at transactions, ACID, distribution and all the other good stuff. And when

Re: Using the Python Interpreter as a Reference

2011-11-25 Thread rusi
On Nov 21, 5:46 am, Travis Parks jehugalea...@gmail.com wrote: Hello: I am currently working on designing a new programming language. It is a compiled language, but I still want to use Python as a reference. Python has a lot of similarities to my language, such as indentation for code

Re: Return of an old friend

2011-11-25 Thread MRAB
On 25/11/2011 10:13, Noah Hall wrote: On Fri, Nov 25, 2011 at 5:08 AM, Matt Joineranacro...@gmail.com wrote: I haven't heard of you before, but feel like I've missed out on something. Do you (or someone else) care to link to some of your more contentious work? Ignore him, he's a troll with

Re: What replaces log4py under Python 3.2?

2011-11-25 Thread Chris Withers
On 22/11/2011 18:32, Rob Richardson wrote: My company has been using the log4py library for a long time. A co-worker recently installed Python 3.2, and log4py will no longer compile. (OK, I know that's the wrong word, but you know what I mean.) What logging package should be used now?

Re: What I do and do not know about installing Python on Win 7 with regard to IDLE.

2011-11-25 Thread Sibylle Koczian
Am 25.11.2011 01:16, schrieb Steven D'Aprano: As far as I can tell, nobody running the 64-bit version of Windows 7 has chimed in to either confirm or refute W. eWatson's claim that IDLE doesn't show up, so we have no way of telling whether it doesn't show up due to a lack in the installer, or

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-25 Thread 88888 Dihedral
Except that, intriguingly, I'm also using an ActiveState distro and it neither adds Ctrl-D nor prevents history. But I'm fairly sure that pyreadline does both of those things. TJG In python I can spawn a process to run python byte code that will produce a file with results. Easy to avoid

Re: How to change the file creation timestamp?

2011-11-25 Thread 刘振海
Hi Alec Thanks for your help. I want to change the creation timestamp. the code that you give is to change the modification and access time. I already find a solution using pywin32's win32file module import win32file filehandle = win32file.CreateFile(file_name, win32file.GENERIC_WRITE,

Re: What I do and do not know about installing Python on Win 7 with regard to IDLE.

2011-11-25 Thread Alexander Kapps
On 25.11.2011 05:49, Dennis Lee Bieber wrote: On Fri, 25 Nov 2011 01:32:08 +0100, Alexander Kappsalex.ka...@web.de declaimed the following in gmane.comp.python.general: The main difference here is, that Linux makes it easy to seperate administrative accounts from end-user accounts,

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-25 Thread alex23
On Nov 25, 6:58 pm, Tim Golden m...@timgolden.me.uk wrote: Do you have the pyreadline module installed? ISTR that that takes over from the standard cmd processing... I'm pretty sure I do. It's really not an issue, though, as I tend to stick to linux iPython where possible :) --

Re: Automatic import of submodules

2011-11-25 Thread alex23
On Nov 25, 11:00 pm, Massi massi_...@msn.com wrote: plugins     |     -- wav_plug           |           -- __init__.py           -- WavPlug.py     -- mp3_plug           |           -- __init__.py           -- Mp3Plug.py ...     -- etc_plug           |           -- __init__.py        

RE: Using the Python Interpreter as a Reference

2011-11-25 Thread Sells, Fred
I'm looking at a variation on this theme. I currently use Flex/ActionScript for client side work, but there is pressure to move toward HTML5+Javascript and or iOS. Since I'm an old hand at Python, I was wondering if there is a way to use it to model client side logic, then generate the

Re: What I do and do not know about installing Python on Win 7 with regard to IDLE.

2011-11-25 Thread Mark Tolonen
On Nov 25, 11:52 am, Sibylle Koczian nulla.epist...@web.de wrote: Am 25.11.2011 01:16, schrieb Steven D'Aprano: As far as I can tell, nobody running the 64-bit version of Windows 7 has chimed in to either confirm or refute W. eWatson's claim that IDLE doesn't show up, so we have no way of

Re: my new project, is this the right way?

2011-11-25 Thread rusi
On Nov 25, 10:16 pm, Roy Smith r...@panix.com wrote: In article 581dab49-e6b0-4fea-915c-4a41fa887...@p7g2000pre.googlegroups.com,  rusi rustompm...@gmail.com wrote: First you must figure out how to structure data -- jargon is normalization. After that you can look at transactions, ACID,

Re: How to change the file creation timestamp?

2011-11-25 Thread Steven D'Aprano
On Sat, 26 Nov 2011 00:51:34 +1100, Alec Taylor wrote: import os import time from stat import * #returns a list of all the files on the current directory files = os.listdir('.') for f in files: #my folder has some jpegs and raw images if f.lower().endswith('jpg') or

[issue13478] No documentation for timeit.default_timer

2011-11-25 Thread Sandro Tosi
New submission from Sandro Tosi sandro.t...@gmail.com: Hello, timeit documentation doesn't mention default_timer, while the module exposes it publicly and there's code snippets on the web using it. It should be documented then. ps: adding Georg to nosy as per Experts list --

[issue11849] glibc allocator doesn't release all free()ed memory

2011-11-25 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: For the record, this seems to make large allocations slower: - with patch: $ ./python -m timeit b'x'*20 1 loops, best of 3: 27.2 usec per loop - without patch: $ ./python -m timeit b'x'*20 10 loops, best of 3:

[issue13432] Encoding alias unicode

2011-11-25 Thread kxroberto
kxroberto kxrobe...@users.sourceforge.net added the comment: I wonder where is the origin, who is the inventor of the frequent charset=unicode? But: Sorry, but it's not obviously that Unicode means UTF-8. When I faced meta content=text/html; charset=unicode http-equiv=Content-Type/ the first

[issue8754] quote bad module name in ImportError-like messages

2011-11-25 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8754 ___ ___ Python-bugs-list

[issue13475] Add '-p'/'--path0' command line option to override sys.path[0] initialisation

2011-11-25 Thread Eric Snow
Eric Snow ericsnowcurren...@gmail.com added the comment: The current behavior is an implicit -p ., which causes all sorts of hard-to-figure-out problems, most of which PEP 395 is rightly trying to fix. I'm suggesting that the next step would be to make --nopath0 the default (rendering the

[issue13479] pickle to picky on re-defined classes

2011-11-25 Thread kxroberto
New submission from kxroberto kxrobe...@users.sourceforge.net: When a class definition was re-executed (reload, exec ..) , pickling of existing instances fails for to picky reason (class object id mismatch). Solved by the one liner patch below. Rational: Python is dynamic. Like with any

[issue13479] pickle too picky on re-defined classes

2011-11-25 Thread kxroberto
Changes by kxroberto kxrobe...@users.sourceforge.net: -- title: pickle to picky on re-defined classes - pickle too picky on re-defined classes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13479

[issue10278] add time.wallclock() method

2011-11-25 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10278 ___ ___ Python-bugs-list

[issue10278] add time.wallclock() method

2011-11-25 Thread Michael Foord
Changes by Michael Foord mich...@voidspace.org.uk: -- nosy: -michael.foord versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10278 ___

[issue13432] Encoding alias unicode

2011-11-25 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: meta content=text/html; charset=unicode http-equiv=Content-Type/ Python is not a language written for the web, it's generic language to program anything! If you have a problem to parse an HTML page, the special case should be

[issue11849] glibc allocator doesn't release all free()ed memory

2011-11-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I see you're comparing 3.2 and default: could you run the same benchmark on default with and without the patch ? Same results: - default branch: 1000 loops, best of 3: 364 usec per loop - default branch with patch reverted: 1 loops, best of

[issue11849] glibc allocator doesn't release all free()ed memory

2011-11-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ah, sorry, false alarm. b[:] = b actually makes a temporary copy of the bytearray when assigning to itself (!). However, there's still another strange regression: $ ./python -m timeit \ -s n=30; f=open('10MB.bin', 'rb', buffering=0);

[issue12559] gzip.open() needs an optional encoding argument

2011-11-25 Thread Rasmus Ory Nielsen
Changes by Rasmus Ory Nielsen r...@ron.dk: -- nosy: +rasmusory ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12559 ___ ___ Python-bugs-list

[issue13480] range exits loop without action when start is higher than end

2011-11-25 Thread Asa Dawson
New submission from Asa Dawson sunderp...@googlemail.com: range has an odd behavior in which it assumes (regardless of start/end) that it should be counting up. Attempting something such as: for i in range(10,0): print i This loop simply runs through without doing anything, because start

[issue13480] range exits loop without action when start is higher than end

2011-11-25 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Nope. If you want to count backward, use a negative step. Not doing anything if end is lower than start allows code to take advantage of don't care edge cases, just like 'abc'[4:] returning the empty string does. Range is often used

[issue13402] Document absoluteness of sys.executable

2011-11-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: This is the bug I was thinking about: #7774. Adding some people from that discussion to nosy. -- nosy: +flox, haypo, pitrou, ronaldoussoren, schmir ___ Python tracker rep...@bugs.python.org

[issue11365] Integrate Buildroot patches (cross-compilation)

2011-11-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The distutils changes will not happen, we’re under a feature freeze. Cross-compilation support would need to be added to packaging, and we need to port Python’s build process to packaging too for 3.4 or 3.5. Also, it’s very hard to decide to

[issue13400] packaging: build command should accept --compile, --no-compile and --optimize options

2011-11-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thinking about this, build_py --compile clearly refers to byte-compilation of Python modules, but the same option on the build command is more ambiguous: It could be interpreted to mean “skip C compilation”. --

[issue11365] Integrate Buildroot patches (cross-compilation)

2011-11-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The distutils changes will not happen, we’re under a feature freeze. Cross-compilation support would need to be added to packaging, and we need to port Python’s build process to packaging too for 3.4 or 3.5. Why 3.4 or 3.5? --

[issue13210] Support Visual Studio 2010

2011-11-25 Thread Sébastien Sablé
Sébastien Sablé sa...@users.sourceforge.net added the comment: I don't have commit access on hg.python.org, so I also created a clone on bitbucket at: https://bitbucket.org/sablefr/py27vs2010/overview I work with a patch queue for the moment since everything is not completely settled yet.

[issue13210] Support Visual Studio 2010

2011-11-25 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: Just to be sure in case you didn't know, but patches against 2.7 for this issue won't be accepted. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13210

[issue11365] Integrate Buildroot patches (cross-compilation)

2011-11-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Because I don’t think anyone will have the time to try to port Python’s setup.py to packaging, fix the bugs it founds and add the features it needs in time for 3.3. On my own todo lists, there is much work still needed to define the public

[issue9708] cElementTree iterparse does not support parser argument

2011-11-25 Thread Silvan Jegen
Silvan Jegen s.je...@gmail.com added the comment: I changed a few lines in the glue code of the _elementtree.c Module of Python 3.3.0a0 to add support for the parser argument. I do have to admit though that I am not familiar with the Python/C-API so this solution may not be ideal (i. e. it

[issue13210] Support Visual Studio 2010

2011-11-25 Thread Sébastien Sablé
Sébastien Sablé sa...@users.sourceforge.net added the comment: Yes I know, but this is my primary target as this is the version that I use in my product for the moment. I will test python trunk soon now that Python 2.7 with VS2010 is in a rather good shape. --

[issue13210] Support Visual Studio 2010

2011-11-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Just to avoid misunderstandings: The Subversion concept of trunk (or rather py3k trunk) maps to the Mercurial branch named default, which is what you get when you clone hg.python.org/cpython. This is 3.3. --

[issue13461] Error on test_issue_1395_5 with Python 2.7 and VS2010

2011-11-25 Thread Sébastien Sablé
Sébastien Sablé sa...@users.sourceforge.net added the comment: Thanks Antoine! It solved the issue. I will check soon with Python trunk to see if the same thing applies. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13461

[issue13461] Error on test_issue_1395_5 with Python 2.7 and VS2010

2011-11-25 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13461 ___ ___

[issue13461] Error on test_issue_1395_5 with Python 2.7 and VS2010

2011-11-25 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- priority: normal - high type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13461 ___ ___

[issue13461] Error on test_issue_1395_5 with Python 2.7 and VS2010

2011-11-25 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I've identified a few other cases where a '#' format is passed a numeric literal: Python/codecs.c:514: return Py_BuildValue((u#n), end, 0, end); Modules/_io/textio.c:2323: DECODER_DECODE(input, 1, n); -- nosy:

[issue12618] py_compile cannot create files in current directory

2011-11-25 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: Éric, sure, I will commit the tests sometime today. Then I will respond to the 'os.path.abspath' question as well. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12618

[issue10752] build_ssl.py is relying on unreliable behaviour of os.popen

2011-11-25 Thread Sébastien Sablé
Sébastien Sablé sa...@users.sourceforge.net added the comment: I had the same issue while compiling Python 2.7 with ActivePerl on windows, and I can confirm that the proposed patch solves the issue. -- nosy: +sable versions: +Python 2.7 ___ Python

[issue13210] Support Visual Studio 2010

2011-11-25 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: Before we both go down the same paths and duplicate effort, http://hg.python.org/sandbox/vs2010port/ has already completed the transition in terms of running the conversion, saving off the VS9 files, making some minimal code changes (errno

[issue12876] Make Test Error : ImportError: No module named _sha256

2011-11-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Sorry to be of little help. I also have a problem with hashlib, but it’s with Python 2.4 on Debian multiarch with linux3, so probably different from your problem. You could try asking on the python-dev mailing list. --

[issue13400] packaging: build command should accept --compile, --no-compile and --optimize options

2011-11-25 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: Maybe --byte-compile and --no-byte-compile could be used. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13400

[issue13472] devguide doesn’t list all build dependencies

2011-11-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Moreover these dependencies are optional, so there's no need to install them unless they are specifically needed I think about it in the reverse: You want a featurefull library, and disable some things (zlib, ssl, threads) only if you

[issue9957] SpooledTemporayFile.truncate should take size parameter

2011-11-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Okay, then stable branches need a doc/docstring patch to remove the statement that SpooledTemporaryFile “operates exactly as TemporaryFile does”. Ryan, would you like to do that patch too? Antoine, will you commit? --

[issue13475] Add '-p'/'--path0' command line option to override sys.path[0] initialisation

2011-11-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I don’t understand all the issues and it’s too late for me to read all the thread, but I hope these comments are helpful: - If our goal is to help naïve users, then one or two new options wouldn’t help (people want to run “python

[issue13479] pickle too picky on re-defined classes

2011-11-25 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: Hm, this change allows many other *undesirable* objects pass the test as well. I'd prefer to stick to the rule, when in doubt, raise an error. Maybe using == instead of 'is' as the test would be acceptable? -- nosy: +gvanrossum

[issue1521950] shlex.split() does not tokenize like the shell

2011-11-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Of course, that's how it's used. That's all it can do right now. :) What I meant is that it is *meant* to be used in this way. I was was splitting and combining commands (using ;, , and ||) and then running the resulting (mega) one liners

[issue9957] SpooledTemporayFile.truncate should take size parameter

2011-11-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Committed, thank you. By the way, Ryan, we now use Mercurial for developing, the Subversion repository is obsolete (see the devguide for more info). -- ___ Python tracker rep...@bugs.python.org

[issue9957] SpooledTemporayFile.truncate should take size parameter

2011-11-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 5a6911930bad by Antoine Pitrou in branch 'default': Issue #9957: SpooledTemporaryFile.truncate() now accepts an optional size parameter, as other file-like objects. http://hg.python.org/cpython/rev/5a6911930bad

[issue13400] packaging: build command should accept --compile, --no-compile and --optimize options

2011-11-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Juste a note: currently, when a command sets one option from the value given to another command, they have the same name, with two kinds of exceptions: - build --build-lib becomes build_lib --build-dir (etc.) - install --install-lib becomes

[issue12307] Inconsistent formatting of section titles in PEP 0

2011-11-25 Thread Eric Snow
Eric Snow ericsnowcurren...@gmail.com added the comment: Éric has addressed this in http://hg.python.org/peps/rev/6c7415a4f0f3 (thanks Éric). Do the docs for python.org have to be manually rebuilt or is that on a cron? -- ___ Python tracker

[issue13400] packaging: build command should accept --compile, --no-compile and --optimize options

2011-11-25 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: Byte-compilation should be disabled during building of packages in Gentoo. PYTHONDONTWRITEBYTECODE=1 is set by default in environment. This variable affects distutils and until recently it affected packaging.

[issue13448] PEP 3155 implementation

2011-11-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset e1dbc72bd97f by Antoine Pitrou in branch 'default': PEP 3155 / issue #13448: Qualified name for classes and functions. http://hg.python.org/cpython/rev/e1dbc72bd97f -- nosy: +python-dev

[issue13472] devguide doesn’t list all build dependencies

2011-11-25 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I think about it in the reverse: You want a featurefull library, and disable some things (zlib, ssl, threads) only if you specifically don’t want them (if you’re a Twisted fan for example async wink). I have a few arguments in favor of

[issue13448] PEP 3155 implementation

2011-11-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Now committed together with docs and a what's new entry. Thanks for the reviews! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker

[issue13093] Redundant code in PyUnicode_EncodeDecimal()

2011-11-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset a20fae95618c by Victor Stinner in branch 'default': Close #13093: PyUnicode_EncodeDecimal() doesn't support error handlers http://hg.python.org/cpython/rev/a20fae95618c -- stage: patch review -

[issue13093] Redundant code in PyUnicode_EncodeDecimal()

2011-11-25 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- Removed message: http://bugs.python.org/msg148348 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13093 ___

[issue13452] PyUnicode_EncodeDecimal: reject error handlers different than strict

2011-11-25 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Hum, I only changed PyUnicode_EncodeDecimal in Python 3.3, I prefer to not touch stable releases (2.7, 3.2). New changeset a20fae95618c by Victor Stinner in branch 'default': Close #13093: PyUnicode_EncodeDecimal() doesn't support

[issue13475] Add '-p'/'--path0' command line option to override sys.path[0] initialisation

2011-11-25 Thread Eric Snow
Eric Snow ericsnowcurren...@gmail.com added the comment: First of all, I don't want Nick's proposal in this issue (the -p and --nopath0 flags) to be misunderstood because of me. His is a great idea that will make a really useful shortcut available and will _not_ change any current behavior.

[issue12424] distutils2: extension section uses bad environment marker separator

2011-11-25 Thread Eli Collins
Eli Collins e...@assurancetechnologies.com added the comment: The second patchset (9170231ebf14.diff) should implement all the changes you suggested in your second review (dated 2011-09-05). --- The only non-addressed item in your second review was a request for clarification on a potential

[issue1521950] shlex.split() does not tokenize like the shell

2011-11-25 Thread Dan Christian
Dan Christian robo...@users.sourceforge.net added the comment: I've attached a diff to test_shlex.py and a script that I used to verify what the shells actually do. Both are relative to Python-3.2.2/Lib/test I'm completely ignoring the quotes issue for now. That should probably be an

[issue13432] Encoding alias unicode

2011-11-25 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: The mapping unicode - utf-8 is simply not defined unambiguously, in addition to being factually wrong. For example, when Microsoft talks about Unicode they mean UTF-16. -- ___ Python tracker

  1   2   >