ANN: gcc-python-plugin 0.8

2012-01-11 Thread David Malcolm
gcc-python-plugin is a plugin for GCC 4.6 onwards which embeds the CPython interpreter within GCC, allowing you to write new compiler warnings in Python, generate code visualizations, etc. It ships with gcc-with-cpychecker, which implements static analysis passes for GCC aimed at finding bugs in

ANN: eGenix mx Base Distribution 3.2.2 (mxDateTime, mxTextTools, etc.)

2012-01-11 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix.com mx Base Distribution Version 3.2.2 for Python 2.4 - 2.7 Open Source Python extensions providing important and useful services

MySQLdb Error

2012-01-11 Thread Emeka
Hello All, I got the below error why trying to create tables of the fly. for item in ['CREATE TABLE AddressTables ( AddressTables_id int (9) unsigned primary key auto_increment not null, city_name char(40) , state_name varchar, street_number int, country_name varchar, street_name char(40) ,

Re: MySQLdb Error

2012-01-11 Thread Chris Angelico
On Wed, Jan 11, 2012 at 6:57 PM, Emeka emekami...@gmail.com wrote: CREATE TABLE AddressTables ( AddressTables_id int (9) unsigned primary key auto_increment not null,  city_name char(40) ,  state_name varchar,  street_number int,  country_name varchar,  street_name char(40) , user_name

Re: open office in another language?

2012-01-11 Thread Stefan Behnel
Sean Wolfe, 10.01.2012 22:43: I'm a somewhat-satisfied openoffice.org user. I mean it works, but if it weren't in Java I'd be doing some of my own tweaking. But since it's in Java I stay away... no likey. It's been in C++ ever since the old StarOffice days, others have commented on that

Re: UnicodeEncodeError in compile

2012-01-11 Thread jmfauth
On 11 jan, 01:56, Terry Reedy tjre...@udel.edu wrote: On 1/10/2012 8:43 AM, jmfauth wrote: D:\c:\python32\python.exe Python 3.2.2 (default, Sep  4 2011, 09:51:08) [MSC v.1500 32 bit (Intel)] on win 32 Type help, copyright, credits or license for more information.

Re: UnicodeEncodeError in compile

2012-01-11 Thread jmfauth
On 11 jan, 01:56, Terry Reedy tjre...@udel.edu wrote: On 1/10/2012 8:43 AM, jmfauth wrote: ... mbcs encodes according to the current codepage. Only the chinese codepage(s) can encode the chinese char. So the unicode error is correct and 2.7 has a bug in that it is doing errors='replace'

ANN: eGenix mx Base Distribution 3.2.2 (mxDateTime, mxTextTools, etc.)

2012-01-11 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix.com mx Base Distribution Version 3.2.2 for Python 2.4 - 2.7 Open Source Python extensions providing important and useful services

Re: open office in another language?

2012-01-11 Thread Paul Rudin
Stefan Behnel stefan...@behnel.de writes: OOo has been fully scriptable in Python for ages. It even comes with an embedded Python runtime for that purpose (at least on non-package-management systems like Windows). So, Python is actually a standard component in all installations, whereas Java

ERROR:root:code for hash md5 was not found

2012-01-11 Thread mike
Hi, We are running are running Python program on Redhat 5.5. When executing our program we get the following error ( see below). Any ideas what this is due to? br, //mike /pysibelius/lib/common/ DataTypes.py Overwriten ... ERROR:root:code for hash md5 was not found. Traceback (most recent

Re: UnicodeEncodeError in compile

2012-01-11 Thread pyscripter
On Wednesday, January 11, 2012 5:50:51 AM UTC+2, Terry Reedy wrote: On 1/10/2012 3:08 AM, Terry Reedy wrote: Is this a filename that could be an actual, valid filename on your system? Yes it is. open works on that file. Good question. I believe this holdover from 2.x should be deleted. I

Re: ERROR:root:code for hash md5 was not found

2012-01-11 Thread Laurent Claessens
Le 11/01/2012 12:19, mike a écrit : Hi, We are running are running Python program on Redhat 5.5. When executing our program we get the following error ( see below). Any ideas what this is due to? On my computer hashlib has md5 : Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56) [GCC

Re: Newbie: Looking for code review on my first Python project.

2012-01-11 Thread HoneyMonster
On Tue, 10 Jan 2012 18:17:48 -0700, Ian Kelly wrote: On Tue, Jan 10, 2012 at 4:44 PM, HoneyMonster someone@someplace.invalid wrote: Hi, I'm new to Python and recently completed my first project. I used wxPython with wxGlade to generate the GUI bits.The application seems to work well, but I

Re: UnicodeEncodeError in compile

2012-01-11 Thread Dave Angel
On 01/11/2012 06:27 AM, pyscrip...@gmail.com wrote: SNIP Maybe the example of this question can be added to the issue 13785 as a proof that compile fails on valid file names. But I think the real issue is why on modern Windows systems the file system encoding is mbcs. Shouldn't it be utf-16?

Re: UnicodeEncodeError in compile

2012-01-11 Thread pyscripter
Indeed, on Windows NT the file system encoding should not be mbcs, since it creates UnicodeEncodeErrors on perfectly valid file names. -- http://mail.python.org/mailman/listinfo/python-list

Re: open office in another language?

2012-01-11 Thread Stefan Behnel
Paul Rudin, 11.01.2012 11:17: Stefan Behnel writes: OOo has been fully scriptable in Python for ages. It even comes with an embedded Python runtime for that purpose [...] I have dabbled with PyUNO in the past. One issue is that the api seems rather unpythonic (to me, at least). Sure, UNO

import problems.

2012-01-11 Thread Antoon Pardon
I have an import problem I can't figure out. I am using python 2.6.6 on a debian box In one directory (pylib) I have a file misc.py and the file testutil.py. testutil.py -- print in, __name__ from misc import Rec

Re: import problems.

2012-01-11 Thread Dave Angel
On 01/11/2012 08:21 AM, Antoon Pardon wrote: I have an import problem I can't figure out. I am using python 2.6.6 on a debian box In one directory (pylib) I have a file misc.py and the file testutil.py. testutil.py -- print in, __name__ from misc

How do I tell incomplete input from invalid input?

2012-01-11 Thread Mateusz Loskot
Hi, I have been trying to figure out a reliable way to determine incomplete Python script input using Python C API. (Apology if it is OT here, I'm not sure where my post belongs, perhaps to cplusplus-sig list.) Apparently, most pointers lead to the Python FAQ [1] question: How do I tell

Re: import problems.

2012-01-11 Thread Peter Otten
Antoon Pardon wrote: I have an import problem I can't figure out. I am using python 2.6.6 on a debian box In one directory (pylib) I have a file misc.py and the file testutil.py. from misc import Rec ImportError: cannot import name Rec Why can I import Rec from misc in testutil

Re: import problems.

2012-01-11 Thread Antoon Pardon
On 01/11/2012 02:57 PM, Peter Otten wrote: Antoon Pardon wrote: I have an import problem I can't figure out. I am using python 2.6.6 on a debian box In one directory (pylib) I have a file misc.py and the file testutil.py. from misc import Rec ImportError: cannot import

Re: import problems.

2012-01-11 Thread Antoon Pardon
On 01/11/2012 03:45 PM, Antoon Pardon wrote: On 01/11/2012 02:57 PM, Peter Otten wrote: Antoon Pardon wrote: I have an import problem I can't figure out. I am using python 2.6.6 on a debian box In one directory (pylib) I have a file misc.py and the file testutil.py. from misc import

Re: An alternative to Learning Perl

2012-01-11 Thread Sean Wolfe
On Tue, Jan 10, 2012 at 8:25 PM, Sebastian Rooks sebastian_rooks@lavabit.c_o_m wrote: On Mon, 9 Jan 2012 00:55:22 -0300, Sean Wolfe ether@gmail.com wrote: kindle? ipad? tablet? I'm interested in books, not files ... (seriously, now ... I don't have any of those devices) also there is

after applicatio​n close MS Visual C++ runtime library error occurs

2012-01-11 Thread Peter Irbizon
Hello, I am using psycopg2 in windows app, example: import psycopg2 import psycopg2.extras self.con = psycopg2.connect(dbname= host= user= password= port=); self.cur = self.con.cursor(cursor_factory=psycopg2.extras.DictCursor) SELECT = select something self.cur.execute(SELECT) for row in

contextlib.contextmanager and try/finally

2012-01-11 Thread johannh
I'm trying to write a context manager to handle database connections, under the principle that I should not rely on CPython's reference-counting semantics to clean up scarce resources, like connections. I wrote: @contexlib.contextmanager def ensure_connection(con=None): con_created = False

Re: contextlib.contextmanager and try/finally

2012-01-11 Thread Neil Cerutti
On 2012-01-11, joha...@gmail.com joha...@gmail.com wrote: That suggests that I cannot rely on the contextlib.contextmanager decorator to ensure that the connection is closed and would have to write my own object with __enter__ and __exit__ methods to guarantee this. contextmanager wraps your

Re: contextlib.contextmanager and try/finally

2012-01-11 Thread Robert Kern
On 1/11/12 3:45 PM, joha...@gmail.com wrote: I'm trying to write a context manager to handle database connections, under the principle that I should not rely on CPython's reference-counting semantics to clean up scarce resources, like connections. I wrote: @contexlib.contextmanager def

Re: contextlib.contextmanager and try/finally

2012-01-11 Thread Ian Kelly
On Wed, Jan 11, 2012 at 8:45 AM, joha...@gmail.com wrote: However, then I read the following paragraph from PEP-343:    Note that we're not guaranteeing that the finally-clause is    executed immediately after the generator object becomes unused,    even though this is how it will work in

Re: contextlib.contextmanager and try/finally

2012-01-11 Thread johannh
On Wednesday, January 11, 2012 11:20:19 AM UTC-6, Ian wrote: Second, I believe that passage is not referring to the contextmanager decorator specifically, but more generally to the changes that were made to allow generators to yield from within a try-finally construct (previously this would

Re: ERROR:root:code for hash md5 was not found

2012-01-11 Thread Terry Reedy
On 1/11/2012 6:19 AM, mike wrote: Hi, We are running are running Python program on Redhat 5.5. When executing our program we get the following error ( see below). Any ideas what this is due to? br, //mike /pysibelius/lib/common/ DataTypes.py Overwriten ... ERROR:root:code for hash md5

Re: How do I tell incomplete input from invalid input?

2012-01-11 Thread Terry Reedy
On 1/11/2012 8:50 AM, Mateusz Loskot wrote: Unfortunately, this FAQ is either old or incomplete thus incorrect. If you have a suggested change to the current text, please submit it to the tracker at bugs.python.org -- Terry Jan Reedy -- http://mail.python.org/mailman/listinfo/python-list

Re: your feedback to my first project please

2012-01-11 Thread D'Arcy Cain
On 12-01-08 02:46 PM, patr...@bierans.de wrote: Thanks for the feedback! You're welcome. D'Arcy wrote: [code examples] But I will keep some of my underscores for private attributes and methods. And I googled: dim was basic. I know too many languages and start mixing the keywords - shame on

Re: Explanation about for

2012-01-11 Thread Νικόλαος Κούρας
Thank you All for the detailed examples. I tried them all in IDLE and i finally understood them. Thanks for your patience with me until i understand! 2012/1/10 Nick Dokos nicholas.do...@hp.com Νικόλαος Κούρας nikos.kou...@gmail.com wrote: On 10 Ιαν, 03:11, Ian Kelly ian.g.ke...@gmail.com

Re: MySQLdb Error

2012-01-11 Thread Emeka
Thanks. Regards, Janus On Wed, Jan 11, 2012 at 7:12 PM, Dennis Lee Bieber wlfr...@ix.netcom.comwrote: On Wed, 11 Jan 2012 09:57:43 +0200, Emeka emekami...@gmail.com wrote: _mysql_exceptions.ProgrammingError: (1064, You have an error in your SQL syntax; check the manual that corresponds to

Re: Newbie: Looking for code review on my first Python project.

2012-01-11 Thread HoneyMonster
On Wed, 11 Jan 2012 11:39:48 +, HoneyMonster wrote: On Tue, 10 Jan 2012 18:17:48 -0700, Ian Kelly wrote: On Tue, Jan 10, 2012 at 4:44 PM, HoneyMonster someone@someplace.invalid wrote: Hi, I'm new to Python and recently completed my first project. I used wxPython with wxGlade to

stable object serialization to text file

2012-01-11 Thread Máté Koch
Hello All,I'm developing an app which stores the data in file system database. The data in my case consists of large python objects, mostly dicts, containing texts and numbers. The easiest way to dump and load them would be pickle, but I have a problem with it: I want to keep the data in version

Re: open office in another language?

2012-01-11 Thread Martin Manns
On Tue, 10 Jan 2012 18:43:09 -0300 Sean Wolfe ether@gmail.com wrote: Has there been any talk of doing another similar office suite, or maybe just writer + spreadsheet, in a better language eg python? I expect it's a huge undertaking but ... thought I'd ask around at least. If you are

Python lib for creating Database tables

2012-01-11 Thread Emeka
Hello All, I just made something pretty simple that I intend to use while creating database tables. It is still in the basic form, and much needs to be added. However, I use introspection to make it a bit easier and less work on the user. I would want my code to be reviewed by this great group.

Re: open office in another language?

2012-01-11 Thread Sean Wolfe
On Wed, Jan 11, 2012 at 6:35 PM, Martin Manns mma...@gmx.net wrote: or in pyspread (GPL, my own effort) http://manns.github.com/pyspread/ Checking this out now. Do you have text boxes? Cause maybe I will add some ... cool! -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie Help

2012-01-11 Thread mixolydian
mixolydian mixolydian@postersRUS wrote: I want to get into Python progamming for both local database applications and dynamic web pages. Maybe some QD scripts. There is a ton of excellent language books. I have downloaded and installed 2.7.2 and got it working by pasting samples into IDLE, and

Re: Explanation about for

2012-01-11 Thread RainyDay
On Jan 10, 6:37 am, Νικόλαος Κούρας nikos.kou...@gmail.com wrote: On 10 Ιαν, 12:57, Thomas Rachel nutznetz-0c1b6768-bfa9-48d5- a470-7603bd3aa...@spamschutz.glglgl.de wrote: Am 10.01.2012 10:02 schrieb Νικόλαος Κούρας: --- | HOST    |

Re: How do I tell incomplete input from invalid input?

2012-01-11 Thread mloskot
Terry Reedy wrote On 1/11/2012 8:50 AM, Mateusz Loskot wrote: Unfortunately, this FAQ is either old or incomplete thus incorrect. If you have a suggested change to the current text, please submit it to the tracker at bugs.python.org Yes, this is quite obvious procedure to me, but

Re: ERROR:root:code for hash md5 was not found

2012-01-11 Thread Steven D'Aprano
On Wed, 11 Jan 2012 05:54:29 -0800, mike wrote: I did some more digging and found that our class imports a yacc.py that uses import re, types, sys, cStringIO, hashlib, os.path so it has hashlib. yacc.py seems to be an old version 1.3 ( I found 2.3 --). Reading about hashlib it seems

Re: Python lib for creating Database tables

2012-01-11 Thread Jason Friedman
Hello All, I just made something pretty simple that I intend to use while creating database tables. It is still in the basic form, and much needs to be added. However, I use introspection to make it a bit easier and less work on the user. I would want my code to be reviewed by this great

Re: Newbie: Looking for code review on my first Python project.

2012-01-11 Thread 88888 Dihedral
HoneyMonster於 2012年1月12日星期四UTC+8上午5時09分13秒寫道: On Wed, 11 Jan 2012 11:39:48 +, HoneyMonster wrote: On Tue, 10 Jan 2012 18:17:48 -0700, Ian Kelly wrote: On Tue, Jan 10, 2012 at 4:44 PM, HoneyMonster someone@someplace.invalid wrote: Hi, I'm new to Python and recently completed

Re: open office in another language?

2012-01-11 Thread 88888 Dihedral
Open Office suite software users are most non-programmers. Software to be used by non-programmers are different from most free python packages shared by programmers. -- http://mail.python.org/mailman/listinfo/python-list

Re: Introspecting optparse/argparse objects

2012-01-11 Thread alex23
On Jan 11, 11:26 am, Evan Driscoll edrisc...@wisc.edu wrote: (For a concrete idea of a use case, suppose that it did not directly support the --help option and I wanted to write code that took its place.) That's a pretty weird definition of 'concrete use case', but anyway... This means that

Two questions about logging

2012-01-11 Thread Matthew Pounsett
I'm trying to figure out a couple of things with the logging module, and I'm hoping someone can provide some pointers. I've read through the module docs on python.org, the basic and advanced tutorials, and the cookbook post, but a couple of things still elude me. First, I'd like to be able to

Re: Two questions about logging

2012-01-11 Thread Roy Smith
In article 7dabf43f-3814-47b6-966a-1439f5654...@i6g2000vbk.googlegroups.com, Matthew Pounsett matt.pouns...@gmail.com wrote: First, I'd like to be able to permit users to do more typical log rotation, based on their OS's log rotation handler, rather than rotating logs from inside an

Re: Introspecting optparse/argparse objects

2012-01-11 Thread Evan Driscoll
On 1/11/2012 19:37, alex23 wrote: On Jan 11, 11:26 am, Evan Driscoll edrisc...@wisc.edu wrote: (For a concrete idea of a use case, suppose that it did not directly support the --help option and I wanted to write code that took its place.) That's a pretty weird definition of 'concrete use

Re: Ctypes compatibility

2012-01-11 Thread Evan Driscoll
On 1/10/2012 22:42, Alec Taylor wrote: Use size_t http://en.wikipedia.org/wiki/C_data_types#Size_and_pointer_difference_types Um, perhaps you misunderstand. I don't control the C API, I'm calling a function that just exists in libc (unless I do what I said and write a wrapper). If you're saying

Re: Two questions about logging

2012-01-11 Thread Matthew Pounsett
On Jan 11, 9:34 pm, Roy Smith r...@panix.com wrote: What I would do is log to syslog (logging.handlers.SysLogHandler) and let syslog worry about rotating log files.  Why reinvent the wheel? Syslog is fine for an application run by an administrator, but isn't an option for a user. --

Re: how to install lxml in window xp?

2012-01-11 Thread Tamer Higazi
Use Linux! Specially Gentoo Linux! Tamer Am 09.01.2012 10:18, schrieb 水静流深: in my xp ,python26,easy_install installed. i want to install lxml in window xp 1.c:\python26\scripts\easy_install lxml what i get is: Reading http://codespeak.net/lxml Best match: lxml 2.3.3 Downloading

Re: how to install lxml in window xp?

2012-01-11 Thread Brian Curtin
On Wed, Jan 11, 2012 at 23:01, Tamer Higazi th9...@googlemail.com wrote: Use Linux! Specially Gentoo Linux! Not a useful answer. -- http://mail.python.org/mailman/listinfo/python-list

Re: pipe into preallocated buffer?

2012-01-11 Thread Kushal Kumaran
On Wed, Jan 4, 2012 at 8:05 PM, Mihai Badoiu mbad...@gmail.com wrote: is there a way to pipe directly into a preallocated buffer?  (subprocessing.pipe.stdout) Does io.StringIO fit your needs? http://docs.python.org/py3k/library/io.html#io.StringIO -- regards, kushal --

Re: ERROR:root:code for hash md5 was not found

2012-01-11 Thread mike
On Jan 12, 12:28 am, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: On Wed, 11 Jan 2012 05:54:29 -0800, mike wrote: I did some more digging and found that our class imports a yacc.py that uses import re, types, sys, cStringIO, hashlib, os.path so it has hashlib. yacc.py

Re: pipe into preallocated buffer?

2012-01-11 Thread Thomas Rachel
Am 12.01.2012 06:23 schrieb Kushal Kumaran: On Wed, Jan 4, 2012 at 8:05 PM, Mihai Badoiumbad...@gmail.com wrote: is there a way to pipe directly into a preallocated buffer? (subprocessing.pipe.stdout) Does io.StringIO fit your needs?

Bug in logutils package

2012-01-11 Thread Ram
Does anyone have any inkling on how to fix this bug? http://code.google.com/p/logutils/issues/detail?id=3 Or any good pointers on how to find out whats wrong and how to fix it would be nice. Thanks, --Ram -- http://mail.python.org/mailman/listinfo/python-list

Re: ERROR:root:code for hash md5 was not found

2012-01-11 Thread mike
On Jan 12, 7:13 am, mike mikaelpetters...@gmail.com wrote: On Jan 12, 12:28 am, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: On Wed, 11 Jan 2012 05:54:29 -0800, mike wrote: I did some more digging and found that our class imports a yacc.py that uses import

[issue13754] str.ljust and str.rjust do not exactly describes original string return

2012-01-11 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: The short doc strings do not mention the issue either way. I think it ok to leave them as they are. While the claim is how the functions *should* operate, I verified that it is how they *do* operate in all three branches. -- assignee:

[issue13753] str.join description contains an incorrect reference to argument

2012-01-11 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- assignee: docs@python - terry.reedy keywords: +easy, patch nosy: +terry.reedy versions: +Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13753

[issue13748] Allow rb literals as an equivalent to br

2012-01-11 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: +1 for raw bytes, which reads much nicer to me than bytes raw. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13748 ___

[issue1692335] Fix exception pickling: Move initial args assignment to BaseException.__new__

2012-01-11 Thread Faheem Mitha
Faheem Mitha fah...@faheem.info added the comment: What is the status on this? It contains to be an issue. See http://bugs.python.org/issue13751 and http://bugs.python.org/issue13760 -- nosy: +fmitha ___ Python tracker rep...@bugs.python.org

[issue13753] str.join description contains an incorrect reference to argument

2012-01-11 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13753 ___ ___ Python-bugs-list

[issue13759] Python 3.2.2 Mac installer version doesn't accept multibyte character in interactive mode

2012-01-11 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Can you give the exact steps of what you did to demonstrate the problem? Also, there are two OS X installers for Python 3.2.2. Which one did you install? (The two lines of version information when starting Python is enough to identify which one it

[issue13752] add a unicode.casefold() method

2012-01-11 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- stage: - needs patch title: add a casefold() method - add a unicode.casefold() method ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13752 ___

[issue13761] Add flush keyword to print()

2012-01-11 Thread Georg Brandl
New submission from Georg Brandl ge...@python.org: Add a flush keyword argument to print(), defaulting to False. If true, output will be flushed immediately. See http://mail.python.org/pipermail/python-ideas/2012-January/013340.html -- assignee: georg.brandl components: Interpreter

[issue13754] str.ljust and str.rjust do not exactly describes original string return

2012-01-11 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 3aed8787ce5c by Terry Jan Reedy in branch '2.7': Closes #13754 String returned if less than *or equal to* x 3 http://hg.python.org/cpython/rev/3aed8787ce5c New changeset 3f2e5fd17b76 by Terry Jan Reedy in branch

[issue13753] str.join description contains an incorrect reference to argument

2012-01-11 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: See #13754 for commits (not here because 'close' != 'closes' or closed') -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13753

[issue13761] Add flush keyword to print()

2012-01-11 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13761 ___ ___

[issue13759] Python 3.2.2 Mac installer version doesn't accept multibyte character in interactive mode

2012-01-11 Thread Atsushi Shibata
Atsushi Shibata shib...@webcore.co.jp added the comment: The procedure is following. 1. type python in the terminal.app to launch interactive mode. 2. type 'あ' in it. And I use Mac OS X 64-bit/32-bit Installer (3.2.2) for Mac OS X 10.6 and 10.7. Here is the first 2 lines of initial message.

[issue4630] IDLE no longer respects .Xdefaults insertOffTime

2012-01-11 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: The idea and design look good to me. I will test on Windows when I am able to do so in development builds (unless someone beats me ;-). -- nosy: +terry.reedy versions: +Python 2.7, Python 3.3 ___

[issue4630] IDLE: add cursor noblink option

2012-01-11 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- title: IDLE no longer respects .Xdefaults insertOffTime - IDLE: add cursor noblink option ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4630

[issue13759] Python 3.2.2 Mac installer version doesn't accept multibyte character in interactive mode

2012-01-11 Thread Ned Deily
Ned Deily n...@acm.org added the comment: I am not familiar with the Japanese input methods available in OS X. But using copy and paste with an US UTF-8 locale, it seems to work. Perhaps there is a different locale in effect? Python 3.2.2 (v3.2.2:137e45f15c0b, Sep 3 2011, 17:28:59) [GCC

[issue13703] Hash collision security issue

2012-01-11 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: Patch version 5 fixes test_unicode for 64-bit system. Victor, I don't think the randomization idea is going anywhere. The code has many issues: * it is exceedingly complex * the method would need to be implemented

[issue13472] devguide doesn’t list all build dependencies

2012-01-11 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13472 ___ ___

[issue13440] Explain the status quo wins a stalemate principle in the devguide

2012-01-11 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13440 ___ ___

[issue12907] Update test coverage devguide page

2012-01-11 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12907 ___ ___

[issue13703] Hash collision security issue

2012-01-11 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment:  * it is exceedingly complex Which part exactly? For hash(str), it just add two extra XOR.  * the method would need to be implemented for all hashable Python types It was already discussed, and it was said that only hash(str)

[issue12296] Minor clarification in devguide

2012-01-11 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12296 ___ ___

[issue13762] missing section: how to contribute to devguide

2012-01-11 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe tshep...@gmail.com: I struggled to find how to contribute to the devguide. I even struggled to find where the VCS is. I think it would be kool if there was a section for this info (it's not always fun to search the intertubes). -- components:

[issue13124] Add Running a Build Slave page to the devguide

2012-01-11 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13124 ___ ___

[issue12409] Moving Documenting Python to Devguide

2012-01-11 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12409 ___ ___

[issue13275] Recommend xml.etree for XML processing

2012-01-11 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13275 ___ ___

[issue13275] Recommend xml.etree for XML processing

2012-01-11 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe tshep...@gmail.com added the comment: @Araujo bit offtopic, but which XML library have you found most elegant? Is it available in the stdlib? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13275

[issue13763] rm obsolete reference in devguide

2012-01-11 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe tshep...@gmail.com: this line: commonly abbreviated svn, after the program name was once changed to: commonly abbreviated hg, after the program name and it no longer makes sense -- components: Devguide files: rm-obsolete-reference.patch

[issue13764] Misc/build.sh is outdated... talks about svn

2012-01-11 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe tshep...@gmail.com: I am wondering what else is outdated in that file. Is it still useful? -- components: Build messages: 151052 nosy: tshepang priority: normal severity: normal status: open title: Misc/build.sh is outdated... talks about svn

[issue13759] Python 3.2.2 Mac installer version doesn't accept multibyte character in interactive mode

2012-01-11 Thread Atsushi Shibata
Atsushi Shibata shib...@webcore.co.jp added the comment: Thank you for testing on your environment :-). I'll make sure the difference that caused the issue. I changed the status to pending. I'll come back to this issue when I find the crue. Thanks anyway ! -- status: open - pending

[issue13765] Distutils does not put quotes around paths that contain spaces when compiling with MSVC

2012-01-11 Thread Almar Klein
New submission from Almar Klein almar.kl...@gmail.com: I found an easy to solve bug in distutils, which is causing problems with compiling Cython code on Windows. I have reproduced this on Python 2.6 and Python 3.2 (32 bit). The problem occurs with the native msvc compiler. Using gcc (MinGW)

[issue13766] explain the relationship between Lib/lib2to3/Grammar.txt and Grammar/Grammar

2012-01-11 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe tshep...@gmail.com: Lib/lib2to3/Grammar.txt seems like a modified copy of Grammar/Grammar. Can you state so somewhere, maybe in the beginning of Lib/lib2to3/Grammar.txt (the Note section). One problem with the way it is now, is that there are changes

[issue13762] missing section: how to contribute to devguide

2012-01-11 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: Hello Tshepang, The current section is at: http://docs.python.org/devguide/docquality.html#helping-with-the-developer-s-guide reachable from the mainpage looking for helping with documentation. it may be a little to condense but it is a

[issue13762] missing section: how to contribute to devguide

2012-01-11 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe tshep...@gmail.com added the comment: I guess I should have looked more carefully. Thanks and sorry for the noise. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13762

[issue2175] Expat sax parser silently ignores the InputSource protocol

2012-01-11 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2175 ___ ___ Python-bugs-list

[issue12779] Update packaging documentation

2012-01-11 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12779 ___ ___

[issue1975] signals not always delivered to main thread, since other threads have the signal unmasked

2012-01-11 Thread Floris Bruynooghe
Changes by Floris Bruynooghe floris.bruynoo...@gmail.com: -- nosy: +flub ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1975 ___ ___

[issue13767] Would be nice to have a future import that turned off old except style

2012-01-11 Thread Zaheer Merali
New submission from Zaheer Merali zaheermer...@gmail.com: It would be nice to have a future import to be able to prevent people in code doing: try: except Exception, e: and make people do: try: except Exception as e: -- components: Interpreter

[issue13762] missing section: how to contribute to devguide

2012-01-11 Thread Sandro Tosi
Changes by Sandro Tosi sandro.t...@gmail.com: -- resolution: - invalid ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13762 ___ ___

[issue13767] Would be nice to have a future import that turned off old except style

2012-01-11 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: If you run python with the -3 flag you should get a warning about that. If you combine it with -We you should be able to get an error instead of a warning. Note however that both the flags are not specific for the except but also

[issue13767] Would be nice to have a future import that turned off old except style

2012-01-11 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Unfortunately, that would be a new feature, so it is not acceptable to Python 2.7. -- nosy: +benjamin.peterson resolution: - rejected status: open - closed ___ Python tracker

[issue13703] Hash collision security issue

2012-01-11 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: STINNER Victor victor.stin...@haypocalc.com added the comment: * it is exceedingly complex Which part exactly? For hash(str), it just add two extra XOR. I'm not talking specifically about your patch, but the

  1   2   >