[ANN] PyInstaller 1.4

2010-03-22 Thread Giovanni Bajo
Hello, I'm happy to announce PyInstaller 1.4, the first formal release after several years of quiet development. http://www.pyinstaller.org === What it is === PyInstaller is a program that converts (packages) Python programs into stand-alone executables, under Windows, Linux, and Mac OS X.

onlinepayment v1.0.0 released

2010-03-22 Thread Sam Tregar
onlinepayment v1.0.0 - a generic Python API for making online payments This module provides an API wrapper around a variety of payment providers. Using this module you can write code that will work the same regardless of the payment provider in use. Examples:: from onlinepayment import

Re: nonuniform sampling with replacement

2010-03-22 Thread Aram Ter-Sarkissov
On 22 мар, 01:28, Alf P. Steinbach al...@start.no wrote: * Alf P. Steinbach: * Jah_Alarm: I've got a vector length n of integers (some of them are repeating), and I got a selection probability vector of the same length. How will I sample with replacement k (=n) values with the

Re: nonuniform sampling with replacement

2010-03-22 Thread Aram Ter-Sarkissov
On 22 мар, 01:27, Peter Otten __pete...@web.de wrote: Jah_Alarm wrote: I've got a vector length n of integers (some of them are repeating), and I got a selection probability vector of the same length. How will I sample with replacement k (=n) values with the probabilty vector. In Matlab

Re: execute bash builtins in python

2010-03-22 Thread alex goretoy
I do have a problem however that I don't know how to solve. My application dies abruptly at random times because of this and I get this output error in the terminal: bash: line 0: declare: write error: Broken pipe and sometimes it crashes and I get this output error; this one maybe gtk related,

Re: GC is very expensive: am I doing something wrong?

2010-03-22 Thread Stefan Behnel
Lawrence D'Oliveiro, 22.03.2010 00:36: Terry Reedy wrote: No one has discovered a setting of the internal tuning parameters for which there are no bad patterns and I suspect there are not any such. This does not negate Xavier's suggestion that a code change might also solve your problem.

Re: execute bash builtins in python

2010-03-22 Thread alex goretoy
for the broken pipe error, perhaps theres a different way I can get shell output other than using subprocess? I need the output of alias command into a string and output of declare command into a string as well, I would like to also avoid creating of a single liner script to make this happen if at

Re: StringChain -- a data structure for managing large sequences of chunks of bytes

2010-03-22 Thread Steven D'Aprano
On Sun, 21 Mar 2010 23:09:46 -0600, Zooko O'Whielacronx wrote: But the use case that I am talking about is where you need to accumulate new incoming strings into your buffer while alternately processing leading prefixes of the buffer. [...] Below are the abbreviated results of the benchmark.

Re: execute bash builtins in python

2010-03-22 Thread alex goretoy
actually using the -i param in the command to subprocess doesn't seem to work as well as setting PS1 to some garbage, it starts a new interactive shell therein kicking me out of python. :/ Thank you, -Alex Goretoy -- http://mail.python.org/mailman/listinfo/python-list

Re: Tuples vs. variable-length argument lists

2010-03-22 Thread Jean-Michel Pichavant
Spencer Pearson wrote: Hi! This might be more of a personal-preference question than anything, but here goes: when is it appropriate for a function to take a list or tuple as input, and when should it allow a varying number of arguments? It seems as though the two are always interchangeable.

Re: accessing variable of the __main__ module

2010-03-22 Thread Jean-Michel Pichavant
News123 wrote: Hi, I wondered about the best way, that a module's function could determine the existance and value of variables in the __main__ module. What I came up with is: ### main.py ## import mod A = 4 if __name__ == __main__: mod.f() ### mod.py ## def

Re: What is pkg-config for ?

2010-03-22 Thread Lawrence D'Oliveiro
In message mailman.987.1269033144.23598.python-l...@python.org, Gabriel Genellina wrote: I fail to see how is this relevant to Python... Well, so many of the questions in this noisegroup seem to be about Windows problems, not Python ones... :) --

chroot fails with mount point passed to subprocess.Popen?

2010-03-22 Thread newton10471
Hi, I'm trying to use subprocess.Popen() to do a Linux chroot to a mount point passed in as a parameter to the following function: def getInstalledKernelVersion(mountPoint): linuxFsRoot = mountPoint + /root print type of linuxFsRoot is %s % type(linuxFsRoot)

Re: subtraction is giving me a syntax error

2010-03-22 Thread Albert van der Horst
In article 56597268-3472-4fd9-a829-6d9cf51cf...@e7g2000yqf.googlegroups.com, Joel Pendery joel.pend...@gmail.com wrote: So I am trying to write a bit of code and a simple numerical subtraction y_diff = y_diff-H is giving me the error Syntaxerror: Non-ASCII character '\x96' in file on line 70,

Re: chroot fails with mount point passed to subprocess.Popen?

2010-03-22 Thread Alf P. Steinbach
* newton10471: Hi, I'm trying to use subprocess.Popen() to do a Linux chroot to a mount point passed in as a parameter to the following function: def getInstalledKernelVersion(mountPoint): linuxFsRoot = mountPoint + /root print type of linuxFsRoot is %s % type(linuxFsRoot)

Re: How to automate accessor definition?

2010-03-22 Thread kj
In mailman.1030.1269194878.23598.python-l...@python.org Dennis Lee Bieber wlfr...@ix.netcom.com writes: On Sun, 21 Mar 2010 16:57:40 + (UTC), kj no.em...@please.post declaimed the following in gmane.comp.python.general: Regarding properties, is there a built-in way to memoize them? For

Re: How to automate accessor definition?

2010-03-22 Thread Alf P. Steinbach
* kj: In mailman.1030.1269194878.23598.python-l...@python.org Dennis Lee Bieber wlfr...@ix.netcom.com writes: On Sun, 21 Mar 2010 16:57:40 + (UTC), kj no.em...@please.post declaimed the following in gmane.comp.python.general: Regarding properties, is there a built-in way to memoize

short-circuiting any/all ?

2010-03-22 Thread kj
I have a list of items L, and a test function is_invalid that checks the validity of each item. To check that there are no invalid items in L, I could check the value of any(map(is_invalid, L)). But this approach is suboptimal in the sense that, no matter what L is, is_invalid will be executed

Re: add an entry to twentyquestions.org (please)

2010-03-22 Thread John Bokma
Ben Finney ben+pyt...@benfinney.id.au writes: twenty questions twentyqs...@gmail.com writes: add an entry to http:// Don't spam groups with your off-topic begging for a closed database silo (please) Don't repeat spam -- John Bokma

Re: short-circuiting any/all ?

2010-03-22 Thread Tim Golden
On 22/03/2010 14:45, kj wrote: I have a list of items L, and a test function is_invalid that checks the validity of each item. To check that there are no invalid items in L, I could check the value of any(map(is_invalid, L)). But this approach is suboptimal in the sense that, no matter what L

Re: short-circuiting any/all ?

2010-03-22 Thread Jean-Michel Pichavant
kj wrote: I have a list of items L, and a test function is_invalid that checks the validity of each item. To check that there are no invalid items in L, I could check the value of any(map(is_invalid, L)). But this approach is suboptimal in the sense that, no matter what L is, is_invalid will

Re: short-circuiting any/all ?

2010-03-22 Thread Tim Wintle
On Mon, 2010-03-22 at 14:45 +, kj wrote: I have a list of items L, and a test function is_invalid that checks the validity of each item. To check that there are no invalid items in L, I could check the value of any(map(is_invalid, L)). But this approach is suboptimal in the sense that, no

Re: short-circuiting any/all ?

2010-03-22 Thread nn
kj wrote: I have a list of items L, and a test function is_invalid that checks the validity of each item. To check that there are no invalid items in L, I could check the value of any(map(is_invalid, L)). But this approach is suboptimal in the sense that, no matter what L is, is_invalid

Re: nonuniform sampling with replacement

2010-03-22 Thread Robert Kern
On 2010-03-21 05:11 AM, Jah_Alarm wrote: I've got a vector length n of integers (some of them are repeating), I recommend reducing it down to unique integers first. and I got a selection probability vector of the same length. How will I sample with replacement k (=n) values with the

Re: How to automate accessor definition?

2010-03-22 Thread Bruno Desthuilliers
kj a écrit : In mailman.1030.1269194878.23598.python-l...@python.org Dennis Lee Bieber wlfr...@ix.netcom.com writes: On Sun, 21 Mar 2010 16:57:40 + (UTC), kj no.em...@please.post declaimed the following in gmane.comp.python.general: Regarding properties, is there a built-in way to

Re: How to automate accessor definition?

2010-03-22 Thread John Posner
On 3/22/2010 11:44 AM, Bruno Desthuilliers wrote: snip Another (better IMHO) solution is to use a plain property, and store the computed value as an implementation attribute : @property def foo(self): cached = self.__dict__.get('_foo_cache') if cached is None: self._foo_cache = cached =

Re: DreamPie - The Python shell you've always dreamed about!

2010-03-22 Thread Luis M . González
On Feb 21, 6:40 pm, Mensanator mensana...@aol.com wrote: On Feb 21, 12:14 pm, Paul Boddie p...@boddie.org.uk wrote: On 21 Feb, 17:32, Mensanator mensana...@aol.com wrote: On Feb 21, 10:30 am, Mensanator mensana...@aol.com wrote: What versions of Python does it suuport? What OS

Re: short-circuiting any/all ?

2010-03-22 Thread Raymond Hettinger
On Mar 22, 7:45 am, kj no.em...@please.post wrote: I have a list of items L, and a test function is_invalid that checks the validity of each item.  To check that there are no invalid items in L, I could check the value of any(map(is_invalid, L)). But this approach is suboptimal in the sense

Re: short-circuiting any/all ?

2010-03-22 Thread kj
In 291d82b7-b13b-4f49-901c-8194f3e07...@e7g2000yqf.googlegroups.com nn prueba...@latinmail.com writes: If you are in Python 3 any(map(is_invalid, L)) should short circuit. If you are in Python 2 use from itertools import imap; any(imap(is_invalid, L)) Thanks! I'm glad to know that one can get

Re: short-circuiting any/all ?

2010-03-22 Thread Tim Golden
On 22/03/2010 18:30, kj wrote: Thanks! I'm glad to know that one can get the short circuiting using a map-type idiom. (I prefer map over comprehensions when I don't need to define a function just for the purpose of passing it to it.) In what way does map over comprehensions save you defining

Re: Castrated traceback in sys.exc_info()

2010-03-22 Thread Pascal Chambon
Gabriel Genellina a écrit : En Wed, 17 Mar 2010 09:42:06 -0300, Pascal Chambon chambon.pas...@gmail.com escribió: traceback functions indeed allow the manipulation of exception tracebacks, but the root problem is that anyway, since that traceback is incomplete, your

Problem with sys.path when embedding Python3 in C

2010-03-22 Thread Krister Svanlund
Hi, I've recently begun experimenting with embedding python and i got a small problem. This is my current testing code (basically all from python docs): int main(int argc, char *argv[]) { PyObject *pModuleName, *pTestModule, *pTestFunc, *pTestResult, *pTestArgs;

Re: StringChain -- a data structure for managing large sequences of chunks of bytes

2010-03-22 Thread Zooko O'Whielacronx
On Mon, Mar 22, 2010 at 2:07 AM, Steven D'Aprano ste...@remove.this.cybersource.com.au wrote: Perhaps you should have said that it was a wrapper around deque giving richer functionality, rather than giving the impression that it was a brand new data structure invented by you. People are

Re: How to automate accessor definition?

2010-03-22 Thread kj
In 4ba79040$0$22397$426a7...@news.free.fr Bruno Desthuilliers bruno.42.desthuilli...@websiteburo.invalid writes: kj a écrit : PS: BTW, this is not the first time that attempting to set an attribute (in a class written by me even) blows up on me. It's situations like these that rattle my

Re: short-circuiting any/all ?

2010-03-22 Thread kj
In mailman.1069.1269283393.23598.python-l...@python.org Tim Golden m...@timgolden.me.uk writes: On 22/03/2010 18:30, kj wrote: Thanks! I'm glad to know that one can get the short circuiting using a map-type idiom. (I prefer map over comprehensions when I don't need to define a function just

Re: DreamPie - The Python shell you've always dreamed about!

2010-03-22 Thread Steve Holden
Luis M. González wrote: On Feb 21, 6:40 pm, Mensanator mensana...@aol.com wrote: On Feb 21, 12:14 pm, Paul Boddie p...@boddie.org.uk wrote: On 21 Feb, 17:32, Mensanator mensana...@aol.com wrote: On Feb 21, 10:30 am, Mensanator mensana...@aol.com wrote: What versions of Python does it

Re: GC is very expensive: am I doing something wrong?

2010-03-22 Thread tan
In article mailman.1060.1269243742.23598.python-l...@python.org, Stefan Behnel stefan...@behnel.de wrote: Lawrence D'Oliveiro, 22.03.2010 00:36: Terry Reedy wrote: No one has discovered a setting of the internal tuning parameters for which there are no bad patterns and I suspect there are not

individually updating unicodedata db?

2010-03-22 Thread Vlastimil Brom
Hi all, I just tried to find some information about the unicodedata database and the possibilities of updating it to the latest version of the unicode standards (currently 5.2, while python supports 5.1 in the latest versions). An option to update this database individually might be useful as the

Re: google token

2010-03-22 Thread Thufir
On Mar 20, 3:12 am, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Sat, 20 Mar 2010 09:17:14 +, Thufir wrote: I'd like to acquire a token, as below, but from Java: Perhaps you should be asking a Java discussion group? This group is for discussing Python. -- Steven

Re: individually updating unicodedata db?

2010-03-22 Thread MRAB
Vlastimil Brom wrote: Hi all, I just tried to find some information about the unicodedata database and the possibilities of updating it to the latest version of the unicode standards (currently 5.2, while python supports 5.1 in the latest versions). An option to update this database individually

Re: short-circuiting any/all ?

2010-03-22 Thread Steven D'Aprano
On Mon, 22 Mar 2010 22:19:57 +, kj wrote: In mailman.1069.1269283393.23598.python-l...@python.org Tim Golden m...@timgolden.me.uk writes: On 22/03/2010 18:30, kj wrote: Thanks! I'm glad to know that one can get the short circuiting using a map-type idiom. (I prefer map over

Re: GC is very expensive: am I doing something wrong?

2010-03-22 Thread Antoine Pitrou
Le Mon, 22 Mar 2010 23:40:16 +, tan a écrit : Remember that the original use case was to load a dictionary from a text file. For this use case, a trie can be very wasteful in terms of memory and rather CPU cache unfriendly on traversal, whereas hash values are a) rather fast to calculate for

Re: short-circuiting any/all ?

2010-03-22 Thread kj
In pan.2010.03.23.01.30...@remove.this.cybersource.com.au Steven D'Aprano ste...@remove.this.cybersource.com.au writes: On Mon, 22 Mar 2010 22:19:57 +, kj wrote: In any case, the once-off cost of creating or importing a function is usually quite cheap. As usual, the best advise is not to

Re: google token

2010-03-22 Thread Rami Chowdhury
On Monday 22 March 2010 17:23:27 Thufir wrote: On Mar 20, 3:12 am, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Sat, 20 Mar 2010 09:17:14 +, Thufir wrote: I'd like to acquire a token, as below, but from Java: Perhaps you should be asking a Java discussion group?

Re: device identification

2010-03-22 Thread Tim Roberts
Omer Ihsan omrih...@gmail.com wrote: i have installed pyusb now and run the sample usbenum.pyi have 3 usb ports on my PC but the results show 6 outputs to dev.filename..they are numbers like 001 or 005 etc and they changed when i plugged in devices...(i am no good with the usb

Re: GC is very expensive: am I doing something wrong?

2010-03-22 Thread Paul Rubin
Antoine Pitrou solip...@pitrou.net writes: Orders of magnitude worse, in any case, sounds very exaggerated. The worst case can lose orders of magnitude if a lot of values hash to the same bucket. -- http://mail.python.org/mailman/listinfo/python-list

[issue3890] ssl.SSLSocket.recv() implementation may not work with non-blocking sockets

2010-03-22 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: This last issue seems related to SSL 0.9.8m: http://bugs.python.org/issue8108 -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3890

[issue3890] ssl.SSLSocket.recv() implementation may not work with non-blocking sockets

2010-03-22 Thread Giampaolo Rodola'
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: The intuitive explanation seems to be: - there are some bytes available for reading on the *TCP socket*, therefore asyncore calls the read handler - however, there are not enough bytes for OpenSSL to actually decrypt

[issue1544339] _ctypes fails to build on Solaris x86 32-bit (Sun compiler)

2010-03-22 Thread Nick
Nick nick_bo...@fastmail.fm added the comment: Hello is this not the fix? Are there any plans for patch and ctypes 1.0.3? ctypes is a setuptools dependency for various Python 3rd party packages, and this breaks any that enlist ctypes on Solaris.

[issue8199] zipfile.py: consistency between write and writestr

2010-03-22 Thread Hervé Cauwelier
New submission from Hervé Cauwelier he...@itaapy.com: Hi, In class ZipFile, method write accepts compress_type parameter but not the writestr method. I see no reason for this limitation and the change is trivial. This is needed for generating ODF documents since the mimetype file must not be

[issue8047] Serialiser in ElementTree returns unicode strings in Py3k

2010-03-22 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: http://codereview.appspot.com/664043 (patch against 3.x) IIUC, the changes proposed (for 3.2) are: - default encoding or bool(encoding) == False == fallback to 'US-ASCII' encoding (instead of Unicode) - encoding=str or

[issue8047] Serialiser in ElementTree returns unicode strings in Py3k

2010-03-22 Thread Stefan Behnel
Stefan Behnel sco...@users.sourceforge.net added the comment: Supporting unicode for lxml.etree compatibility is fine with me, but I think it might make sense to support the string unicode as well (as a pseudo-encoding -- it's pretty clear to me that nobody will ever define a real character

[issue8200] logging module errors out if log called when multiprocessing module not finished loading

2010-03-22 Thread Chris Jerdonek
New submission from Chris Jerdonek chris.jerdo...@gmail.com: The logging module errors out if the multiprocessing module is not finished loading when logging.log() is called. This can happen, for example, if a custom import hook is defined that causes third-party code to execute when the

[issue8047] Serialiser in ElementTree returns unicode strings in Py3k

2010-03-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Stefan Behnel wrote: Stefan Behnel sco...@users.sourceforge.net added the comment: Supporting unicode for lxml.etree compatibility is fine with me, but I think it might make sense to support the string unicode as well (as a

[issue8200] logging module errors out if log called when multiprocessing module not finished loading

2010-03-22 Thread Chris Jerdonek
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- nosy: +vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8200 ___ ___

[issue8142] libffi update to 3.0.9

2010-03-22 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: See this post, about Solaris failure: http://bugs.python.org/issue1544339#msg101485 And the proposed patch: http://sourceware.org/ml/libffi-discuss/2010/msg00016.html -- nosy: +nick ___

[issue8142] libffi update to 3.0.9

2010-03-22 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Ignore my last comment. It is not relevant, and the patch is already in 3.0.9. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8142

[issue6543] traceback presented in wrong encoding

2010-03-22 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6543 ___

[issue1544339] _ctypes fails to build on Solaris x86 32-bit (Sun compiler)

2010-03-22 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Can you please try the subversion trunk of Python, and report whether this works for you? -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1544339

[issue7643] What is a Unicode line break character?

2010-03-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Florent Xicluna wrote: Backward compatibility concern: * it adds VT u'\x0b' and FF u'\x0c' as line breaks. The choice is either to preserve backward compatibility, or to comply with the specification (UAX #14). I think we should

[issue2223] regrtest.py -R not working

2010-03-22 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: No known issues with regrtest -R : on trunk. -- nosy: +flox resolution: - out of date stage: patch review - committed/rejected status: open - closed ___ Python tracker

[issue5035] Compilation --without-threads fails

2010-03-22 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: _tkinter patch (r70641) was backported to py3k as r70707. py3k compiles fine without threads. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue8201] test_logging fails if the loggerDict contains non-ASCII loggers.

2010-03-22 Thread Florent Xicluna
New submission from Florent Xicluna florent.xicl...@gmail.com: Following test case fails with a UnicodeDecodeError: import logging import logging.config logging.getLogger(\xab\xd7\xbb) logging.getLogger(uLOG) logging.config.dictConfig({'version': 1}) Same behavior on non-ASCII path buildbots,

[issue8201] test_logging fails if the loggerDict contains non-ASCII loggers.

2010-03-22 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Proposed patch with tests. -- keywords: +patch Added file: http://bugs.python.org/file16621/issue8201_logging_config.diff ___ Python tracker rep...@bugs.python.org

[issue8200] logging module errors out if log called when multiprocessing module not finished loading

2010-03-22 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: A slightly more generic fix checked into trunk (r79279), please verify in your environment. -- assignee: - vinay.sajip resolution: - fixed status: open - closed ___ Python tracker

[issue8200] logging module errors out if log called when multiprocessing module not finished loading

2010-03-22 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: I would suggest something like: if logMultiprocessing: try: self.processName = sys.modules['multiprocessing'] .current_process().name except StandardError: self.processName = 'MainProcess' else:

[issue1583863] __str__ cannot be overridden on unicode-derived classes

2010-03-22 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Commited: r79278+r79280 (trunk), r79281 (py3k), r79282 (3.1), r79283 (2.6). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1583863

[issue1583863] __str__ cannot be overridden on unicode-derived classes

2010-03-22 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1583863 ___

[issue1503789] Cannot write source code in UTF16

2010-03-22 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: This feature was requested only once, 4 years ago, so I don't think that the feature is a must-have :-) I think that a lot of code have to be modified in Python parser to support UTF-16-* and UTF-32-* codecs. Since there is no

[issue1069092] segfault on printing nested sequences of None/Ellipsis

2010-03-22 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: This issue is 6 years old. Python has some protections against stack overflow, but there is no perfect solution. Since there is no patch, I consider that I can close this issue (as wont fix). -- resolution: - wont fix

[issue8201] test_logging fails if the loggerDict contains non-ASCII loggers.

2010-03-22 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Fix checked into trunk (r79284). -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8201 ___

[issue4261] The pwd module doesn't distinguish between errors and no user

2010-03-22 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: This issue is open since 2 years without any patch. It looks like the feature request is not really important, and I consider that we can close it. Reopen the issue (with a patch!) if you consider that this ticket is important.

[issue4261] The pwd module doesn't distinguish between errors and no user

2010-03-22 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- resolution: fixed - wont fix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4261 ___ ___

[issue4261] The pwd module doesn't distinguish between errors and no user

2010-03-22 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Victor, since this is a real,fixable bug but nobody has stepped forward with a patch, I think it is better make its status 'languishing' with the reason 'no one has stepped forward with a patch'. This kind of thing is exactly what we

[issue3890] ssl.SSLSocket.recv() implementation may not work with non-blocking sockets

2010-03-22 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This last issue seems related to SSL 0.9.8m: http://bugs.python.org/issue8108 I don't think so: $ rpm -qv openssl openssl-0.9.8k-5.1mdv2010.0 -- ___ Python tracker rep...@bugs.python.org

[issue7860] 32-bit Python on 64-bit Windows reports incorrect architecture

2010-03-22 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Ah, that's simple enough :) Minor changes to the test patch: uname caches it's results, so I added a few lines to clear the cache before the uname calls. In order to not affect other tests, the whole thing is in a try/finally so we don't leave

[issue8199] zipfile.py: consistency between write and writestr

2010-03-22 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Given that this is a feature request, it would go into 2.7 rather than 2.6. The patch will need a test (see Lib/test/test_zipfile.py) and a documentation update (see Doc/library/zipfile.rst). -- nosy: +brian.curtin priority: - normal

[issue8199] zipfile.py: consistency between write and writestr

2010-03-22 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Actually this was recently fixed on trunk (r78097) and py3k (r78098). See #6003. -- resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org

[issue8156] pybsddb 4.8.4 integration

2010-03-22 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Integration committed as r79285. The integration is with just released pybsddb 4.8.4, with patches for issue6462 and issue3892 added. -- title: pybsddb 4.8.3+ integration - pybsddb 4.8.4 integration

[issue2960] bsddb/test/test_replication.py bus error, segfault, assertion error, pass

2010-03-22 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- resolution: - works for me status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2960 ___

[issue3890] ssl.SSLSocket.recv() implementation may not work with non-blocking sockets

2010-03-22 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The patch seems ok to me. This is how it was supposed to be in the first place if ssl.py behaved as expected with non blocking sockets. Ok, patch applied. In light of the recv() and recv_into() implementation change, I also think we should

[issue1124861] subprocess fails on GetStdHandle in interactive GUI

2010-03-22 Thread Daniel Serodio
Daniel Serodio dsero...@gmail.com added the comment: Ah, it works now. Thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1124861 ___ ___

[issue3928] os.mknod missing on Solaris

2010-03-22 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Roumen Petrov (rpetrov) wrote: Jesús Cea Aviónj...@jcea.es added the comment: I just did the minimal change. I don't know if removing defined(HAVE_MAKEDEV) is safe. The python build system is full with minimal changes and result is a big

[issue8200] logging module errors out if log called when multiprocessing module not finished loading

2010-03-22 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: It's structured the way it is for two reasons: 1. IMO It's better (more readable) to have the simpler case in the then clause and the more complicated case in the else clause. 2. If multiprocessing is not used, the process name needs to

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-03-22 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ok, I finally agree that test_ftplib should be patched. The patch isn't exactly correct: it should ideally retry the unwrap() call later, rather than simply ignore the error. But since it's just used for testing, it looks sufficient. (we

[issue7703] Replace buffer()--memoryview() in Lib/ctypes/test/

2010-03-22 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Fixed with r79288 and r79295. -- priority: - normal resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue3928] os.mknod missing on Solaris

2010-03-22 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: My browser keeps deleting nosy. Sorry. Roumen, please read. -- nosy: +barry, rpetrov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3928 ___

[issue1069092] segfault on printing nested sequences of None/Ellipsis

2010-03-22 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: General policy is that ordinary code (not using, for instance, ctypes) should not crash or segfault the interpreter. I believe there is a 'crashers' subdirectory somewhere in the tree for examples that do so that people so inclined can work

[issue1625] bz2.BZ2File doesn't support multiple streams

2010-03-22 Thread David Bonner
David Bonner dbon...@vmware.com added the comment: Picking this back up again. There's actually no docs changes necessary...the docs never mentioned that the module didn't support multiple logical streams, and I didn't see any other mentions in the docs that seemed to need updating. I

[issue7666] test_lib2to3 fails if path contains space

2010-03-22 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: Removed file: http://bugs.python.org/file15818/lib2to3_path_with_space.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7666 ___

[issue7666] test_lib2to3 fails if path contains space

2010-03-22 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Ultimate pach, tested with this insane path: os.getcwdu() u'/home/user/dev/python/py2u;\u2026 \u2192 un\\ic\'ode' It should fix some buildbot failures. -- assignee: - benjamin.peterson components: +2to3 (2.x to 3.0

[issue8200] logging module errors out if log called when multiprocessing module not finished loading

2010-03-22 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: Reversing the if-else in Florent's suggestion seems to address points (1) and (2). Is there a reason to set and check an mp variable rather than simply having the try-except block? if not logMultiprocessing: self.processName =

[issue8196] sqlit3.paramstyle reported as 'qmark'

2010-03-22 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: - ghaering nosy: +ghaering ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8196 ___ ___

[issue7860] 32-bit Python on 64-bit Windows reports incorrect architecture

2010-03-22 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Patches applied to trunk in r79294, py3k in r79298. Should this be backported? -- keywords: -needs review stage: patch review - commit review ___ Python tracker rep...@bugs.python.org

[issue1069092] segfault on printing nested sequences of None/Ellipsis

2010-03-22 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: On linux: on Py3 (trunk and 3.1) I get the recursion depth exceeded message, but on py2 trunk I get the segfault if I use 10 for the range. So somebody fixed this crasher in py3, somehow. -- nosy: +r.david.murray

[issue8200] logging module errors out if log called when multiprocessing module not finished loading

2010-03-22 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: - Original Message Reversing the if-else in Florent's suggestion seems to address points (1) and (2). Is there a reason to set and check an mp variable rather than simply having the try-except block? Just that it went over

[issue8200] logging module errors out if log called when multiprocessing module not finished loading

2010-03-22 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: I agree. Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8200 ___ ___

[issue7860] 32-bit Python on 64-bit Windows reports incorrect architecture

2010-03-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: R. David Murray wrote: R. David Murray rdmur...@bitdance.com added the comment: Patches applied to trunk in r79294, py3k in r79298. Should this be backported? I don't think so: applications relying on the previous behavior would

[issue6352] Compiler warning in unicodeobject.c

2010-03-22 Thread Hagen Fürstenau
Hagen Fürstenau hfuerste...@gmx.net added the comment: Apparently this was never backported to 3.1. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6352 ___

[issue7512] shutil.copystat may fail EOPNOTSUPP

2010-03-22 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I committed the simple patch in r79299 (trunk), r79300 (2.6), r79301 (py3k), r79302 (3.1). Tarek suggested a test could be added for this, assigning the issue to him. -- assignee: pitrou - tarek nosy: +tarek stage: commit review -

  1   2   >