whatthewhat 1.0

2014-02-17 Thread Doug Hellmann
whatthewhat 1.0 [1]whatthewhat is a tool for launching a Google search for exceptions from Python apps. It was inspired by some comments [2]Lynn Root made about teaching new developers that it is OK to search for error messages as part of learning about Python and programming in

Re: Explanation of list reference

2014-02-17 Thread Steven D'Aprano
On Sun, 16 Feb 2014 22:28:23 -0500, Roy Smith wrote: So when does code become data? When it's represented by an object. OK, now take somebody who knows lisp and try to explain to him or her why Python's eval() doesn't mean data is code. Yeah, I know that's pushing things a bit, but I'm

Does CPython already has Peephole optimizations?

2014-02-17 Thread Laxmikant Chitare
Hello All, I read about this article: http://www.python.org/workshops/1998-11/proceedings/papers/montanaro/montanaro.html Just wanted to clarify whether CPython already includes these kind of byte code optimizations? Are all the temporary variables removed when byte code is generated? Regards,

Re: Does CPython already has Peephole optimizations?

2014-02-17 Thread Peter Otten
Laxmikant Chitare wrote: Hello All, I read about this article: http://www.python.org/workshops/1998-11/proceedings/papers/montanaro/montanaro.html Just wanted to clarify whether CPython already includes these kind of byte code optimizations? Are all the temporary variables removed when

Re: Does CPython already has Peephole optimizations?

2014-02-17 Thread Steven D'Aprano
On Mon, 17 Feb 2014 13:54:25 +0530, Laxmikant Chitare wrote: I read about this article: http://www.python.org/workshops/1998-11/proceedings/papers/montanaro/ montanaro.html Just wanted to clarify whether CPython already includes these kind of byte code optimizations? Are all the temporary

Re: Python version problem for rpm

2014-02-17 Thread Mark Lawrence
On 17/02/2014 06:00, anju tiwari wrote: Hi all, I have two version of python 2.4 and 2.7. By default python version is 2.4 . I want to install need to install some rpm which needs python 2.7 interpreter. how can I enable 2.7 interpreter for only those packages which are requiring python 2.7,

Re: How to use logging

2014-02-17 Thread Mark Lawrence
On 17/02/2014 07:37, kumar wrote: Hi folks, i'm new to python i understood the logging mechanism but unable to understand how these are applied in real time examples can any body help me out Start here http://docs.python.org/3/howto/logging.html, if that's not good enough please

[OT]Internet Trolls Really Are Horrible People

2014-02-17 Thread Mark Lawrence
http://www.slate.com/articles/health_and_science/climate_desk/2014/02/internet_troll_personality_study_machiavellianism_narcissism_psychopathy.html Dedicated to all trolls everywhere. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language.

Re: Does CPython already has Peephole optimizations?

2014-02-17 Thread Ned Batchelder
On 2/17/14 3:59 AM, Steven D'Aprano wrote: On Mon, 17 Feb 2014 13:54:25 +0530, Laxmikant Chitare wrote: I read about this article: http://www.python.org/workshops/1998-11/proceedings/papers/montanaro/ montanaro.html Just wanted to clarify whether CPython already includes these kind of byte

Import order question

2014-02-17 Thread Nagy László Zsolt
I have a class hierarchy like this: Widget - VisualWidget - BsWidget and then BsWidget has many descendants: Desktop, Row, Column, Navbar etc. Widgets can have children. They are stored in a tree. In order to manage the order of widgets, I need methods to append children. (And later: insert

Re: select(sock) indicates not-ready, but sock.recv does not block

2014-02-17 Thread Roy Smith
In article mailman.7083.1392618926.18130.python-l...@python.org, Nikolaus Rath nikol...@rath.org wrote: Hello, I have a problem with using select. I can reliably reproduce a situation where select.select((sock.fileno(),), (), (), 0) returns ((),(),()) (i.e., no data ready for reading), but

Re: Import order question

2014-02-17 Thread Ben Finney
Nagy László Zsolt gand...@shopzeus.com writes: I have a class hierarchy like this: Widget - VisualWidget - BsWidget and then BsWidget has many descendants: Desktop, Row, Column, Navbar etc. None of this implies anything about which modules you place these in; Python is not Java, and you

Re: Import order question

2014-02-17 Thread Peter Otten
Nagy László Zsolt wrote: I have a class hierarchy like this: Widget - VisualWidget - BsWidget and then BsWidget has many descendants: Desktop, Row, Column, Navbar etc. Widgets can have children. They are stored in a tree. In order to manage the order of widgets, I need methods to

Re: Explanation of list reference

2014-02-17 Thread Rustom Mody
On Monday, February 17, 2014 12:01:18 PM UTC+5:30, Steven D'Aprano wrote: I take it that you haven't spent much time around beginners? Perhaps you should spend some time on the tutor mailing list. If you do, you will see very few abstract or philosophical questions such as whether

Re: Does CPython already has Peephole optimizations?

2014-02-17 Thread Terry Reedy
On 2/17/2014 3:59 AM, Steven D'Aprano wrote: On Mon, 17 Feb 2014 13:54:25 +0530, Laxmikant Chitare wrote: I read about this article: http://www.python.org/workshops/1998-11/proceedings/papers/montanaro/ montanaro.html Just wanted to clarify whether CPython already includes these kind of

Re: Import order question

2014-02-17 Thread Terry Reedy
On 2/17/2014 8:01 AM, Nagy László Zsolt wrote: I have a class hierarchy like this: Widget - VisualWidget - BsWidget and then BsWidget has many descendants: Desktop, Row, Column, Navbar etc. Widgets can have children. They are stored in a tree. In order to manage the order of widgets, I need

Why is the interpreter is returning a 'reference'?

2014-02-17 Thread Nir
k = ['hi','boss'] k ['hi', 'boss'] k= [s.upper for s in k] k [built-in method upper of str object at 0x021B2AF8, built-in method upper of str object at 0x02283F58] Why doesn't the python interpreter just return ['HI, 'BOSS'] ? This isn't a big deal, but I am just curious as

Re: Why is the interpreter is returning a 'reference'?

2014-02-17 Thread Joel Goldstick
On Feb 17, 2014 12:05 PM, Nir nircher...@gmail.com wrote: k = ['hi','boss'] k ['hi', 'boss'] k= [s.upper for s in k S.upper() k [built-in method upper of str object at 0x021B2AF8, built-in method upper of str object at 0x02283F58] Why doesn't the python interpreter

Re: Why is the interpreter is returning a 'reference'?

2014-02-17 Thread Ned Batchelder
On 2/17/14 12:00 PM, Nir wrote: k = ['hi','boss'] k ['hi', 'boss'] k= [s.upper for s in k] k [built-in method upper of str object at 0x021B2AF8, built-in method upper of str object at 0x02283F58] Why doesn't the python interpreter just return ['HI, 'BOSS'] ? This isn't a

Re: Why is the interpreter is returning a 'reference'?

2014-02-17 Thread emile
On 02/17/2014 09:00 AM, Nir wrote: k = ['hi','boss'] k ['hi', 'boss'] k= [s.upper for s in k] s.upper is a reference to the method upper of s -- to execute the method add parens -- s.upper() Emile k [built-in method upper of str object at 0x021B2AF8, built-in method upper of

Re: Why is the interpreter is returning a 'reference'?

2014-02-17 Thread Marko Rauhamaa
Nir nircher...@gmail.com: k= [s.upper for s in k] k [built-in method upper of str object at 0x021B2AF8, built-in method upper of str object at 0x02283F58] Why doesn't the python interpreter just return ['HI, 'BOSS'] ? Try: k = [ s.upper() for s in k ] Marko --

Re: Why is the interpreter is returning a 'reference'?

2014-02-17 Thread Zachary Ware
On Mon, Feb 17, 2014 at 11:00 AM, Nir nircher...@gmail.com wrote: k = ['hi','boss'] k ['hi', 'boss'] k= [s.upper for s in k] k [built-in method upper of str object at 0x021B2AF8, built-in method upper of str object at 0x02283F58] Why doesn't the python interpreter just

Getting a stable virtual env

2014-02-17 Thread P J
Hi ppl, I'm trying to figure out the whole virtualenv story. Right now I'm using it to creating an environment for our upcoming debian upgrade to squeeze. I'm doing some tests in our current distrib (python 2.5). I have come to realize that a lot of packages in the version I'm interested in are

Re: Getting a stable virtual env

2014-02-17 Thread JM
This one should be in plain text, sorry guys I'm trying to get used to this new mail address and client. Hi ppl, I'm trying to figure out the whole virtualenv story. Right now I'm using it to creating an environment for our upcoming debian upgrade to squeeze. I'm doing some tests in our current

Re: Import order question

2014-02-17 Thread Nagy László Zsolt
Here is the problem: these methods should create instances of Row, Column and Navbar. But this leads to circular imports. It should not; Python is not Java. Use modules to group your class definitions conceptually. There is no need whatever to separate every class into a different module. If

Re: Explanation of list reference

2014-02-17 Thread Rotwang
On 17/02/2014 06:21, Steven D'Aprano wrote: On Mon, 17 Feb 2014 11:54:45 +1300, Gregory Ewing wrote: [...] [1] Mathematicians tried this. Everything is a set! Yeah, right... No, that's okay. You only get into trouble when you have self-referential sets, like the set of all sets that don't

Re: Import order question

2014-02-17 Thread Dave Angel
Terry Reedy tjre...@udel.edu Wrote in message: On 2/17/2014 8:01 AM, Nagy László Zsolt wrote: I have a class hierarchy like this: Widget - VisualWidget - BsWidget and then BsWidget has many descendants: Desktop, Row, Column, Navbar etc. Widgets can have children. They are stored in a

Re: Problem importing libraries installed with PIP in Eclipse

2014-02-17 Thread Fabio Zadrozny
On Sun, Feb 16, 2014 at 11:52 AM, Renato rvernu...@gmail.com wrote: It's solved now, oh my god I was so stupid! I created a package named pybrain for testing PyBrain module, so obviously when I tryed to import something from PyBrain library, Python would import all modules from this personal

Re: How to use logging

2014-02-17 Thread John Gordon
In 5a53c1ca-1104-40f2-9401-a6d3b3673...@googlegroups.com kumar arun.achu...@gmail.com writes: Hi folks, i'm new to python i understood the logging mechanism but unable to understand how these are applied in real time examples can any body help me out Here are some very simple examples:

Re: Why is the interpreter is returning a 'reference'?

2014-02-17 Thread John Gordon
In 9b80c233-ad31-44c8-8a6e-9002ab11b...@googlegroups.com Nir nircher...@gmail.com writes: k = ['hi','boss'] k ['hi', 'boss'] k= [s.upper for s in k] k [built-in method upper of str object at 0x021B2AF8, built-in method upper of str object at 0x02283F58] Why

Re: Problem importing libraries installed with PIP in Eclipse

2014-02-17 Thread Renato Vernucio
Hi Fabio, I wish I could use the latest PyDev, unfortunately I need Aptana studio. It's a pity they won't let us install individual packages from their bundle. If they did, I could install only the other packages and install PyDev separately. Thanks for your help once again. Yours, Renato

Re: Import order question

2014-02-17 Thread Ben Finney
Nagy László Zsolt gand...@shopzeus.com writes: Use modules to group your class definitions conceptually. There is no need whatever to separate every class into a different module. If there is a consensus, and it is really desireable to put all these related classes into the same module,

NEW INFORMATION ON HUMAN DEVONIAN ORIGINS

2014-02-17 Thread MAOIST
http://thrinaxodon.wordpress.com/faq/ -- Thrinaxodon, the ultimate defender of USENET. -- https://mail.python.org/mailman/listinfo/python-list

Re: Google Cloud Platform and GlassSolver Project

2014-02-17 Thread Physics
Does ANYONE have a clue how to do this? I understand that it is hard but geez... -- https://mail.python.org/mailman/listinfo/python-list

Re: NEW INFORMATION ON HUMAN DEVONIAN ORIGINS

2014-02-17 Thread Physics
On Monday, February 17, 2014 7:44:20 PM UTC-5, MAOIST wrote: http://thrinaxodon.wordpress.com/faq/ -- Thrinaxodon, the ultimate defender of USENET. What The HELL? -- https://mail.python.org/mailman/listinfo/python-list

Re: NEW INFORMATION ON HUMAN DEVONIAN ORIGINS

2014-02-17 Thread Chris Angelico
On Tue, Feb 18, 2014 at 11:58 AM, Physics eliasbylar...@gmail.com wrote: On Monday, February 17, 2014 7:44:20 PM UTC-5, MAOIST wrote: [ link deleted ] -- Thrinaxodon, the ultimate defender of USENET. What The HELL? These are just spam. Ignore them. And if you must respond, please remove

Re: select(sock) indicates not-ready, but sock.recv does not block

2014-02-17 Thread Nikolaus Rath
Nikolaus Rath nikol...@rath.org writes: Hello, I have a problem with using select. I can reliably reproduce a situation where select.select((sock.fileno(),), (), (), 0) returns ((),(),()) (i.e., no data ready for reading), but an immediately following sock.recv() returns data without

Re: Google Cloud Platform and GlassSolver Project

2014-02-17 Thread Steven D'Aprano
On Mon, 17 Feb 2014 16:57:34 -0800, Physics wrote: Does ANYONE have a clue how to do this? I understand that it is hard but geez... Absolutely no clue what your question is. You seem to assume that: - we know what God's algorithm is; - we know what God's Number is; - we understand what you

Re: Google Cloud Platform and GlassSolver Project

2014-02-17 Thread Chris Angelico
On Tue, Feb 18, 2014 at 1:52 PM, Steven D'Aprano st...@pearwood.info wrote: On Mon, 17 Feb 2014 16:57:34 -0800, Physics wrote: Does ANYONE have a clue how to do this? I understand that it is hard but geez... Absolutely no clue what your question is. You seem to assume that: - we know what

Re spam

2014-02-17 Thread Terry Reedy
On 2/17/2014 7:58 PM, Physics wrote: A response to a spammer who changed email to avoid filters. If you want to do anything, forward the message with headers to Original-X-Complaints-To: ab...@aioe.org asking them to try harder to block the person. -- Terry Jan Reedy --

Re: Does CPython already has Peephole optimizations?

2014-02-17 Thread Laxmikant Chitare
Thank you all for the enlightening inputs. I have learnt a lot just with this one question. Great to know about dis library. Ned, from explanation I now realize how important it is to do impact analysis. Things are not always rosy :). I have always appreciated everyone over this list. This is

[issue20655] test_subprocess is not executed in python -m test.test_asyncio

2014-02-17 Thread Vajrasky Kok
New submission from Vajrasky Kok: ethan@amiau:~/Documents/code/python/cpython3.4$ cat Lib/test/test_asyncio/tests.txt test_asyncio.test_base_events test_asyncio.test_events test_asyncio.test_futures test_asyncio.test_locks test_asyncio.test_proactor_events test_asyncio.test_queues

[issue20655] test_subprocess is not executed in python -m test.test_asyncio

2014-02-17 Thread Vajrasky Kok
Vajrasky Kok added the comment: The second is the permanent fix so we don't need to add new test to tests.txt every time we want to add new test to asyncio test bundle. -- Added file: http://bugs.python.org/file34115/permanent_fix_for_executing_test_asyncio_in_bundle.patch

[issue20654] Pydoc (and help) fails with socket.AddressFamily

2014-02-17 Thread Vajrasky Kok
Vajrasky Kok added the comment: This is the preliminary patch for this bug. The bug happens because AddressFamily.AF_UNSPEC is 0. Then you have this if condition: getattr(object, name, None) or homecls.__dict__[name] I'll contemplate whether we should add unit test for this or not.

[issue20654] Pydoc (and help) fails with socket.AddressFamily

2014-02-17 Thread Vajrasky Kok
Vajrasky Kok added the comment: I just realized that Enum member could be None. I'll think how to improve this patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20654 ___

[issue20655] test_subprocess is not executed in python -m test.test_asyncio

2014-02-17 Thread STINNER Victor
STINNER Victor added the comment: I prefer to dynamically discover tests, as we do in all other Python tests. I don't like hardcoded list, it leads to such issue. @Guido: What do you think? -- ___ Python tracker rep...@bugs.python.org

[issue20652] Example in asyncio task gives resource warning

2014-02-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset ea4c74cc4da5 by Victor Stinner in branch 'default': Close #20652: asyncio doc: close the event loop in run_forever() example. Fix http://hg.python.org/cpython/rev/ea4c74cc4da5 -- nosy: +python-dev resolution: - fixed stage: -

[issue20648] 3.4 cherry-pick: multiple changesets for asyncio

2014-02-17 Thread STINNER Victor
STINNER Victor added the comment: changeset: 89231:ea4c74cc4da5 tag: tip user:Victor Stinner victor.stin...@gmail.com date:Mon Feb 17 10:54:30 2014 +0100 files: Doc/library/asyncio-task.rst description: Close #20652: asyncio doc: close the event loop in

[issue20638] KeyError building the Python html doc with sphinx

2014-02-17 Thread Xavier de Gaye
Xavier de Gaye added the comment: $ hg log -r tip changeset: 89198:72f9b6222476 tag: tip parent: 89195:dcbbff7e6b56 parent: 89197:f45d4823f63c user:Ezio Melotti ezio.melo...@gmail.com date:Sat Feb 15 16:59:39 2014 +0200 summary: #19890: merge with 3.3.

[issue20638] KeyError building the Python html doc with sphinx

2014-02-17 Thread Georg Brandl
Georg Brandl added the comment: Thanks for the feedback. This was not the latest tip anyway: in the current tip the checked-out toolchain is gone and your system Sphinx is used. -- resolution: - out of date status: open - closed ___ Python tracker

[issue16468] argparse only supports iterable choices

2014-02-17 Thread Masato HASHIMOTO
Changes by Masato HASHIMOTO cabezon.hashim...@gmail.com: -- nosy: +hashimo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16468 ___ ___

[issue19363] Python 2.7's future_builtins.map is not compatible with Python 3's map

2014-02-17 Thread Gareth Rees
Gareth Rees added the comment: Sorry about that; here it is. I had second thoughts about recommending zip() as an alternative (that would only work for cases where the None was constant; in other cases you might need lambda *args: args, but this seemed too complicated), so the note now says

[issue13720] argparse print_help() fails if COLUMNS is set to a low value

2014-02-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Zbyszek and Steven for your report and patch, but this was fixed in issue13107. -- nosy: +serhiy.storchaka resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - Text width in optparse.py can become

[issue20654] Pydoc (and help) fails with socket.AddressFamily

2014-02-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Just use getattr() without third argument and catch AttributeError. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20654 ___

[issue20654] Pydoc (and help) fails with socket.AddressFamily

2014-02-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka keywords: +easy stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20654 ___

[issue20656] OpenBSD: timeval.tv_sec type is long, not time_t

2014-02-17 Thread STINNER Victor
New submission from STINNER Victor: select.select() doesn't work on OpenBSD 64-bit because timeval.tv_sec is a long, whereas Python uses a time_t. Attached patch should fix this issue. -- messages: 211410 nosy: belopolsky, haypo, neologix, rpointel priority: normal severity: normal

[issue20656] OpenBSD: timeval.tv_sec type is long, not time_t

2014-02-17 Thread STINNER Victor
STINNER Victor added the comment: Hum, Python 3.3 seems to be also affected. Nobody tried Python 3 on OpenBSD since at lease Python 3.2? -- versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20656

[issue20656] OpenBSD: timeval.tv_sec type is long, not time_t

2014-02-17 Thread Remi Pointel
Remi Pointel added the comment: Hi, I think you forgot to attach the diff. Python 3.3 is in OpenBSD since 5.4. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20656 ___

[issue20657] OpenBSD: Merge patches

2014-02-17 Thread STINNER Victor
New submission from STINNER Victor: OpenBSD has its own collection of patches for Python 3.3: http://www.openbsd.org/cgi-bin/cvsweb/ports/lang/python/3.3/patches/ These patches should be merged into Python directly. -- messages: 211413 nosy: haypo, rpointel priority: normal severity:

[issue20656] OpenBSD: timeval.tv_sec type is long, not time_t

2014-02-17 Thread STINNER Victor
STINNER Victor added the comment: I think you forgot to attach the diff. Oops. Python 3.3 is in OpenBSD since 5.4. So you should work more with upstream (Python) ;-) = see issue #20657 -- keywords: +patch Added file: http://bugs.python.org/file34118/pytime_objectotimeval.patch

[issue20658] os.environ.clear() fails with empty keys (posix.unsetenv)

2014-02-17 Thread daniel hahler
New submission from daniel hahler: posix.unsetenv fails to clear the environment if there's an entry with an empty key. TEST CASE: Python 2.7.6 (default, Jan 6 2014, 17:05:19) [GCC 4.8.1] on linux2 Type help, copyright, credits or license for more information. import os

[issue20659] Want to make a class method a property by combining decorators

2014-02-17 Thread the mulhern
New submission from the mulhern: The problems is that it is quite possible to define a property using @property in a class and then later to realize that it really ought to be a class method, not an instance method. But then, if you change it to a class method, using @classmethod annotation,

[issue20145] unittest.assert*Regex functions should verify that expected_regex has a valid type

2014-02-17 Thread the mulhern
the mulhern added the comment: Yes. I'ld check if it was a string or a regex object...there is already code that converts the string to a regular expression in there. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20145

[issue20654] Pydoc (and help) fails with socket.AddressFamily

2014-02-17 Thread Vajrasky Kok
Vajrasky Kok added the comment: Here is the second preliminary patch. I'll think about the way to avoid dependency to socket module. -- Added file: http://bugs.python.org/file34119/pydoc_display_enum_member_value_0.patch ___ Python tracker

[issue20654] Pydoc (and help) fails with socket.AddressFamily

2014-02-17 Thread Vajrasky Kok
Vajrasky Kok added the comment: Here is the second patch, avoiding dependency to socket.AddressFamily (though it adds dependency to enum library) in test. -- Added file: http://bugs.python.org/file34120/pydoc_display_enum_member_value_0_v2.patch

[issue20653] Pickle enums by name

2014-02-17 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Feb 17, 2014, at 07:03 AM, Serhiy Storchaka wrote: Currently enums are pickled by values. It means that if the value of enum is platform depending, pickling one enum you can unpickle other enum on other platform. It's probably a good idea to pickle by

[issue20660] Starting a second multiprocessing.Manager causes INCREF on all object created by the first one.

2014-02-17 Thread mythsmith
New submission from mythsmith: I seems that upon the start of a second manager, all objects referenced in the first one gets an INCREF. On the third start, all objects created by the first and the second manager get another INCREF. And so on. I cannot understand why the start of a totally new

[issue20648] 3.4 cherry-pick: multiple changesets for asyncio

2014-02-17 Thread Larry Hastings
Larry Hastings added the comment: Yeah, I considered getting fussy about you didn't follow instructions. But this actually is better for me, as it means I can apply the patches in chronological order. Like Guido said, I intend to be permissive when it comes to asyncio for 3.4.0. I'm

[issue20661] 3.4 cherry-pick: eef7899ea7ab use system doc toolchain instead of checking out of svn

2014-02-17 Thread Georg Brandl
New submission from Georg Brandl: 3.4 cherry-pick: eef7899ea7ab use system doc toolchain instead of checking out of svn -- assignee: larry messages: 211423 nosy: georg.brandl, larry priority: release blocker severity: normal status: open title: 3.4 cherry-pick: eef7899ea7ab use system

[issue20619] lineno and col_offset attributes of _ast.arg objects are not set

2014-02-17 Thread Benjamin Peterson
Changes by Benjamin Peterson bp+pyb...@benjamin-peterson.org: -- assignee: - larry resolution: fixed - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20619 ___

[issue20594] [PATCH] fail to compile posixmodule due to name clash with posix_close

2014-02-17 Thread Benjamin Peterson
Changes by Benjamin Peterson bp+pyb...@benjamin-peterson.org: -- nosy: +benjamin.peterson, georg.brandl priority: high - release blocker resolution: fixed - status: closed - open ___ Python tracker rep...@bugs.python.org

[issue20594] [PATCH] fail to compile posixmodule due to name clash with posix_close

2014-02-17 Thread Benjamin Peterson
Changes by Benjamin Peterson bp+pyb...@benjamin-peterson.org: -- assignee: - larry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20594 ___ ___

[issue17899] os.listdir() leaks FDs if invoked on FD pointing to a non-directory

2014-02-17 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17899 ___ ___ Python-bugs-list mailing list

[issue20654] Pydoc (and help) fails with socket.AddressFamily

2014-02-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The fix itself looks good, but the test can be better. You write temporary file in current directory. this can fail for different reasons, Python can crash and left undeleted file, this file can overwrite existing file. The render_doc() function is last

[issue18352] collections.Counter with added attributes are not deepcopied properly.

2014-02-17 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18352 ___ ___ Python-bugs-list mailing list

[issue20654] Pydoc (and help) fails with socket.AddressFamily

2014-02-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Interesting, that the documentation for AddressFamily (unlike to SocketType) isn't generated in html doc. May be this is unrelated issue, but if this is related, it would be good to fix it too. Otherwise it needs separate issue. --

[issue20662] Pydoc doesn't escape parameter defaults in html

2014-02-17 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Pydoc doesn't escape parameter defaults in generated html files. For example for the socket.__init__() method in the socket module following html code is generated: dldta name=socket-__init__strong__init__/strong/a(self, family=AddressFamily.AF_INET: 2,

[issue16278] Improve os.rename documentation and tests

2014-02-17 Thread Benjamin Peterson
Benjamin Peterson added the comment: 1. You removed the note about files being on the same filesystem on Unix. That's useful. 2. I don't think it needs to be mentioned that you'll get an error if *src* doesn't exist. 3. The table is strange because the destination header spans 2 columns, while

[issue20655] test_subprocess is not executed in python -m test.test_asyncio

2014-02-17 Thread Guido van Rossum
Guido van Rossum added the comment: Please apply the fix and make sure it gets cherry-picked. I agree on dynamic test recovery but don't find it a high priority. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20655

[issue20653] Pickle enums by name

2014-02-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: To pickle by value, the subclass needs only restore current implementation of __reduce_ex__(): def __reduce_ex__(self, proto): return self.__class__, (self.value,) -- ___ Python tracker

[issue20663] Introduce exception argument to iter

2014-02-17 Thread Ram Rachum
New submission from Ram Rachum: See discussion: https://groups.google.com/forum/#!searchin/python-ideas/iter/python-ideas/UCaNfAHkBlQ/5vX7JbpCxDkJ `iter` has a very cool `sentinel` argument. I suggest an additional argument `exception`; when it's supplied, instead of waiting for a sentinel

[issue19619] Blacklist base64, hex, ... codecs from bytes.decode() and str.encode()

2014-02-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't think that adding underscored parameter to public API is best solution, but we need the fix for 3.3. So here is a patch for backporting d68df99d7a57 to 3.3. -- ___ Python tracker rep...@bugs.python.org

[issue20653] Pickle enums by name

2014-02-17 Thread Ethan Furman
Ethan Furman added the comment: I agree that pickling by name is the better solution. Serhiy, could you explain how the un-pickling works with protocol 4? -- assignee: - ethan.furman ___ Python tracker rep...@bugs.python.org

[issue20653] Pickle enums by name

2014-02-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is new feature of protocol 4 (PEP 3154, section 'Serializing more lookupable objects'). When __reduce_ex__() returns a string (instead of a tuple), this is interpreted as the name of a global, and qualnames with dots are now supported in protocol 4.

[issue20653] Pickle enums by name

2014-02-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: May be a number of tests which test pickling subclasses with or without some special methods are not needed longer. Fell free to improve my patch if you want to make all cleanup changes in one commit. -- ___

[issue15871] Online docs: make index search always available.

2014-02-17 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- versions: +Python 3.5 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15871 ___ ___

[issue20651] 3.4 cherry-pick: 52ab9e1ff46a rolls back bad zipimport changes

2014-02-17 Thread Larry Hastings
Larry Hastings added the comment: Okay. I'm holding off a couple days just to get all the requests lined up, so I can apply them in chronological order--that'll cut down on the conflicts. -- ___ Python tracker rep...@bugs.python.org

[issue14976] queue.Queue() is not reentrant, so signals and GC can cause deadlocks

2014-02-17 Thread Itamar Turner-Trauring
Itamar Turner-Trauring added the comment: This is not specifically a signal issue; it can happen with garbage collection as well if you have a Queue.put that runs in __del__ or a weakref callback function. This can happen in real code. In my case, a thread that reads log messages from a

[issue20621] Issue with zipimport in 3.3.4 and 3.4.0rc1

2014-02-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks for trying. :) I've got a complicated test case of zipping up the stdlib into python27.zip and running the Python test suite against that which also tends to trigger the bugs. Some tests failing with SystemError and such. It smells like a memory

[issue20664] _findLib_crle and _get_soname broken on latest SunOS 5.11

2014-02-17 Thread Ryan Gordon
New submission from Ryan Gordon: On SunOS 5.11, both the _findLib_crle and _get_soname are broken. With _findLib_crle, the function returns the following: # env LC_ALL=C /usr/bin/crle -64 Default configuration file (/var/ld/64/ld.config) not found Platform: 64-bit LSB AMD64 Default

[issue12691] tokenize.untokenize is broken

2014-02-17 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- assignee: docs@python - terry.reedy nosy: +terry.reedy stage: test needed - patch review versions: +Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12691

[issue8478] tokenize.untokenize first token missing failure case

2014-02-17 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- assignee: - terry.reedy nosy: +terry.reedy stage: - patch review versions: +Python 2.7, Python 3.3, Python 3.4 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8478

[issue20594] [PATCH] fail to compile posixmodule due to name clash with posix_close

2014-02-17 Thread Larry Hastings
Larry Hastings added the comment: I created a cherry-pick issue (#20665) to track that separately. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20594

[issue20665] 3.4 cherry-pick: 400a8e4599d9 rename posix_close to avoid namespace clash

2014-02-17 Thread Larry Hastings
New submission from Larry Hastings: Creating new issue from #20594 to track cherry-picking this into 3.4.0. -- assignee: larry components: Build messages: 211439 nosy: larry priority: release blocker severity: normal stage: commit review status: open title: 3.4 cherry-pick: 400a8e4599d9

[issue20665] 3.4 cherry-pick: 400a8e4599d9 rename posix_close to avoid namespace clash

2014-02-17 Thread Larry Hastings
Larry Hastings added the comment: 400a8e4599d9 is the revision. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20665 ___ ___ Python-bugs-list

[issue20265] Bring Doc/using/windows up to date

2014-02-17 Thread Zachary Ware
Zachary Ware added the comment: The plan is to eventually have enough time to pick through the file and make sure everything is actually up to date :). From just a quick glance, here's a couple of the things that still need to be done: - all of the external links should be checked for whether

[issue20661] 3.4 cherry-pick: eef7899ea7ab use system doc toolchain instead of checking out of svn

2014-02-17 Thread Larry Hastings
Larry Hastings added the comment: Okay. I'll do the first round of cherry-picking Tuesday or Wednesday (my time). I'm waiting for the list of requests to settle down so I can do them in chronological order. -- ___ Python tracker

[issue20645] 3.4 cherry-pick: 1166b3321012 Revert changes of issue #19466 (clear thread state earlier)

2014-02-17 Thread Larry Hastings
Larry Hastings added the comment: Okay. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20645 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20510] Test cases in test_sys don't match the comments

2014-02-17 Thread Zachary Ware
Zachary Ware added the comment: The newer patch looks good to me, I'll get it committed as soon as I can test it. Thanks! -- assignee: - zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20510

[issue20646] 3.4 cherry-pick: 180e4b678003 select and kqueue round the timeout aways from zero

2014-02-17 Thread Larry Hastings
Larry Hastings added the comment: This one worries me a little. Antoine, do you agree that this should be cherry-picked for 3.4.0? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20646

  1   2   >