[issue12170] index() and count() methods of bytes and bytearray should accept byte ints

2011-11-23 Thread Petri Lehtinen
Petri Lehtinen added the comment: Just a thought: Would this change be worthy for the "What's new in 3.3" list? -- ___ Python tracker ___ ___

[issue13470] A user may need ... when she has ...

2011-11-23 Thread Florent Xicluna
New submission from Florent Xicluna : http://docs.python.org/library/sys.html#sys.setrecursionlimit http://docs.python.org/dev/library/sys.html#sys.setrecursionlimit Doc for Python 2.7 says: "A user may need to set the limit higher when she has ..." Doc for Python 3.3 says: "A user may need to

[issue13469] TimedRotatingFileHandler fails to handle intervals of several weeks correctly

2011-11-23 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- nosy: +petri.lehtinen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue13469] TimedRotatingFileHandler fails to handle intervals of several weeks correctly

2011-11-23 Thread Jussi Eronen
New submission from Jussi Eronen : When specifying a time period of several weeks, say when w0 and interval 4, the rollover still happens weekly instead of every 4 weeks. The log file names are as though the rollover happens every 4 weeks, which furthers the confusion. In the file system, it

[issue13468] Python 2.7.1 SegmentationFaults when given high recursion limit

2011-11-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: Of course; that's what the recursion limit protects against. -- nosy: +benjamin.peterson resolution: -> invalid status: open -> closed ___ Python tracker _

[issue13443] wrong links and examples in the functional HOWTO

2011-11-23 Thread Eli Bendersky
Eli Bendersky added the comment: Andrew, thanks, but I still think it's a bigger problem that the page discusses a module which is not available on Python 3.x - this means that a user following the page can't just type in the code and make it run. The links can be fixed and kept there, as Éri

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-11-23 Thread Nick Coghlan
Nick Coghlan added the comment: Meador's suggested name change has grown on me, so I plan to switch the name of the new API to "get_instructions()" and the new class to "Instruction". -- assignee: rhettinger -> ncoghlan ___ Python tracker

[issue13468] Python 2.7.1 SegmentationFaults when given high recursion limit

2011-11-23 Thread Tom Dignan
New submission from Tom Dignan : On my system, the magic number to make this segfault seems to be 26200: tom@tralfamadore ~/Downloads $ python recur1.py 26199 160164968 tom@tralfamadore ~/Downloads $ python recur1.py 26200 Segmentation fault Here's the source: #!/usr/bin/python import sys

[issue13465] A Jython section in the dev guide would be great

2011-11-23 Thread Nick Coghlan
Nick Coghlan added the comment: Hosting "docs.python.org/devguide/jython" doesn't seem like an unreasonable idea at all to me, and what's the benefit to CPython in making the Jython team go to the effort of building out independent deployment and source control infrastructure for their own de

[issue5305] imaplib should support international mailbox names

2011-11-23 Thread Babak M
Babak M added the comment: There's a working implementation of this in PloneMailList. http://svn.plone.org/svn/collective/mxmImapClient/trunk/imapUTF7.py -- nosy: +BabakM ___ Python tracker

[issue13467] Typo in doc for library/sysconfig

2011-11-23 Thread INADA Naoki
New submission from INADA Naoki : http://docs.python.org/library/sysconfig.html#sysconfig.get_path > If scheme is provided, it must be a value from the list returned by > get_path_names(). s/get_path_names/get_scheme_names/ -- assignee: docs@python components: Documentation messages:

[issue13422] Subprocess: children hang due to open pipes

2011-11-23 Thread Felix Steffenhagen
Felix Steffenhagen added the comment: The problem I have with the solution that is currently implemented is that subprocess is waiting for the spawned child although the child is not running anymore. In my case this issue occured when invoking samba or the small sample daemon (see attached fi

[issue13455] Reorganize tracker docs in the devguide

2011-11-23 Thread Ezio Melotti
Ezio Melotti added the comment: > Well, it does hurt, because the more sentences you write, the more the > devguide becomes bloated and difficult to follow OTOH is easy to ignore an "how to register to the tracker" section if you are already registered or if you don't need to register now or y

[issue13465] A Jython section in the dev guide would be great

2011-11-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Uh, rather -1 on this. I would suggest Jython gets its own devguide (which can of course copy stuff from CPython's), since Jython and CPython are distinct projects. No need to confuse readers by mixing instructions for two different projects in a single guide

[issue12328] multiprocessing's overlapped PipeConnection on Windows

2011-11-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > It seems to me that ERROR_OPERATION_ABORTED is a "true" error, and so > > should raise an exception. > > I guess so, although we do expect it whenever poll() times out. What > exception would be appropriate? BlockingIOError? TimeoutError? I would say eith

[issue13448] PEP 3155 implementation

2011-11-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Why an upper P in "PyFunction_NewWithQualName"? If you use an upper P, > it should use an underscore in Python: __qual_name__ to be consistent. __getattr__ / PyObject_GetAttr. -- ___ Python tracker

[issue13415] del os.environ[key] ignores errors

2011-11-23 Thread STINNER Victor
Changes by STINNER Victor : -- title: del os.environ -> del os.environ[key] ignores errors ___ Python tracker ___ ___ Python-bugs-list

[issue13448] PEP 3155 implementation

2011-11-23 Thread STINNER Victor
STINNER Victor added the comment: Ah, PyFunction_NewWithQualName is now public. Why an upper P in "PyFunction_NewWithQualName"? If you use an upper P, it should use an underscore in Python: __qual_name__ to be consistent. So I suggest to change the C name :-) PyFunction_NewWithQualname or Py

[issue13455] Reorganize tracker docs in the devguide

2011-11-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > This is true, however different people can figure out a different > amount of things just by using and experiment with something. While > most of the tasks should be obvious, some are a bit more advanced, and > even the "obvious" once might not be obvious for

[issue12328] multiprocessing's overlapped PipeConnection on Windows

2011-11-23 Thread sbt
sbt added the comment: > It seems to me that ERROR_OPERATION_ABORTED is a "true" error, and so > should raise an exception. I guess so, although we do expect it whenever poll() times out. What exception would be appropriate? BlockingIOError? TimeoutError? --

[issue13448] PEP 3155 implementation

2011-11-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: New patch addressing Benjamin's and Victor's comments. -- ___ Python tracker ___ ___ Python-bugs-li

[issue13448] PEP 3155 implementation

2011-11-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : Added file: http://bugs.python.org/file23766/942ba1e2f8c1.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue13466] new timezones

2011-11-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Another way to fix the issue is to wait 40 days. There won't be any release in-between anyway! -- ___ Python tracker ___ __

[issue13466] new timezones

2011-11-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: > A fairly "correct" way is to query the time zone database at time module > import time by using the DST and GMT offset of that time. But that does not give the *other* timezone :-( > IMO time.timezone and time.daylight should be deprecated since they >

[issue13455] Reorganize tracker docs in the devguide

2011-11-23 Thread Ezio Melotti
Ezio Melotti added the comment: > I think the reason these docs are scattered is that the devguide is a > guide, not a reference manual. I don't think this patch makes sense: if > the tracker really needed so much text to explain how it works, then > the tracker would have a severe UI problem

[issue13405] Add DTrace probes

2011-11-23 Thread anatoly techtonik
Changes by anatoly techtonik : -- nosy: +techtonik ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue10318] "make altinstall" installs many files with incorrect shebangs

2011-11-23 Thread Nick Coghlan
Nick Coghlan added the comment: Hmm, interesting mailing list post - I hadn't thought about how the auto-initialisation of sys.path[0] aligns with the Windows vs Unix difference in PATH handling (i.e. whether or not the current directory is considered to be on PATH), with Python coming down i

[issue4111] Add Systemtap/DTrace probes

2011-11-23 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: This project continues in issue #13405. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue13466] new timezones

2011-11-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Amaury Forgeot d'Arc wrote: > > The error comes from the way Python computes timezone and daylight: it > queries the tm_gmtoff of two timestamps, one close to the first of January, > the other close to the first of July. But last January the previous >

[issue13466] new timezones

2011-11-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: On my Ubuntu machine, I get: $ zdump -v Europe/Moscow | grep 201[0-9] Europe/Moscow Sat Mar 27 22:59:59 2010 UTC = Sun Mar 28 01:59:59 2010 MSK isdst=0 gmtoff=10800 Europe/Moscow Sat Mar 27 23:00:00 2010 UTC = Sun Mar 28 03:00:00 2010 MSD isdst=1 gmto

[issue13443] wrong links and examples in the functional HOWTO

2011-11-23 Thread A.M. Kuchling
A.M. Kuchling added the comment: Here's a patch against the 3.3 trunk. -- Added file: http://bugs.python.org/file23765/functional-patch.txt ___ Python tracker ___ __

[issue13466] new timezones

2011-11-23 Thread Ezio Melotti
Changes by Ezio Melotti : -- components: +Extension Modules nosy: +belopolsky, lemburg stage: -> test needed versions: +Python 3.2, Python 3.3 ___ Python tracker ___ ___

[issue13439] turtle: Errors in docstrings of onkey and onkeypress

2011-11-23 Thread Petri Lehtinen
Petri Lehtinen added the comment: The problems with onkey() are also there in 2.7. onkeypress() is new in 3.x. -- keywords: +easy stage: -> needs patch versions: +Python 2.7 ___ Python tracker ___

[issue13466] new timezones

2011-11-23 Thread Aleksey
New submission from Aleksey : Hi Guys, Since 31 august 2011 in Russian Federation always DST time. http://worldtimezone.net/dst_news/dst_news_russia36.html But >>> time.tzname ('MSK', 'MSK') >>> time.localtime().tm_isdst 0 >>> time.timezone -10800 >>> time.altzone -14400 i think tm_isdst must b

[issue13439] turtle: Errors in docstrings of onkey and onkeypress

2011-11-23 Thread Petri Lehtinen
Petri Lehtinen added the comment: There are actually many problems with docstrings of both onkey() and onkeypress(). Both: - "Turtle instance named turtle" isn't used in the example - The repl/doctest syntax is weird onkeypress only: - "key-press event" vs. "key-press-event" - The example

[issue4773] HTTPMessage not documented and has inconsistent API across 2.6/3.0

2011-11-23 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- nosy: +petri.lehtinen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue5053] http.client.HTTPMessage.getallmatchingheaders() always returns []

2011-11-23 Thread Petri Lehtinen
Petri Lehtinen added the comment: #13425 was marked as duplicate of this issue. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue13425] http.client.HTTPMessage.getallmatchingheaders() always returns []

2011-11-23 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- title: http.client.HTTPMessage.getallmatchingheaders() always returns -> http.client.HTTPMessage.getallmatchingheaders() always returns [] ___ Python tracker

[issue13425] http.client.HTTPMessage.getallmatchingheaders() always returns

2011-11-23 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- superseder: -> http.client.HTTPMessage.getallmatchingheaders() always returns [] ___ Python tracker ___ _

[issue5053] http.client.HTTPMessage.getallmatchingheaders() always returns []

2011-11-23 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- nosy: +petri.lehtinen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue5054] CGIHTTPRequestHandler.run_cgi() HTTP_ACCEPT improperly parsed

2011-11-23 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- nosy: +petri.lehtinen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue13425] http.client.HTTPMessage.getallmatchingheaders() always returns

2011-11-23 Thread Stanisław Jankowski
Stanisław Jankowski added the comment: This issue has been reported previously, in issue5053. Unfortunately, I overlooked. Sorry. -- resolution: -> duplicate status: open -> closed ___ Python tracker ___

[issue13465] A Jython section in the dev guide would be great

2011-11-23 Thread Frank Wierzbicki
New submission from Frank Wierzbicki : Nick suggested this as a comment on a blog post of mine -- I'll come up with some content, but I wanted to log the bug straight away so I wouldn't forget. -- components: Devguide messages: 148200 nosy: brett.cannon, ezio.melotti, fwierzbicki, ncogh

[issue13415] del os.environ

2011-11-23 Thread Charles-François Natali
Changes by Charles-François Natali : -- keywords: +needs review stage: -> patch review Added file: http://bugs.python.org/file23764/broken_unsetenv.diff ___ Python tracker ___ _

[issue12578] Erratic socket.gaierror: [Errno 11004] when using smtplib

2011-11-23 Thread Charles-François Natali
Changes by Charles-François Natali : -- resolution: -> invalid stage: test needed -> committed/rejected status: pending -> closed ___ Python tracker ___

[issue13464] HTTPResponse is missing an implementation of readinto

2011-11-23 Thread R. David Murray
New submission from R. David Murray : HTTPResponse subclasses RawIOBase, but does not provide an implementation of readinto, only read. This means that it is not conforming to the IO spec, and so it cannot be wrapped in a BufferedIOBase when using the C version of io. -- components: L

[issue13444] closed stdout causes error on stderr when the interpreter unconditionally flushes on shutdown

2011-11-23 Thread Ronny Pfannschmidt
Ronny Pfannschmidt added the comment: i think checking for closed is the correct solution -- ___ Python tracker ___ ___ Python-bugs-l

[issue13125] test_all_project_files() expected failure

2011-11-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ping. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue12779] Update packaging documentation

2011-11-23 Thread Éric Araujo
Éric Araujo added the comment: Making this a release blocker for d2 1.0a4. -- priority: normal -> release blocker ___ Python tracker ___

[issue12934] pysetup doesn’t work for the docutils project

2011-11-23 Thread Éric Araujo
Éric Araujo added the comment: Due to the same reason, it’s also not possible to run “pysetup3.1 metadata” in the distutils2 repo, or “pysetup2.4 metadata” in the distutils2-python3 repo. -- ___ Python tracker __

[issue13009] Remove documentation in distutils2 repo

2011-11-23 Thread Éric Araujo
Changes by Éric Araujo : -- priority: normal -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13463] Fix parsing of package_data

2011-11-23 Thread Éric Araujo
New submission from Éric Araujo : In 288640098ea8, Jeremy fixed a bug in distutils2.config that prevented d2’s own setup.py script from working. I had to revert that change because it caused tests to fail. The bug needs to be identified exactly, then a test for it is needed, and finally an s

[issue13455] Reorganize tracker docs in the devguide

2011-11-23 Thread Éric Araujo
Éric Araujo added the comment: +1 on grouping existing info into one or two files in the devguide +1 to removing the wiki pages +1 on keeping some basic directions in the main docs -- ___ Python tracker __

[issue10318] "make altinstall" installs many files with incorrect shebangs

2011-11-23 Thread Éric Araujo
Éric Araujo added the comment: > Hmm, my initial reaction is that that specific wording is stronger than I had > in mind - > there's nothing really wrong with having a shebang line and execute bit set > on a top level > module and symlinking it from /usr/bin. Okay. (On that topic, http://lis

[issue13462] Improve code and tests for Mixin2to3

2011-11-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: Yes, last time I checked 2to3 doesn't work on 2.5 or 2.4. People will just have to run build_py2to3 on 2.6+. -- ___ Python tracker ___

[issue13420] newer() function in dep_util.py discard changes in the same second

2011-11-23 Thread Éric Araujo
Éric Araujo added the comment: It’s a bit hard for me to isolate the distutils problem from the CDBS-specific parts (maybe because I’m tired :). For years, sub-second resolution was not supported by distutils, and things were okay as long as the build* commands did the file creation and inst

[issue12618] py_compile cannot create files in current directory

2011-11-23 Thread Éric Araujo
Éric Araujo added the comment: Meador, maybe you would like to commit the tests (except for the one that’s the object of this report) yourself? I don’t mind doing it, but as you have push rights now maybe you prefer to have your name directly associated with your work. -- _

[issue13462] Improve code and tests for Mixin2to3

2011-11-23 Thread Éric Araujo
New submission from Éric Araujo : Currently distutils2 has two classes and one function to perform 2to3 conversion in the build_py and build_scripts commands. The code is a bit messy and also lack tests, for example for the conversion of doctests in text files. I’ve started revamping it so t

[issue12328] multiprocessing's overlapped PipeConnection on Windows

2011-11-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > There are three "expected" error conditions: > > ERROR_OPERATION_ABORTED: operation stopped by CancelIo(Ex)() > ERROR_MORE_DATA: operation complete, but only got part of the message > ERROR_IO_INCOMPLETE: operation still has not finished > > In the win32 api

[issue13461] Error on test_issue_1395_5 with Python 2.7 and VS2010

2011-11-23 Thread Sébastien Sablé
Sébastien Sablé added the comment: The problem is in CTextIOWrapperTest.test_issue1395_5 Here is the backtrace: msvcr100d.dll!memset() Line 145Asm > msvcr100d.dll!_heap_alloc_dbg_impl(unsigned __int64 nSize, int > nBlockUse, const char * szFileName, int nLine, int * errn

[issue1395] py3k: duplicated line endings when using read(1)

2011-11-23 Thread Sébastien Sablé
Sébastien Sablé added the comment: OK, sorry. Done in issue 13461. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue13461] Error on test_issue_1395_5 with Python 2.7 and VS2010

2011-11-23 Thread Sébastien Sablé
New submission from Sébastien Sablé : I am trying to get Python working when compiled with Visual Studio 2010 (cf issue 13210). When running the tests with the python 2.7 branch compiled with VS2010, the "test_issue_1395_5" in test_io.py will cause Python to eat the whole memory within a few

[issue1395] py3k: duplicated line endings when using read(1)

2011-11-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: You should open a new issue for this new problem. -- ___ Python tracker ___ ___ Python-bugs-li

[issue1395] py3k: duplicated line endings when using read(1)

2011-11-23 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue1395] py3k: duplicated line endings when using read(1)

2011-11-23 Thread Sébastien Sablé
Sébastien Sablé added the comment: I am trying to get Python working when compiled with Visual Studio 2010 (cf issue 13210). When running the tests with the python 2.7 branch compiled with VS2010, the "test_issue_1395_5" in test_io.py will cause Python to eat the whole memory within a few se

[issue13446] imaplib, fetch: improper behaviour on read-only selected mailboxes

2011-11-23 Thread Charalampos Nikolaou
Charalampos Nikolaou added the comment: Hi, actually I must have found the real culprit. And this is that imaplib does not include a function for the "EXAMINE" command. What it does is that when a user selects a mailbox as readonly, it executes an EXAMINE command instead of a SELEECT command,

[issue12328] multiprocessing's overlapped PipeConnection on Windows

2011-11-23 Thread sbt
sbt added the comment: > I have the feeling that if we have to call GetLastError() at the > Python level, then there's something wrong with the APIs we're > exposing from the C extension. > I see you check for ERROR_OPERATION_ABORTED. Is there any situation > where this can happen? There are

[issue13425] http.client.HTTPMessage.getallmatchingheaders() always returns

2011-11-23 Thread Petri Lehtinen
Petri Lehtinen added the comment: > Let's make it useful, that's much better instead of removing it. I am > +1 with Ezio's suggestion on this to return a list of tuples with > matching headers. But there's already a function that does it: http://docs.python.org/dev/library/email.message.ht

[issue13439] turtle docstring for onkeyrelease references onkey, not onkeyrelease

2011-11-23 Thread Christopher Smith
Christopher Smith added the comment: Sorry for the misdirection: The docstring example for onkeypress is written using onkey instead of onkeypress. (There is no problem for onkey and onkeyrelease.) -- resolution: wont fix -> status: closed -> open ___

[issue13425] http.client.HTTPMessage.getallmatchingheaders() always returns

2011-11-23 Thread Senthil Kumaran
Senthil Kumaran added the comment: Let's make it useful, that's much better instead of removing it. I am +1 with Ezio's suggestion on this to return a list of tuples with matching headers. -- title: http.client.HTTPMessage.getallmatchingheaders() always returns [] -> http.client.HTTPMe

[issue13415] del os.environ

2011-11-23 Thread STINNER Victor
STINNER Victor added the comment: > Note that ignoring unsetenv() return value is a bad idea: > http://xorl.wordpress.com/category/freebsd/page/2/ Oh yeah, I remember this critical (local) vulnerability! > We could maybe add a configure-time check. Yes, it sounds like the best solution.

[issue13425] http.client.HTTPMessage.getallmatchingheaders() always returns []

2011-11-23 Thread Petri Lehtinen
Petri Lehtinen added the comment: > No, it's just random finding. This strengthens my impression that no-one is actually using the function. Maybe we should just remove it from 3.3. -- ___ Python tracker ___

[issue13459] logger.propagate=True behavior clarification

2011-11-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2c173769a957 by Vinay Sajip in branch '2.7': Closes #13459: Clarified documentation on Logger.propagate. Thanks to Mike Fogel for the patch. http://hg.python.org/cpython/rev/2c173769a957 New changeset a9f5639e18a1 by Vinay Sajip in branch '3.2': C

[issue13425] http.client.HTTPMessage.getallmatchingheaders() always returns []

2011-11-23 Thread Stanisław Jankowski
Stanisław Jankowski added the comment: > @stachjankowski: How did you find this issue? Are you porting from 2.x to 3.x > or have new 3.x code that uses this function? No, it's just random finding. -- ___ Python tracker

[issue13415] del os.environ[key] ignores errors

2011-11-23 Thread Charles-François Natali
Charles-François Natali added the comment: > Oh, it looks like unsetenv() has no return value on Mac OS X Tiger And neither does FreeBSD < 7: http://python.org/dev/buildbot/all/builders/x86%20FreeBSD%206.4%203.x/builds/2015/steps/compile/logs/stdio Note that ignoring unsetenv() return value is

[issue12156] test_multiprocessing.test_notify_all() timeout (1 hour) on FreeBSD 7.2

2011-11-23 Thread Charles-François Natali
Charles-François Natali added the comment: Alright, the test is now skipped when the system doesn't support enough POSIX semaphores. I'm closing, we can still reopen in case another similar problem pops up (on other OS of course). -- resolution: -> fixed stage: -> committed/rejected