Nagare web framework 0.4.0

2012-01-18 Thread Alain Poirier
Hi all, Version 0.4.0 of the Nagare web framework is now released! About Nagare Nagare is a components based framework: a Nagare application is a composition of interacting components each one with its own state and workflow kept on the server. Each component can have one or

MailingLogger 3.7.0 Released!

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

Re: sys.argv as a list of bytes

2012-01-18 Thread Peter Otten
Olive wrote: In Unix the operating system pass argument as a list of C strings. But C strings does corresponds to the bytes notions of Python3. Is it possible to have sys.argv as a list of bytes ? What happens if I pass to a program an argumpent containing funny character, for example (with

MailingLogger 3.7.0 Released!

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

subprocess.Popen strange bhaviour

2012-01-18 Thread Mac Smith
Hi, I am using subprocess.Popen to start a movie ripping command HandBrakeCLI. My server is 64bit ubuntu server and has 8 cores. When the command starts it uses all 8 cores upto 80%-100% and works fine, but after 270 seconds the cpu usage of all the cores drops to 0% - 1%. I tried this many

Re: subprocess.Popen strange bhaviour

2012-01-18 Thread Steven D'Aprano
On Wed, 18 Jan 2012 14:44:37 +0530, Mac Smith wrote: Hi, I am using subprocess.Popen to start a movie ripping command HandBrakeCLI. My server is 64bit ubuntu server and has 8 cores. When the command starts it uses all 8 cores upto 80%-100% and works fine, but after 270 seconds the cpu

Re: sys.argv as a list of bytes

2012-01-18 Thread Olive
On Wed, 18 Jan 2012 09:05:42 +0100 Peter Otten __pete...@web.de wrote: Olive wrote: In Unix the operating system pass argument as a list of C strings. But C strings does corresponds to the bytes notions of Python3. Is it possible to have sys.argv as a list of bytes ? What happens if I

Re: replacing __dict__ with an OrderedDict

2012-01-18 Thread Ulrich Eckhardt
Am 06.01.2012 12:44, schrieb Peter Otten: [running unit tests in the order of their definition] class Loader(unittest.TestLoader): def getTestCaseNames(self, testCaseClass): Return a sequence of method names found within testCaseClass sorted by co_firstlineno.

Re: sys.argv as a list of bytes

2012-01-18 Thread Peter Otten
Olive wrote: On Wed, 18 Jan 2012 09:05:42 +0100 Peter Otten __pete...@web.de wrote: Olive wrote: In Unix the operating system pass argument as a list of C strings. But C strings does corresponds to the bytes notions of Python3. Is it possible to have sys.argv as a list of bytes ?

unzip function?

2012-01-18 Thread Neal Becker
python has builtin zip, but not unzip A bit of googling found my answer for my decorate/sort/undecorate problem: a, b = zip (*sorted ((c,d) for c,d in zip (x,y))) That zip (*sorted... does the unzipping. But it's less than intuitively obvious. I'm thinking unzip should be a builtin function,

Plot square wave

2012-01-18 Thread Yigit Turgut
Hi all, I am trying to generate a pseudo pwm signal, low-high transition will take place when screen goes from black to white and high-low transition when white to black. As a result I am trying to plot the signal. Here is my code; import time, pylab, numpy, scipy, pygame def _func1():

Re: unzip function?

2012-01-18 Thread Alec Taylor
http://docs.python.org/library/zipfile.html ZipFile.extractall([path[, members[, pwd]]]) -- http://mail.python.org/mailman/listinfo/python-list

Re: unzip function?

2012-01-18 Thread Alec Taylor
http://docs.python.org/library/functions.html x = [1, 2, 3] y = [4, 5, 6] zipped = zip(x, y) zipped [(1, 4), (2, 5), (3, 6)] x2, y2 = zip(*zipped) x == list(x2) and y == list(y2) True -- http://mail.python.org/mailman/listinfo/python-list

Re: unzip function?

2012-01-18 Thread Rodrick Brown
On Wed, Jan 18, 2012 at 10:27 AM, Alec Taylor alec.tayl...@gmail.comwrote: http://docs.python.org/library/functions.html x = [1, 2, 3] y = [4, 5, 6] zipped = zip(x, y) zipped [(1, 4), (2, 5), (3, 6)] x2, y2 = zip(*zipped) x == list(x2) and y == list(y2) True Alec can you explain

Re: unzip function?

2012-01-18 Thread Steven D'Aprano
On Wed, 18 Jan 2012 09:33:34 -0500, Neal Becker wrote: python has builtin zip, but not unzip That's because zip is (almost) its own inverse. A bit of googling found my answer for my decorate/sort/undecorate problem: a, b = zip (*sorted ((c,d) for c,d in zip (x,y))) That does a lot of

Re: unzip function?

2012-01-18 Thread Benjamin Kaplan
On Wed, Jan 18, 2012 at 10:31 AM, Rodrick Brown rodrick.br...@gmail.com wrote: On Wed, Jan 18, 2012 at 10:27 AM, Alec Taylor alec.tayl...@gmail.com wrote: http://docs.python.org/library/functions.html x = [1, 2, 3] y = [4, 5, 6] zipped = zip(x, y) zipped [(1, 4), (2, 5), (3, 6)]

Re: unzip function?

2012-01-18 Thread Chris Rebert
On Wed, Jan 18, 2012 at 7:31 AM, Rodrick Brown rodrick.br...@gmail.com wrote: On Wed, Jan 18, 2012 at 10:27 AM, Alec Taylor alec.tayl...@gmail.com wrote: http://docs.python.org/library/functions.html x = [1, 2, 3] y = [4, 5, 6] zipped = zip(x, y) zipped [(1, 4), (2, 5), (3, 6)] x2,

Re: subprocess.Popen strange bhaviour

2012-01-18 Thread Chris Rebert
On Wed, Jan 18, 2012 at 1:14 AM, Mac Smith macsmith...@gmail.com wrote: Hi, I am using subprocess.Popen to start a movie ripping command HandBrakeCLI. My server is 64bit ubuntu server and has 8 cores. When the command starts it uses all 8 cores upto 80%-100% and works fine, but after 270

Re: Plot square wave

2012-01-18 Thread Peter Otten
Yigit Turgut wrote: Problem is I get a sawtooth instead of a square wave. I know that I need to define points between 0,1,2 time integer values to achieve this. But I hope there is a python trick that will yield this time,data plot to a square wave? There is no Python trick, pylab is showing

Re: unzip function?

2012-01-18 Thread Devin Jeanpierre
On Wed, Jan 18, 2012 at 10:31 AM, Rodrick Brown rodrick.br...@gmail.com wrote: Alec can you explain this behavior zip(*zipped)? Here's one way to think about it: If A is a matrix, zip(*A) returns the transpose of A. That is, the columns become rows, and the rows become columns. If you swap rows

Re: unzip function?

2012-01-18 Thread Devin Jeanpierre
On Wed, Jan 18, 2012 at 10:27 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: That zip (*sorted... does the unzipping. But it's less than intuitively obvious. *shrug* If you understand what zip does, it should be obvious. Nobody likes to be told the thing they're confused

+= does not work correct all alogn

2012-01-18 Thread Wilfried Falk
Hello Pythons,   attached to this email is a pdf-file which shows, that  += does not work well all along. Mybe somebody of you is able to explain my observations in this respect. I will be glad about an answer.   Best regards Wilfried BugInPython.pdf Description: Adobe PDF document --

in the middle of web ,there is a problem,how to parse

2012-01-18 Thread contro opinion
here is my code: import urllib import lxml.html down= http://sc.hkex.com.hk/gb/www.hkex.com.hk/chi/market/sec_tradinfo/stockcode/eisdeqty_c.htm file=urllib.urlopen(down).read() root=lxml.html.document_fromstring(file) data1 = root.xpath('//tr[@class=tr_normal and .//img]') print the row

Re: += does not work correct all alogn

2012-01-18 Thread Arnaud Delobelle
On 18 January 2012 09:52, Wilfried Falk w_h_f...@yahoo.de wrote: Hello Pythons, attached to this email is a pdf-file which shows, that  += does not work well all along. Mybe somebody of you is able to explain my observations in this respect. I will be glad about an answer. I think you are

Re: += does not work correct all alogn

2012-01-18 Thread woooee
def conc1(a, _list = []):     _list = _list + [a]     return _list for i in range(4):     _list = conc1(i) ## - list not passed You don't pass the list to the conc1 function, so you start with the default, an empty list, each time. --

Installing Python on CentOS 6 - a big pain

2012-01-18 Thread John Nagle
It turns out that installing Python 2.7.2 on CentOS 6.0 is a lot of work. Here are the official CentOS install instructions: http://www.centos.org/modules/newbb/viewtopic.php?topic_id=34515forum=41 Not only do you have to build Python from source, you have to install a lot of stuff before

Re: unzip function?

2012-01-18 Thread Hrvoje Niksic
Neal Becker ndbeck...@gmail.com writes: python has builtin zip, but not unzip A bit of googling found my answer for my decorate/sort/undecorate problem: a, b = zip (*sorted ((c,d) for c,d in zip (x,y))) That zip (*sorted... does the unzipping. But it's less than intuitively obvious.

Re: += does not work correct all alogn

2012-01-18 Thread Benjamin Kaplan
On Wed, Jan 18, 2012 at 4:52 AM, Wilfried Falk w_h_f...@yahoo.de wrote: Hello Pythons, attached to this email is a pdf-file which shows, that  += does not work well all along. Mybe somebody of you is able to explain my observations in this respect. I will be glad about an answer. Best

Please don't use setuptools, the rotten .egg install system.

2012-01-18 Thread John Nagle
Please don't use setuptools, the so-called easy installation system in your packages. It just makes things more complicated, adds dependencies, and needs too many weird options if things aren't exactly where it wants them. Since setuptools is non-standard, it has to be installed before

Re: Installing Python on CentOS 6 - a big pain

2012-01-18 Thread Benjamin Kaplan
On Wed, Jan 18, 2012 at 1:00 PM, John Nagle na...@animats.com wrote:  It turns out that installing Python 2.7.2 on CentOS 6.0 is a lot of work.  Here are the official CentOS install instructions: http://www.centos.org/modules/newbb/viewtopic.php?topic_id=34515forum=41 Not only do you have to

Re: scientific notation in legend (pylab)

2012-01-18 Thread simona bellavista
thank you, I am trying to learn python, but I am having a hard to find a good introduction to it. On Jan 15, 3:27 am, Jason Friedman ja...@powerpull.net wrote: Not sure why legend annotations makes the problem different, but perhaps this is a start: --

Re: Installing Python on CentOS 6 - a big pain

2012-01-18 Thread J.O. Aho
John Nagle wrote: It turns out that installing Python 2.7.2 on CentOS 6.0 is a lot of work. Here are the official CentOS install instructions: http://www.centos.org/modules/newbb/viewtopic.php?topic_id=34515forum=41 Don't see any official about the post, it's just another forum member who

Re: Please don't use setuptools, the rotten .egg install system.

2012-01-18 Thread Rick Johnson
On Jan 18, 12:24 pm, John Nagle na...@animats.com wrote:    Please don't use setuptools, the so-called easy installation system in your packages.  It just makes things more complicated, adds dependencies, and needs too many weird options if things aren't exactly where it wants them.  Since

Re: Please don't use setuptools, the rotten .egg install system.

2012-01-18 Thread Jerry Hill
On Wed, Jan 18, 2012 at 1:24 PM, John Nagle na...@animats.com wrote: Please don't use setuptools, the so-called easy installation system in your packages. It just makes things more complicated, adds dependencies, and needs too many weird options if things aren't exactly where it wants them.

from PyQt4 import QtWebKit ImportError: DLL load failed

2012-01-18 Thread goldtech
Hi, Using WinXP I installed PyQt from http://www.riverbankcomputing.co.uk/software/pyqt/download installation file: PyQt-Py2.7-x86-gpl-4.9-1 then tried: Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win32 Type copyright, credits or license() for more

Re: python logging filter limitation, looks intentional?

2012-01-18 Thread Chris Withers
On 17/01/2012 10:48, Vinay Sajip wrote: From: Chris Withersch...@simplistix.co.uk How breaking code? Configuration, maybe, but I can't see anyone being upset that filtering would begin working the same as everything else. This just feels like a bug... Well, it means that filters that don't

GOZERBOT 1.0 RELEASED

2012-01-18 Thread Bart Thate
I am proud ! Version 1.0 of GOZERBOT is here in the world. 7 years of evolutionary code development. The eagle has landed, the egg is layed See http://gozerbot.org - WELCOME TO GOZERBOT — GOZERBOT v1.0.1 FINAL documentation WELCOME TO GOZERBOT¶. I am pleased to present to you version 1.0 of

Re: unzip function?

2012-01-18 Thread Steven D'Aprano
On Wed, 18 Jan 2012 11:20:00 -0500, Devin Jeanpierre wrote: On Wed, Jan 18, 2012 at 10:27 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: That zip (*sorted... does the unzipping. But it's less than intuitively obvious. *shrug* If you understand what zip does, it should

Re: Installing Python on CentOS 6 - a big pain

2012-01-18 Thread Steven D'Aprano
On Wed, 18 Jan 2012 10:00:47 -0800, John Nagle wrote: This sort of thing is why Python is losing market share. Only on Planet Nagle. Do you have any evidence that Python actually *is* losing market share, or are you just trolling? -- Steven --

Re: Installing Python on CentOS 6 - a big pain

2012-01-18 Thread Albert W. Hopkins
On Wed, 2012-01-18 at 10:00 -0800, John Nagle wrote: Python does not just work. I should be able to command yum install python27. (And not clobber the Python 2.6 that comes with CentOS.) This sort of thing is why Python is losing market share. Or — and this is the more likely

Re: python logging filter limitation, looks intentional?

2012-01-18 Thread Terry Reedy
On 1/18/2012 4:02 PM, Chris Withers wrote: On 17/01/2012 10:48, Vinay Sajip wrote: How about an option that defaults to backwards compatibility mode for Python 2.7, flipped the other way in 3.3? 2.7 only gets bug fixes, and this does not seem to be one. It's not a bug, because it's like

Re: Installing Python on CentOS 6 - a big pain

2012-01-18 Thread alex23
On Jan 19, 4:00 am, John Nagle na...@animats.com wrote:    It turns out that installing Python 2.7.2 on CentOS 6.0 is a lot of work. There must have been some radical changes between Centos 5 6, then, as building Python 2.7 from scratch took all of 10 minutes.  Here are the official CentOS

Re: scientific notation in legend (pylab)

2012-01-18 Thread Jason Friedman
thank you, I am trying to learn python, but I am having a hard to find a good introduction to it. Try this: http://docs.python.org/py3k/tutorial/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Installing Python on CentOS 6 - a big pain

2012-01-18 Thread Steven D'Aprano
On Wed, 18 Jan 2012 19:10:43 -0800, alex23 wrote: On Jan 19, 4:00 am, John Nagle na...@animats.com wrote:    It turns out that installing Python 2.7.2 on CentOS 6.0 is a lot    of work. There must have been some radical changes between Centos 5 6, then, as building Python 2.7 from

Re: sys.argv as a list of bytes

2012-01-18 Thread Nobody
On Wed, 18 Jan 2012 09:05:42 +0100, Peter Otten wrote: Python has a special errorhandler, surrogateescape to deal with bytes that are not valid UTF-8. On Wed, 18 Jan 2012 11:16:27 +0100, Olive wrote: But is it safe even if the locale is not UTF-8? Yes. Peter's reference to UTF-8 is

Python Descriptor as Instance Attribute

2012-01-18 Thread Hua Yanghao
Hi all, Currently descriptors only work as class attribute, and doesn't work as a descriptor when it is an instance attribute. e.g. if we have descriptor class DescriptorTest, class Dummy(object): d = DescriptorTest() class Dummy2(object): def __init__(self): self.d =

Make never ends when compiling from source

2012-01-18 Thread Lucas Moauro
I'm trying to install Python 2.7 from source on Centos 6.0. When running make after first running ./configure successfully on the source directory, it performs the checks done by the configure step again in a loop, i.e: the checks are done infinitely many times, so the compiling process never

Re: Python Descriptor as Instance Attribute

2012-01-18 Thread Ian Kelly
On Wed, Jan 18, 2012 at 10:55 PM, Hua Yanghao huayang...@gmail.com wrote: I just do not understand, why such behavior is not a default in python. Or, is there a better design pattern here? The behavior is by design. First, keeping object behavior in the class definition simplifies the

Re: Make never ends when compiling from source

2012-01-18 Thread Lucas Moauro
Just found that the issue was that the clock was not set properly on the server. 2012/1/19 Lucas Moauro lage...@gmail.com I'm trying to install Python 2.7 from source on Centos 6.0. When running make after first running ./configure successfully on the source directory, it performs the checks

[issue13695] type specific to type-specific

2012-01-18 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com added the comment: Shut up, Georg! Ezio, please fix this two additional typos to close this bug report for good. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13695

[issue13811] In str.format an incorrect alignment option doesn't make fill char and onself absent

2012-01-18 Thread Eric V. Smith
Eric V. Smith e...@trueblade.com added the comment: I'm not sure what you're saying here. Is it that 'xx' should be ignored? The documentation says that 'xx' isn't fill and alignment, not that they don't exist. If they're not fill and alignment, then the format string is in error. --

[issue9208] SMTPHandler in the logging module does not handle unicode strings

2012-01-18 Thread Chris Withers
Chris Withers ch...@simplistix.co.uk added the comment: Just as a post-fix to this, the email handlers for the python logging framework that I maintain as a package on PyPI now handle unicode email correctly: http://pypi.python.org/pypi/mailinglogger/3.7.0 I'd suggest people looking for

[issue13811] In str.format an incorrect alignment option doesn't make fill char and onself absent

2012-01-18 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com added the comment: Please fix the error message to invalid format specifier -- nosy: +Retro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13811 ___

[issue13804] Python library structure creates hard to read code when using higher order functions

2012-01-18 Thread Martin Häcker
Martin Häcker spamfaen...@gmx.de added the comment: @stutzbach: I believe you got me wrong, as the example topic.questions is meant to return a list of questions that need concatenating - thus you can't save the second step. -- ___ Python tracker

[issue13807] logging.Handler.handlerError() may raise AttributeError in traceback.print_exception()

2012-01-18 Thread Austin Bingham
Changes by Austin Bingham austin.bing...@gmail.com: -- nosy: +abingham ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13807 ___ ___

[issue6531] atexit_callfuncs() crashing within Py_Finalize() when using multiple interpreters.

2012-01-18 Thread Graham Dumpleton
Graham Dumpleton graham.dumple...@gmail.com added the comment: What are the intentions with respect to atexit and sub interpreters? The original report was only about ensuring that the main interpreter doesn't crash if an atexit function was registered in a sub interpreter. So, was not

[issue13703] Hash collision security issue

2012-01-18 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I like what you've done in #13704 better than what I see in random-8.patch so far.  see the code review comments i've left on both issues. I didn't write 3106cc0a2024.diff patch attached to #13704, I just clicked on the button to

[issue13810] refer people to Doc/Makefile when not using 'make' to build main documentation

2012-01-18 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: The outdated command is addressed in issue#12415, and I think it's better to provide a precise command in devguide, so that if you don't use make you don't even need to understand where to grab the information to checkout third-party tools.

[issue13814] Generators as context managers.

2012-01-18 Thread Arkadiusz Wahlig
New submission from Arkadiusz Wahlig arkadiusz.wah...@gmail.com: Generators should support the with statement with __exit__ calling self.close(). with genfunc() as g: for item in g: print(item) -- messages: 151530 nosy: yak priority: normal severity: normal status: open

[issue6531] atexit_callfuncs() crashing within Py_Finalize() when using multiple interpreters.

2012-01-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: That said, for mod_wsgi I have extended sub interpreter destruction so that atexit callbacks registered in sub interpreters are called. For mod_wsgi though, sub interpreters are only destroyed on process shutdown. For the general case, a sub

[issue13814] Generators as context managers.

2012-01-18 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: If you want to call .close() automatically on something you can use contextlib.closing(): http://docs.python.org/library/contextlib.html#contextlib.closing -- nosy: +ezio.melotti ___ Python

[issue10109] itertools.product with infinite iterator cause MemoryError.

2012-01-18 Thread Sumudu Fernando
Sumudu Fernando sumu...@gmail.com added the comment: I don't agree with the response to this. It is true that as implemented (at least in 2.7, I don't have 3.x handy to check) itertools.product requires finite iterables. However this seems to be simply a consequence of the implementation and

[issue13796] use 'text=...' to define the text attribute of and xml.etree.ElementTree.Element

2012-01-18 Thread Pedro Andres Aranda Gutierrez
Pedro Andres Aranda Gutierrez paag...@gmail.com added the comment: Thanks a lot again :-) We have a saying here: you'll never go to sleep without having learnt something new :-) On Tue, Jan 17, 2012 at 4:11 PM, patrick vrijlandt rep...@bugs.python.org wrote: patrick vrijlandt

[issue5689] Support xz compression in tarfile module

2012-01-18 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset b86b54fcb5c2 by Lars Gustäbel in branch 'default': Issue #5689: Avoid excessive memory usage by using the default lzma preset. http://hg.python.org/cpython/rev/b86b54fcb5c2 --

[issue13815] tarfile.ExFileObject can't be wrapped using io.TextIOWrapper

2012-01-18 Thread Colin Watson
New submission from Colin Watson cjwat...@users.sourceforge.net: The file-like object returned by TarFile.extractfile can't be wrapped in an io.TextIOWrapper (which would be rather convenient in some cases to get something that reads str rather than bytes). The attached patch demonstrates the

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2012-01-18 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Revisiting memoryview.size: I foresee problems for NumPy users, since array.size has a different meaning there: x = array([[1,2,3], [4,5,6]], dtype='q') x.shape (2, 3) x.itemsize 8 len(x) 2 x.size 6 x.nbytes 48 So here we have:

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2012-01-18 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: nbytes sounds reasonable to me, given the unfortunate ambiguity of both size and len. As far as #12834 goes, I'm happy to go along with whatever you think is best. You've spent a lot more time down in the guts of the implementation than I

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2012-01-18 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Err, make that #12384 (oops) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10181 ___ ___

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2012-01-18 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- Removed message: http://bugs.python.org/msg151539 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10181 ___

[issue13803] Under Solaris, distutils doesn't include bitness in the directory name

2012-01-18 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Final code looks OK to me. -- type: enhancement - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13803 ___

[issue13813] sysconfig.py and distutils/util.py redundancy

2012-01-18 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I am afraid the distutils feature freeze prevents us from doing this, even in 3.3. Remember that Tarek initially moved sysconfig from distutils to the top level, and the removal was reverted alongside other improvements when there was outcry

[issue13813] sysconfig.py and distutils/util.py redundancy

2012-01-18 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: s/PEP 371/PEP 370/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13813 ___ ___

[issue11805] package_data only allows one glob per-package

2012-01-18 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I figured it would let people comment on the syntax I propose more easily if I extracted it from the patch. Here’s the example: package_data = cheese = data/templates/* doc/* doc/images/*.png We have a package name, equals

[issue1785] inspect gets broken by some descriptors

2012-01-18 Thread Vincent Pelletier
Vincent Pelletier plr.vinc...@gmail.com added the comment: This change causes the following behaviour: import inspect class B(object): ... def f(self): ... pass ... inspect.getmembers(B, inspect.ismethod) [] While I would expect the result to contain f: inspect.ismethod(B.f) True

[issue1785] inspect gets broken by some descriptors

2012-01-18 Thread Vincent Pelletier
Vincent Pelletier plr.vinc...@gmail.com added the comment: Sorry, I forgot to mention I'm using python2.7 . -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1785 ___

[issue13815] tarfile.ExFileObject can't be wrapped using io.TextIOWrapper

2012-01-18 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13815 ___ ___ Python-bugs-list mailing

[issue13695] type specific to type-specific

2012-01-18 Thread Boštjan Mejak
Changes by Boštjan Mejak bostjan.me...@gmail.com: -- nosy: -georg.brandl resolution: remind - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13695 ___

[issue13695] type specific to type-specific

2012-01-18 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com added the comment: I am closing this issue report and opening another issue report with the two new doc typos that were not reported here before the commit of Ezio Melotti. -- nosy: -docs@python, ezio.melotti, python-dev, rhettinger resolution: -

[issue13816] Two typos in the docs

2012-01-18 Thread Boštjan Mejak
New submission from Boštjan Mejak bostjan.me...@gmail.com: There's a typo in the docs for cmp_to_key() function. Fix the first sentence Transform an old-style comparison function to a key-function. to Transform an old-style comparison function to a key function. (delete the hyphen between

[issue1785] inspect gets broken by some descriptors

2012-01-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Thanks for noticing. The doc for ismethod() says: “Return true if the object is a bound method written in Python.” and the docstring agrees with that: “Return true if the object is an instance method. [...]” So the change isn't properly a

[issue1785] inspect gets broken by some descriptors

2012-01-18 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset f824744557ba by Antoine Pitrou in branch '2.7': Revert part of 13f56cd8dec1 (issue #1785) to avoid breaking getmembers() with unbound methods. http://hg.python.org/cpython/rev/f824744557ba --

[issue1785] inspect gets broken by some descriptors

2012-01-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I've backed out the part of the changeset that fixed getmembers(), so the old behaviour is restored. Other parts of the changeset (that e.g. fixed pydoc) have not been reverted. -- versions: +Python 2.7, Python 3.3

[issue13816] Two typos in the docs

2012-01-18 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Just as a note: It is not acceptable to be rude on the tracker or to remove people from the nosy list as you did in #13695. -- nosy: +skrah ___ Python tracker rep...@bugs.python.org

[issue13816] Two typos in the docs

2012-01-18 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: And not really working, as I get updates for all assignments to docs@python anyway. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13816

[issue13816] Two typos in the docs

2012-01-18 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com added the comment: I am deeply and truly sorry. Can we now fix this? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13816 ___

[issue11805] package_data only allows one glob per-package

2012-01-18 Thread Erik Bray
Erik Bray erik.m.b...@gmail.com added the comment: This patch works for me, and I'm happy with the syntax. Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11805 ___

[issue13804] Python library structure creates hard to read code when using higher order functions

2012-01-18 Thread Daniel Stutzbach
Daniel Stutzbach stutzb...@google.com added the comment: Ah - in your first example (the one with 3 lines) did you mean to use .extend instead of .append? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13804

[issue13817] deadlock in subprocess while running several threads using Popen

2012-01-18 Thread Christoph Glaubitz
New submission from Christoph Glaubitz chris...@chrigl.de: Starting several threads, each just starting a subprocess.Popen and use communicate cause a deadlock in subprocess. (see attached file) I can only reproduce this with python 2.7.2, not with any other versions. 2.6.5, 2.6.7 and 3.2.2

[issue13795] CDATA Element missing

2012-01-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Note that there is no need to emit CDATA section: it's just another method to write data, just like in Python \x41 and A are not distinct. The workaround there is a hack, since it redefines an internal method _write(). This function

[issue13816] Two typos in the docs

2012-01-18 Thread Justin Wehnes
Justin Wehnes jweh...@gmail.com added the comment: Removed the hyphen in function keys. Didn't really see a problem with using an apostrophe in 'ith' instead of a hyphen because I have seen it done both ways but changed it anyways. This is my first contribution so i needed the practice. Hope I

[issue13816] Two typos in the docs

2012-01-18 Thread Justin Wehnes
Changes by Justin Wehnes jweh...@gmail.com: Added file: http://bugs.python.org/file24274/i_th_hyphen.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13816 ___

[issue13704] Random number generator in Python core

2012-01-18 Thread Dave Malcolm
Changes by Dave Malcolm dmalc...@redhat.com: -- nosy: +dmalcolm ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13704 ___ ___ Python-bugs-list

[issue10278] add time.wallclock() method

2012-01-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: There are some issue on the Windows buildbots: == FAIL: test_wallclock (test.test_time.TimeTestCase) --

[issue13703] Hash collision security issue

2012-01-18 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: Patch version 7: - Make PyOS_URandom() private (renamed to _PyOS_URandom) - os.urandom() releases the GIL for I/O operation for its implementation reading /dev/urandom - move _Py_unicode_hash_secret_t

[issue13703] Hash collision security issue

2012-01-18 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: On Wed, Jan 18, 2012 at 10:59 AM, Marc-Andre Lemburg rep...@bugs.python.org wrote: Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: Patch version 7: - Make PyOS_URandom() private (renamed to

[issue13818] argparse: -h listening required options under optional arguments

2012-01-18 Thread Miguel Godinho
New submission from Miguel Godinho m...@miguelgodinho.com: Adding a 'required optional argument' as with: ``` app.add_argument('--dbsnp', required=True) ``` will still result on having that argument listed under the optional when the app is called with the help option (-h) Please note that

[issue13815] tarfile.ExFileObject can't be wrapped using io.TextIOWrapper

2012-01-18 Thread Lars Gustäbel
Changes by Lars Gustäbel l...@gustaebel.de: -- assignee: - lars.gustaebel nosy: +lars.gustaebel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13815 ___

[issue13819] _warnings settings are process-wide

2012-01-18 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: The settings in the C _warnings module are system-wide instead of being interpreter-wide. It seems the latter would be more desireable (and probably more compatible with the Python warnings module). -- components: Extension Modules,

[issue13763] Potentially hard to understand wording in devguide

2012-01-18 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I read 'program name' as referring to 'Mercurial', not 'hg'. Perhaps Tshepang did also. Read that way, it is not right. Reading it the intended way is not so obvious to one who has never typed 'hg' on a command line. It would be impossible

[issue13819] _warnings settings are process-wide

2012-01-18 Thread Alex Gaynor
Changes by Alex Gaynor alex.gay...@gmail.com: -- nosy: +alex ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13819 ___ ___ Python-bugs-list mailing

  1   2   >