[issue17206] Py_XDECREF() expands its argument multiple times

2013-04-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: As I wrote in issue17589, there are some extension modules (pytables) that which assume that Py_INCREF is an expression: return Py_INCREF(x), x; and Py_RETURN_NONE is also defined with a comma expression. Oh, and Cython: #define __Pyx_PyBool_FromLong(b)

[issue17487] wave.Wave_read.getparams should be more user friendly

2013-04-08 Thread Claudiu.Popa
Claudiu.Popa added the comment: Hello. I received the confirmation for my CLA, could you commit the patch? Thank you! -- ___ Python tracker ___ _

[issue17659] First weekday

2013-04-08 Thread R. David Murray
R. David Murray added the comment: I believe the request is exactly a function in the locale module to expose the locale-dependent calendar-week-start-day information based on the algorithm in the linked articles. As for being able to pass in the locale, that's a general problem with the curr

[issue17668] re.split loses characters matching ungrouped parts of a pattern

2013-04-08 Thread R. David Murray
R. David Murray added the comment: Only group the stuff you want to see in the result: >>> re.split(r'(^>.*$)', '>Homo sapiens catenin (cadherin-associated)') ['', '>Homo sapiens catenin (cadherin-associated)', ''] >>> re.split(r'^(>.*)$', '>Homo sapiens catenin (cadherin-associated)') ['', '>H

[issue17511] Idle find function closes after each find operation

2013-04-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: The modal versus non-modal issue, plus the Windows hi-lite issue, may partly explain the current design. It is actually quite usable once understood. The problem is that the current sparse doc does not adequately explain the intention - use ^F once to set the

[issue17661] documentation of '%r' links to the wrong repr

2013-04-08 Thread Georg Brandl
Georg Brandl added the comment: It just highlights the mistake we made calling a builtin module the same name as a builtin function :) -- nosy: +georg.brandl ___ Python tracker

[issue17659] First weekday

2013-04-08 Thread Éric Araujo
Éric Araujo added the comment: I’m not sure I understand the request. Is it that you want to know if you should e.g. display a calendar with Monday or Sunday in the first column depending on the user country? It looks like this could belong in the locale or calendar module, if there is a cle

[issue17661] documentation of '%r' links to the wrong repr

2013-04-08 Thread Éric Araujo
Éric Araujo added the comment: Thanks for catching this; Sphinx’ lookup is confusing sometimes. Using `.repr` or something similar will fix it. -- nosy: +eric.araujo, ezio.melotti ___ Python tracker _

[issue12181] SIGBUS error on OpenBSD (sparc64)

2013-04-08 Thread Charles-François Natali
Changes by Charles-François Natali : -- versions: +Python 3.3, Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue12181] SIGBUS error on OpenBSD (sparc64)

2013-04-08 Thread Charles-François Natali
Charles-François Natali added the comment: > New version hopefully good and ready for inclusion. Looks good to me. Since I assume you tested your patch on OpenBSD, to me it's ready for commit. I won't be able to do it myself before two weeks though, so if someone beats me to it, go ahead! > Ple

[issue6640] urlparse should parse mailto: URL headers as query parameters

2013-04-08 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- resolution: fixed -> invalid ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue6640] urlparse should parse mailto: URL headers as query parameters

2013-04-08 Thread Senthil Kumaran
Senthil Kumaran added the comment: RFC3986 bears the weightage since urlparse aims to satisfy that. As per that, mailto should return the url as path, and current urlparse behaves properly. $ ./python.exe Python 3.4.0a0 (default:50164abbfc98+, Apr 8 2013, 22:19:34) [GCC 4.2.1 (Apple Inc. build

[issue17648] test_urllib2 convert doctests to unittest

2013-04-08 Thread Senthil Kumaran
Senthil Kumaran added the comment: I have pushed the changes since they are restricted to test files. If there are review comments, I shall do make the changes. I shall consider to to make 3.3 tests close to default branch ones so that fixes can be backported. (Leaving the bug open for that).

[issue17648] test_urllib2 convert doctests to unittest

2013-04-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset eb632aafff57 by Senthil Kumaran in branch 'default': #17648 - Clean up test_urllib2.py. Converted doctests to unittest for http://hg.python.org/cpython/rev/eb632aafff57 -- nosy: +python-dev ___ Python tra

[issue17668] re.split loses characters matching ungrouped parts of a pattern

2013-04-08 Thread Tomasz J. Kotarba
Tomasz J. Kotarba added the comment: Hi, I can still see one piece of functionality I have mentioned missing. Using my first example, even when one uses '^(>(.*))$' one cannot get ['', '>Homo sapiens catenin (cadherin-associated)', ''] as one will get a four-element list and need to deal with

[issue17672] ssl unclean shutdown

2013-04-08 Thread Hiroaki Kawai
Changes by Hiroaki Kawai : -- title: ssl clean shutdown -> ssl unclean shutdown ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue17511] Idle find function closes after each find operation

2013-04-08 Thread Roger Serwy
Roger Serwy added the comment: I tried the patch against 2.7 and it appears to work, but might introduce another interface problem. The search dialog opens up as a modal window which disallows the user from changing the text. This may or may not be desirable. The technique of using the "hit"

[issue17672] ssl clean shutdown

2013-04-08 Thread Hiroaki Kawai
New submission from Hiroaki Kawai: When using ssl module, I sometimes get unexpected error. The observed error varies in different situations. After the investigation, I found the reason was that ssl shutdown was not performed and sometimes RST was sent over the network instead of FIN. I crea

[issue15518] Provide test coverage for filecmp.dircmp.report methods.

2013-04-08 Thread Chris Calloway
Chris Calloway added the comment: Fix calls to BaseReportTestCase methods in subclasses. Not an override so don't need super(). -- Added file: http://bugs.python.org/file29749/issue-15518-1.patch ___ Python tracker

[issue15518] Provide test coverage for filecmp.dircmp.report methods.

2013-04-08 Thread Chris Calloway
Changes by Chris Calloway : Removed file: http://bugs.python.org/file29747/issue-15518-1.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue17669] Segfault caused by weird combination of imports and yield from

2013-04-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: This is the patch. I'll have to think about whether there's a self-contained way to test this. -- assignee: -> benjamin.peterson keywords: +patch Added file: http://bugs.python.org/file29748/gen_fix.patch ___ Pyt

[issue17589] Make documentation about macros in C API explicit about rvalue vs statement

2013-04-08 Thread Larry Hastings
Larry Hastings added the comment: Oh, and, yes, it's true that Py_RETURN_NONE currently takes advantage of Py_INCREF being an rvalue, and changing Py_INCREF to a statement would break the existing implementation. But Py_RETURN_NONE itself is of necessity a statement. We would simply change

[issue17657] IDLE: about dialog should report the full version of TK

2013-04-08 Thread Roger Serwy
Roger Serwy added the comment: Let's discuss improving the about dialog on idle-dev or in a new issue. Thanks for the patch, Todd! -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker

[issue17589] Make documentation about macros in C API explicit about rvalue vs statement

2013-04-08 Thread Larry Hastings
Larry Hastings added the comment: Amaury: I'd appreciate it if you'd bring those examples up on bug 17206. If we're going to change the semantics of Py_INCREF I'd prefer we did it with our eyes wide open. -- ___ Python tracker

[issue16427] Faster hash implementation

2013-04-08 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue17657] IDLE: about dialog should report the full version of TK

2013-04-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9b6de25c6054 by Roger Serwy in branch '2.7': #17657: Show full Tk version in IDLE's about dialog. http://hg.python.org/cpython/rev/9b6de25c6054 New changeset 769699f0a760 by Roger Serwy in branch '3.3': #17657: Show full Tk version in IDLE's about d

[issue17669] Segfault caused by weird combination of imports and yield from

2013-04-08 Thread R. David Murray
R. David Murray added the comment: The crashing version has 'import logging' at the top of generators.py. I did not experience a crash when it was absent even if there was no __pycache__. It also doesn't crash if the import is moved out of the body of first_gen. FAULTHANDLER doesn't fair too

[issue15518] Provide test coverage for filecmp.dircmp.report methods.

2013-04-08 Thread Chris Calloway
Chris Calloway added the comment: The attached patch issue-15518-1.patch replaces previous patch proposals for this issue. The patch implements the suggestion to factor code common to report TestCase classes into a common base class BaseReportTestCase. Apologies for not having that in the pre

[issue17670] expandtabs() weirdness

2013-04-08 Thread Ned Deily
Ned Deily added the comment: Yes, the behavior is by design. I think you are misunderstanding how exandtabs() works. The "tabsize" argument indicates the number of columns each tab position occupies. So, with a tabsize of 4, the tab positions occur every four columns; the tab positions are

[issue15518] Provide test coverage for filecmp.dircmp.report methods.

2013-04-08 Thread Chris Calloway
Chris Calloway added the comment: The attached file test_filecmp_reports.rst documents the reports generated by filecmp.dircmp test methods if the directory and file layouts in test_filecmp_layouts.rst are followed to aid in review discussion of patch. -- Added file: http://bugs.python

[issue15518] Provide test coverage for filecmp.dircmp.report methods.

2013-04-08 Thread Chris Calloway
Chris Calloway added the comment: The attached file test_filecmp_layouts.rst documents the directory and file layouts for complete test coverage of filecmp.dircmp report methods to aid in review discussion of patch. -- Added file: http://bugs.python.org/file29745/test_filecmp_layouts.r

[issue15518] Provide test coverage for filecmp.dircmp.report methods.

2013-04-08 Thread Chris Calloway
Changes by Chris Calloway : Removed file: http://bugs.python.org/file29682/issue-15518-1.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue17671] io.BufferedRWPair can use uninitialized members

2013-04-08 Thread Amaury Forgeot d'Arc
New submission from Amaury Forgeot d'Arc: This segfaults on all Python versions: io.BufferedRWPair.__new__(io.BufferedRWPair).read() The various "_forward_call" methods should check that the reader and writer objects are correctly initialized. Not NULL, at the very least. -- componen

[issue17615] String comparison performance regression

2013-04-08 Thread Neil Hodgson
Neil Hodgson added the comment: Including the wmemcmp patch did not improve the times on MSC v.1600 32 bit - if anything, the performance was a little slower for the test I used: a=['C:/Users/Neil/Documents/λ','C:/Users/Neil/Documents/η']156 specialised: [0.9125948707773204, 0.8990815272107868,

[issue17670] expandabs() weirdness

2013-04-08 Thread Alfredo Solano Martínez
New submission from Alfredo Solano Martínez: I stumbled upon this by chance. Is the following behaviour by design? >>> s = 'a\tb' >>> s.expandtabs(1) == s.expandtabs(2) True In fact: >>> s.expandtabs(1) 'a b' # 1 space >>> s.expandtabs(2) 'a b' # 1 space >>> s.expandtabs(3) 'a b' # 2 spaces >>

[issue17669] Segfault caused by weird combination of imports and yield from

2013-04-08 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +benjamin.peterson, ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue17626] set's __isub__ doesn't support non-sets.

2013-04-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: I actually like that list.__iadd__ accepts any iterable, it's a rather nice piece of duck-typing. -- nosy: +pitrou ___ Python tracker ___ _

[issue17626] set's __isub__ doesn't support non-sets.

2013-04-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: Confirmed. This is by design. Guido has long lamented that the += operator for lists would accept any iterable. This led to a number of surprises: s= ['hello']; s += 'world' # Oops! -- ___ Python tracker

[issue17669] Segfault caused by weird combination of imports and yield from

2013-04-08 Thread Frank Hamand
Frank Hamand added the comment: The file contents so people dont have to download the zip: generators.py: --- def subgen(): yield def other_gen(self): move = yield from subgen() game.py: --- class Game(object): def __init_

[issue17669] Segfault caused by weird combination of imports and yield from

2013-04-08 Thread Frank Hamand
New submission from Frank Hamand: I've found a very strange bug in python 3.3 It's taken me around an hour just to narrow it down to a small case where it happens. I cannot for the life of me figure out the exact cause. It seems to have something to do with "yield from". I've attached a case

[issue17669] Segfault caused by

2013-04-08 Thread Frank Hamand
Changes by Frank Hamand : -- components: Interpreter Core, Windows nosy: fhamand priority: normal severity: normal status: open title: Segfault caused by type: crash versions: Python 3.3 ___ Python tracker

[issue16427] Faster hash implementation

2013-04-08 Thread STINNER Victor
STINNER Victor added the comment: Does anyone know if fast_hash_3.patch may reduce the quality of the hash function? (May the patched hash function produce more collisions? The "Avalanche effect" thing.) -- ___ Python tracker

[issue16427] Faster hash implementation

2013-04-08 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file29743/bench_hash.py ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue16427] Faster hash implementation

2013-04-08 Thread STINNER Victor
STINNER Victor added the comment: fast_hash_3.patch is a litte bit (6%) slower for Unicode string shorter than 10 characters, but much faster for string equal or longer than 100 characters (up to 10x faster). I used the str type and disabled its cache ("_PyUnicode_HASH(self) = x;" in unicode_

[issue12181] SIGBUS error on OpenBSD (sparc64)

2013-04-08 Thread Federico Schwindt
Federico Schwindt added the comment: New version hopefully good and ready for inclusion. Please note that the tests are still broken and need to be addressed (bignum and sys.maxsize passed to ident and data respectively). Thanks. -- Added file: http://bugs.python.org/file29741/patch-M

[issue17664] ssl.SSLError has errno value of None

2013-04-08 Thread Paul Wiseman
Paul Wiseman added the comment: Ah ok, thanks for clearing that up. I thought there'd have been a socket.error with ETIMEDOUT raised as the underlying exception, similar to if it times out during the non-ssl part of the request -- ___ Python tracker

[issue17615] String comparison performance regression

2013-04-08 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue17615] String comparison performance regression

2013-04-08 Thread STINNER Victor
STINNER Victor added the comment: Neil.Hodgson wrote: "The patch fixes the performance regression on Windows. The 1:1 case is better than either 3.2.4 or 3.3.1 downloads from python.org. Other cases are close to 3.2.4, losing at most around 2%." Nice, but make sure that your are using the same

[issue17615] String comparison performance regression

2013-04-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset d3185be3e8d7 by Victor Stinner in branch 'default': Issue #17615: Comparing two Unicode strings now uses wmemcmp() when possible http://hg.python.org/cpython/rev/d3185be3e8d7 -- ___ Python tracker

[issue17660] mock.patch could whitelist builtins to not need create=True

2013-04-08 Thread Michael Foord
Michael Foord added the comment: I don't think that's a particular issue. In general you only need to use "create=True" if a name is *not* available in a namespace. Builtin names are odd in that you can use them in a namespace even though they don't exist there - so you have to *remember* to

[issue17650] There is no exception correspond to errno EROFS

2013-04-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: A bit in detail: - ENOTCONN is a programming error, so there's no use actually catching it (you should fix the bug instead when you encounter it) - EINVAL could be a candidate, but unfortunately it would clash quite nastily with ValueError and lead to confusion

[issue17615] String comparison performance regression

2013-04-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset db4a1a3d1f90 by Victor Stinner in branch 'default': Issue #17615: Add tests comparing Unicode strings of different kinds http://hg.python.org/cpython/rev/db4a1a3d1f90 -- ___ Python tracker

[issue17650] There is no exception correspond to errno EROFS

2013-04-08 Thread Georg Brandl
Georg Brandl added the comment: Antoine will have to decide on this, but IMO now that we released the PEP 3151 set in Python 3.3, we should not continue adding new builtin exceptions in every release. -- ___ Python tracker

[issue17668] re.split loses characters matching ungrouped parts of a pattern

2013-04-08 Thread R. David Murray
R. David Murray added the comment: As you pointed out, you can already get that behavior by enclosing the entire split expression in a group. I don't see that there is any functionality missing here. -- ___ Python tracker

[issue17615] String comparison performance regression

2013-04-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset cc74062c28a6 by Victor Stinner in branch 'default': Issue #17615: Expand expensive PyUnicode_READ() macro in unicode_compare(): http://hg.python.org/cpython/rev/cc74062c28a6 -- nosy: +python-dev ___ Pytho

[issue17668] re.split loses characters matching ungrouped parts of a pattern

2013-04-08 Thread Tomasz J. Kotarba
Tomasz J. Kotarba added the comment: I agree that introducing an example like that plus making some slight changes in wording would be a welcome change to the docs to clearly explain the current behaviour. Still, I maintain it would be useful to give users the option I described to allow them

[issue17655] Use writev() function in the io module

2013-04-08 Thread STINNER Victor
STINNER Victor added the comment: I get similar Fedora 18 (Linux kernel 3.8.1), ext4 filesystem: $ rm -f writev.out; sync; sleep 5; ./copy_write copy+write: 1s576530. $ rm -f writev.out; sync; sleep 5; ./writev writev: 1s686619. I agree to close the issue. At least this issue can be used later

[issue17666] Extra gzip headers breaks _read_gzip_header

2013-04-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 29f0836c0456 by Serhiy Storchaka in branch '2.7': Close #17666: Fix reading gzip files with an extra field. http://hg.python.org/cpython/rev/29f0836c0456 New changeset f78d2605f452 by Serhiy Storchaka in branch '3.3': Close #17666: Fix reading gzip

[issue17668] re.split loses characters matching ungrouped parts of a pattern

2013-04-08 Thread R. David Murray
R. David Murray added the comment: >>> re.split('-', 'abc-def-jlk') ['abc', 'def', 'jlk'] >>> re.split('(-)', 'abc-def-jlk') ['abc', '-', 'def', '-', 'jlk'] Does that make it a bit clearer? Maybe we need an actual example in the docs. -- assignee: -> docs@python components: +Documenta

[issue17477] update the bsddb module do build with db 5.x versions

2013-04-08 Thread Matthias Klose
Matthias Klose added the comment: was released with 2.7.4. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue17666] Extra gzip headers breaks _read_gzip_header

2013-04-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh-oh-h, it's my fault. Thank you, Peter, for your report and the proposed fix. -- ___ Python tracker ___

[issue15194] libffi-3.0.11 update

2013-04-08 Thread Matthias Klose
Matthias Klose added the comment: 3.0.13 is now in 2.7.4, 3.2.4, 3.3.1 and the trunk. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue17668] re.split loses characters matching ungrouped parts of a pattern

2013-04-08 Thread Tomasz J. Kotarba
Tomasz J. Kotarba added the comment: Marking as open till I get your response. I hope you reconsider. -- resolution: invalid -> status: closed -> open ___ Python tracker ___ __

[issue17668] re.split loses characters matching ungrouped parts of a pattern

2013-04-08 Thread Tomasz J. Kotarba
Tomasz J. Kotarba added the comment: Hi R. David Murray, Thanks for your reply. I just explained in my previous message to Matthew that documentation does actually support my view (i.e. it is an issue according to the documentation). Re. the issue you mentioned (discarding information concer

[issue13150] Most of Python's startup time is sysconfig

2013-04-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset be3b4aa2ad28 by doko in branch '2.7': - Issue #13150, #17512: sysconfig no longer parses the Makefile and config.h http://hg.python.org/cpython/rev/be3b4aa2ad28 -- ___ Python tracker

[issue17512] backport of the _sysconfigdata.py module (issue 13150) breaks the build on darwin

2013-04-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset be3b4aa2ad28 by doko in branch '2.7': - Issue #13150, #17512: sysconfig no longer parses the Makefile and config.h http://hg.python.org/cpython/rev/be3b4aa2ad28 -- nosy: +python-dev ___ Python tracker

[issue17668] re.split loses characters matching ungrouped parts of a pattern

2013-04-08 Thread Tomasz J. Kotarba
Tomasz J. Kotarba added the comment: Hi Matthew, Thanks for such a quick reply. I know I can get the > by putting it in grouping parentheses. That's not the issue here. The documentation you quoted says that it splits the string by the occurrences _OF_PATTERN_ and that texts of all groups

[issue17668] re.split loses characters matching ungrouped parts of a pattern

2013-04-08 Thread R. David Murray
R. David Murray added the comment: Thanks for the report, but as Matt said it doesn't look like there is any bug here. The behavior you report is what the docs say it is, and it seems to me that your "most useful" suggestion would discard the information about the group match, making specifyi

[issue17668] re.split loses characters matching ungrouped parts of a pattern

2013-04-08 Thread Matthew Barnett
Matthew Barnett added the comment: It's not a bug. The documentation says """Split string by the occurrences of pattern. If capturing parentheses are used in pattern, then the text of all groups in the pattern are also returned as part of the resulting list.""" You're splitting on r'^>(.*)$',

[issue17511] Idle find function closes after each find operation

2013-04-08 Thread Sarah
Sarah added the comment: 'Find Again' switched to 'Find Next' -- Added file: http://bugs.python.org/file29740/issue_17511_FindNext.patch ___ Python tracker ___ __

[issue17656] Python 2.7.4 breaks ZipFile extraction of zip files with unicode member paths

2013-04-08 Thread Vhati
Vhati added the comment: The 2013-04-08 patch worked on Windows XP. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue17511] Idle find function closes after each find operation

2013-04-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I took a look at both the 'Search' and 'Replace' dialogs and both already have wrap-around present as the default: '[x] Wrap around'. Sorry for not checking earlier. Having the find window stay open will make it much easier to visually check all the options.

[issue17668] re.split loses characters matching ungrouped parts of a pattern

2013-04-08 Thread Tomasz J. Kotarba
New submission from Tomasz J. Kotarba: Tested in 2.7 but possibly affects the other versions as well. A real life example (note the first character '>' being lost): >>> import re >>> re.split(r'^>(.*)$', '>Homo sapiens catenin (cadherin-associated)') produces: ['', 'Homo sapiens catenin (cadh

[issue17660] mock.patch could whitelist builtins to not need create=True

2013-04-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: To be honest this proposal sounds like a quirk more than a feature to me. If you only special-case builtins, people will have to remember that special case and it will make the API more complicated. -- nosy: +pitrou ___

[issue17666] Extra gzip headers breaks _read_gzip_header

2013-04-08 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka stage: -> needs patch type: -> behavior versions: +Python 2.7, Python 3.4 ___ Python tracker _

[issue17667] Windows: build with "build_pgo.bat -2" fails to optimize python.dll

2013-04-08 Thread Anselm Kruis
New submission from Anselm Kruis: Version: 2.7.4 (and any prior 2.7-version. not tested with 3.x) Compiler: VS 2008 Professional If I compile Python using the batch > PCbuild\build_pgo.bat -2 Visual Studio fails to correctly collect profile information for the project "python27.dll". As a re

[issue17664] ssl.SSLError has errno value of None

2013-04-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: The issue you mention is unrelated. connect_ex() returns an error code, it doesn't raise an exception. As for the errno attribute being None, this is because most SSLErrors don't correspond to a single OS error. And in the case you mention ("the read operatio

[issue17666] Extra gzip headers breaks _read_gzip_header

2013-04-08 Thread Peter
New submission from Peter: Regression in Python 3.3.0 to 3.3.1, tested under Mac OS X 10.8 and CentOS Linux 64bit. The same regression also present in going from Python 2.7.3 from 2.7.4, does that need a separate issue filed? Consider this VALID GZIP file, human link: https://github.com/biopy

[issue17665] convert to idiomatic unittest code

2013-04-08 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- components: Tests files: diff nosy: tshepang priority: normal severity: normal status: open title: convert to idiomatic unittest code versions: Python 3.2, Python 3.3, Python 3.4 Added file: http://bugs.python.org/file29738/diff _

[issue17511] Idle find function closes after each find operation

2013-04-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: 'Find Next' is the actual (and standard) suggestion. It s a trivial change given that you identified the place to make it . -- ___ Python tracker _

[issue17589] Make documentation about macros in C API explicit about rvalue vs statement

2013-04-08 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue16895] Batch file to mimic 'make' on Windows

2013-04-08 Thread Zachary Ware
Zachary Ware added the comment: > You seem to end your subroutines (or whatever they are called) using "goto > end" rather than "exit /b". Since popd follows the "end" label, does this > mean that you get a popd after calling each subroutine? Yes. > Is this intended and can it cause unmatche

[issue17589] Make documentation about macros in C API explicit about rvalue vs statement

2013-04-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: There are some extension modules (pytables) that do return Py_INREF(x), x; and Py_RETURN_NONE is also defined with a comma expression. Oh, and Cython: #define __Pyx_PyBool_FromLong(b) ((b) ? (Py_INCREF(Py_True), Py_True) : (Py_INCREF(Py_False), Py_False

[issue17649] Python/Python-ast.c: No such file or directory

2013-04-08 Thread pfg
Changes by pfg : Removed file: http://bugs.python.org/file29736/patch-Makefile.pre.in ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue17649] Python/Python-ast.c: No such file or directory

2013-04-08 Thread pfg
pfg added the comment: Ruslan Makhmatkhanov provided this (more complete) patch. -- Added file: http://bugs.python.org/file29737/patch-Makefile.pre.in ___ Python tracker ___

[issue17662] socketmodule raises on import when compiled using Setup.dist on 2.7.4

2013-04-08 Thread Kristján Valur Jónsson
Changes by Kristján Valur Jónsson : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailin

[issue17662] socketmodule raises on import when compiled using Setup.dist on 2.7.4

2013-04-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset bad85e4e6b7f by Kristjan Valur Jonsson in branch '2.7': Issue #17662: fix socketmodule compilation with Setup.dist. http://hg.python.org/cpython/rev/bad85e4e6b7f -- nosy: +python-dev ___ Python tracker <

[issue17511] Idle find function closes after each find operation

2013-04-08 Thread Sarah
Sarah added the comment: Terry- There should be a checkbutton option labeled 'Wrap Around'. This is instantiated on lines 7 and 105-111 of SearchDialogBase.py Admittedly, it is standard practice to have a 'find' function wrap around. I suppose we could have the dialog start up with the 'Wrap

[issue17649] Python/Python-ast.c: No such file or directory

2013-04-08 Thread pfg
pfg added the comment: The problem is Makefile.pre.in was changed in a way that stops out-of-tree builds. The following patch by Markus Von Appen fixes it. -- status: closed -> open Added file: http://bugs.python.org/file29736/patch-Makefile.pre.in

[issue17658] pythonw.exe crashes on opening IDLE

2013-04-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Please remove the PYTHONPATH environment variable. I don't know how it came here, but it's certainly not needed: these directories are computed at runtime when the python27 interpreter starts; it can only do harm when another interpreter is installed. --

[issue17570] Improve devguide Windows instructions

2013-04-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: Sorry, but you cannot just rewrite ./python.exe to just python.exe At least in http://docs.python.org/devguide/buildbots you have to make probably three sections: 1. for linux users to use just ./python 2. for Mac ./python.exe 3. for Windows /PCBuild/python.ex

[issue17664] ssl.SSLError has errno value of None

2013-04-08 Thread Paul Wiseman
New submission from Paul Wiseman: I was using py2.7.3 and was getting None back for the errno attribute for an ssl.SSLError('The read operation timed out'). I noticed in the 2.7.4 release notes that it sounds like there was a fix for this: Issue #12065: connect_ex() on an SSL socket now retur

[issue17511] Idle find function closes after each find operation

2013-04-08 Thread Sarah
Sarah added the comment: This changes the button's text from "Find" to "Find Again", as per Todd Rovito and Terry J. Reedy's suggestion. -- Added file: http://bugs.python.org/file29735/issue17511_FindAgain.patch ___ Python tracker

[issue17662] socketmodule raises on import when compiled using Setup.dist on 2.7.4

2013-04-08 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: This is my fault, I admit to not being an expert in non-windows builds. I've no idea how Modules/Setup.dist works but the patch looks reasonable and if it works, then all is fine. -- ___ Python tracker

[issue17650] There is no exception correspond to errno EROFS

2013-04-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: Sorry for reopening. Do you really sure that ENOTCONN and EINVAL doesn't worth to have separate sublasses? The same question about Not Supported family. I don't force to make new exception classes, just like to figure out the status quo. If we decide to kee

[issue17662] socketmodule raises on import when compiled using Setup.dist on 2.7.4

2013-04-08 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +kristjan.jonsson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue17552] socket.sendfile()

2013-04-08 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : Added file: http://bugs.python.org/file29734/socket-sendfile2.patch ___ Python tracker ___ ___ Python-bugs-list

[issue17552] socket.sendfile()

2013-04-08 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : Removed file: http://bugs.python.org/file29733/socket-sendfile2.patch ___ Python tracker ___ ___ Python-bugs-li

[issue17658] pythonw.exe crashes on opening IDLE

2013-04-08 Thread Patrick Poitras
Patrick Poitras added the comment: It returns this: C:\Users\Acebulf>set | findstr /i python Path=C:\Python27\Lib\site-packages\PyQt4;C:\Program Files (x86)\NVIDIA Corporati on\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windo ws\System32\WindowsPowerShell\v1.0\;C:\Pr

[issue17552] socket.sendfile()

2013-04-08 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : Added file: http://bugs.python.org/file29733/socket-sendfile2.patch ___ Python tracker ___ ___ Python-bugs-list

  1   2   >