virtualenvwrapper-powershell - new version

2011-08-28 Thread guillermooo
http://pypi.python.org/pypi/virtualenvwrapper-powershell/11.8.28 As of this version, virtualenvwrapper-powershell is a clone of Doug Hellmann's virtualenvwrapper. It has virtually no Python code and shares no code with the original. This is a beta release. If you were following the BitBucket

PySPH 0.9beta release

2011-08-28 Thread Prabhu Ramachandran
Hi, We are pleased to announce a 0.9beta release of PySPH. This is our first public release. PySPH (http://pysph.googlecode.com) is an open source framework for Smoothed Particle Hydrodynamics (SPH) simulations. It is implemented in Python and the performance critical parts are implemented

Re: Python IDE/Eclipse

2011-08-28 Thread flebber
On Aug 27, 6:34 pm, UncleLaz andrei.lis...@gmail.com wrote: On Aug 26, 5:18 pm, Dave Boland dbola...@fastmail.fm wrote: I'm looking for a good IDE -- easy to setup, easy to use -- for Python.   Any suggestions? I use Eclipse for other projects and have no problem with using it for

On re / regex replacement

2011-08-28 Thread jmfauth
There is actually a discussion on the dev-list about the replacement of re by regex. I'm not a regular expressions specialist, neither a regex user. However, there is in regex a point that is a little bit disturbing me. The regex module proposes a flag to select the coding (wrong word, just to

Re: Record seperator

2011-08-28 Thread greymaus
On 2011-08-27, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: greymaus wrote: On 2011-08-26, D'Arcy J.M. Cain da...@druid.net wrote: On 26 Aug 2011 18:39:07 GMT greymaus greyma...@mail.com wrote: Is there an equivelent for the AWK RS in Python? as in RS='\n\n' will

inpipe and outpipe (and other useful functions)

2011-08-28 Thread Ole Martin Bjørndalen
Hi! Please excuse me if this i common knowledge, or if I've one again re-implemented something that turned out to be in the standard library, but I think I came up with something rather neat. I'm writing a lot of programs that call external programs, and as much as I love subproces.Popen, I do

pyzmail-0.9.0: high level mail library to read, write and send emails easily

2011-08-28 Thread aspineux
Python easy mail library pyzmail is a high level mail library for Python. It provides functions and classes that help to read, compose and send emails. pyzmail exists because their is no reasons that handling mails with Python would be more difficult than with popular mail clients like Outlook or

Re: Python IDE/Eclipse

2011-08-28 Thread Alec Taylor
Editra On Sun, Aug 28, 2011 at 5:56 PM, flebber flebber.c...@gmail.com wrote: On Aug 27, 6:34 pm, UncleLaz andrei.lis...@gmail.com wrote: On Aug 26, 5:18 pm, Dave Boland dbola...@fastmail.fm wrote: I'm looking for a good IDE -- easy to setup, easy to use -- for Python.   Any

Re: On re / regex replacement

2011-08-28 Thread Vlastimil Brom
2011/8/28 jmfauth wxjmfa...@gmail.com: There is actually a discussion on the dev-list about the replacement of re by regex. ... If I can undestand the ASCII flag, ASCII being the lingua franca of almost all codings, I am more skeptical about the LOCALE/UNICODE flags. There is in my mind

Re: Why do closures do this?

2011-08-28 Thread Thomas Jollans
On 28/08/11 05:45, John O'Hagan wrote: Somewhat apropos of the recent function principle thread, I was recently surprised by this: funcs=[] for n in range(3): def f(): return n funcs.append(f) [i() for i in funcs] The last expression, IMO surprisingly, is [2,2,2],

Re: Why do closures do this?

2011-08-28 Thread Terry Reedy
On 8/28/2011 10:04 AM, Thomas Jollans wrote: This does not do what you'd like it to do. But let's assume that, it did, that Python, when encountering a function definition inside a function, froze the values of nonlocal variables used in the new function, from the point of view of that function

about if __name == '__main__':

2011-08-28 Thread Amit Jaluf
hello group i have one question about this if __name == '__main__': is it same as other languages like[c,c++] main function. because of i google and read faqs and also http://docs.python.org/faq/programming#how-do-i-find-the-current-module-name; this and i am confused. thanks --

Re: Understanding .pth files

2011-08-28 Thread Ian Kelly
On Sat, Aug 27, 2011 at 10:42 AM, Josh English joshua.r.engl...@gmail.com wrote: According to the docs, I should be able to put a file in the site-packages directory called xmldb.pth pointing anywhere else on my drive to include the package. I'd like to use this to direct Python to include

Re: about if __name == '__main__':

2011-08-28 Thread Ian Kelly
On Sun, Aug 28, 2011 at 9:34 AM, Amit Jaluf amitja...@gmail.com wrote: hello group i have one question about this if __name == '__main__': First, it should be: if __name__ == '__main__': is it same as other languages like[c,c++]  main function. because of i google and read faqs and also

A question about class as an iterator

2011-08-28 Thread Yaşar Arabacı
Hi, I got confused about classes as an iterator. I saw something like this: class foo(): __iter__(self): return self next(self): return something But then I saw a __next__ method on some code. So what is the deal, which one should I use and what is the difference? --

Re: On re / regex replacement

2011-08-28 Thread MRAB
On 28/08/2011 14:40, Vlastimil Brom wrote: 2011/8/28 jmfauthwxjmfa...@gmail.com: There is actually a discussion on the dev-list about the replacement of re by regex. ... If I can undestand the ASCII flag, ASCII being the lingua franca of almost all codings, I am more skeptical about the

Re: about if __name == '__main__':

2011-08-28 Thread woooee
Two main routines, __main__ and main(), is not the usual or the common way to do it. It is confusing and anyone looking at the end of the program for statements executed when the program is called will find an isolated call to main(), and then have to search the program for the statements that

Re: Processing a large string

2011-08-28 Thread Paul Rudin
goldtech goldt...@worldpost.com writes: Hi, Say I have a very big string with a pattern like: akakksssk3dhdhdhdbddb3dkdkdkddk3dmdmdmd3dkdkdkdk3asnsn. I want to split the sting into separate parts on the 3 and process each part separately. I might run into memory limitations if I use

Fwd: Processing a large string

2011-08-28 Thread Yaşar Arabacı
-- Yönlendirilmiş ileti -- Kimden: Yaşar Arabacı yasar11...@gmail.com Tarih: 28 Ağustos 2011 22:51 Konu: Re: Processing a large string Kime: Paul Rudin paul.nos...@rudin.co.uk Are you getting Overflow error or memory error? If you don't know what those means: Overflow error

Re: Why do closures do this?

2011-08-28 Thread Carl Banks
On Saturday, August 27, 2011 8:45:05 PM UTC-7, John O#39;Hagan wrote: Somewhat apropos of the recent function principle thread, I was recently surprised by this: funcs=[] for n in range(3): def f(): return n funcs.append(f) [i() for i in funcs] The last expression,

Checking Signature of Function Parameter

2011-08-28 Thread Travis Parks
I am trying to write an algorithms library in Python. Most of the functions will accept functions as parameters. For instance, there is a function called any: def any(source, predicate): for item in source: if predicate(item): return true; return false; There are some

Re: A question about class as an iterator

2011-08-28 Thread Terry Reedy
On 8/28/2011 1:22 PM, Yaşar Arabacı wrote: I got confused about classes as an iterator. I saw something like this: class foo(): __iter__(self): return self next(self): return something 2.x But then I saw a __next__ method on some code. 3.x This might work in

Re: Checking Signature of Function Parameter

2011-08-28 Thread Chris Angelico
On Mon, Aug 29, 2011 at 7:20 AM, Travis Parks jehugalea...@gmail.com wrote: if source is None: raise ValueError() if not isinstanceof(source, collections.iterable): raise TypeError() if not callable(predicate): raise TypeError() Easier: Just ignore the possibilities of failure and carry on

Re: about if __name == '__main__':

2011-08-28 Thread Terry Reedy
On 8/28/2011 2:56 PM, woooee wrote: Two main routines, __main__ and main(), '__main__' in not a routine, it is the name of the initial module. is not the usual or the common way to do it. It is confusing and anyone looking at the end of the program for statements executed when the program

Re: Why PyImport_ExecCodeModule takes char*?

2011-08-28 Thread Tim Roberts
Mateusz Loskot mate...@loskot.net wrote: I'm wondering, why PyImport_ExecCodeModule function takes char* instead of const char*? My guess is history. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: about if __name == '__main__':

2011-08-28 Thread Ian Kelly
On Sun, Aug 28, 2011 at 12:56 PM, woooee woo...@gmail.com wrote: Two main routines, __main__ and main(), is not the usual or the common way to do it.  It is confusing and anyone looking at the end of the program for statements executed when the program is called will find an isolated call to

Re: about if __name == '__main__':

2011-08-28 Thread Cameron Simpson
On 28Aug2011 11:56, woooee woo...@gmail.com wrote: | Two main routines, __main__ and main(), is not the usual or the common | way to do it. It is confusing and anyone looking at the end of the | program for statements executed when the program is called will find | an isolated call to main(), and

Re: Why PyImport_ExecCodeModule takes char*?

2011-08-28 Thread Terry Reedy
On 8/28/2011 6:52 PM, Tim Roberts wrote: Mateusz Loskotmate...@loskot.net wrote: I'm wondering, why PyImport_ExecCodeModule function takes char* instead of const char*? My guess is history. I believe some const tags have been added over the last few years. Another factory than mere

Unpickle error -- object has no attribute ....

2011-08-28 Thread luvspython
I have an application that needs to keep a history of the values of several attributes of each of many instances of many classes. The history-keeping logic is in a helper class, HistoryKeeper, that's inherited by classes like Vehicle in the example below. Pickling an instance of Vehicle works,

Re: Checking Signature of Function Parameter

2011-08-28 Thread Travis Parks
On Aug 28, 5:31 pm, Chris Angelico ros...@gmail.com wrote: On Mon, Aug 29, 2011 at 7:20 AM, Travis Parks jehugalea...@gmail.com wrote: if source is None: raise ValueError() if not isinstanceof(source, collections.iterable): raise TypeError() if not callable(predicate): raise TypeError()

Re: Checking Signature of Function Parameter

2011-08-28 Thread Chris Angelico
On Mon, Aug 29, 2011 at 10:20 AM, Travis Parks jehugalea...@gmail.com wrote: Maybe I should give up on it, like you said. I am still familiarizing myself with the paradigm. I want to make sure I am developing code that is consistent with the industry standards. In Python, the industry

Why I need the parameter when the call doesn't use it?

2011-08-28 Thread Niklas Rosencrantz
I modularize code for a webapp and I want to know what python makes that a need to define an argument called self? Here's some code where I'm modularizing a recaptcha test to a function and the I must add the parameter self to the function is_submitter_human: class A(BaseHandler,

Some problems refer to install 3rd party package of Python on mac OS 10.6.8

2011-08-28 Thread Gee Chen
-- the Python environment on my mac is: Python 2.6.4 (r264:75706, Aug 28 2011, 22:29:24) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5664) Copyright (C) 2007 Free Software Foundation, Inc.

Re: Checking Signature of Function Parameter

2011-08-28 Thread Ian Kelly
On Sun, Aug 28, 2011 at 3:20 PM, Travis Parks jehugalea...@gmail.com wrote: I am trying to write an algorithms library in Python. Most of the functions will accept functions as parameters. For instance, there is a function called any: def any(source, predicate):    for item in source:      

Re: Some problems refer to install 3rd party package of Python on mac OS 10.6.8

2011-08-28 Thread Chris Rebert
On Sun, Aug 28, 2011 at 5:35 PM, Gee Chen cnche...@gmail.com wrote: -- the Python environment on my mac is: Python 2.6.4 (r264:75706, Aug 28 2011, 22:29:24) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin For future reference, when on OS X, it's very helpful to

Re: Checking Signature of Function Parameter

2011-08-28 Thread Chris Rebert
On Sun, Aug 28, 2011 at 2:20 PM, Travis Parks jehugalea...@gmail.com wrote: I am trying to write an algorithms library in Python. Most of the functions will accept functions as parameters. For instance, there is a function called any: def any(source, predicate):    for item in source:      

killing a script

2011-08-28 Thread Russ P.
I have a Python (2.6.x) script on Linux that loops through many directories and does processing for each. That processing includes several os.system calls for each directory (some to other Python scripts, others to bash scripts). Occasionally something goes wrong, and the top-level script just

Re: Why I need the parameter when the call doesn't use it?

2011-08-28 Thread Ben Finney
Niklas Rosencrantz nikla...@gmail.com writes: I modularize code for a webapp and I want to know what python makes that a need to define an argument called self? Because, when calling a method on an instance, the instance is a parameter to the call. That is, foo = Thribble()

Re: [Python] Why I need the parameter when the call doesn't use it?

2011-08-28 Thread Chris Gonnerman
On 08/28/2011 07:26 PM, Niklas Rosencrantz wrote: I modularize code for a webapp and I want to know what python makes that a need to define an argument called self? Here's some code where I'm modularizing a recaptcha test to a function and the I must add the parameter self to the function

Button Label change on EVT_BUTTON in wxpython!!!

2011-08-28 Thread Ven
Some system info before proceeding further: Platform: Mac OS X 10.7.1 Python Version: ActiveState Python 2.7.1 wxPython Version: [url=http://downloads.sourceforge.net/wxpython/ wxPython2.9-osx-2.9.2.1-cocoa-py2.7.dmg]wxPython2.9-osx-cocoa-py2.7[/ url] I want the button label to be changed while

Re: Why I need the parameter when the call doesn't use it?

2011-08-28 Thread Chris Rebert
On Sun, Aug 28, 2011 at 5:26 PM, Niklas Rosencrantz nikla...@gmail.com wrote: I modularize code for a webapp and I want to know what python makes that a need to define an argument called self? Here's some code where I'm modularizing a recaptcha test to a function and the I must add the

Re: killing a script

2011-08-28 Thread MRAB
On 29/08/2011 02:15, Russ P. wrote: I have a Python (2.6.x) script on Linux that loops through many directories and does processing for each. That processing includes several os.system calls for each directory (some to other Python scripts, others to bash scripts). Occasionally something goes

Re: Button Label change on EVT_BUTTON in wxpython!!!

2011-08-28 Thread Philip Semanchuk
On Aug 28, 2011, at 9:30 PM, Ven wrote: Some system info before proceeding further: Platform: Mac OS X 10.7.1 Python Version: ActiveState Python 2.7.1 wxPython Version: [url=http://downloads.sourceforge.net/wxpython/ wxPython2.9-osx-2.9.2.1-cocoa-py2.7.dmg]wxPython2.9-osx-cocoa-py2.7[/

Re: [Python] Why I need the parameter when the call doesn't use it?

2011-08-28 Thread Ben Finney
Chris Gonnerman ch...@gonnerman.org writes: On 08/28/2011 07:26 PM, Niklas Rosencrantz wrote: class A(BaseHandler, blobstore_handlers.BlobstoreUploadHandler): def is_submitter_human(self): is_submitter_human() isn't a function, it's a method. No, that's not true and may lead to

Re: killing a script

2011-08-28 Thread Russ P.
On Aug 28, 6:52 pm, MRAB pyt...@mrabarnett.plus.com wrote: On 29/08/2011 02:15, Russ P. wrote: I have a Python (2.6.x) script on Linux that loops through many directories and does processing for each. That processing includes several os.system calls for each directory (some to other Python

Re: killing a script

2011-08-28 Thread Chris Angelico
On Mon, Aug 29, 2011 at 12:41 PM, Russ P. russ.paie...@gmail.com wrote: On Aug 28, 6:52 pm, MRAB pyt...@mrabarnett.plus.com wrote: You could look at the return value of os.system, which may tell you the exit status of the process. Thanks for the suggestion. Yeah, I guess I could do that, but

Re: killing a script

2011-08-28 Thread Paul Rubin
Russ P. russ.paie...@gmail.com writes: Thanks for the suggestion. Yeah, I guess I could do that, but it seems that there should be a simpler way to just kill the whole enchilada. Hitting Control-C over and over is a bit like whacking moles. Hit Ctrl-Z, which stops execution of the subprogram

Re: [ANN] Oktest 0.9.0 released - a new-style testing library

2011-08-28 Thread Makoto Kuwata
I published presentation slide about Oktest. If you have interested in testing, check it out. http://www.slideshare.net/kwatch/oktest-a-new-style-testing-library-for-python -- regards, makoto kuwata On Sat, Aug 27, 2011 at 9:37 PM, Makoto Kuwata k...@kuwata-lab.com wrote: Hi, I released

Re: killing a script

2011-08-28 Thread Russ P.
On Aug 28, 7:51 pm, Chris Angelico ros...@gmail.com wrote: On Mon, Aug 29, 2011 at 12:41 PM, Russ P. russ.paie...@gmail.com wrote: On Aug 28, 6:52 pm, MRAB pyt...@mrabarnett.plus.com wrote: You could look at the return value of os.system, which may tell you the exit status of the process.

Re: killing a script

2011-08-28 Thread Chris Rebert
On Sun, Aug 28, 2011 at 8:08 PM, Russ P. russ.paie...@gmail.com wrote: On Aug 28, 7:51 pm, Chris Angelico ros...@gmail.com wrote: On Mon, Aug 29, 2011 at 12:41 PM, Russ P. russ.paie...@gmail.com wrote: On Aug 28, 6:52 pm, MRAB pyt...@mrabarnett.plus.com wrote: You could look at the return

Re: killing a script

2011-08-28 Thread Russ P.
On Aug 28, 8:16 pm, Chris Rebert c...@rebertia.com wrote: On Sun, Aug 28, 2011 at 8:08 PM, Russ P. russ.paie...@gmail.com wrote: On Aug 28, 7:51 pm, Chris Angelico ros...@gmail.com wrote: On Mon, Aug 29, 2011 at 12:41 PM, Russ P. russ.paie...@gmail.com wrote: On Aug 28, 6:52 pm, MRAB

Re: Why I need the parameter when the call doesn't use it?

2011-08-28 Thread John Gordon
In 66a3f64c-d35e-40c7-be69-ddf708e37...@glegroupsg2000goo.googlegroups.com Niklas Rosencrantz nikla...@gmail.com writes: What's the story of using these parameters that are called self? self is a reference to the class object, and it allows the method to access other methods and variables

Re: about if __name == '__main__':

2011-08-28 Thread Amit Jaluf
On Aug 28, 12:51 pm, Ian Kelly ian.g.ke...@gmail.com wrote: On Sun, Aug 28, 2011 at 9:34 AM, Amit Jaluf amitja...@gmail.com wrote: hello group i have one question about this if __name == '__main__': sorry dear for this and thanks all of you for this --

Re: packaging a python application

2011-08-28 Thread anand jeyahar
Hi all, This is interesting. Do we have the distribute/setuptools equivalent of postinstall (with ncurses interface) from Debian? My limited foray into setuptools, indicate it doesn't have . Is it a planned feature either? i would like to contribute in that case.

Re: [Python] Why I need the parameter when the call doesn't use it?

2011-08-28 Thread Steven D'Aprano
On Mon, 29 Aug 2011 12:34 pm Ben Finney wrote: Chris Gonnerman ch...@gonnerman.org writes: On 08/28/2011 07:26 PM, Niklas Rosencrantz wrote: class A(BaseHandler, blobstore_handlers.BlobstoreUploadHandler): def is_submitter_human(self): is_submitter_human() isn't a function, it's a

Interact with SQL Database using Python 2.4 or lower

2011-08-28 Thread Sascha
Hello I have an website on an Australian webhost. I have designed my website to allow people to login their login details are stored in an SQLite3 database. I interact with the SQLite3 database using pythons SQLite3 module(found only in python2.5 up) My Problem: the webhost runs Python 2.4 so

Re: Interact with SQL Database using Python 2.4 or lower

2011-08-28 Thread Stephen Hansen
On 8/28/11 9:49 PM, Sascha wrote: My Problem: the webhost runs Python 2.4 so I cannot communicate with(query or modify) my SQLite3 database. The webhost will not allow me to install my own version of python or upload modules unless I upgrade to VPS. Get a new webhost. Seriously. This is a

Re: Interact with SQL Database using Python 2.4 or lower

2011-08-28 Thread Chris Angelico
On Mon, Aug 29, 2011 at 3:09 PM, Stephen Hansen me+list/pyt...@ixokai.io wrote: Get a new webhost. ... But I don't know if they have a warehouse in Australia, if their latency with any of their various data centers is suitable for you. Maybe, maybe not -- but there /has/ to be a better option

Re: Interact with SQL Database using Python 2.4 or lower

2011-08-28 Thread Stephen Hansen
On 8/28/11 10:23 PM, Chris Angelico wrote: On Mon, Aug 29, 2011 at 3:09 PM, Stephen Hansen me+list/pyt...@ixokai.io wrote: Get a new webhost. ... But I don't know if they have a warehouse in Australia, if their latency with any of their various data centers is suitable for you. Maybe, maybe

Re: On re / regex replacement

2011-08-28 Thread jmfauth
On 28 août, 20:40, MRAB pyt...@mrabarnett.plus.com wrote: ... The regex module tries to be drop-in compatible. It supports the LOCALE flag only because the re module has it. Even Perl has something similar. ... Ok. That's quite logical. jmf --

Web hosting when you need to install your own modules (was Re: Interact with SQL Database using Python 2.4 or lower)

2011-08-28 Thread Chris Angelico
On Mon, Aug 29, 2011 at 3:39 PM, Stephen Hansen me+list/pyt...@ixokai.io wrote: Just don't get too tied to a certain host until you feel them out. Sending them emails with detailed questions before you sign up is a good thing, for example. That helps a lot, but the problems I had with my most

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2011-08-28 Thread Steven D'Aprano
Steven D'Aprano steve+pyt...@pearwood.info added the comment: I'm not sure if this belongs here, or on the Google code project page, so I'll add it in both places :) Feature request: please change the NEW flag to something else. In five or six years (give or take), the re module will be long

[issue12731] python lib re uses obsolete sense of \w in full violation of UTS#18 RL1.2a

2011-08-28 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Or the re module should be *replaced* by the code from the regex module (but renamed to re, and with certain backwards compatibilities restored, probably). This is what I meant. But I really hope the re module (really: the _sre

[issue12731] python lib re uses obsolete sense of \w in full violation of UTS#18 RL1.2a

2011-08-28 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: But I really hope the re module (really: the _sre extension module) can be fixed. If you mean on 2.7/3.2, then I guess we could extract the fixes from regex, but we have to see if it's doable and someone will have to do it. Also

[issue12839] zlibmodule cannot handle Z_VERSION_ERROR zlib error

2011-08-28 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset ba5000307b5d by Nadeem Vawda in branch '2.7': Issue #12839: Fix crash in zlib module due to version mismatch. http://hg.python.org/cpython/rev/ba5000307b5d New changeset cc9e794bf94f by Nadeem Vawda in branch '3.2':

[issue12759] (?P=) input for Tools/scripts/redemo.py raises unnhandled exception

2011-08-28 Thread Alexander
Alexander fred...@mail.ru added the comment: I would like to make a patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12759 ___ ___

[issue12720] Expose linux extended filesystem attributes

2011-08-28 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: And here is the next version, taking into account neologix's review. -- Added file: http://bugs.python.org/file23056/xattrs.patch ___ Python tracker rep...@bugs.python.org

[issue12287] ossaudiodev: stack corruption with FD = FD_SETSIZE

2011-08-28 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset ff6adb867f40 by Charles-François Natali in branch '2.7': Issue #12287: Fix a stack corruption in ossaudiodev module when the FD is http://hg.python.org/cpython/rev/ff6adb867f40 --

[issue12287] ossaudiodev: stack corruption with FD = FD_SETSIZE

2011-08-28 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: The _socket module doesn't compile anymore on Windows: Build started: Project: _socket, Configuration: Debug|Win32 Compiling... socketmodule.c 29..\Modules\socketmodule.c(1649) : warning C4013: '_PyIsSelectable_fd' undefined;

[issue12287] ossaudiodev: stack corruption with FD = FD_SETSIZE

2011-08-28 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: STINNER Victor victor.stin...@haypocalc.com added the comment: The _socket module doesn't compile anymore on Windows: Fixed (that's why I wanted a Windows expert to have a look at this patch :-). You might replace #if

[issue12837] Patch for issue #12810 removed a valid check on socket ancillary data

2011-08-28 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: That has since been changed. I'm reading from POSIX.1-2008, which says: I see. The warning against using values larger than 2**32 - 1 is still there, I presume because they would not fit in a 32-bit signed int. I assume you

[issue12841] Incorrect tarfile.py extraction

2011-08-28 Thread Lars Gustäbel
Lars Gustäbel l...@gustaebel.de added the comment: The patch is fine. Thank you very much for it, Sebastien. I think we have to go without a unit test. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12841

[issue12287] ossaudiodev: stack corruption with FD = FD_SETSIZE

2011-08-28 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 852ca32eb18d by Charles-François Natali in branch '3.2': Issue #12287: Fix a stack corruption in ossaudiodev module when the FD is http://hg.python.org/cpython/rev/852ca32eb18d New changeset ad1c09b6a5b9 by

[issue12837] Patch for issue #12810 removed a valid check on socket ancillary data

2011-08-28 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 3ed2d087e70d by Charles-François Natali in branch 'default': Issue #12837: POSIX.1-2008 allows socklen_t to be a signed integer: re-enable http://hg.python.org/cpython/rev/3ed2d087e70d -- nosy: +python-dev

[issue12837] Patch for issue #12810 removed a valid check on socket ancillary data

2011-08-28 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Thanks for the patch. For the record, here's Linus Torvalds' opinion on this whole socklen_t confusion: _Any_ sane library _must_ have socklen_t be the same size as int. Anything else breaks any BSD socket layer stuff. POSIX

[issue12720] Expose linux extended filesystem attributes

2011-08-28 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Is it normal that listxattr() succeeds but getxattr() fails with ENOTSUPP? os.listxattr(/) [] os.getxattr(/, foo) Traceback (most recent call last): File stdin, line 1, in module OSError: [Errno 95] Operation not supported This is on

[issue8426] multiprocessing.Queue fails to get() very large objects

2011-08-28 Thread Charles-François Natali
Changes by Charles-François Natali neolo...@free.fr: -- components: +Documentation -Library (Lib) nosy: +docs@python priority: normal - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8426

[issue12537] mailbox's _become_message is very fragile

2011-08-28 Thread Kasun Herath
Changes by Kasun Herath kasun...@gmail.com: -- nosy: +kasun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12537 ___ ___ Python-bugs-list mailing

[issue12720] Expose linux extended filesystem attributes

2011-08-28 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2011/8/28 Antoine Pitrou rep...@bugs.python.org: Antoine Pitrou pit...@free.fr added the comment: Is it normal that listxattr() succeeds but getxattr() fails with ENOTSUPP? os.listxattr(/) [] os.getxattr(/, foo) Traceback (most

[issue12720] Expose linux extended filesystem attributes

2011-08-28 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: After Antoine's review... -- Added file: http://bugs.python.org/file23057/xattrs.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12720

[issue11969] Can't launch multiproccessing.Process on methods

2011-08-28 Thread terry.h
Changes by terry.h terry.her...@gmail.com: -- nosy: +terry.h ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11969 ___ ___ Python-bugs-list mailing

[issue4028] Problem compiling the multiprocessing module on sunos5

2011-08-28 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Hello, there's some issues compiling the multiprocessing module on the SunOS I have here, where CMSG_LEN, CMSG_ALIGN, CMSG_SPACE and sem_timedwait are absent. CMSG_LEN and friends should be defined by sys/socket.h (as required by

[issue12287] ossaudiodev: stack corruption with FD = FD_SETSIZE

2011-08-28 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Alright, committed to 2.7, 3.2 an default. Seems to work on all the buildbots, closing. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python

[issue12731] python lib re uses obsolete sense of \w in full violation of UTS#18 RL1.2a

2011-08-28 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: [me] But I really hope the re module (really: the _sre extension module) can be fixed. [Ezio] Start fixing these issues from scratch doesn't make much sense IMHO.  We could extract the fixes from regex and merge them in re, but then

[issue12736] Request for python casemapping functions to use full not simple casemaps per Unicode's recommendation

2011-08-28 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: Thanks Tom for such a clear explanation! I hope someone will implement this. (Matthew, does this affect regex? I am guessing it does, for case-insensitive matching?) -- ___ Python tracker

[issue12729] Python lib re cannot handle Unicode properly due to narrow/wide bug

2011-08-28 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: PEP-393 will take care of iterating by code points. Only for CPython. IronPython/Jython will still need a separate solution. Where would you have other iterators go? The string module? Something else I have not thought of? Or something

[issue12797] io.FileIO and io.open should support openat

2011-08-28 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I prefer a new parameter either at the end of the arglist or possibly keyword only. The idea for both variations is to let typical users ignore the option, which would be hard to do if it is part of the prime parameter. The idea for keyword

[issue12731] python lib re uses obsolete sense of \w in full violation of UTS#18 RL1.2a

2011-08-28 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Ideally, we need a Unicode czar -- a core developer whose job it is to keep track of Python's compliance with various parts and versions of the Unicode standard and who can nudge other developers towards fixing bugs or implementing

[issue12805] Optimizations for bytes.join() et. al

2011-08-28 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12805 ___ ___ Python-bugs-list

[issue12815] Coverage of smtpd.py

2011-08-28 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- components: +Library (Lib), Tests versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12815 ___

[issue12814] Possible intermittent bug in test_array

2011-08-28 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Which Python version? 3.3? -- components: +Library (Lib), Tests nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12814 ___

[issue12808] Coverage of codecs.py

2011-08-28 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- components: +Library (Lib), Tests versions: +Python 3.3 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12808 ___

[issue12816] smtpd uses library outside of the standard libraries

2011-08-28 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12816 ___ ___ Python-bugs-list

[issue12829] pyexpat segmentation fault caused by multiple calls to Parse()

2011-08-28 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: A note for anyone else: David is actually using the xml.parsers.expat module, which uses the now undocumented pyexpat module, whose direct use is deprecated. David: Have you tested with 3.1 or 3.2? (I am about to try on Windows ;-).

[issue12829] pyexpat segmentation fault caused by multiple calls to Parse()

2011-08-28 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Running with IDLE on Windows, I get no crash or uncaught exception but got these printed lines: An error occurred during XML parsing. Error ID: 9. Error message: junk after document element Line number: 1 An error occurred during XML

[issue12836] ctypes.cast() creates circular reference in original object

2011-08-28 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: What action are you suggesting? Change ctypes code or its doc or something else. If the doc, please suggest a specific change. Can you test on 3.x? -- nosy: +terry.reedy title: cast() creates circular reference in original object -

[issue12843] file object read* methods in append mode overflows

2011-08-28 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I have confirmed that this only happens in windows. This would literally mean that you tested on several other systems. Did you actually mean 'I have only confirmed that this happens in Windows., that you only tested on Windows? The 2.6

[issue12736] Request for python casemapping functions to use full not simple casemaps per Unicode's recommendation

2011-08-28 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: The regex module currently uses simple case-folding, although I'm working towards full case-folding, as listed in http://www.unicode.org/Public/UNIDATA/CaseFolding.txt. -- ___ Python

[issue12849] urllib2 headers issue

2011-08-28 Thread Shubhojeet Ghosh
New submission from Shubhojeet Ghosh shubhojeet.gh...@yahoo.com: There seems to be an issue with urllib2 The headers defined does not match with the physical data packet (from wireshark). Other header parameters such as User Agent, cookie works fine. Here is an example of a failure: Python

[issue12841] Incorrect tarfile.py extraction

2011-08-28 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Should this bug be fixed in 3.3, or 2.7+3.2+3.3? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12841 ___

  1   2   >