[issue16495] bytes_decode() unnecessarily examines encoding

2012-11-18 Thread Chris Jerdonek
Chris Jerdonek added the comment: Patch attached. The tests pass. -- keywords: +patch Added file: http://bugs.python.org/file28039/issue-16495-1-default.patch ___ Python tracker ___

[issue16509] sqlite3 docs do not explain check_same_thread

2012-11-18 Thread Daniel Micay
New submission from Daniel Micay: The sqlite3 documentation now includes a Multithreading section explaining issues with older sqlite versions, but still doesn't directly cover disabling check_same_thread beyond listing it as a possible parameter. As far as I can tell, reusing sqlite connectio

[issue16475] Support object instancing and recursion in marshal

2012-11-18 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue16498] Unwanted link between volatile and shelve storage

2012-11-18 Thread Terry Cooper
Terry Cooper added the comment: Got your message before I got his. Thanks for the reference to python-list. -Original Message- >From: "R. David Murray" >Sent: Nov 18, 2012 9:39 PM >To: ttcoo...@indy.net >Subject: [issue16498] Unwanted link between volatile and shelve storage > > >R. Da

[issue16505] Drop Py_TPFLAGS_INT_SUBCLASS

2012-11-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset cf606c403f14 by Benjamin Peterson in branch 'default': remove unused flag (closes #16505) http://hg.python.org/cpython/rev/cf606c403f14 -- nosy: +python-dev resolution: -> fixed stage: patch review -> committed/rejected status: open -> clos

[issue16498] Unwanted link between volatile and shelve storage

2012-11-18 Thread R. David Murray
R. David Murray added the comment: If it "got it" from dBasis[163] via item assignment (say gList1[i1][1] = dBasis[163]), then yes, Python remembers that. Names just hold pointers to objects, so after that assignment gList1[i1][1] points to the same object as dBasis[163] does. If that object

[issue16506] devguide should have table of contents

2012-11-18 Thread Chris Jerdonek
Chris Jerdonek added the comment: > The link does nothing because what is directly below the TOC link is the > table of contents. Yes, that's the impression one gets when the link doesn't work. But the links below are just the sections for the current page rather than the table of contents f

[issue16506] devguide should have table of contents

2012-11-18 Thread Brett Cannon
Brett Cannon added the comment: The link does nothing because what is directly below the TOC link is the table of contents. There was originally a TOC but it was removed when it pushed too much of the quick start section off of the screen at initial load. You also don't want a large TOC as tha

[issue16498] Unwanted link between volatile and shelve storage

2012-11-18 Thread Terry Cooper
Terry Cooper added the comment: This is easy to reply to. You better believe I've tried printing gList1 and dBasis[163]. I've also scrapped a predecessor function named combo (which is included in the attachment) and written its successor, viz., "combine". I bent over backwards to make sure

[issue15599] test_circular_imports() of test_threaded_import fails on FreeBSD 9.0

2012-11-18 Thread Stefan Krah
Stefan Krah added the comment: Not that it helps much, but here are recent failures on Windows and FreeBSD: http://buildbot.python.org/all/builders/x86%20Windows7%203.x/builds/5938/steps/test/logs/stdio http://buildbot.python.org/all/builders/x86%20Windows7%203.x/builds/5936/steps/test/logs/std

[issue16508] include the "object" type in the lists of documented types

2012-11-18 Thread Chris Jerdonek
New submission from Chris Jerdonek: This issue is to add the "object" type to the list of types documented in the language reference's standard type hierarchy and the library reference's list of built-in types: http://docs.python.org/dev/reference/datamodel.html#the-standard-type-hierarchy htt

[issue16501] deprecate RISCOS "support"

2012-11-18 Thread Martin v . Löwis
Martin v. Löwis added the comment: application/riscos remains a valid MIME type, see http://www.iana.org/assignments/media-types/application/riscos I believe it's safe to remove the riscos modules from the Mac build process... -- ___ Python tracker

[issue16501] deprecate RISCOS "support"

2012-11-18 Thread Christian Heimes
Christian Heimes added the comment: I've removed the remaining ifdef from the sys.flags code, site.py and tests. The remaining code lines are 3rd party code. I'm not sure about the last two lines. $ find -name '*.[ch]' -or -name '*.py' | xargs grep -i riscos ./Modules/zlib/zutil.h:#if defined(

[issue6308] termios fix for QNX breaks HP-UX

2012-11-18 Thread Stefan Krah
Stefan Krah added the comment: Fixed in 2.7, 3.3 and 3.4. -- keywords: +buildbot nosy: +skrah resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue16501] deprecate RISCOS "support"

2012-11-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6b74a93a2b8a by Christian Heimes in branch 'default': Remove sys.platform == 'riscos' checks from some Python and test files. #16501 http://hg.python.org/cpython/rev/6b74a93a2b8a -- ___ Python tracker

[issue15031] Split .pyc parsing from module loading

2012-11-18 Thread Nick Coghlan
Nick Coghlan added the comment: I thought about that, but decided that being able to hook the compilation step and the reading from the cache step without overriding get code completely is a separate design problem from providing a public API for reading the bytecode container format. --

[issue16501] deprecate RISCOS "support"

2012-11-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset ceb0184c7f44 by Christian Heimes in branch 'default': RISCOS support has been removed a long time ago. Remove last remains in sys.flags code. #16501 can be closed, too. http://hg.python.org/cpython/rev/ceb0184c7f44 -- nosy: +python-dev ___

[issue12274] "Print window" menu on IDLE aborts whole application

2012-11-18 Thread Roger Serwy
Changes by Roger Serwy : -- dependencies: +Create a unittest framework for IDLE ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue16501] deprecate RISCOS "support"

2012-11-18 Thread Martin v . Löwis
Martin v. Löwis added the comment: The third rev should have bee 48a31b0bf501. These hg revision numbers are too error prone :-( -- ___ Python tracker ___ __

[issue16501] deprecate RISCOS "support"

2012-11-18 Thread Martin v . Löwis
Martin v. Löwis added the comment: Note that 3e3bc84122d7 claims that RISCOS support was removed in 3.0. Skip removed some in 4d2aa4bfb2d6, and more in a2859ae89da9 and 4d2aa4bfb2d6. So I don't think that a deprecation release is necessary. Updating PEP 11 is still a good thing. -- _

[issue16507] Patch selectmodule.c to support WSAPoll on Windows

2012-11-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Related post: http://daniel.haxx.se/blog/2012/10/10/wsapoll-is-broken/ -- nosy: +pitrou ___ Python tracker ___ _

[issue6308] termios fix for QNX breaks HP-UX

2012-11-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9dd4638de73b by Stefan Krah in branch 'default': Issue #6308: Try to fix the termios build failure on HP-UX. http://hg.python.org/cpython/rev/9dd4638de73b -- nosy: +python-dev ___ Python tracker

[issue16507] Patch selectmodule.c to support WSAPoll on Windows

2012-11-18 Thread Trent Nelson
New submission from Trent Nelson: Attached patch adds select.poll() support on Windows via WSAPoll. It's hacky; I was curious to see whether or not it could be done, and whether or not tulip's pollster would work with it. It compiles and works, but doesn't play very nicely with tulip. Also, j

[issue16506] devguide should have table of contents

2012-11-18 Thread Chris Jerdonek
New submission from Chris Jerdonek: Currently, the devguide does not have a table of contents. For example, clicking the "Table of Contents" link in the left column does nothing. My feeling is that a proper table of contents will make it easier to understand how the devguide is organized at

[issue13094] Need Programming FAQ entry for the behavior of closures

2012-11-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +easy stage: -> needs patch type: -> enhancement versions: +Python 3.4 ___ Python tracker ___ ___

[issue12870] Regex object should have introspection methods

2012-11-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12886] datetime.strptime parses input wrong

2012-11-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue1284316] Win32: Security problem with default installation directory

2012-11-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- versions: +Python 3.3, Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7855] Add test cases for ctypes/winreg for issues found in IronPython

2012-11-18 Thread Ezio Melotti
Ezio Melotti added the comment: I made the latest 3.x patch hg import-able and cleaned up a few nits (whitespace, naming conventions, and used assertIs). I have 2 comments though: 1) the winreg test is defined in Win64WinregTests. Is it specific to x64 or should it go in BaseWinregTests inst

[issue16480] pyvenv 3.3 fails to create symlinks for /local/{bin, lib} to /{bin, lib}

2012-11-18 Thread Marco Amadori
Marco Amadori added the comment: > The question is: is this still necessary? Why exactly does > "posix_local" need this, and does it need it for Python 3.3, 3.4 etc? > Adding Carl to nosy, hoping he can shed some light on this. I hope to see the light on that too. ;-) Meanwhile, my problem was

[issue7782] new test for test_iter.py

2012-11-18 Thread Ezio Melotti
Ezio Melotti added the comment: I committed the patch as is. It run fast enough that I cannot notice any slowdown. -- assignee: -> ezio.melotti resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: +Python 3.3, Python 3.4 -Python 2.6, Python 3.

[issue7782] new test for test_iter.py

2012-11-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4624570c1f19 by Ezio Melotti in branch '2.7': #7782: add a test for test_iter. http://hg.python.org/cpython/rev/4624570c1f19 New changeset d2054aa9bed4 by Ezio Melotti in branch '3.2': #7782: add a test for test_iter. http://hg.python.org/cpython/re

[issue6500] urllib2 maximum recursion depth exceeded

2012-11-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue1500504] Alternate RFC 3986 compliant URI parsing module

2012-11-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- versions: +Python 3.4 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16499] CLI option for isolated mode

2012-11-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: -I looks as antonym to -i. This is good. See also related issue12238 and issue10496. Hint: if you refers to issue as issueXXX, you can see an issue title when hover mouse over link. -- nosy: +serhiy.storchaka __

[issue16487] Allow ssl certificates to be speficfied from memory rather than files.

2012-11-18 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue15627] Add a method to importlib.abc.SourceLoader for converting source to a code object

2012-11-18 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- stage: test needed -> committed/rejected ___ Python tracker ___ ___ Python-bugs-li

[issue16137] Using time.asctime() with an array with negative tm_hour causes Python Crash.

2012-11-18 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I recall a discussion in which it was argued that "look before you leap"-style argument checking that we implemented in py3k was a feature and backporting it to 2.x could potentially break code running on platforms with promiscuous (and possibly buggy) a

[issue16498] Unwanted link between volatile and shelve storage

2012-11-18 Thread Ezio Melotti
Ezio Melotti added the comment: Indeed. -- stage: -> committed/rejected status: pending -> closed ___ Python tracker ___ ___ Python-b

[issue16498] Unwanted link between volatile and shelve storage

2012-11-18 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> invalid status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue16499] CLI option for isolated mode

2012-11-18 Thread Christian Heimes
Christian Heimes added the comment: Here is a new patch with some tests. -- Added file: http://bugs.python.org/file28036/isolatemode2.patch ___ Python tracker ___ ___

[issue16498] Unwanted link between volatile and shelve storage

2012-11-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > dBasis = shelve.open('cFract2.tmp','n') > i,testVal,dBasis,oldTime = 0,1,{},int(time.clock()) # Initialize As I understand, you don't use shelve object at all (except creating an empty base). Such a lot of code has no relation to the bugs i

[issue13223] pydoc removes 'self' in HTML for method docstrings with example code

2012-11-18 Thread Ezio Melotti
Ezio Melotti added the comment: Víctor, can you address my comment on rietveld? -- versions: +Python 3.4 ___ Python tracker ___ ___ Py

[issue5945] PyMapping_Check returns 1 for lists

2012-11-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue16503] Unclear documentation regarding apply(), 'extended call syntax'

2012-11-18 Thread Zachary Ware
Changes by Zachary Ware : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue16503] Unclear documentation regarding apply(), 'extended call syntax'

2012-11-18 Thread Zachary Ware
Zachary Ware added the comment: Looks good to me, thank you Ezio! -- resolution: fixed -> status: closed -> open type: enhancement -> ___ Python tracker ___ ___

[issue14525] ia64-hp-hpux11.31 won't compile Python-2.6.8rc2 without -D_TERMIOS_INCLUDED

2012-11-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: I should have added 'please try compiling 3.x to make sure it has the same problem' since configure might behave differently. -- ___ Python tracker ___

[issue1678077] improve telnetlib.Telnet so option negotiation becomes easie

2012-11-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- versions: +Python 3.4 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16505] Drop Py_TPFLAGS_INT_SUBCLASS

2012-11-18 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Py_TPFLAGS_INT_SUBCLASS is not used in Python 3. Lets drop it and free a one bit for some other interesting flag. -- components: Interpreter Core files: drop_int_tpflag.patch keywords: patch messages: 175913 nosy: serhiy.storchaka priority: normal s

[issue13262] IDLE opens partially hidden

2012-11-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue10496] Python startup should not require passwd entry

2012-11-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue16143] Building with configure option "--without-doc-strings" crashes first time through PyUnicode_DecodeUTF8Stateful

2012-11-18 Thread Georg Brandl
Changes by Georg Brandl : -- priority: release blocker -> critical ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue14525] ia64-hp-hpux11.31 won't compile Python-2.6.8rc2 without -D_TERMIOS_INCLUDED

2012-11-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +trent versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16143] Building with configure option "--without-doc-strings" crashes first time through PyUnicode_DecodeUTF8Stateful

2012-11-18 Thread Stefan Krah
Stefan Krah added the comment: The deeper issue is that globals in unicodeobject.c are used before they are initialized. So I thought that should be cleared up before the next release. Basically, strings are used as keys during type initializations *before* _PyUnicode_Init() is called.

[issue16137] Using time.asctime() with an array with negative tm_hour causes Python Crash.

2012-11-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch which includes backported issue6608 and issue8013. This should fix this crash. -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file28034/asctime.patch ___

[issue16143] Building with configure option "--without-doc-strings" crashes first time through PyUnicode_DecodeUTF8Stateful

2012-11-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Does this need to be a release blocker? I don't know what the concrete point of --without-doc-strings is. -- nosy: +pitrou ___ Python tracker _

[issue10336] test_xmlrpc fails if gzip is not supported by client

2012-11-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> test needed type: -> behavior versions: +Python 3.3, Python 3.4 ___ Python tracker ___ __

[issue8145] Documentation about sqlite3 isolation_level

2012-11-18 Thread Ezio Melotti
Ezio Melotti added the comment: Can someone review this patch? (There is a typo: s/The/This/) -- keywords: +easy, needs review nosy: +ezio.melotti versions: +Python 3.3, Python 3.4 -Python 3.1 ___ Python tracker ___

[issue1539925] warnings in interactive sessions

2012-11-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> needs patch versions: +Python 3.4 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list ma

[issue16493] Document the 'optimize' argument to compile()

2012-11-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue16503] Unclear documentation regarding apply(), 'extended call syntax'

2012-11-18 Thread Ezio Melotti
Ezio Melotti added the comment: It should be clearer now. -- assignee: docs@python -> ezio.melotti nosy: +ezio.melotti resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> enhancement ___ Python tracker

[issue16503] Unclear documentation regarding apply(), 'extended call syntax'

2012-11-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7efa0d66b1a0 by Ezio Melotti in branch '2.7': #16503: clarify "apply" docs. http://hg.python.org/cpython/rev/7efa0d66b1a0 -- nosy: +python-dev ___ Python tracker _

[issue8585] zipimporter.find_module is untested

2012-11-18 Thread Berker Peksag
Berker Peksag added the comment: I've attached a patch that adds tests for the zipimporter.find_module(). -- keywords: +patch nosy: +berker.peksag versions: +Python 3.2, Python 3.3 Added file: http://bugs.python.org/file28033/issue8585.diff ___ Python

[issue16498] Unwanted link between volatile and shelve storage

2012-11-18 Thread Ezio Melotti
Ezio Melotti added the comment: > They are obviously not the same record Have you tried printing gList1 and dBasis[163], their repr and their ids? -- nosy: +ezio.melotti ___ Python tracker

[issue16504] IDLE - fatal error when opening a file with certain tokenizing errors

2012-11-18 Thread Roger Serwy
Roger Serwy added the comment: That's a good point. Attached is a revision to omit IndentationError. Thanks Serhiy. -- Added file: http://bugs.python.org/file28032/editor_token_error_rev1.patch ___ Python tracker

[issue16498] Unwanted link between volatile and shelve storage

2012-11-18 Thread R. David Murray
R. David Murray added the comment: Any chance you could reduce this to a simpler test case? It may be a while before anyone gets around to analyzing your complete example. -- nosy: +r.david.murray ___ Python tracker

[issue16499] CLI option for isolated mode

2012-11-18 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Nov 18, 2012, at 05:16 PM, Antoine Pitrou wrote: >Antoine Pitrou added the comment: > >+1 from me. "-I" and "isolated" sound fine to me. I haven't reviewed the patch yet, but based on the email discussions, I'm also +1 for the concept, option name, and term

[issue16504] IDLE - fatal error when opening a file with certain tokenizing errors

2012-11-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: IndentationError is a subclass of SyntaxError. -- nosy: +serhiy.storchaka ___ Python tracker ___ _

[issue15927] csv.reader() does not support escaped newline when quoting=csv.QUOTE_NONE

2012-11-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: CSV is not well defined format. What you expect to read from csv.reader(['one', 'two'])? If two rows ['one'] and ['two'], than the reader in its own right and there is no bug which can be fixed. -- ___ Python trac

[issue16496] Simplify and optimize random_seed()

2012-11-18 Thread Stefan Krah
Stefan Krah added the comment: Is PY_UINT32_T a big problem? I hope that one day we can use the C99 types directly. Visual Studio finally supports stdint.h, and I'm not aware of any compiler that does not. Consider cdecimal as a trial balloon: It compiles on all obscure snakebite platforms, and

[issue16502] PEP 305: eaten backslashes

2012-11-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: docs@python -> ezio.melotti nosy: +ezio.melotti resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed type: -> enhancement ___ Python tracker

[issue16502] PEP 305: eaten backslashes

2012-11-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a markup bug. In all other cases \n escaped (\\n), or quoted (``\n``), or used in a code fragment. -- ___ Python tracker ___

[issue16496] Simplify and optimize random_seed()

2012-11-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > I tend to favour direct, readable, and portable code over unnecessarily > optimized code. And my feeling of directness, readability, and portability also slightly differs. I agree that code size and additional operations not of importance here. I say on

[issue16504] IDLE - fatal error when opening a file with certain tokenizing errors

2012-11-18 Thread Roger Serwy
Roger Serwy added the comment: I encountered this behavior while testing an extension that highlights tabs and trailing whitespace. The very first test file I wrote caused this crash. See the attached "sample_token_error.py". -- Added file: http://bugs.python.org/file28031/sample_token

[issue16504] IDLE - fatal error when opening a file with certain tokenizing errors

2012-11-18 Thread Roger Serwy
New submission from Roger Serwy: IDLE's IndentSearcher class in EditorWindow.py can raise an uncaught IndentationError when opening a file. The attached patch fixes the problem by catching everything that the tokenize module can raise explicitly, namely IndentationError, TokenError, and Syntax

[issue16503] Unclear documentation regarding apply(), 'extended call syntax'

2012-11-18 Thread Zachary Ware
New submission from Zachary Ware: (Reported by Kevin Leeds on d...@python.org) The documentation for the apply() built-in function in 2.7 says that it is deprecated and to use "extended call syntax" instead. There is no mention of "extended call syntax" anywhere else in the docs. The simples

[issue16502] PEP 305: eaten backslashes

2012-11-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hmm, I wonder if this is a ReST bug. -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list ma

[issue16500] Add an 'afterfork' module

2012-11-18 Thread Richard Oudkerk
Richard Oudkerk added the comment: pthread_atfork() allows the registering of three types of callbacks: 1) prepare callbacks which are called before the fork, 2) parent callbacks which are called in the parent after the fork 3) child callbacks which are called in the child after the fork. I thi

[issue16502] PEP 305: eaten backslashes

2012-11-18 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: In PEP 305 '\r\n' rendered as 'rn' in one place. The proposed patch should fix this. -- assignee: docs@python components: Documentation files: pep-0305_rn.patch keywords: patch messages: 175891 nosy: docs@python, serhiy.storchaka priority: normal s

[issue16499] CLI option for isolated mode

2012-11-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: +1 from me. "-I" and "isolated" sound fine to me. The patch needs to add some tests. Also the docs need some "versionadded" / "versionchanged" markers. -- nosy: +pitrou ___ Python tracker

[issue16501] deprecate RISCOS "support"

2012-11-18 Thread Antoine Pitrou
New submission from Antoine Pitrou: There are a couple of places in our code with references to RISCOS (mostly as #ifdef's). I propose we record this platform as deprecated in 3.4 and removed in 3.5. This needs PEP 11 to be updated. Wikipedia mentions the existence of two operating systems nam

[issue16496] Simplify and optimize random_seed()

2012-11-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: I agree with Mark, we don't need to micro-optimize here. Also, +1 for not needing PY_UINT32_T. -- nosy: +pitrou ___ Python tracker ___

[issue16500] Add an 'afterfork' module

2012-11-18 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +sbt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue16496] Simplify and optimize random_seed()

2012-11-18 Thread Mark Dickinson
Mark Dickinson added the comment: > Apparently my feeling of comfort is different from your own. ;) Yes: I tend to favour direct, readable, and portable code over unnecessarily optimized code. To address the specific points: > The code is larger. Very slightly. It's (IMO) more readable and

[issue16496] Simplify and optimize random_seed()

2012-11-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The code is larger. There is one additional allocation. CPU tacts wasted for uint32->ulong conversion (and in any case all numbers in the generator are 32-bit). One additional ValeError/OverflowError. Apparently my feeling of comfort is different from yo

[issue16497] zipimport.zipimporter.find_module() does not work with dotted module names

2012-11-18 Thread Brett Cannon
Brett Cannon added the comment: It certainly wouldn't hurt. I think all of the path-related things for that module are under-documented in terms of subdirectories, relative directories, etc. -- ___ Python tracker

[issue16496] Simplify and optimize random_seed()

2012-11-18 Thread Mark Dickinson
Mark Dickinson added the comment: > I'm uncomfortable with such patch. Any particular reason? It's direct and straightforward, and eliminates the quadratic behaviour. -- ___ Python tracker __

[issue16496] Simplify and optimize random_seed()

2012-11-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't think that the preservation of the signature of the auxiliary private static function is worth it. I'm uncomfortable with such patch. But do as you feel comfortable. -- ___ Python tracker

[issue16499] CLI option for isolated mode

2012-11-18 Thread Brett Cannon
Brett Cannon added the comment: I don't think we need to worry about overlapping with gcc; -B, -b, -c, -d, etc. are all used by gcc for some reason or another. -- nosy: +brett.cannon ___ Python tracker ___

[issue16493] Document the 'optimize' argument to compile()

2012-11-18 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16496] Simplify and optimize random_seed()

2012-11-18 Thread Mark Dickinson
Mark Dickinson added the comment: I'm still uncomfortable with the init_by_array signature changes and the use of PY_UINT32_T. How about something like the attached instead? It keeps the central idea (use _PyLong_NumBits and _PyLong_AsByteArray) but doesn't require any signature changes or s

[issue16497] zipimport.zipimporter.find_module() does not work with dotted module names

2012-11-18 Thread Berker Peksag
Berker Peksag added the comment: > It actually does work, you just have to embed the subdirectory in the > path you pass to zipimport.zipimporter(): Thanks, didn't know that. Would it be good to add an example to the zipimporter.find_module() documentation? --

[issue16499] CLI option for isolated mode

2012-11-18 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16493] Document the 'optimize' argument to compile()

2012-11-18 Thread Brett Cannon
Brett Cannon added the comment: No one else is working on it. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12398] Sending binary data with a POST request in httplib can cause Unicode exceptions

2012-11-18 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +aronacher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue15627] Add a method to importlib.abc.SourceLoader for converting source to a code object

2012-11-18 Thread Brett Cannon
Changes by Brett Cannon : -- dependencies: -Document the 'optimize' argument to compile() resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue16500] Add an 'afterfork' module

2012-11-18 Thread Christian Heimes
New submission from Christian Heimes: I propose the addition of an 'afterfork' module. The module shall fulfill a similar task as the 'atexit' module except that it handles process forks instead of process shutdown. The 'afterfork' module shall allow libraries to register callbacks that are e

[issue4473] POP3 missing support for starttls

2012-11-18 Thread Lorenzo M. Catucci
Lorenzo M. Catucci added the comment: Updated 02 and 03 patches (mostly) in line with Antoine's review comments: > 2) poplib_02_server_capabilities_v3.diff: > - please try to follow PEP 8 (i.e. `capa = {}` not `capa={}`) > - I think the capa() result should be a dict mapping str keys to str > va

[issue15627] Add a method to importlib.abc.SourceLoader for converting source to a code object

2012-11-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset e30bcce5c634 by Brett Cannon in branch 'default': Issue #15627: Add the compile_source() method to http://hg.python.org/cpython/rev/e30bcce5c634 -- nosy: +python-dev ___ Python tracker

[issue4473] POP3 missing support for starttls

2012-11-18 Thread Lorenzo M. Catucci
Changes by Lorenzo M. Catucci : Removed file: http://bugs.python.org/file26252/poplib_03_starttls_v3.diff ___ Python tracker ___ ___ Python-bug

  1   2   >