ANN: dh-virtualenv 0.5 released

2013-10-12 Thread Jyrki Pulliainen
Hi, We (Spotify) have released the first public release of dh-virtualenv, a packaging tool that makes it possible to package virtualenvs inside Debian packaging. dh-virtualenv works by registering itself as a part of debhelper sequence, so pretty much any pre-existing Debian build system you

ANN: matplotlib 1.3.1

2013-10-12 Thread Michael Droettboom
I'm pleased to announce the release of matplotlib version 1.3.1. This is a bugfix release. It may be downloaded from here, or installed through the package manager of your choice (when available): http://matplotlib.org/downloads The changelog is copied below: New in 1.3.1

Re: Unicode Objects in Tuples

2013-10-12 Thread Ian Kelly
On Fri, Oct 11, 2013 at 7:31 AM, Stephen Tucker stephen_tuc...@sil.org wrote: On the original question, well, I accept Ned's answer (at 10.22). I also like the idea of a helper function given by Peter Otten at 09.51. It still seems like a crutch to help poor old Python 2.X to do what any

Re: ANN: CUI text editor Kaa 0.0.4

2013-10-12 Thread Atsuo Ishimoto
Hi, Thank you for your question. What's a console user interface? That's what Windows calls a DOS box. But otherwise you seem to imply it runs on Linux. I meant to say something like DOS box or Linux terminals. Unfortunately, Kaa does not work on Windows DOS box since Kaa requires curses

What version of glibc is Python using?

2013-10-12 Thread John Nagle
I'm trying to find out which version of glibc Python is using. I need a fix that went into glibc 2.10 back in 2009. (http://udrepper.livejournal.com/20948.html) So I try the recommended way to do this, on a CentOS server: /usr/local/bin/python2.7 Python 2.7.2 (default, Jan 18 2012, 10:47:23)

Re: What version of glibc is Python using?

2013-10-12 Thread Christian Gollwitzer
Am 12.10.13 08:34, schrieb John Nagle: I'm trying to find out which version of glibc Python is using. I need a fix that went into glibc 2.10 back in 2009. (http://udrepper.livejournal.com/20948.html) So I try the recommended way to do this, on a CentOS server: /usr/local/bin/python2.7 Python

Re: What version of glibc is Python using?

2013-10-12 Thread John Nagle
On 10/11/2013 11:50 PM, Christian Gollwitzer wrote: Am 12.10.13 08:34, schrieb John Nagle: I'm trying to find out which version of glibc Python is using. I need a fix that went into glibc 2.10 back in 2009. (http://udrepper.livejournal.com/20948.html) So I try the recommended way to do this,

Re: What version of glibc is Python using?

2013-10-12 Thread Ned Deily
In article l3as90$5bk$1...@dont-email.me, John Nagle na...@animats.com wrote: [...] Why is the info from plaform.libc_ver() so bogus? The code is here: http://hg.python.org/cpython/file/2.7/Lib/platform.py#l141 Perhaps you could open an issue on the Python bug tracker. -- Ned Deily,

Re: What version of glibc is Python using?

2013-10-12 Thread Christian Gollwitzer
Am 12.10.13 09:20, schrieb Ned Deily: In article l3as90$5bk$1...@dont-email.me, John Nagle na...@animats.com wrote: [...] Why is the info from plaform.libc_ver() so bogus? The code is here: http://hg.python.org/cpython/file/2.7/Lib/platform.py#l141 Perhaps you could open an issue on the

Re: What version of glibc is Python using?

2013-10-12 Thread Christian Gollwitzer
Am 12.10.13 09:53, schrieb Christian Gollwitzer: Am 12.10.13 09:20, schrieb Ned Deily: In article l3as90$5bk$1...@dont-email.me, John Nagle na...@animats.com wrote: [...] Why is the info from plaform.libc_ver() so bogus? The code is here:

Re: What version of glibc is Python using?

2013-10-12 Thread Terry Reedy
On 10/12/2013 3:53 AM, Christian Gollwitzer wrote: Am 12.10.13 09:20, schrieb Ned Deily: In article l3as90$5bk$1...@dont-email.me, John Nagle na...@animats.com wrote: [...] Why is the info from plaform.libc_ver() so bogus? The code is here:

Why isn't this code working how I want it to?

2013-10-12 Thread reubennottage
I've been working on a program and have had to halt it due a slight problem. Here's a basic version of the code: a = 'filled' b = 'filled' c = 'empty' d = 'empty' e = 'filled' f = 'empty' g = 'filled' testdict = {a : 'apple' , b : 'banana' , c : 'cake' , d : 'damson' , e : 'eggs' , f : 'fish'

Re: Why isn't this code working how I want it to?

2013-10-12 Thread Marco Nawijn
On Saturday, October 12, 2013 10:56:27 AM UTC+2, reuben...@gmail.com wrote: I've been working on a program and have had to halt it due a slight problem. Here's a basic version of the code: a = 'filled' b = 'filled' c = 'empty' d = 'empty' e = 'filled' f = 'empty' g =

Re: Why isn't this code working how I want it to?

2013-10-12 Thread Peter Otten
reubennott...@gmail.com wrote: I've been working on a program and have had to halt it due a slight problem. Here's a basic version of the code: a = 'filled' b = 'filled' c = 'empty' d = 'empty' e = 'filled' f = 'empty' g = 'filled' testdict = {a : 'apple' , b : 'banana' , c : 'cake'

Re: Why isn't this code working how I want it to?

2013-10-12 Thread Mark Lawrence
On 12/10/2013 09:56, reubennott...@gmail.com wrote: I've been working on a program and have had to halt it due a slight problem. Here's a basic version of the code: a = 'filled' b = 'filled' c = 'empty' d = 'empty' e = 'filled' f = 'empty' g = 'filled' testdict = {a : 'apple' , b : 'banana' ,

Re: Why isn't this code working how I want it to?

2013-10-12 Thread Jussi Piitulainen
reubennott...@gmail.com writes: [...] The following doesn't work. for fillempt in testdict: if fillempt == 'filled': print(testdict[fillempt]) This is equivalent to for fillempt in testdict: if fillempt == 'filled': print(testdict['filled']) which in turn can be

Re: Unicode Objects in Tuples

2013-10-12 Thread Ned Batchelder
On 10/12/13 2:20 AM, Ian Kelly wrote: On Fri, Oct 11, 2013 at 7:31 AM, Stephen Tucker stephen_tuc...@sil.org wrote: On the original question, well, I accept Ned's answer (at 10.22). I also like the idea of a helper function given by Peter Otten at 09.51. It still seems like a crutch to help

Re: Why isn't this code working how I want it to?

2013-10-12 Thread reubennottage
On Saturday, October 12, 2013 10:20:24 AM UTC+1, Peter Otten wrote: reubennott...@gmail.com wrote: I've been working on a program and have had to halt it due a slight problem. Here's a basic version of the code: a = 'filled' b = 'filled' c = 'empty' d = 'empty'

Re: Why isn't this code working how I want it to?

2013-10-12 Thread Mark Lawrence
On 12/10/2013 12:03, reubennott...@gmail.com wrote: On Saturday, October 12, 2013 10:20:24 AM UTC+1, Peter Otten wrote: reubennott...@gmail.com wrote: I've been working on a program and have had to halt it due a slight problem. Here's a basic version of the code: a = 'filled' b

Re: What version of glibc is Python using?

2013-10-12 Thread Ian Kelly
On Sat, Oct 12, 2013 at 2:46 AM, Terry Reedy tjre...@udel.edu wrote: On 10/12/2013 3:53 AM, Christian Gollwitzer wrote: That function is really bogus. It states itself, that it has intimate knowledge of how different libc versions add symbols to the executable and thus is probably only

Re: What version of glibc is Python using?

2013-10-12 Thread Steven D'Aprano
On Sat, 12 Oct 2013 05:43:22 -0600, Ian Kelly wrote: On Sat, Oct 12, 2013 at 2:46 AM, Terry Reedy tjre...@udel.edu wrote: On 10/12/2013 3:53 AM, Christian Gollwitzer wrote: That function is really bogus. It states itself, that it has intimate knowledge of how different libc versions add

Re: Unicode Objects in Tuples

2013-10-12 Thread Roy Smith
In article mailman.1034.1381575143.18130.python-l...@python.org, Ned Batchelder n...@nedbatchelder.com wrote: This idea that the repr can reconstruct the object always fell flat with me since the vast majority of classes don't have a repr that works that way. I look at it a little

web scraping

2013-10-12 Thread Ronald Routt
I am new to programming and trying to figure out python. I am trying to learn which tools and tutorials I need to use along with some good beginner tutorials in scraping the the web. The end result I am trying to come up with is scraping auto dealership sites for the following:

Re: web scraping

2013-10-12 Thread Mark Lawrence
On 12/10/2013 15:12, Ronald Routt wrote: I am new to programming and trying to figure out python. I am trying to learn which tools and tutorials I need to use along with some good beginner tutorials in scraping the the web. The end result I am trying to come up with is scraping auto

Re: What version of glibc is Python using?

2013-10-12 Thread Terry Reedy
On 10/12/2013 7:43 AM, Ian Kelly wrote: On Sat, Oct 12, 2013 at 2:46 AM, Terry Reedy tjre...@udel.edu wrote: On 10/12/2013 3:53 AM, Christian Gollwitzer wrote: That function is really bogus. It states itself, that it has intimate knowledge of how different libc versions add symbols to the

Error connecting to MySQL from Python

2013-10-12 Thread carlos . ortiz . asm
Hello guys I am currently working in a python project at my school. First I want to make clear that I'm not a python programmer (I was just called to put out the flames in this project because no one else would and I was brave enough to say yes). I have the following problem here. I have to

Re: Error connecting to MySQL from Python

2013-10-12 Thread Jussi Piitulainen
carlos.ortiz@gmail.com writes: So I wrote my method like this: ... cnxOMC = mysql.connector.connect(user, password, 'localhost', database) ... the following code

Re: Error connecting to MySQL from Python

2013-10-12 Thread MRAB
On 12/10/2013 17:09, carlos.ortiz@gmail.com wrote: Hello guys I am currently working in a python project at my school. First I want to make clear that I'm not a python programmer (I was just called to put out the flames in this project because no one else would and I was brave enough to

Re: Error connecting to MySQL from Python

2013-10-12 Thread Carlos Ortiz
On Saturday, October 12, 2013 11:46:49 AM UTC-5, Jussi Piitulainen wrote: carlos.o...@gmail.com writes: So I wrote my method like this: ... cnxOMC = mysql.connector.connect(user, password,

Re: OT: looking for best solutions for tracking projects and skills

2013-10-12 Thread Rob Clewley
I don't know about civic hacking, but Trello is a free online tool to track high level aspects of collaborative projects. It is somewhat focused on a to do planning perspective. But with the customizable columns, labels, and checklists associated with items in the view I think you might be able to

Re: Error connecting to MySQL from Python

2013-10-12 Thread Carlos Ortiz
On Saturday, October 12, 2013 12:13:05 PM UTC-5, MRAB wrote: On 12/10/2013 17:09, carlos.o...@gmail.com wrote: Hello guys I am currently working in a python project at my school. First I want to make clear that I'm not a python programmer (I was just called to put out the flames in this

Re: What version of glibc is Python using?

2013-10-12 Thread Nobody
On Sat, 12 Oct 2013 05:43:22 -0600, Ian Kelly wrote: Easier said than done. The module is currently written in pure Python, and the comment Note: Please keep this module compatible to Python 1.5.2 would appear to rule out the use of ctypes to call the glibc function. Last I heard, there was

Grant permission for your Python bug tracker account (taewong.seo).

2013-10-12 Thread Tae Wong
(You're not subscribed!) You want to apply issue #19038. When you try to log in to Python bug tracker using your account (taewong.seo), a message says that “you don't have permission to login”. -- https://mail.python.org/mailman/listinfo/python-list

Re: What version of glibc is Python using?

2013-10-12 Thread Ian Kelly
On Sat, Oct 12, 2013 at 9:59 AM, Terry Reedy tjre...@udel.edu wrote: On 10/12/2013 7:43 AM, Ian Kelly wrote: On Sat, Oct 12, 2013 at 2:46 AM, Terry Reedy tjre...@udel.edu wrote: On 10/12/2013 3:53 AM, Christian Gollwitzer wrote: That function is really bogus. It states itself, that it has

Re: web scraping

2013-10-12 Thread dvghana
On Saturday, October 12, 2013 7:12:38 AM UTC-7, Ronald Routt wrote: I am new to programming and trying to figure out python. I am trying to learn which tools and tutorials I need to use along with some good beginner tutorials in scraping the the web. The end result I am trying to

Re: closure = decorator?

2013-10-12 Thread Peter Cacioppi
On Thursday, October 10, 2013 6:51:21 AM UTC-7, Tim wrote: I've read a couple of articles about this, but still not sure. When someone talks about a closure in another language (I'm learning Lua on the side), is that the same concept as a decorator in Python? It sure looks like it.

Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-12 Thread Chris Angelico
On Sat, Oct 12, 2013 at 7:10 AM, Peter Cacioppi peter.cacio...@gmail.com wrote: Along with batteries included and we're all adults, I think Python needs a pithy phrase summarizing how well thought out it is. That is to say, the major design decisions were all carefully considered, and as a

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-12 Thread Steven D'Aprano
On Sun, 13 Oct 2013 09:37:58 +1100, Chris Angelico wrote: This is design. Python has a king (Guido). It wasn't built by a committee. Maybe you won't like some aspect of Python's design, but it has one, it's not just sloppily slapped together. While I agree with your general thrust, I don't

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-12 Thread Chris Angelico
On Sun, Oct 13, 2013 at 2:38 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Sun, 13 Oct 2013 09:37:58 +1100, Chris Angelico wrote: This is design. Python has a king (Guido). It wasn't built by a committee. Maybe you won't like some aspect of Python's design, but it has

Re: Inter-process locking

2013-10-12 Thread Jason Friedman
The lockfile solution seems to be working, thank you. On Fri, Oct 11, 2013 at 10:15 PM, Piet van Oostrum p...@vanoostrum.org wrote: Jason Friedman jsf80...@gmail.com writes: I have a 3rd-party process that runs for about a minute and supports only a single execution at a time. $ deploy If

[issue19227] test_multiprocessing_xxx hangs under Gentoo buildbots

2013-10-12 Thread Charles-François Natali
Charles-François Natali added the comment: Here is a more useful traceback: If the failures aren't linked to ENFILE, then you could use strace to find the process on which the test is doing a waitpid(), and then perform an strace and gdb on that process to see where it's stuck. And send it a

[issue19202] Additions to function docs: reduce and itertools.

2013-10-12 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: docs@python - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19202 ___

[issue19202] Additions to function docs: reduce and itertools.

2013-10-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: Almost all of these make the docs worse and should not be applied. The purpose of the equivalent code is simply to make the documentation clearer, not to show all the ways it could have been done. I do think Georg's reduce() equivalent should be added

[issue19201] Add 'x' mode to lzma.open()

2013-10-12 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- components: +Library (Lib) title: Add 'x' mode to lzma.open - Add 'x' mode to lzma.open() ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19201

[issue19222] Add 'x' mode to gzip.open()

2013-10-12 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- components: +Library (Lib) stage: - patch review title: gzip and 'x' mode open - Add 'x' mode to gzip.open() versions: -Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue19223] Add 'x' mode to bz2.open()

2013-10-12 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- components: +Library (Lib) stage: - patch review title: bz2 and 'x' mode open - Add 'x' mode to bz2.open() versions: -Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue19230] Reimplement the keyword module in C

2013-10-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: IMO this should be rejected. Failure to improve startup time + more complicated maintenance. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19230 ___

[issue19205] Don't import re and sysconfig in site.py

2013-10-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Christian, the test is failing on Snow Leopard: == FAIL: test_startup_imports (test.test_site.StartupImportTests) --

[issue12853] global name 'r' is not defined in upload.py

2013-10-12 Thread Esa Peuha
Esa Peuha added the comment: so I don't know where the global name 'r' is not defined message came from. It came from Python 2.7. There are two separate bugs here, one in 3.x and the other in 2.7: the 3.x bug has to do with bytes/string separation, while the 2.7 bug is that result was

[issue19205] Don't import re and sysconfig in site.py

2013-10-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset a57dfbba91f9 by Christian Heimes in branch 'default': Issue #19205: add debugging output for failing test on Snow Leopard http://hg.python.org/cpython/rev/a57dfbba91f9 -- ___ Python tracker

[issue12413] make faulthandler dump traceback of child processes

2013-10-12 Thread Richard Oudkerk
Changes by Richard Oudkerk shibt...@gmail.com: -- nosy: +sbt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12413 ___ ___ Python-bugs-list mailing

[issue19227] test_multiprocessing_xxx hangs under Gentoo buildbots

2013-10-12 Thread Richard Oudkerk
Richard Oudkerk added the comment: I'm already confused by the fact that the test is named test_multiprocessing_spawn and the error is coming from a module named popen_fork...) popen_spawn_posix.Popen is a subclass of popen_fork.Popen. -- ___

[issue19230] Reimplement the keyword module in C

2013-10-12 Thread Christian Heimes
Christian Heimes added the comment: Here is a simpler patch that directly uses the grammar definition to create a list of keywords. It completely removes the necessity of a script. -- components: +Extension Modules stage: - patch review Added file:

[issue19230] Reimplement the keyword module in C

2013-10-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: -1 again. We shouldn't gratuitously convert Python code to C code. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19230 ___

[issue19230] Reimplement the keyword module in C

2013-10-12 Thread Georg Brandl
Georg Brandl added the comment: Well, combined with the fact that it gets rid of a manual regeneration step (that is easy to forget, since adding a keyword is not done very often) I think it's a net gain. The same could be done with the token module BTW. -- nosy: +georg.brandl

[issue19230] Reimplement the keyword module in C

2013-10-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, combined with the fact that it gets rid of a manual regeneration step (that is easy to forget, since adding a keyword is not done very often) I think it's a net gain. If it needs to be automated it can be added to the Makefile... --

[issue13203] Doc: say id() is only useful for existing objects

2013-10-12 Thread Georg Brandl
Georg Brandl added the comment: Suggestion attached. -- keywords: +patch Added file: http://bugs.python.org/file32059/id_unique.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13203 ___

[issue19231] ctype cant's use printf

2013-10-12 Thread FreedomKnight
New submission from FreedomKnight: the code is simple, so i paste all of mycode #!/usr/bin/env python3 from ctypes import * cdll.LoadLibrary(libc.so.6) libc = CDLL(libc.so.6) libc.printf(hello\n) result: h expect result: hello plateform: fedora 19 x64 python3 (3.3.2)

[issue19232] Speed up _decimal import

2013-10-12 Thread Stefan Krah
New submission from Stefan Krah: As discussed on python-dev, importing _decimal at the bottom of decimal.py is about 9x slower than importing _decimal directly. -- assignee: skrah components: Extension Modules messages: 199553 nosy: skrah priority: normal severity: normal stage: needs

[issue19231] ctype cant's use printf

2013-10-12 Thread Georg Brandl
Georg Brandl added the comment: In Python 3, hello\n is a Unicode string. printf() expects a byte string, so you should use bhello\n (or s.encode() for string object named s). -- nosy: +georg.brandl resolution: - invalid status: open - closed ___

[issue19232] Speed up _decimal import

2013-10-12 Thread STINNER Victor
STINNER Victor added the comment: I proposed something similar for issue #19229. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19232 ___ ___

[issue19232] Speed up _decimal import

2013-10-12 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19232 ___ ___ Python-bugs-list

[issue19230] Reimplement the keyword module in C

2013-10-12 Thread STINNER Victor
STINNER Victor added the comment: If it needs to be automated it can be added to the Makefile... I tested keyword_grammar.patch on a fresh Python source code (make distclean; ./configure --with-pydebug; make): I can compile Python. I don't understand what should be automated? This patch

[issue13203] Doc: say id() is only useful for existing objects

2013-10-12 Thread Ezio Melotti
Ezio Melotti added the comment: LGTM + created and deleted during execution of the ``id()`` If you want to be more accurate you could say before and after instead of during. -- ___ Python tracker rep...@bugs.python.org

[issue19232] Speed up _decimal import

2013-10-12 Thread Eric V. Smith
Eric V. Smith added the comment: Remember that one reason for importing the C version at the bottom of the python version is so that alternate implementations (PyPy, IronPython, Jython) could provide partial versions of the C (or equivalent) versions. By importing after the Python version,

[issue19232] Speed up _decimal import

2013-10-12 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- keywords: +patch Added file: http://bugs.python.org/file32060/issue19232.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19232 ___

[issue18754] Run Python child processes in isolated mode in the test suite?

2013-10-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 72b2e7b74307 by Victor Stinner in branch 'default': Close #18754: Run Python child processes in isolated more in the test suite. http://hg.python.org/cpython/rev/72b2e7b74307 -- nosy: +python-dev resolution: - fixed stage: -

[issue18758] Fix internal references in the documentation

2013-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch to Sphinx which helped me to search dead internal references. Not all references were fixed by proposed patches. -- Added file: http://bugs.python.org/file32061/sphinx_warn_refs.patch ___ Python

[issue19233] test_io.test_interrupted_write_retry_text() hangs on Solaris 10 and FreeBSD 7.2

2013-10-12 Thread STINNER Victor
New submission from STINNER Victor: http://buildbot.python.org/all/builders/x86%20FreeBSD%207.2%203.x/builds/4531/steps/test/logs/stdio [136/380] test_io Timeout (1:00:00)! Thread 0x28401040: File /usr/home/db3l/buildarea/3.x.bolen-freebsd7/build/Lib/test/test_io.py, line 3215 in

[issue19131] Broken support of compressed AIFC files

2013-10-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19131 ___ ___

[issue19232] Speed up _decimal import

2013-10-12 Thread Stefan Krah
Stefan Krah added the comment: Right, let's start collecting objections. :) Mark, Raymond: Would you support the change (__name__ hack and all)? Maciej: Is this approach a problem for PyPy? -- nosy: +fijall, mark.dickinson, rhettinger ___ Python

[issue19205] Don't import re and sysconfig in site.py

2013-10-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset a57dfbba91f9 by Christian Heimes in branch 'default': Issue #19205: add debugging output for failing test on Snow Leopard http://hg.python.org/cpython/rev/a57dfbba91f9 So the import re comes from _osx_support, _osx_support is imported by

[issue19232] Speed up _decimal import

2013-10-12 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19232 ___

[issue19232] Speed up _decimal import

2013-10-12 Thread STINNER Victor
STINNER Victor added the comment: If the Python implementation is renamed to _pydecimal, I don't expect it to be used in CPython. I never used _pyio in a real application, only for some tests to debug. I don't think that we need the __name__ = 'decimal' hack. If you really want to keep it,

[issue19205] Don't import re and sysconfig in site.py

2013-10-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9f6ef09f6492 by Christian Heimes in branch 'default': Issue #19205: _osx_support uses the re module all over the place. Omit the test for nw. http://hg.python.org/cpython/rev/9f6ef09f6492 -- ___ Python

[issue19229] operator.py: move the Python implementation in the else block of try/except ImportError

2013-10-12 Thread Stefan Krah
Stefan Krah added the comment: Using the microbenchmark I get (standard version): ./python -m timeit import sys; modname='operator' __import__(modname); del sys.modules[modname] 1000 loops, best of 3: 460 usec per loop Victor's version: ./python -m timeit import sys; modname='operator'

[issue19232] Speed up _decimal import

2013-10-12 Thread Stefan Krah
Stefan Krah added the comment: I guess if some of the pickling stuff get's rewritten, we can drop __name__. The other thing is that traditionally the types were decimal.Decimal etc., so I'm not sure if it is good idea to have _decimal.Decimal and _pydecimal.Decimal. Of course adding __module__

[issue18804] pythorun.c: is_valid_fd() should not duplicate the file descriptor

2013-10-12 Thread STINNER Victor
STINNER Victor added the comment: Did you encounter this in real life? Well, my initial concern was that dup() creates an inheritable file descriptor. It is unlikely that fork() occurs while is_valid_fd() is called, because is_valid_fd() is only called early during Python initialization.

[issue18509] CJK decoders should return MBERR_EXCEPTION on PyUnicodeWriter error

2013-10-12 Thread STINNER Victor
STINNER Victor added the comment: This is a regression of Python 3.4, so it would be nice to fix it before the Python 3.4 final. -- nosy: +larry priority: normal - release blocker ___ Python tracker rep...@bugs.python.org

[issue19232] Speed up _decimal import

2013-10-12 Thread STINNER Victor
STINNER Victor added the comment: The other thing is that traditionally the types were decimal.Decimal etc., so I'm not sure if it is good idea to have _decimal.Decimal and _pydecimal.Decimal. Why not renaming the _decimal module to decimal? --

[issue19232] Speed up _decimal import

2013-10-12 Thread Stefan Krah
Stefan Krah added the comment: _decimal already lies about its name (for pickling). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19232 ___ ___

[issue19221] Upgrade to Unicode 6.3.0

2013-10-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset cc1e2f9a569a by Ezio Melotti in branch 'default': #19221: update whatsnew entry about UCD version. http://hg.python.org/cpython/rev/cc1e2f9a569a -- ___ Python tracker rep...@bugs.python.org

[issue12187] subprocess.wait() with a timeout uses polling on POSIX

2013-10-12 Thread STINNER Victor
STINNER Victor added the comment: On BSDs and OS X, you can use kqueue with EVFILT_PROC+NOTE_EXIT to do exactly that. No polling required. Unfortunately there's no Linux equivalent. http://stackoverflow.com/questions/1157700/how-to-wait-for-exit-of-non-children-processes/7477317#7477317 An

[issue12187] subprocess.wait() with a timeout uses polling on POSIX

2013-10-12 Thread STINNER Victor
STINNER Victor added the comment: On Linux, it possible to watch processes using a netlink socket: http://www.outflux.net/blog/archives/2010/07/01/reporting-all-execs/ Example: http://users.suse.com/~krahmer/exec-notify.c Python binding (written in Cython) for proc connector:

[issue9548] locale can be imported at startup but relies on too many library modules

2013-10-12 Thread Brett Cannon
Brett Cannon added the comment: Just a quick favour to ask people: please post benchmark numbers of startup_nosite and normal_startup with your patches, otherwise we are taking stabs in the dark that the code complexity being suggested is worth it. --

[issue19131] Broken support of compressed AIFC files

2013-10-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 567241d794bd by Serhiy Storchaka in branch '2.7': Issue #19131: The aifc module now correctly reads and writes sampwidth of http://hg.python.org/cpython/rev/567241d794bd New changeset 863a92cc9e03 by Serhiy Storchaka in branch '3.3': Issue #19131:

[issue19230] Reimplement the keyword module in C

2013-10-12 Thread Brett Cannon
Brett Cannon added the comment: Is there any change in any benchmark? -- nosy: +brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19230 ___

[issue19232] Speed up _decimal import

2013-10-12 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19232 ___ ___ Python-bugs-list mailing

[issue12187] subprocess.wait() with a timeout uses polling on POSIX

2013-10-12 Thread Charles-François Natali
Charles-François Natali added the comment: Honestly, I think the extra complexity and non-portability isn't worth it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12187 ___

[issue19108] Benchmark runner tries to execute external Python command and fails on error reporting

2013-10-12 Thread Stefan Behnel
Stefan Behnel added the comment: Here's a patch that replaces the current simplistic Python executable command config with a dedicated PythonRuntime config class. That makes it easy to properly pass around the program specific configuration. Part of that is the Python executable path, the

[issue19233] test_io.test_interrupted_write_retry_text() hangs on Solaris 10 and FreeBSD 7.2

2013-10-12 Thread Charles-François Natali
Charles-François Natali added the comment: I think the problem is that those buildbots are really slow (just look at the second buildbot's backlog), and the signal is delivered before the large buffer is allocated, hence the write() syscall doesn't fail with EINTR. -- nosy: +neologix

[issue9548] locale can be imported at startup but relies on too many library modules

2013-10-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here normal_startup and startup_nosite wouldn't show a difference (under Linux anyway) because the locale module is only imported for non-interactive streams, AFAICT. -- resolution: - fixed stage: patch review - committed/rejected status: open -

[issue12187] subprocess.wait() with a timeout uses polling on POSIX

2013-10-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Honestly, I think the extra complexity and non-portability isn't worth it. That's what I think too. If we want to avoid polling, there's another approach: - fork() a first time - fork() in the first child - exec() in the second child - in the first child, call

[issue8090] PEP 4 should say something about the standard library

2013-10-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset f7e3f6a53823 by Georg Brandl in branch 'default': PEP 4: convert to reST, update SourceForge - bugs.python.org, update DeprecationWarning policy http://hg.python.org/peps/rev/f7e3f6a53823 -- nosy: +python-dev resolution: - fixed stage:

[issue13203] Doc: say id() is only useful for existing objects

2013-10-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8525cc1f342f by Georg Brandl in branch '2.7': Closes #13203: add a FAQ section about seemingly duplicate id()s. http://hg.python.org/cpython/rev/8525cc1f342f -- nosy: +python-dev resolution: - fixed stage: needs patch - committed/rejected

[issue13203] Doc: say id() is only useful for existing objects

2013-10-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0d5de993db66 by Georg Brandl in branch '3.3': Closes #13203: add a FAQ section about seemingly duplicate id()s. http://hg.python.org/cpython/rev/0d5de993db66 -- ___ Python tracker rep...@bugs.python.org

[issue19179] doc bug: confusing table of values

2013-10-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9aae58596349 by Georg Brandl in branch '2.7': Closes #19179: make table of XML vulnerabilities clearer by using everyday booleans and explaining the table beforehand. http://hg.python.org/cpython/rev/9aae58596349 --

[issue18758] Fix internal references in the documentation

2013-10-12 Thread Georg Brandl
Georg Brandl added the comment: The -n (nitpicky) option to Sphinx should also report missing references. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18758 ___

[issue19179] doc bug: confusing table of values

2013-10-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6b0ca3963ff1 by Georg Brandl in branch '3.3': Closes #19179: make table of XML vulnerabilities clearer by using everyday booleans and explaining the table beforehand. http://hg.python.org/cpython/rev/6b0ca3963ff1 -- nosy: +python-dev

[issue19202] Additions to function docs: reduce and itertools.

2013-10-12 Thread Georg Brandl
Georg Brandl added the comment: What do you think of the two references added to the itertools docs? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19202 ___

  1   2   >