[issue14133] improved PEP 409 implementation

2012-05-15 Thread Georg Brandl
Georg Brandl added the comment: I hope you're not disappointed when that PEP doesn't show up in the release notes :) -- ___ Python tracker ___ _

[issue8996] Add a default role to allow writing bare `len` instead of :func:`len`

2012-05-15 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue14804] Wrong defaults args notation in docs

2012-05-15 Thread Ezio Melotti
Ezio Melotti added the comment: Are you referring to #8350? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1294959] Problems with /usr/lib64 builds.

2012-05-15 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Éric Araujo wrote: > > Éric Araujo added the comment: > > On Mar 29, 2011, at 10:12 PM, Matthias Klose wrote: >> no, it looks for headers and libraries in more directories. But really, this >> whole testing for paths is wrong. Just use the compiler to se

[issue14674] Add link to RFC 4627 from json documentation

2012-05-15 Thread Chris Rebert
Chris Rebert added the comment: New revision per Éric's Rietveld feedback. Sidenote: Is there any way to get notified of these reviews? I only saw it because I happened to click the "review" link on a lark. -- Added file: http://bugs.python.org/file25594/json.rst.patch __

[issue14674] Add link to RFC 4627 from json documentation

2012-05-15 Thread Chris Rebert
Chris Rebert added the comment: The "import json"s were left for uniformity with the other code samples in the module's docs. Also, here's what the pedantically-strict recipes might look like: def _reject_inf_nan(string): if string in {'-Infinity', 'Infinity', 'NaN'}: raise Value

[issue14674] Add link to RFC 4627 from json documentation

2012-05-15 Thread Ezio Melotti
Ezio Melotti added the comment: Thanks for the patch, I left more comments on the review page. IMHO it would be better to list the differences in a bullet list and expand later, rather than having a section for the parser and one for the generator. AFAIU the differences are: * top-level scala

[issue14674] Add link to RFC 4627 from json documentation

2012-05-15 Thread Chris Rebert
Chris Rebert added the comment: Further copyediting. -- Added file: http://bugs.python.org/file25595/json.rst.patch ___ Python tracker ___ __

[issue14674] Link to & explain deviations from RFC 4627 in json module docs

2012-05-15 Thread Chris Rebert
Chris Rebert added the comment: Reflect broader scope -- title: Add link to RFC 4627 from json documentation -> Link to & explain deviations from RFC 4627 in json module docs ___ Python tracker __

[issue14811] compile fails - UTF-8 character decoding

2012-05-15 Thread Glenn Linderman
Glenn Linderman added the comment: There is no traceback. Here is the text of the Syntax error. d:\my\im\infiles>c:\python32\python.exe d:\my\py\t33a.py -h File "d:\my\py\t33a.py", line 2 SyntaxError: Non-UTF-8 code starting with '\xc3' in file d:\my\py\t33a.py on line 3, but no encoding de

[issue14805] Support display of both __cause__ and __context__

2012-05-15 Thread Patrick Westerhoff
Changes by Patrick Westerhoff : -- nosy: +poke ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue14674] Add link to RFC 4627 from json documentation

2012-05-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > for key, value in pairs: > if key in pairs: "if key in obj:"? -- title: Link to & explain deviations from RFC 4627 in json module docs -> Add link to RFC 4627 from json documentation ___ Python trac

[issue14674] Add link to RFC 4627 from json documentation

2012-05-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: IMHO, it would be sufficient to have a simple bullet list of differences and notes or warnings in places where Python can generate non-standard JSON (top-level scalars, inf and nan, non-utf8 encoded strings). -- __

[issue14803] Enhanced command line features for the runpy module

2012-05-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: > As Ned notes, to cover *implicit* creation of Python subprocesses an > environment based solution would be needed to ensure the subprocesses > adopt the desired settings. So why aren't you proposing an environment-based solution instead? :) To use the "-C" op

[issue14811] compile fails - UTF-8 character decoding

2012-05-15 Thread Hynek Schlawack
Hynek Schlawack added the comment: You are right, file system encoding was platform dependent, not file encoding. This space-after-parentheses trigger is odd; I'm adding the Windows guys to the ticket. Please tell us also your exact version of Windows. -- components: -Interpreter Cor

[issue14803] Add feature to allow code execution prior to __main__ invocation

2012-05-15 Thread Nick Coghlan
Nick Coghlan added the comment: Because I was thinking about a specific case where I *could* configure how the subprocesses were invoked (launching a test server for a web application). It took Ned's comment to remind me of the original use case (i.e. coverage statistics for a subprocesses cr

[issue14803] Add feature to allow code execution prior to __main__ invocation

2012-05-15 Thread Nick Coghlan
Nick Coghlan added the comment: Actually, there's another use case for you: export PYTHONRUNFIRST="import faulthandler; faulthandler.enable()" application.py All subprocesses launched by the application will now have faulthandler enabled, *without* modifying the application. Doing this in a s

[issue14813] Can't build under VS2008 anymore

2012-05-15 Thread Antoine Pitrou
New submission from Antoine Pitrou : I tried to build PC/VS9.0/pcbuild.sln using Visual Studio 2008, but it failed: 1>-- Build started: Project: make_buildinfo, Configuration: Release Win32 -- 2>-- Build started: Project: kill_python, Configuration: Debug x64 -- 2>Compiling... 1

[issue14811] compile fails - UTF-8 character decoding

2012-05-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: I tried to reproduce but failed to compile a Windows Python - see issue14813. -- components: +Windows nosy: +pitrou versions: +Python 3.3 ___ Python tracker __

[issue14811] compile fails - UTF-8 character decoding

2012-05-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I can reproduce it on Linux. Minimal example: $ ./python -c "open('longline.py', 'w').write('#' + repr('\u00A1' * 4096) + '\n')" $ ./python longline.py File "longline.py", line 1 SyntaxError: Non-UTF-8 code starting with '\xc2' in file longline.py on line

[issue14810] Bug in tarfile

2012-05-15 Thread Lars Gustäbel
Lars Gustäbel added the comment: This issue is related to issue13158 which deals with a GNU tar specific extension to the original tar format. In that issue a negative number in the uid/gid fields caused problems. In your case the problem is a negative mtime field. Reading these particular n

[issue14811] compile fails - UTF-8 character decoding

2012-05-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And for Python 2.7 too. -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mail

[issue14811] compile fails - UTF-8 character decoding

2012-05-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Function decoding_fgets (Parser/tokenizer.c) reads line in buffer of fixed size 8192 (line truncated to size 8191) and then fails because line is cut in the middle of a multibyte UTF-8 character. -- ___ Python tr

[issue14811] Syntax error on long UTF-8 lines

2012-05-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- title: compile fails - UTF-8 character decoding -> Syntax error on long UTF-8 lines ___ Python tracker ___ _

[issue14803] Add feature to allow code execution prior to __main__ invocation

2012-05-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For faulthandler and coverage would be more convenient option "-M" (run module with __name__='__premain__' (or something of the sort) and continue command line processing). -- ___ Python tracker

[issue14813] Can't build under VS2008 anymore

2012-05-15 Thread Martin v . Löwis
Martin v. Löwis added the comment: Building with VS 2008 isn't officially supported anymore. If users want to continue to use VS 2008, they need to contribute patches. Preferably, the project files would be generated from the VS2010 project files, but for the moment, manually editing to make

[issue14810] Bug in tarfile

2012-05-15 Thread Hans Werner May
Hans Werner May added the comment: "Out of curiosity: where did you get a file that was last modified in 1956?" No idea, this was a jpeg file, probably downloaded from internet. Btw, on Linux you can manipulate the creation date with the touch command, so it is possible to create a tarball wi

[issue14803] Add feature to allow code execution prior to __main__ invocation

2012-05-15 Thread Nick Coghlan
Nick Coghlan added the comment: No, that increases complexity and coupling, because it would only work for modules that were designed to work that way. Execution of a simple statement will work for any global state that can be modified from pure Python code (including invocation of more compl

[issue14777] Tkinter clipboard_get() decodes characters incorrectly

2012-05-15 Thread Thomas Kluyver
Thomas Kluyver added the comment: I've submitted the contributor agreement, though I've not yet heard anything back about it. -- ___ Python tracker ___

[issue14813] Can't build under VS2008 anymore

2012-05-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Building with VS 2008 isn't officially supported anymore. If users > want to continue to use VS 2008, they need to contribute patches. Well, VS 2010 is probably a multi-GB download and install. Besides, having to juggle between two different VS versions will

[issue14777] Tkinter clipboard_get() decodes characters incorrectly

2012-05-15 Thread Thomas Kluyver
Thomas Kluyver added the comment: ...And mere minutes after I said I hadn't heard anything, I've got the confirmation email. :-) -- ___ Python tracker ___ _

[issue14809] Add HTTP status codes introduced by RFC 6585

2012-05-15 Thread Hynek Schlawack
Hynek Schlawack added the comment: EungYun, After further research I've found two issue which you should fix before it can be checked in: - The multi-line strings are missing spaces at their line break (429 and 431). - The error codes are documented at http://hg.python.org/cpython/file/26b

[issue14777] Tkinter clipboard_get() decodes characters incorrectly

2012-05-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > ...And mere minutes after I said I hadn't heard anything, I've got the > confirmation email. :-) Congratulations! -- ___ Python tracker _

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-05-15 Thread Nick Coghlan
New submission from Nick Coghlan : This issue tracks the incorporation of the ipaddress module into Python 3.3. Tasks to be completed: - add Lib/ipaddress.py from [1] - add Lib/test_ipaddress.py from [1] - create module reference docs from docstrings in [1] - add Doc/library/ipaddress.py and lin

[issue13952] mimetypes doesn't recognize .csv

2012-05-15 Thread Paul Cauchon
Changes by Paul Cauchon : -- nosy: +Paul.Cauchon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue14815] random_seed uses only 32-bits of hash on Win64

2012-05-15 Thread Martin v . Löwis
New submission from Martin v. Löwis : random_seed has this code: long hash = PyObject_Hash(arg); On Win64, Py_hash_t is a 64-bit type, yet long is a 32-bit type, so this truncates. I think the computation should be done in Py_ssize_t. -- messages: 160720 nosy: loewis priority: norma

[issue14815] random_seed uses only 32-bits of hash on Win64

2012-05-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue14816] compilation failed on Ubuntu shared buildbot

2012-05-15 Thread Antoine Pitrou
New submission from Antoine Pitrou : See http://www.python.org/dev/buildbot/all/builders/x86%20Ubuntu%20Shared%203.x First failing build is http://www.python.org/dev/buildbot/all/builders/x86%20Ubuntu%20Shared%203.x/builds/5955 -- components: Build messages: 160721 nosy: benjamin.peter

[issue14777] Tkinter clipboard_get() decodes characters incorrectly

2012-05-15 Thread Andrew Svetlov
Andrew Svetlov added the comment: I'm ok with last patch version. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue14804] Wrong defaults args notation in docs

2012-05-15 Thread Éric Araujo
Éric Araujo added the comment: Yes. Close as duplicate? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue14804] Wrong defaults args notation in docs

2012-05-15 Thread Petri Lehtinen
Petri Lehtinen added the comment: This issue is about documentation style of function signatures, not about missing keyword arguments in C functions. -- ___ Python tracker ___

[issue14494] __future__.py and its documentation claim absolute imports became mandatory in 2.7, but they didn't

2012-05-15 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- nosy: +petri.lehtinen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue14773] fwalk breaks on dangling symlinks

2012-05-15 Thread Hynek Schlawack
Hynek Schlawack added the comment: I just realized it doesn't really make sense because if a file disappears for real, we'll get another FileNotFoundException when checking whether it's a symlink and the continue is never reached. So behold v3. :) This time, I have tested it by injecting a

[issue14807] Move tarfile.filemode() into stat module

2012-05-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 492e6c6a01bb by Giampaolo Rodola' in branch 'default': #14807: move undocumented tarfile.filemode() to stat.filemode(). Add tarfile.filemode alias with deprecation warning. http://hg.python.org/cpython/rev/492e6c6a01bb -- nosy: +python-dev

[issue14807] Move tarfile.filemode() into stat module

2012-05-15 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue14800] stat.py constant comments + docstrings

2012-05-15 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- assignee: -> giampaolo.rodola keywords: +easy -patch stage: -> committed/rejected status: open -> closed type: -> enhancement ___ Python tracker

[issue14807] Move tarfile.filemode() into stat module

2012-05-15 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- assignee: -> giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11959] smtpd cannot be used without affecting global state

2012-05-15 Thread Vinay Sajip
Vinay Sajip added the comment: > If asyncore and asynchat are (mostly?) supporting an alternate > socket map, why is it necessary to copy create_socket? > Shouldn't we be fixing create_socket in asyncore instead? Well, I don't see how this can be done along with keeping existing behaviour, sin

[issue11959] smtpd cannot be used without affecting global state

2012-05-15 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Changing it in asyncore is fine. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue14804] Wrong defaults args notation in docs

2012-05-15 Thread Ezio Melotti
Ezio Melotti added the comment: Indeed. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue14773] fwalk breaks on dangling symlinks

2012-05-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: patch review -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-05-15 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue14773] fwalk breaks on dangling symlinks

2012-05-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset cbe7560d4443 by Hynek Schlawack in branch 'default': #14773: Fix os.fwalk() failing on dangling symlinks http://hg.python.org/cpython/rev/cbe7560d4443 -- nosy: +python-dev ___ Python tracker

[issue12541] Accepting Badly formed headers in urllib HTTPBasicAuth

2012-05-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3e10d0148f79 by Senthil Kumaran in branch '2.7': Issue #12541: Be lenient with quotes around Realm field with HTTP Basic Authentation in urllib2. http://hg.python.org/cpython/rev/3e10d0148f79 New changeset bb94fec5c5ab by Senthil Kumaran in branch

[issue14809] Add HTTP status codes introduced by RFC 6585

2012-05-15 Thread EungJun Yi
Changes by EungJun Yi : Added file: http://bugs.python.org/file25597/rfc6585.patch ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue14809] Add HTTP status codes introduced by RFC 6585

2012-05-15 Thread EungJun Yi
EungJun Yi added the comment: Hynek, I have fixed them and upload the patch, rfc6585-rev2.patch. -- ___ Python tracker ___ ___ Python

[issue11959] smtpd cannot be used without affecting global state

2012-05-15 Thread R. David Murray
R. David Murray added the comment: But it is create_socket you want to change. So if we add a map argument to that and only pass it to socket if it is non-None, wouldn't that maintain backward compatibility with current asyncore behavior? Neither asyncore nor asynchat calls create_socket, a

[issue14813] Can't build under VS2008 anymore

2012-05-15 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Well, VS 2010 is probably a multi-GB download and install. Besides, > having to juggle between two different VS versions will quickly become > confusing. Sure. However, it is not feasible to keep the build systems for many VS versions up-to-date, just becaus

[issue14072] urlparse on tel: URI-s misses the scheme in some cases

2012-05-15 Thread Senthil Kumaran
Senthil Kumaran added the comment: Hi Ezio, The patch is fine and the check is correct. I was thinking if by removing int() based verification are we missing out anything on port number check. But looks like we wont as the int() previously is done to find the proper scheme and url part for t

[issue14809] Add HTTP status codes introduced by RFC 6585

2012-05-15 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue14133] improved PEP 409 implementation

2012-05-15 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2012/5/15 Georg Brandl : > > Georg Brandl added the comment: > > I hope you're not disappointed when that PEP doesn't show up in the release > notes :) It gives me more peace of mind than any release note ever could. :) -- ___

[issue14072] urlparse on tel: URI-s misses the scheme in some cases

2012-05-15 Thread Éric Araujo
Éric Araujo added the comment: > it would helpful to add 'tel' to uses_netloc How so? The tel scheme does not use a netloc. -- ___ Python tracker ___ _

[issue14814] Implement PEP 3144 (the ipaddress module)

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

[issue14813] Can't build under VS2008 anymore

2012-05-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: > This is free software. If you don't want to care, you don't have to. Of course. I'm just pointing this out in relation with the fact that we don't have many Windows-based developers :-) > I expect that most occasional contributors > will find it easier to us

[issue12541] Accepting Badly formed headers in urllib HTTPBasicAuth

2012-05-15 Thread Senthil Kumaran
Senthil Kumaran added the comment: this issue is taken care. Both in accepting unquoted Realm for basic auth leniently and then raising a UserWarning when encountering this case. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed _

[issue12541] Accepting Badly formed headers in urllib HTTPBasicAuth

2012-05-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset b82178b07e0f by Senthil Kumaran in branch '2.7': Issue12541 - Add UserWarning for unquoted realms http://hg.python.org/cpython/rev/b82178b07e0f New changeset b5b38bda9fc4 by Senthil Kumaran in branch '3.2': Issue12541 - Add UserWarning for unquoted

[issue11959] smtpd cannot be used without affecting global state

2012-05-15 Thread Vinay Sajip
Vinay Sajip added the comment: > So if we add a map argument to that and only pass it to socket if it > is non-None, wouldn't that maintain backward compatibility with > current asyncore behavior? Sorry I was being a bit dense ... it's been a while since I looked at this. I think you are right

[issue14813] Can't build under VS2008 anymore

2012-05-15 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue14813] Can't build under VS2008 anymore

2012-05-15 Thread Brian Curtin
Brian Curtin added the comment: > Are there any features which make VS 2010 easier to use for us? I don't do much with the IDE besides the basics of writing the code and building it, so I can't really say if it makes anything easier on us. I think the change is just going to be doing the same

[issue13968] Support recursive globs

2012-05-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm looking at the tests and I don't understand why '**/bcd/*' should match 'a/bcd/efg/ha'. Am I missing something? -- ___ Python tracker ___

[issue14813] Can't build under VS2008 anymore

2012-05-15 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Are there any features which make VS 2010 easier to use for us? Not for us, but for our users. Users request to build Python with VS 2010, because that's all they have. It's already a major pain for Python Windows developers to discover that they can't build

[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree

2012-05-15 Thread Markus
Markus added the comment: Hi, the C implementation of ElementTree do not support namespaces for find/all/... . To me this is a serious regression, as I rely on ElementTree namespace support, and 3.3 would break it with this change. Breaking namespace support is a fundamental problem. Please

[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree

2012-05-15 Thread Markus
Changes by Markus : Removed file: http://bugs.python.org/file25598/findall_takes_no_keywords_anymore.py ___ Python tracker ___ ___ Python-bug

[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree

2012-05-15 Thread Markus
Markus added the comment: The file was bad, sorry. re-attached -- Added file: http://bugs.python.org/file25599/findall_takes_no_keywords_anymore.py ___ Python tracker ___ _

[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree

2012-05-15 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Markus (cmn): Please file a separate issue, which will be a release blocker for 3.3 release. (It's not the only regression.) -- ___ Python tracker __

[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree

2012-05-15 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Temporary very ugly workaround (before importing xml.etree.ElementTree) is: import sys sys.modules["_elementtree"] = None -- ___ Python tracker _

[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree

2012-05-15 Thread Ezio Melotti
Ezio Melotti added the comment: It seems to me that namespaces are actually supported, but they are accepted only as positional args and not keyword args, so this should be easy to fix. -- ___ Python tracker

[issue14674] Add link to RFC 4627 from json documentation

2012-05-15 Thread Chris Rebert
Chris Rebert added the comment: >> for key, value in pairs: >> if key in pairs: > > "if key in obj:"? Yes, obviously. :-) It wrote those very late at night. @Ezio: These were per Éric's feedback but would be for a separate bug/patch. -- _

[issue14817] pkgutil.extend_path has no tests

2012-05-15 Thread Eric V. Smith
New submission from Eric V. Smith : Subject says it all. There are also no tests of .pkg files. -- components: Tests keywords: easy messages: 160751 nosy: eric.smith priority: normal severity: normal status: open title: pkgutil.extend_path has no tests _

[issue11959] smtpd cannot be used without affecting global state

2012-05-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I initially came across this because I got some warnings from > regrtest.py about changed state, when I was trying to implement a > TestSMTPServer class (derived from smtpd.SMTPServer) to test the > SMTPHandler in logging. If you get a warning, it means your

[issue14818] C implementation of ElementTree causes regressions

2012-05-15 Thread Markus
New submission from Markus : The C implementation of ElementTree which is the default by python3.3 [1] does not accept the namespaces keyword for Element/ElementTree.find(all|iter|...) and maybe others. [1] http://bugs.python.org/issue13988 -- components: Library (Lib) messages: 1607

[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree

2012-05-15 Thread Markus
Markus added the comment: As advised I opened a new bug on this: http://bugs.python.org/issue14818 -- ___ Python tracker ___ ___ Pyth

[issue1635217] Add example of distutils setup() with "requires" argument

2012-05-15 Thread anatoly techtonik
anatoly techtonik added the comment: It doesn't seem that requires parameter is honored by pip. Should we document install_requires instead? -- ___ Python tracker ___ ___

[issue14818] C implementation of ElementTree causes regressions

2012-05-15 Thread Ezio Melotti
Ezio Melotti added the comment: As I wrote on the other issue: > It seems to me that namespaces are actually supported, but they are > accepted only as positional args and not keyword args, so this should > be easy to fix. I can prepare a patch unless someone else is faster than me.

[issue14807] Move tarfile.filemode() into stat module

2012-05-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Buildbot failures: http://www.python.org/dev/buildbot/all/builders/AMD64%20FreeBSD%209.0%203.x/builds/2540 http://www.python.org/dev/buildbot/all/builders/x86%20Tiger%203.x/builds/4572 -- status: closed -> open ___ P

[issue14584] Add gzip support to xmlrpc.server

2012-05-15 Thread Ross Lagerwall
Ross Lagerwall added the comment: The server encodes the response if the length of the response exceeds self.encode_threshold, 1400 (presumably there's no point in compression if the data fits in the MTU anyway). -- nosy: +rosslagerwall ___ Python

[issue14807] Move tarfile.filemode() into stat module

2012-05-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 539fbd6e58f6 by Giampaolo Rodola' in branch 'default': #14807: fix bb failure due to symlink test relying on hard-coded permissions http://hg.python.org/cpython/rev/539fbd6e58f6 -- ___ Python tracker

[issue14807] Move tarfile.filemode() into stat module

2012-05-15 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Thanks. It should now be fixed. -- status: open -> closed ___ Python tracker ___ ___ Python-bugs

[issue13156] _PyGILState_Reinit assumes auto thread state will always exist which is not true.

2012-05-15 Thread Daniel Franke
Daniel Franke added the comment: Just FYI, I've lately been trying to track down a different threading-related bug, and I think the fix for this one also fixed that one by accident. Leave the following program running for a while under python-2.7.2: ---snip--- import subprocess import threadi

[issue14818] C implementation of ElementTree causes regressions

2012-05-15 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-05-15 Thread Alan Kennedy
Changes by Alan Kennedy : -- nosy: +amak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue14819] Add `assertIsSubclass` and `assertNotIsSubclass` to `unittest.TestCase`

2012-05-15 Thread Patrick Smith
New submission from Patrick Smith : The attached patch adds two helper methods to `unittest.TestCase`: `assertIsSubclass` and `assertIsNotSubclass`. These methods are similar to the `assertIsInstance` and `assertIsNotInstance` methods that are already part of `unittest.TestCase`. They allow on

[issue11959] smtpd cannot be used without affecting global state

2012-05-15 Thread Vinay Sajip
Vinay Sajip added the comment: > If you get a warning, it means your tests lack proper cleanup, so you > should fix that instead of trying to make the warning disappear by > circumventing regrtest's detection mechanism. What makes you say I was trying to circumvent regrtest's detection mechanis

[issue14819] Add `assertIsSubclass` and `assertNotIsSubclass` to `unittest.TestCase`

2012-05-15 Thread Ezio Melotti
Ezio Melotti added the comment: Hi, this has been discussed already, and we took the decision to leave these out, since checking for subclasses is not as common as checking the type. If needed, this could still be implemented by the user, and possibly they could be added as recipes to the unit

[issue11959] smtpd cannot be used without affecting global state

2012-05-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I tried to find a way of avoiding changing global state in my test - > but because of the problem I mention, I couldn't see a way of using > smtpd without affecting global state. Well, other tests manage it even without using a private socket map. Leaving dan

[issue14624] Faster utf-16 decoder

2012-05-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here are two new patch. Checking for characters out-of-range moved, making the code simpler. Theoretically it is a bit slow down decoding of short UCS1 strings (up to 1 and 3 chars on 32- and 64-bit), but practically there is no difference. The second patch is

[issue14811] Syntax error on long UTF-8 lines

2012-05-15 Thread R. David Murray
R. David Murray added the comment: By the way, Glenn, what you posted as "the syntax error" (which it was) *is* the traceback. A syntax error on the file directly being compiled will only have one line in the traceback. -- nosy: +r.david.murray __

[issue14624] Faster utf-16 decoder

2012-05-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset cdcc816dea85 by Antoine Pitrou in branch 'default': Issue #14624: UTF-16 decoding is now 3x to 4x faster on various inputs. http://hg.python.org/cpython/rev/cdcc816dea85 -- ___ Python tracker

[issue14624] Faster utf-16 decoder

2012-05-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you Serhiy! Now committed. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue14813] Can't build under VS2008 anymore

2012-05-15 Thread Stefan Krah
Stefan Krah added the comment: I also would appreciate if the VS 2008 build still worked. Currently I can't build the 64-bit version with either VS 2008 or VS 2010: TRACKER : error TRK0002: Failed to execute command: ""C:\Program Files (x86)\Microsoft Visual Studio 10 .0\VC\BIN\amd64\CL.exe"

  1   2   >