ANN: gcc-python-plugin 0.7

2011-11-30 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 cpychecker, which implements static analysis passes for GCC aimed at finding bugs in CPython

Re: How convert a list string to a real list

2011-11-30 Thread Peter Otten
Terry Reedy wrote: On 11/30/2011 1:20 AM, 郭军权 wrote: Good after I have a string liststr = '[,,ccc]' ,and I need convert it to a list like list = [,,ccc],what can id do? The easiest -- and most dangerous -- way is eval('[,,ccc]') ['', '', 'ccc'] But DO

RE: Total newbie question: Best practice

2011-11-30 Thread Shambhu Rajak
Collins Congratulations for your first step into Python Programming. You can call them script or programs(not necessarily but depends on what your coding for). Yaa..it's always a good practice to call it through main(), but it doesn't really matter you can call the method in way Regards,

Debug python from DLL callback?

2011-11-30 Thread Jason Veldicott
Hi, I am wondering if anyone here might be able to suggest if there is a way of switching over from python execution into debug mode of an IDE, from python code that is executed as a callback from a C++ DLL? Thanks Jason -- http://mail.python.org/mailman/listinfo/python-list

Re: Debug python from DLL callback?

2011-11-30 Thread Fabio Zadrozny
On Wed, Nov 30, 2011 at 7:34 AM, Jason Veldicott jasonveldic...@gmail.com wrote: Hi, I am wondering if anyone here might be able to suggest if there is a way of switching over from python execution into debug mode of an IDE, from python code that is executed as a callback from a C++ DLL?

Re: cmd.Cmd asking questions?

2011-11-30 Thread Robert Kern
On 11/30/11 3:30 AM, Cameron Simpson wrote: On 29Nov2011 13:37, Tim Chasepython.l...@tim.thechases.com wrote: | On 11/28/11 06:27, Robert Kern wrote: [...] |I actually have a preference for needing to press enter for |Y/N answers, too. It's distinctly *less* uniform to have some |questions

Python crashes on segmentation error

2011-11-30 Thread Ben Richardson
Hi! Python crashes every time i run the following command… import cv Segmentation fault: 11 Python quit unexpectedly - any help would be greatly appreciated - thankyou in advance :) Here is crash report… Process: Python [276] Path:

Re: Total newbie question: Best practice

2011-11-30 Thread Pedro Henrique G. Souto
On 30/11/2011 06:50, Shambhu Rajak wrote: Collins Congratulations for your first step into Python Programming. You can call them script or programs(not necessarily but depends on what your coding for). Yaa..it's always a good practice to call it through main(), but it doesn't really matter you

Python 3 - xml - crlf handling problem

2011-11-30 Thread durumdara
Hi! As I see that XML parsing is wrong in Python. I must use predefined XML files, parsing them, extending them, and produce some result. But as I see that in Windows this is working wrong. When the predefined XMLs are formatted (prettied) with CRLFs, then the parser keeps these plus LF

order independent hash?

2011-11-30 Thread Neal Becker
I like to hash a list of words (actually, the command line args of my program) in such a way that different words will create different hash, but not sensitive to the order of the words. Any ideas? -- http://mail.python.org/mailman/listinfo/python-list

Re: order independent hash?

2011-11-30 Thread Tim Golden
On 30/11/2011 12:32, Neal Becker wrote: I like to hash a list of words (actually, the command line args of my program) in such a way that different words will create different hash, but not sensitive to the order of the words. Any ideas? How about? hash (frozenset (hello world.split ()))

Re: order independent hash?

2011-11-30 Thread Peter Otten
Neal Becker wrote: I like to hash a list of words (actually, the command line args of my program) in such a way that different words will create different hash, but not sensitive to the order of the words. Any ideas? You mean a typical python hash value which would be /likely/ to differ for

Re: Python crashes on segmentation error

2011-11-30 Thread Christian Heimes
Am 30.11.2011 11:42, schrieb Ben Richardson: Python crashes every time i run the following command… import cv Segmentation fault: 11 Python quit unexpectedly - any help would be greatly appreciated - thankyou in advance :) Here is crash report… [...] Thread 0 Crashed:: Dispatch

Re: Python 3 - xml - crlf handling problem

2011-11-30 Thread Stefan Behnel
durumdara, 30.11.2011 13:08: As I see that XML parsing is wrong in Python. You didn't say what you are using for parsing, but from your example, it appears likely that you are using the xml.dom.minidom module. I must use predefined XML files, parsing them, extending them, and produce some

Re: Converting MS Access DB to Postgres or MySQL for ORM support with SQLalchemy

2011-11-30 Thread Miki Tebeka
You can read data using win32com (ADODB?) and then write it to the desired database using the right package (psycopg2 ...). See example for reading data at http://mail.python.org/pipermail/python-win32/2006-March/004420.html -- http://mail.python.org/mailman/listinfo/python-list

Defining a new base-type in Python based off Hexavigesimal

2011-11-30 Thread Alec Taylor
Good evening, I have defined a new numbering structure for certain mathematical advantages. How do I implement this in Python, or would I be better off writing this in C or C++? Ultra concise definition: http://i42.tinypic.com/af7w4h.png LaTeX source: http://pastebin.tlhiv.org/Kf6jPRkI Thanks

Re: Defining a new base-type in Python based off Hexavigesimal

2011-11-30 Thread Steven D'Aprano
On Thu, 01 Dec 2011 02:19:31 +1100, Alec Taylor wrote: Good evening, I have defined a new numbering structure for certain mathematical advantages. How do I implement this in Python, or would I be better off writing this in C or C++? Ultra concise definition:

Re: Defining a new base-type in Python based off Hexavigesimal

2011-11-30 Thread Peter Otten
Alec Taylor wrote: I have defined a new numbering structure for certain mathematical advantages. How do I implement this in Python, or would I be better off writing this in C or C++? Ultra concise definition: http://i42.tinypic.com/af7w4h.png LaTeX source:

Re: Defining a new base-type in Python based off Hexavigesimal

2011-11-30 Thread Ian Kelly
On Wed, Nov 30, 2011 at 8:19 AM, Alec Taylor alec.tayl...@gmail.com wrote: Good evening, I have defined a new numbering structure for certain mathematical advantages. How do I implement this in Python, or would I be better off writing this in C or C++? Ultra concise definition:

Re: Defining a new base-type in Python based off Hexavigesimal

2011-11-30 Thread Alec Taylor
On Thu, Dec 1, 2011 at 3:18 AM, Ian Kelly ian.g.ke...@gmail.com wrote: On Wed, Nov 30, 2011 at 8:19 AM, Alec Taylor alec.tayl...@gmail.com wrote: Good evening, I have defined a new numbering structure for certain mathematical advantages. How do I implement this in Python, or would I be

Re: Defining a new base-type in Python based off Hexavigesimal

2011-11-30 Thread Devin Jeanpierre
Care to translate it into English? Then translate the English into pseudo-code. And the pseudo-code into Python. Then, if and only if the Python version is too slow, translate it into C. And now you are done! Mathematical English is pseudocode. Related: all theorems are also programs and

tp_new, tp_alloc, tp_init

2011-11-30 Thread Michael Hennebry
I've been reading about writing extension types in C and am rather fuzzy about the relationship between tp_new, tp_alloc and tp_init. Most especially, why tp_new? It seems to me that tp_alloc and tp_init would be sufficient. Most of my reading has been in the Noddy and Shoddy portions of

Re: python 2.5 and ast

2011-11-30 Thread Andrea Crotti
Another thing about the AST, I am having fun trying to for example list out all the unused imports. I have already a visitor which works quite nicely I think, but now I would like to get a way to find all the unused imports, so I need more visitors that find out all the used names. I didn't

Re: Defining a new base-type in Python based off Hexavigesimal

2011-11-30 Thread Ian Kelly
On Wed, Nov 30, 2011 at 9:26 AM, Alec Taylor alec.tayl...@gmail.com wrote: On Thu, Dec 1, 2011 at 3:18 AM, Ian Kelly ian.g.ke...@gmail.com wrote: On Wed, Nov 30, 2011 at 8:19 AM, Alec Taylor alec.tayl...@gmail.com wrote: Good evening, I have defined a new numbering structure for certain

How to get a correct entry in the menu for a Python application on Mac OS X

2011-11-30 Thread Detlev Offenbach
Hello, I am fairly new to Mac OS X and would like to know, what I have to do to make my Python application show the correct name in the menu bar. What did I do so far. I created an application package containing the .plist file with correct entries and a shell script, that starts the correct

Re: Defining a new base-type in Python based off Hexavigesimal

2011-11-30 Thread Alec Taylor
Excellent, I'll see if I can implement that. I was thinking more base data-type, but that seems impossible in python. 17 iterations (rarghh!) But yeah, I'll try that, thanks. On Thu, Dec 1, 2011 at 5:38 AM, Ian Kelly ian.g.ke...@gmail.com wrote: On Wed, Nov 30, 2011 at 9:26 AM, Alec Taylor

Re: Defining a new base-type in Python based off Hexavigesimal

2011-11-30 Thread Peter Otten
Alec Taylor wrote: On Thu, Dec 1, 2011 at 3:18 AM, Ian Kelly ian.g.ke...@gmail.com wrote: On Wed, Nov 30, 2011 at 8:19 AM, Alec Taylor alec.tayl...@gmail.com wrote: Good evening, I have defined a new numbering structure for certain mathematical advantages. How do I implement this in

Re: Py2.7/FreeBSD: maximum number of open files

2011-11-30 Thread Chris Torek
In article mailman.2711.1321299276.27778.python-l...@python.org Christian Heimes li...@cheimes.de wrote: Am 14.11.2011 19:28, schrieb Tobias Oberstein: Thanks! This is probably the most practical option I can go. I've just tested: the backported new IO on Python 2.7 will indeed open 32k

Py and SQL

2011-11-30 Thread Verde Denim
All I have a sql script that I've included in a simple Py file that gives an error in the SQL. The problem is that the SQL code executes correctly in a database IDE environment (in this case ora developer). So, I'm concluding that I'm doing something amiss in the Py code. Does anyone see why this

Re: Py and SQL

2011-11-30 Thread Rod Person
On Wed, 30 Nov 2011 15:30:48 -0500 Verde Denim tdl...@gmail.com wrote: All I have a sql script that I've included in a simple Py file that gives an error in the SQL. The problem is that the SQL code executes correctly in a database IDE environment (in this case ora developer). So, I'm

Need some IPC pointers

2011-11-30 Thread Andrew Berg
I've done some research, but I'm not sure what's most appropriate for my situation. What I want to do is have a long running process that spawns processes (that aren't necessarily written in Python) and communicates with them. The children can be spawned at any time and communicate at any time.

Re: Need some IPC pointers

2011-11-30 Thread Miki Tebeka
There are two different problems. One is the medium to pass messages, sockets are good but there are other options and depends on your requirement you need to pick the best one. The other is serialization format, here you have marshal, pickle, JSON, XML and more. For me JSON over sockets works

Re: Need some IPC pointers

2011-11-30 Thread Devin Jeanpierre
I'm thinking sockets, but perhaps there's something simpler/easier. Sockets are the only thing that will work without threads on all platforms. You could also use threads and pipes. (I'm not actually sure how threads+pipes works, but I'm told that it's a viable approach). Usually things are

Re: How convert a list string to a real list

2011-11-30 Thread Terry Reedy
On 11/30/2011 3:58 AM, Peter Otten wrote: Terry Reedy wrote: On 11/30/2011 1:20 AM, 郭军权 wrote: Good after I have a string liststr = '[,,ccc]' ,and I need convert it to a list like list = [,,ccc],what can id do? The easiest -- and most dangerous -- way is

Re: Py and SQL

2011-11-30 Thread Jerry Hill
On Wed, Nov 30, 2011 at 3:30 PM, Verde Denim tdl...@gmail.com wrote: dbCursor1.execute('select lpad(' ', 2*level) || c Privilege, Roles and Users from ( select null p, name c from system_privilege_map where name like upper(\'%enter_privliege%\') union select granted_role p, grantee c from

Re: Need some IPC pointers

2011-11-30 Thread Andrew Berg
On 11/30/2011 3:32 PM, Devin Jeanpierre wrote: You could also use threads and pipes. (I'm not actually sure how threads+pipes works, but I'm told that it's a viable approach). Sounds interesting, but I'm not familiar with threading (not that I wouldn't be willing to learn). Is it even possible

unpack('f', b'\x00\x01\x00\x00')

2011-11-30 Thread kuaile xu
Hi: I am working on a python script that parses mp4 video header. Once of the field is a 32-bit fixed-point number. I know that the four bytes are: 00, 01, 00, 00. I have a third party mp4 parsing program which displays this field's value is:1.0. However, the struct.unpack gets a value of 0.0.

Re: Python crashes on segmentation error

2011-11-30 Thread Terry Reedy
On 11/30/2011 7:58 AM, Christian Heimes wrote: Am 30.11.2011 11:42, schrieb Ben Richardson: Python crashes every time i run the following command… import cv Segmentation fault: 11 Python quit unexpectedly - any help would be greatly appreciated - thankyou in advance :) Here is crash

Re: Need some IPC pointers

2011-11-30 Thread Irmen de Jong
On 30-11-11 22:03, Andrew Berg wrote: I've done some research, but I'm not sure what's most appropriate for my situation. What I want to do is have a long running process that spawns processes (that aren't necessarily written in Python) and communicates with them. The children can be spawned at

Re: Need some IPC pointers

2011-11-30 Thread Devin Jeanpierre
Sounds interesting, but I'm not familiar with threading (not that I wouldn't be willing to learn). Is it even possible to pipe into a running process, though? You create the pipe to the process when you start it. e.g. subprocess.Popen(['ls', 'foo'], stdout=subprocess.PIPE,

Re: Need some IPC pointers

2011-11-30 Thread Irmen de Jong
On 30-11-11 23:28, Irmen de Jong wrote: On 30-11-11 22:03, Andrew Berg wrote: processes (that aren't necessarily written in Python) and communicates Oops, missed this on my first read. This rules out my suggestion of Pyro because that requires Python on both ends (or Java/.net on the

Re: How convert a list string to a real list

2011-11-30 Thread Hidura
Why you don't make this ['1','2','3'].strip([]).split(',') work for me El nov 30, 2011 10:16 p.m., Terry Reedy tjre...@udel.edu escribió: On 11/30/2011 3:58 AM, Peter Otten wrote: Terry Reedy wrote: On 11/30/2011 1:20 AM, 郭军权 wrote: Good after I have a string liststr = '[,,ccc]'

Re: unpack('f', b'\x00\x01\x00\x00')

2011-11-30 Thread Chris Rebert
On Wed, Nov 30, 2011 at 2:24 PM, kuaile xu kuaile...@gmail.com wrote: Hi: I am working on a python script that parses mp4 video header. Once of the field is a 32-bit fixed-point number. I know that the four bytes are: 00, 01, 00, 00. I have a third party mp4 parsing program which displays

Re: How convert a list string to a real list

2011-11-30 Thread Terry Reedy
On 11/30/2011 5:48 PM, Hidura wrote: Why you don't make this ['1','2','3'].strip([]).split(',') work for me Look more carefully. This is not the same as ast.literal_eval(). ['1','2','3'].strip([]).split(',') ['1', '2', '3'] # list of 3-char strings ast.literal_eval(['1','2','3']) ['1',

Re: How convert a list string to a real list

2011-11-30 Thread Tim Chase
On 11/30/11 16:48, Hidura wrote: Why you don't make this ['1','2','3'].strip([]).split(',') work for me because it breaks on things like s = [[1,2,3],42,'''triple the fun!''', can't touch this, eh?,r'Back\\\slashes?!, she said.', [4,5,6]] Commas can be embedded in strings,

Re: unpack('f', b'\x00\x01\x00\x00')

2011-11-30 Thread kuaile xu
On Nov 30, 6:02 pm, Chris Rebert c...@rebertia.com wrote: On Wed, Nov 30, 2011 at 2:24 PM, kuaile xu kuaile...@gmail.com wrote: Hi: I am working on a python script that parses mp4 video header. Once of the field is a 32-bit fixed-point number. I know that the four bytes are: 00, 01, 00,

Re: unpack('f', b'\x00\x01\x00\x00')

2011-11-30 Thread Ian Kelly
On Wed, Nov 30, 2011 at 3:24 PM, kuaile xu kuaile...@gmail.com wrote: Hi: I am working on a python script that parses mp4 video header. Once of the field is a 32-bit fixed-point number. I know that the four bytes are: 00, 01, 00, 00. I have a third party mp4 parsing program which displays

Re: Need some IPC pointers

2011-11-30 Thread Chris Angelico
On Thu, Dec 1, 2011 at 8:03 AM, Andrew Berg bahamutzero8...@gmail.com wrote: processes (that aren't necessarily written in Python) ... non-local processes would be nice ... The implementation needs to be cross-platform ... I don't think I'll ever need to transfer anything complicated or large

Clever hack or code abomination?

2011-11-30 Thread Roy Smith
I need to try a bunch of names in sequence until I find one that works (definition of works is unimportant). The algorithm is: 1) Given a base name, foo, first see if just plain foo works. 2) If not, try foo-1, foo-2, and so on 3) If you reach foo-20, give up. What would you say if you saw

Re: Clever hack or code abomination?

2011-11-30 Thread Steven D'Aprano
On Wed, 30 Nov 2011 22:15:27 -0500, Roy Smith wrote: I need to try a bunch of names in sequence until I find one that works (definition of works is unimportant). The algorithm is: 1) Given a base name, foo, first see if just plain foo works. 2) If not, try foo-1, foo-2, and so on 3)

Re: How convert a list string to a real list

2011-11-30 Thread Steven D'Aprano
On Wed, 30 Nov 2011 17:12:10 -0500, Terry Reedy wrote: I think it would be better if safe_eval were available as an easily accessible builtin and dangerous_eval were tucked away in a module ;-). +10 -- Steven -- http://mail.python.org/mailman/listinfo/python-list

Re: Clever hack or code abomination?

2011-11-30 Thread Matt Joiner
def possible_names(): yield foo for i in range(20): yield foo- + str(i) ಠ_ಠ On Thu, Dec 1, 2011 at 2:15 PM, Roy Smith r...@panix.com wrote: I need to try a bunch of names in sequence until I find one that works (definition of works is unimportant).  The algorithm is: 1) Given

Disable readline

2011-11-30 Thread Steven D'Aprano
Is there a way to disable readline support in the interactive interpreter at runtime? Either from within an existing session, or when the session starts up will do. I am trying to test the behaviour of some interactive scripts which rely on readline. I have work-arounds for missing readline

Re: How convert a list string to a real list

2011-11-30 Thread Ben Finney
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: On Wed, 30 Nov 2011 17:12:10 -0500, Terry Reedy wrote: I think it would be better if safe_eval were available as an easily accessible builtin and dangerous_eval were tucked away in a module ;-). +10 You do realise that any

Re: How convert a list string to a real list

2011-11-30 Thread Alec Taylor
Dammit, been awake too long researching on the Internet, but I finally reached the Last Page On Thu, Dec 1, 2011 at 3:25 PM, Ben Finney ben+pyt...@benfinney.id.au wrote: Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: On Wed, 30 Nov 2011 17:12:10 -0500, Terry Reedy wrote: I

Re: Need some IPC pointers

2011-11-30 Thread Alec Taylor
Sure, I'll give you some pointers: 0x3A28213A 0x6339392C 0x7363682E -- http://mail.python.org/mailman/listinfo/python-list

Re: Disable readline

2011-11-30 Thread Roy Smith
In article 4ed6ffed$0$29986$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Is there a way to disable readline support in the interactive interpreter at runtime? Either from within an existing session, or when the session starts up will do.

Re: Need some IPC pointers

2011-11-30 Thread Roy Smith
In article mailman.3188.1322714125.27778.python-l...@python.org, Alec Taylor alec.tayl...@gmail.com wrote: Sure, I'll give you some pointers: 0x3A28213A 0x6339392C 0x7363682E What, no 0xDEADBEEF ??? -- http://mail.python.org/mailman/listinfo/python-list

Re: Need some IPC pointers

2011-11-30 Thread Alec Taylor
:P On Thu, Dec 1, 2011 at 4:02 PM, Roy Smith r...@panix.com wrote: In article mailman.3188.1322714125.27778.python-l...@python.org,  Alec Taylor alec.tayl...@gmail.com wrote: Sure, I'll give you some pointers: 0x3A28213A 0x6339392C 0x7363682E What, no 0xDEADBEEF ??? --

Re: Python crashes on segmentation error

2011-11-30 Thread rusi
On Dec 1, 3:29 am, Terry Reedy tjre...@udel.edu wrote: On 11/30/2011 7:58 AM, Christian Heimes wrote: Am 30.11.2011 11:42, schrieb Ben Richardson: Python crashes every time i run the following command… import cv Segmentation fault: 11 Python quit unexpectedly - any help would

Re: Need some IPC pointers

2011-11-30 Thread Andrew Berg
On 11/30/2011 10:35 PM, Alec Taylor wrote: Sure, I'll give you some pointers: I almost rephrased the subject line because I knew someone would make that joke. :P -- CPython 3.2.2 | Windows NT 6.1.7601.17640 | Thunderbird 7.0 -- http://mail.python.org/mailman/listinfo/python-list

Re: Disable readline

2011-11-30 Thread Steven D'Aprano
On Thu, 01 Dec 2011 00:00:52 -0500, Roy Smith wrote: Another possibility is setting your TERM environment variable to something that readline can't support: ~$ TERM=asr33 ~$ python Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type help,

Re: Python, django datetime to string conversation helper

2011-11-30 Thread Казбек
On 1 дек, 11:03, Казбек nmb@gmail.com wrote: Online tool allows to select datetime to string format directives quickly and to check result. Sorry, here is the link. http://datetostr.org -- http://mail.python.org/mailman/listinfo/python-list

[issue13506] IDLE sys.path does not contain Current Working Directory

2011-11-30 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: +1 The proposed patch works as described. I do agree with Marco that IDLE does need some more QA. -- nosy: +serwy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13506

[issue13471] setting access time beyond Jan. 2038 on remote share failes on Win7 x64

2011-11-30 Thread Thorsten Simons
Thorsten Simons t...@snomis.de added the comment: Gentlemen, thank you for your contribution - the information about the Samba fix solved the problem! -- resolution: - works for me status: open - closed ___ Python tracker rep...@bugs.python.org

[issue13471] setting access time beyond Jan. 2038 on remote share failes on Win7 x64

2011-11-30 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- resolution: works for me - invalid stage: - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13471 ___

[issue13504] Meta-issue for Invent with Python IDLE feedback

2011-11-30 Thread Ned Deily
Ned Deily n...@acm.org added the comment: #10364 covers point 7 (make .py default added extension on save) -- dependencies: +IDLE: make .py default added extension on save nosy: +ned.deily ___ Python tracker rep...@bugs.python.org

[issue13507] Modify OS X installer builds to package liblzma for the new lzma module

2011-11-30 Thread Ned Deily
New submission from Ned Deily n...@acm.org: Since AFAIK Apple does not currently ship a version of liblzma with Mac OS X, the OS X installer build script should be modified to build and link a version in support of the new lzma module (Issue6715). Mac/BuildScript/build-installer.py

[issue6715] xz compressor support

2011-11-30 Thread Ned Deily
Ned Deily n...@acm.org added the comment: I've opened Issue13507 to track adding liblzma to the OS X installer builds. -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715

[issue13097] ctypes: segfault with large number of callback arguments

2011-11-30 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13097 ___ ___

[issue13097] ctypes: segfault with large number of callback arguments

2011-11-30 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Right, alloca() could be replaced by some malloc(), but is it really useful? After all, when a C function calls back to Python, all arguments needs to be pushed to the stack anyway. -- ___

[issue9116] test_capi.test_no_FatalError_infinite_loop crash on Windows

2011-11-30 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9116 ___ ___

[issue7652] Merge C version of decimal into py3k.

2011-11-30 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Just to clarify, no decision has yet been made on *whether* the cdecimal work should be integrated into py3k; we'll consult python-dev on this once we've got a working branch and performance information. So, what is the status

[issue13493] Import error with embedded python on AIX 6.1

2011-11-30 Thread python_hu
python_hu nari...@163.com added the comment: Thank Amaury,you are right. So python2.7 share library compile finished,and python2.7 works,and then I write a test program,to test libpython2.7.so share library,but it dumped! code: --- #include stdio.h^M #include Python.h^M

[issue13504] Meta-issue for Invent with Python IDLE feedback

2011-11-30 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berkerpeksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13504 ___ ___

[issue13493] Import error with embedded python on AIX 6.1

2011-11-30 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: dlopen(/usr/local/lib/python2.6/lib-dynload/time.so, 2); You are trying to open a .so from another Python installation. It won't work: it is certainly linked to another Python VM, which is not initialized. --

[issue7652] Merge C version of decimal into py3k.

2011-11-30 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Does Python really need yet another multiprecision library? It's not really another library: it's a reimplementation of the existing decimal library in C. The decimal library is *hugely* valuable to the financial world, but its slowness

[issue11732] Skip decorator for tests requiring manual intervention on Windows

2011-11-30 Thread Sébastien Sablé
Changes by Sébastien Sablé sa...@users.sourceforge.net: -- nosy: +sable ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11732 ___ ___

[issue6715] xz compressor support

2011-11-30 Thread Per Øyvind Karlsen
Per Øyvind Karlsen peroyv...@mandriva.org added the comment: Ah, I thought that he had reused most of the original C code in _lzmamodule.c not replaced by python code, but I see that not being the case now (only slight fragments;). Oh well, I thought that I'd still earned a note with some

[issue7833] bdist_wininst installers fail to load extensions built with Issue4120 patch

2011-11-30 Thread Sébastien Sablé
Changes by Sébastien Sablé sa...@users.sourceforge.net: -- nosy: +sable ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7833 ___ ___

[issue6715] xz compressor support

2011-11-30 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Oh well, I thought that I'd still earned a note with some slight credit at least I completely agree. Sometimes people get credit for simple bug fixes (count me among them) so the author of the first working implementation deserves

[issue13504] Meta-issue for Invent with Python IDLE feedback

2011-11-30 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: #2704 covers point 1 (In the shell window, if you click anywhere but on the current line and move the cursor there, the window stops handling key strokes.) #3851 covers point 1.1) Pressing the Home key moves the cursor before the prompt,

[issue13508] ctypes' find_library breaks with ARM ABIs

2011-11-30 Thread Loïc Minier
New submission from Loïc Minier l...@dooz.org: Hi, This bug was originally reported at https://bugs.launchpad.net/bugs/898172 ctypes/utils.py provides a find_library function which amongst other things will scan the ldconfig -p output on linux to find libraries by name. It applies some

[issue13508] ctypes' find_library breaks with ARM ABIs

2011-11-30 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- nosy: +meador.inge stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13508 ___ ___

[issue13508] ctypes' find_library breaks with ARM ABIs

2011-11-30 Thread Loïc Minier
Changes by Loïc Minier l...@dooz.org: -- keywords: +patch Added file: http://bugs.python.org/file23817/ctypes-arm.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13508 ___

[issue13508] ctypes' find_library breaks with ARM ABIs

2011-11-30 Thread Loïc Minier
Loïc Minier l...@dooz.org added the comment: While I'm at it, find_library also tries creating temp files when running gcc and other issues mention trouble running gcc or propose running ld: http://bugs.python.org/issue9998 http://bugs.python.org/issue5289 IMHO, calling binutils/gcc is

[issue6715] xz compressor support

2011-11-30 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Nadeem: Instead of duplicating the list of archiving/compression modules in each doc, what about only linking to the shutil doc for archives and the archiving.rst file? (I can make the patch, just wanted feedback first) --

[issue6715] xz compressor support

2011-11-30 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Not meaning to sound petty, but wouldn't it be common etiquette to retain some original copyright notice from original code intact..? It seemed to me that Nadeem had rewritten everything from scratch. Is there any code of yours in the

[issue5411] add xz compression support to shutil

2011-11-30 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: distutils2/packaging now just uses the shutil functions. I’ll make a patch for shutil after tarfile is updated. -- assignee: tarek - eric.araujo components: +Library (Lib) -Distutils2 title: add xz compression support to distutils - add

[issue5689] Support xz compression in tarfile module

2011-11-30 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Python now has an lzma module. Lars, do you have the time to update your patch or should I do it? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5689

[issue6715] xz compressor support

2011-11-30 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Instead of duplicating the list of archiving/compression modules in each doc, what about only linking to the shutil doc for archives and the archiving.rst file? Sure, go ahead. I actually hadn't realized that each section of the library

[issue5411] add xz compression support to shutil

2011-11-30 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: -- nosy: +nadeem.vawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5411 ___ ___ Python-bugs-list

[issue12832] The documentation for the print function should explain/point to how to control the sys.stdout encoding

2011-11-30 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks. Here’s another take: I think the wording is better, but it’s longer. I removed the reference to sys.stdin, which you don’t print to: I haven’t checked if the doc for the input function should talk about the encoding too. --

[issue13210] Support Visual Studio 2010

2011-11-30 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: Again, rather than work off of the default branch and duplicate effort, can you work off of the vs2010 branch on http://hg.python.org/sandbox/vs2010port/? -- ___ Python tracker rep...@bugs.python.org

[issue13210] Support Visual Studio 2010

2011-11-30 Thread Sébastien Sablé
Sébastien Sablé sa...@users.sourceforge.net added the comment: I have started working on python default branch. My patch queue is available here: https://bitbucket.org/sablefr/py3kvs2010/ The result is the following so far: 323 tests OK. 8 tests failed: test_distutils test_fileio

[issue11610] Improved support for abstract base classes with descriptors

2011-11-30 Thread Darren Dale
Darren Dale dsdal...@gmail.com added the comment: Here is a new patch addressing comments raised in review. It supersedes previous patch submissions. -- Added file: http://bugs.python.org/file23819/abc_descriptor.patch ___ Python tracker

[issue12014] str.format parses replacement field incorrectly

2011-11-30 Thread Ben Wolfson
Ben Wolfson wolf...@gmail.com added the comment: All three patches look different to me. Yeah, I verified that later; I'm not sure what made me think otherwise except that I eyeballed them sloppily. (It's still true that they'd need to target a different file for 3.3 now.) --

[issue6715] xz compressor support

2011-11-30 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: --- a/Misc/NEWS +++ b/Misc/NEWS @@ -400,6 +400,7 @@ --- - Issue #6715: Add a module 'lzma' for compression using the LZMA algorithm. + Thanks to Per Øyvind Karlsen for the initial implementation. The entry in

[issue7652] Merge C version of decimal into py3k.

2011-11-30 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Binary versus decimal - There is already gmpy and bigfloat, based on the heavily optimized GMP library, for example. Is it a license issue? Can't we reuse GMP/MPFR to offer a Decimal API? _decimal is a PEP-399

[issue6715] xz compressor support

2011-11-30 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: what about a mention in lzmamodule.c? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715 ___

  1   2   >