[issue15125] argparse: positional arguments containing - in name not handled well

2012-07-07 Thread Ionuț Arțăriși
Ionuț Arțăriși added the comment: I'm working on this right now as part of EuroPython's CPython sprint. -- nosy: +mapleoin ___ Python tracker ___ ___

[issue12907] Update test coverage devguide page

2012-07-07 Thread Dougal Matthews
Changes by Dougal Matthews : -- nosy: +d0ugal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

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

2012-07-07 Thread Catalin Iacob
Catalin Iacob added the comment: So, how to move this further? In #13425 Petri proposes 4 alternatives, copying them here: 1) Document the function to make it officially part of the public API 2) Rename and move the function to http.server 3) Leave it undocumented and just fix it 4) Deprecate

[issue11027] Implement sectionxform in configparser

2012-07-07 Thread Łukasz Langa
Changes by Łukasz Langa : -- versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1410680] Add 'surgical editing' to ConfigParser

2012-07-07 Thread Łukasz Langa
Changes by Łukasz Langa : -- versions: +Python 3.4 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12178] csv writer doesn't escape escapechar

2012-07-07 Thread Catalin Iacob
Changes by Catalin Iacob : -- nosy: +larry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue15271] argparse: repeatedly specifying the same argument ignores the previous ones

2012-07-07 Thread Ionuț Arțăriși
New submission from Ionuț Arțăriși : To reproduce: >>> import argparse [74536 refs] >>> parser = argparse.ArgumentParser() [74809 refs] >>> parser.add_argument("foo") >>> parser.add_argument("foo") >>> parser.parse_args(["bar"]) usage: ipython [-h] foo foo ipython: error: too few arguments An e

[issue15125] argparse: positional arguments containing - in name not handled well

2012-07-07 Thread Florent Xicluna
Florent Xicluna added the comment: I don't see a valid use case to support "-" in the name of the positional argument. IMHO, it should raise an error (probably a ValueError) for the add_argument in this case ... Or we keep it as-is and close as wont-fix: if the op wants to pass "foo-bar" f

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 16ff4889a858 by Nick Coghlan in branch 'default': Issue 14814: Provide more informative error messages in ipaddress, and ensure that errors are caught as expected http://hg.python.org/cpython/rev/16ff4889a858 -- __

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-07 Thread Nick Coghlan
Nick Coghlan added the comment: There's actually one semantic change in that last patch: IPv4Address (et al) will now accept leading zeroes in those cases where they're *not* ambiguous (i.e. values less than 8, which have identical representations in both decimal and octal notation). ---

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-07 Thread Nick Coghlan
Nick Coghlan added the comment: Also, I noted the provisional API status in the NEWS message, but I wonder if it would make more sense to leave that kind of note for the commit messages. -- ___ Python tracker ___

[issue14241] io.UnsupportedOperation.__new__(io.UnsupportedOperation) fails

2012-07-07 Thread Larry Hastings
Changes by Larry Hastings : -- nosy: +larry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue11908] Weird `slice.stop or sys.maxint`

2012-07-07 Thread Brian Brazil
Brian Brazil added the comment: The attached patch fixes this -- keywords: +patch nosy: +bbrazil Added file: http://bugs.python.org/file26283/issue11908-islice-docs.patch ___ Python tracker ___

[issue15271] argparse: repeatedly specifying the same argument ignores the previous ones

2012-07-07 Thread Florent Xicluna
Florent Xicluna added the comment: Confirmed. It should probably raise an ArgumentError like this one. http://docs.python.org/library/argparse.html#conflict-handler -- components: +Library (Lib) nosy: +flox stage: -> needs patch versions: +Python 3.3 _

[issue14241] io.UnsupportedOperation.__new__(io.UnsupportedOperation) fails

2012-07-07 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue15270] "Economy of Expression" section outdated

2012-07-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: The super() doc is also a good example of unreadable jargon ("dynamic execution environment" ??). Nowhere is it obvious to a beginner what super() is *practically* used for. -- assignee: -> docs@python components: +Documentation nosy: +docs@python, p

[issue15144] Possible integer overflow in operations with addresses and sizes.

2012-07-07 Thread Mark Dickinson
Mark Dickinson added the comment: If we're worrying about undefined behaviour, it looks like recent optimizations have *introduced* new undefined behaviour in the form of strict aliasing violations. E.g., from ascii_decode: unsigned long value = *(const unsigned long *) _p; (here _p has

[issue15144] Possible integer overflow in operations with addresses and sizes.

2012-07-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: > This should really be fixed; compilers are known to make optimizations > based on the assumption that this sort of undefined behaviour doesn't > occur. Doesn't the compiler have all the necessary information here? It's not like a subroutine is called. (als

[issue15144] Possible integer overflow in operations with addresses and sizes.

2012-07-07 Thread Mark Dickinson
Mark Dickinson added the comment: > (also, I'm not sure what optimization it could actually make) Me neither, but it doesn't seem safe to assume that no compiler will take advantage of this. I don't want to start guessing what compilers might or might not do; it would be much better simply

[issue11176] give more meaningful argument names in argparse documentation

2012-07-07 Thread Greg Roodt
Greg Roodt added the comment: Is this still an issue? If so, I've created a simpler first example as suggested below. If we decide these docs still need a bit more work, I can also continue to provide better examples than the "foo bar" ones. -- keywords: +patch nosy: +groodt Added f

[issue13498] os.makedirs exist_ok documentation is incorrect, as is some of the behavior

2012-07-07 Thread Dougal Matthews
Changes by Dougal Matthews : -- nosy: +d0ugal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue15265] random.sample() docs unclear on k < len(population)

2012-07-07 Thread Eugenio Minardi
Eugenio Minardi added the comment: Added the related line to the documentation describing when the exception is raised. -- keywords: +patch nosy: +kmox83 Added file: http://bugs.python.org/file26285/issue15265-fix-docs.patch ___ Python tracker

[issue15144] Possible integer overflow in operations with addresses and sizes.

2012-07-07 Thread Mark Dickinson
Mark Dickinson added the comment: N.B. This could probably be fixed without affecting performance by using the usual union trick. (IIUC, that trick was technically still undefined behaviour for a while, but was eventually made legal by C99 + TC3.) As far as I know there aren't any instances

[issue15144] Possible integer overflow in operations with addresses and sizes.

2012-07-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: > N.B. This could probably be fixed without affecting performance by > using the usual union trick. How would it work? We would have to add various unions to the PyUnicode_Object definition? -- ___ Python tracker <

[issue15272] pkgutil.find_loader accepts invalid module names

2012-07-07 Thread Nick Coghlan
New submission from Nick Coghlan : The pkgutil import emulation is insane and permits modules identifiers to contain paths. Identified in #15230 (reporting some very surprising behaviour from runpy.run_module). -- messages: 164806 nosy: brett.cannon, ncoghlan priority: normal severity

[issue15130] remove redundant paragraph in socket howto

2012-07-07 Thread Brian Brazil
Brian Brazil added the comment: Issue confirmed, patch looks good. -- nosy: +bbrazil ___ Python tracker ___ ___ Python-bugs-list mail

[issue15125] argparse: positional arguments containing - in name not handled well

2012-07-07 Thread Ionuț Arțăriși
Ionuț Arțăriși added the comment: I agree with Florent that this is maybe just a documentation issue, since the argument is accessible via getattr(). -- keywords: +patch Added file: http://bugs.python.org/file26286/argparse-argument-names.diff ___ P

[issue15144] Possible integer overflow in operations with addresses and sizes.

2012-07-07 Thread Mark Dickinson
Mark Dickinson added the comment: > How would it work? We would have to add various unions to the > PyUnicode_Object definition? No, you'd just need a temporary union defined in unicodeobject.c that would look something like: typedef union { unsigned long v; char s[SIZEOF_LONG]; } U; (with b

[issue15144] Possible integer overflow in operations with addresses and sizes.

2012-07-07 Thread Mark Dickinson
Mark Dickinson added the comment: I'll see if I can come up with a patch, and open a new issue for it (since I've successfully derailed this issue from its original topic) -- ___ Python tracker __

[issue14990] detect_encoding should fail with SyntaxError on invalid encoding

2012-07-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5020afc0b7c9 by Florent Xicluna in branch '3.2': Issue #14990: tokenize: correctly fail with SyntaxError on invalid encoding declaration. http://hg.python.org/cpython/rev/5020afc0b7c9 -- nosy: +python-dev _

[issue14990] detect_encoding should fail with SyntaxError on invalid encoding

2012-07-07 Thread Florent Xicluna
Florent Xicluna added the comment: Thanks. Fixed in trunk too, changeset b4322ad1fec4 -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker __

[issue15094] Incorrectly placed #endif in _tkinter.c.

2012-07-07 Thread Brian Brazil
Brian Brazil added the comment: Issue confirmed, patch looks good. -- nosy: +bbrazil ___ Python tracker ___ ___ Python-bugs-list mail

[issue14879] invalid docs for subprocess exceptions with shell=True

2012-07-07 Thread Nick Coghlan
Nick Coghlan added the comment: I would add a simple note to the exceptions section: "Note, when "shell=True", OSError will be raised by the child only if the selected shell itself cannot be found. To determine if the shell failed to find the requested application, it is necessary to check th

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

2012-07-07 Thread Petri Lehtinen
Petri Lehtinen added the comment: My 4) actually meant that it should always return []. This is what it currently does, so it could be spelled out clearly in the code. IIRC, getallmatchingheaders() cannot be emulated one-to-one using get_all(), because it handles continuation lines differentl

[issue8881] socket.getaddrinfo() should return named tuples

2012-07-07 Thread Floris Bruynooghe
Floris Bruynooghe added the comment: Attached in a patch for this, I've also changed the version to 3.4 since this is a feature and therefore probably too late to go in 3.3. Please let me know if anything is inadequate. -- keywords: +patch versions: +Python 3.4 -Python 3.3 Added file

[issue15230] runpy.run_path doesn't set __package__ correctly

2012-07-07 Thread Nick Coghlan
Nick Coghlan added the comment: Firstly, I think you've identified a real bug with __package__ not being set correctly when using runpy.run_path (and I have updated this issue title accordingly). I have also created a separate bug report (#15272) for the bizarre behaviour you identified in r

[issue15144] Possible integer overflow in operations with addresses and sizes.

2012-07-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > If we're worrying about undefined behaviour, it looks like recent > optimizations have *introduced* new undefined behaviour in the form of strict > aliasing violations. E.g., from ascii_decode: > > unsigned long value = *(const unsigned long *) _p; >

[issue8881] socket.getaddrinfo() should return named tuples

2012-07-07 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue15183] it should be made clear that the statement in the --setup option and the setup kw arg aren't included in the count

2012-07-07 Thread Greg Roodt
Greg Roodt added the comment: Confirmed that the setup statement is correctly excluded from the overall timed run. I've updated the docstring and rst to make this clearer. -- keywords: +patch nosy: +groodt Added file: http://bugs.python.org/file26288/timeit_setup_clarification.diff _

[issue8264] hasattr doesn't show private (double underscore) attributes exist

2012-07-07 Thread Catalin Iacob
Catalin Iacob added the comment: Attached a patch that adds a note for getattr and setattr. hasattr is documented in terms of getattr so I would say it's not needed there. I don't know if the interaction with private attributes is confusing enough that it's worth increasing the verbosity of t

[issue15144] Possible integer overflow in operations with addresses and sizes.

2012-07-07 Thread Mark Dickinson
Mark Dickinson added the comment: > I don't see what the undefined behavior. Can you specify exactly the > item of the Standard, in which it is mentioned? It's C99 section 6.5, paragraph 7: "An object shall have its stored value accessed only by an lvalue expression that has one of the follow

[issue15230] runpy.run_path doesn't set __package__ correctly

2012-07-07 Thread Nick Coghlan
Changes by Nick Coghlan : -- assignee: -> ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue15230] runpy.run_path doesn't set __package__ correctly

2012-07-07 Thread Nick Coghlan
Nick Coghlan added the comment: You may also have identified a bug with pkgutil's import emulation failing to clean up sys.modules correctly when an import fails. -- ___ Python tracker ___

[issue15230] runpy.run_path doesn't set __package__ correctly

2012-07-07 Thread Nick Coghlan
Nick Coghlan added the comment: Sorry, that's not accurate - you have enough code in b.py to make the relative import work by convincing the interpreter it's actually being done in a package. So what you're seeing in that regard is the fact that runpy is not any kind of sandbox - it shares pr

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset af4ae710daf3 by Nick Coghlan in branch 'default': Issue 14814: Make the ipaddress code easier to follow by using newer language features (patch by Serhiy Storchaka) http://hg.python.org/cpython/rev/af4ae710daf3 --

[issue14290] Importing script as module causes ImportError with pickle.load

2012-07-07 Thread Floris Bruynooghe
Floris Bruynooghe added the comment: Hi, I think this is a usage error and if not you should try to provide a test case with both files for this. Pickle needs to be able to import the module which contains the classes by the same name as the original module. That means pickling an instance o

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

2012-07-07 Thread Petri Lehtinen
Petri Lehtinen added the comment: The CGIHTTPRequestHandler fix and test would be the best thing to start with, though, as it's not related to the eventual fate of getallmatchingheaders(). -- stage: -> needs patch ___ Python tracker

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-07 Thread Nick Coghlan
Nick Coghlan added the comment: Many of Serhiy's tweaks were also micro-optimisations, but I committed them mainly because I found them easier to read. -- ___ Python tracker __

[issue15002] urllib2 does not download 4 MB file completely using ftp

2012-07-07 Thread Brian Brazil
Brian Brazil added the comment: I've tested this on head, and the issue appears to be buggy ftp code in python. >From the attached tcpdump for fetching delegated-ripencc-20120706: 12:57:19.933607 IP myhost.39627 > ftp.ripe.net.ftp: Flags [.], ack 511, win 115, options [nop,nop,TS val 12935319

[issue15222] mailbox.mbox writes without empty line after each message

2012-07-07 Thread Petri Lehtinen
Petri Lehtinen added the comment: MDAs blindly write their message to the end of the user's mail spool file. So, if there's no newline at the end, the mailbox gets corrupted (the new message is "joined" with the previous one). I tested with Postfix, but this probably happens for other MDA's t

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset d03dbc324b60 by Nick Coghlan in branch 'default': Issue 14814: Explain how to get more error detail in the ipaddress tutorial, and tweak the display for octet errors in IPv4 (noticed the formatting problem when adding to the docs) http://hg.python

[issue15002] urllib2 does not download 4 MB file completely using ftp

2012-07-07 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue15273] Remove unnecessarily random behavior from test_unparse.py

2012-07-07 Thread Larry Hastings
New submission from Larry Hastings : Tools/parser/test_unparse.py is the regression test suite for Tools/unparse. To save time, if the "cpu" resource is not enabled it only test unparsing ten files. However it picks these files at random. It would be nice if the test was 100% repeatable. It

[issue15273] Remove unnecessarily random behavior from test_unparse.py

2012-07-07 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: mark.dickinson -> keywords: +easy versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ _

[issue15273] Remove unnecessarily random behavior from test_unparse.py

2012-07-07 Thread Mark Dickinson
Mark Dickinson added the comment: Ideally, it would pick a small number of files that are likely to fully exercise Python's grammar. So things like Lib/test/test_grammar might be useful to include. Or perhaps there should be a Python file somewhere in Lib/test whose entire purpose is to con

[issue15002] urllib2 does not download 4 MB file completely using ftp

2012-07-07 Thread Brian Brazil
Brian Brazil added the comment: More particularly, the ftpwrapper's ftp member is being GCed sometime after FtpHandler.ftp_open returns. -- ___ Python tracker ___ _

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 86d3b4067f74 by Nick Coghlan in branch 'default': Issue 14814: Further clean ups to the ipaddress tutorial http://hg.python.org/cpython/rev/86d3b4067f74 -- ___ Python tracker

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2012-07-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset d69f95e57792 by Jesus Cea in branch 'default': Cope with OSs lying - #10142: Support for SEEK_HOLE/SEEK_DATA http://hg.python.org/cpython/rev/d69f95e57792 -- ___ Python tracker

[issue12271] panel.h is not found even if it's installed on various flavours of SUSE

2012-07-07 Thread Catalin Iacob
Catalin Iacob added the comment: The same happens on OpenSUSE 12.1 so Python can't be fully built there which is a bit of a shame. OpenSUSE uses this patch for their packages, but that would break other distributions so it's not a good solution: -#include +#include Here's a list of all cur

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2012-07-07 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Thanks for the head-up, Antoine. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2e9cba1d1554 by Nick Coghlan in branch 'default': Issue 14814: Correctly return NotImplemented from ipaddress._BaseNetwork.__eq__ http://hg.python.org/cpython/rev/2e9cba1d1554 -- ___ Python tracker

[issue15274] Patch for issue 5765: stack overflow evaluating eval("()" * 30000)

2012-07-07 Thread Andrea Griffini
New submission from Andrea Griffini : This is a fix for issue #5765: stack overflow evaluating eval("()" * 3) The solution was to add two fields (recursion_depth and recursion_limit) to the symbol table object and just increment and check the depth in symtable_visit_expr raising a RuntimeErr

[issue5765] stack overflow evaluating eval("()" * 30000)

2012-07-07 Thread Andrea Griffini
Andrea Griffini added the comment: This is a fix for this issue. The solution was to add two fields (recursion_depth and recursion_limit) to the symbol table object and just increment and check the depth in symtable_visit_expr raising a RuntimeError in case the limit is exceeded. The test case

[issue15274] Patch for issue 5765: stack overflow evaluating eval("()" * 30000)

2012-07-07 Thread Andrea Griffini
Andrea Griffini added the comment: I sent an email because I was not able to log in. The patch has been submitted to the correct issue (6765). -- resolution: -> duplicate status: open -> closed ___ Python tracker

[issue15275] isinstance is called a more times that needed in ntpath

2012-07-07 Thread Manuel de la Pena
New submission from Manuel de la Pena : The problem is simple, the code that allows to use binary strings and unicode is making more calls that needed to isinstance(path, bytes) since the result of the code is not shared. For example, the following calls are present in the module: def _get_em

[issue15265] random.sample() docs unclear on k < len(population)

2012-07-07 Thread Roy Smith
Roy Smith added the comment: The docs describe population as a "sequence". Your patch describes it as a "list". I would go with: If *len(population)* is less than *k*, raises :exc:`ValueError`. -- ___ Python tracker

[issue15275] isinstance is called a more times that needed in ntpath

2012-07-07 Thread Manuel de la Pena
Changes by Manuel de la Pena : Added file: http://bugs.python.org/file26295/f5c57ba1124b.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue15276] unicode format does not really work in Python 2.x

2012-07-07 Thread Ariel Ben-Yehuda
New submission from Ariel Ben-Yehuda : unicode formats (u'{:n}'.format) in python 2.x assume that the thousands seperator is in ascii, so this fails: >>> import locale >>> locale.setlocale(locale.LC_NUMERIC, 'fra') # or fr_FR on UNIX >>> u'{:n}'.format(1) Traceback (most recent call last):

[issue15275] isinstance is called a more times that needed in ntpath

2012-07-07 Thread Manuel de la Pena
Changes by Manuel de la Pena : Removed file: http://bugs.python.org/file26295/f5c57ba1124b.diff ___ Python tracker ___ ___ Python-bugs-list ma

[issue15265] random.sample() docs unclear on k < len(population)

2012-07-07 Thread Eugenio Minardi
Eugenio Minardi added the comment: Ok, I have updated the patch -- Added file: http://bugs.python.org/file26296/issue15265-fix-docs-update.patch ___ Python tracker ___ _

[issue1616125] Cached globals+builtins lookup optimization

2012-07-07 Thread Andrea Griffini
Andrea Griffini added the comment: Closing as it was a partial implementation of a bad idea with questionable gains. -- resolution: -> invalid status: open -> closed ___ Python tracker

[issue15276] unicode format does not really work in Python 2.x

2012-07-07 Thread Chris Jerdonek
Chris Jerdonek added the comment: Cf. the related issue 7300: "Unicode arguments in str.format()". -- nosy: +cjerdonek ___ Python tracker ___ ___

[issue10248] Fix resource warnings in test_xmlrpclib

2012-07-07 Thread Brian Brazil
Brian Brazil added the comment: Looks like someone else has already fixed this. -- resolution: -> out of date status: open -> closed ___ Python tracker ___

[issue14241] io.UnsupportedOperation.__new__(io.UnsupportedOperation) fails

2012-07-07 Thread Mark Shannon
Mark Shannon added the comment: >>> io.UnsupportedOperation.__new__(io.UnsupportedOperation) behaves correctly now (rev d9c98730e2e8) This bug was (I believe) caused somehow by an error in OSError_new() which did not initialize self->args if OSError_init() was not called. Here is a crash whic

[issue13248] deprecated in 3.2, should be removed in 3.3

2012-07-07 Thread Florent Xicluna
Florent Xicluna added the comment: Do we agree to remove the "max_buffer_size" from the "io" module in 3.3? This argument is unused, and deprecated. Just dead code. See attachment. -- Added file: http://bugs.python.org/file26297/issue13248_io_max_buffer_size.diff _

[issue13248] deprecated in 3.2, should be removed in 3.3

2012-07-07 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file23928/issue13248_argparse_io_lib2to3.diff ___ Python tracker ___ ___ Py

[issue8823] urllib2 does not catch httplib.BadStatusLine

2012-07-07 Thread Greg Roodt
Greg Roodt added the comment: I've made a small change to urllib2 to catch the httplib.BadStatusLine and raise as URLError. This exception should rarely happen as it means the server is returning invalid responses. Nevertheless, I've added a test and hopefully fixed the issue. Patch is attac

[issue13248] deprecated in 3.2, should be removed in 3.3

2012-07-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Do we agree to remove the "max_buffer_size" from the "io" module in 3.3? Yes! -- ___ Python tracker ___

[issue7651] Python3: guess text file charset using the BOM

2012-07-07 Thread Łukasz Langa
Łukasz Langa added the comment: After reading the mailing list thread at http://mail.python.org/pipermail/python-dev/2010-January/097102.html and waging on other concerns (e.g. how to behave on write-only and read-write modes), it looks like a PEP might be necessary to solve this once and f

[issue7651] Python3: guess text file charset using the BOM

2012-07-07 Thread Łukasz Langa
Changes by Łukasz Langa : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue11786] ConfigParser.[Raw]ConfigParser optionxform()

2012-07-07 Thread Łukasz Langa
Changes by Łukasz Langa : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue7651] Python3: guess text file charset using the BOM

2012-07-07 Thread Florent Xicluna
Florent Xicluna added the comment: For the implementation part, there's something which already plays with the BOM in the tokenize module. See tokenize.open(), which uses tokenize.detect_encoding() to read the BOM in some cases. -- nosy: +flox ___

[issue15277] Fix resource leak in support.py:_is_ipv6_enabled

2012-07-07 Thread Brian Brazil
New submission from Brian Brazil : I'm running Ubuntu Precise and have net.ipv6.conf.all.disable_ipv6 = 1 in my sysctl.conf. With this configuration at head there's a fd leak in _is_ipv6_enabled in support.py when the bind fails, which the attached patch should fix. -- components: Tes

[issue13405] Add DTrace probes

2012-07-07 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: I need to pass a "--with-dtrace" to the buildbot configure. How can I do it, beside faking it manipulating the pushed "configure" script?. -- ___ Python tracker

[issue13405] Add DTrace probes

2012-07-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I need to pass a "--with-dtrace" to the buildbot configure. How can I > do it, beside faking it manipulating the pushed "configure" script?. This is done on the buildmaster. I just did the change, can you try again? -- __

[issue1767933] Badly formed XML using etree and utf-16

2012-07-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Serhiy, note that _SimpleElementPath is now gone in 3.3, since ElementPath.py > is always there in stdlib. Could you update the patch to reflect this? Don't worry, _SimpleElementPath is not used in changes. > Another thing. I'm trying really hard to phase

[issue5815] locale.getdefaultlocale() missing corner case

2012-07-07 Thread Greg Roodt
Greg Roodt added the comment: Bumping this as part of a bug scrub at EuroPython. Is this still an issue? Should we fix in docs or in code? -- nosy: +groodt ___ Python tracker __

[issue13248] deprecated in 3.2, should be removed in 3.3

2012-07-07 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file23929/issue13248_obsolescence_v2.diff ___ Python tracker ___ ___ Python-

[issue13248] deprecated in 3.2, should be removed in 3.3

2012-07-07 Thread Florent Xicluna
Changes by Florent Xicluna : Added file: http://bugs.python.org/file26301/issue13248_obsolescence_v3.diff ___ Python tracker ___ ___ Python-bu

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9b359b6c9a39 by Nick Coghlan in branch 'default': Issue 14814: Ensure ordering semantics across all 3 entity types in ipaddress are consistent and well-defined http://hg.python.org/cpython/rev/9b359b6c9a39 -- _

[issue14905] zipimport.c needs to support namespace packages when no 'directory' entry exists

2012-07-07 Thread Stephen Thorne
Stephen Thorne added the comment: Here is a patch that synthesises the directory names at the point where file names are read in. The unit test now passes, and has had the expected failure removed. Patch collaboration with Diarmuid Bourke at the europython sprint. -- keywords: +pat

[issue5931] Python runtime name hardcoded in wsgiref.simple_server

2012-07-07 Thread Greg Roodt
Greg Roodt added the comment: Bumping as part of bug scrub at EuroPython. Patch seems sensible to me. Obvious options to me are to either accept patch, close bug or write docs. Bug has not seen activity in years, so can probably be closed. -- nosy: +groodt ___

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Should do _version and _max_prefixlen be instance members? Or they can be class members as _HEX_DIGITS? -- nosy: +storchaka ___ Python tracker _

[issue14241] io.UnsupportedOperation.__new__(io.UnsupportedOperation) fails

2012-07-07 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: fixed -> out of date ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue15271] argparse: repeatedly specifying the same argument ignores the previous ones

2012-07-07 Thread Ionuț Arțăriși
Ionuț Arțăriși added the comment: So I was looking into this and it seems that there are (at least) two contradicting test cases. When inheriting a parser from two parents, there are two different behaviours for positionals and for options. In the case of positionals, there is this test: def

[issue13248] deprecated in 3.2, should be removed in 3.3

2012-07-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5393382c1b1d by Florent Xicluna in branch 'default': Issue #13248: argparse: Remove obsolete argument "version" of ArgumentParser. http://hg.python.org/cpython/rev/5393382c1b1d New changeset 700f989afbad by Florent Xicluna in branch 'default': Issu

[issue15271] argparse: repeatedly specifying the same argument ignores the previous ones

2012-07-07 Thread Ionuț Arțăriși
Ionuț Arțăriși added the comment: Here's a stab at a patch to consider conflicts between positionals. Right now conflict resolution is handled the same as in the case of options. -- keywords: +patch Added file: http://bugs.python.org/file26303/disallow_duplicate_positionals.diff _

[issue13405] Add DTrace probes

2012-07-07 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Antoine, thanks. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-07 Thread Nick Coghlan
Nick Coghlan added the comment: My guess would be that they're intended as a micro-optimisation (instance lookups should be faster than class attribute lookups). You do lose on the memory front though, since they make the instances bigger. Without a micro benchmark of any kind, I'm not inclin

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-07 Thread Nick Coghlan
Nick Coghlan added the comment: FWIW, if we *were* going to micro-optimise ipaddress, one of the first places I'd start is using __slots__ to try to bring the instance size down (since any application using the module is likely to end up creating a *lot* of these objects). There are more sign

  1   2   3   >