[issue22852] urllib.parse wrongly strips empty #fragment

2015-03-16 Thread Demian Brecht
Demian Brecht added the comment: > I cannot imagine some existing code (other than an exploit) that would be > broken by restoring the empty “//” component; do you have an example? You're likely right about the usage (I can't think of a plausible use case at any rate). At first read of #23505

[issue22232] str.splitlines splitting on non-\r\n characters

2015-03-16 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue23624] str.center inconsistent with format "^"

2015-03-16 Thread Vedran Čačić
Vedran Čačić added the comment: Only one detail to resolve: you say "format is quite capable of handing a variable width field". It does, but not in a really nice way. Honestly, would you really rather see "{:^{}}".format(title, width) than title.center(width) ? Nested formats are u

[issue12855] linebreak sequences should be better documented

2015-03-16 Thread Martin Panter
Martin Panter added the comment: Note to self, or anyone else handling this patch: See for further improvement ideas: * Might be good to bring back the reference to universal newlines, but say it accepts additional line boundaries * Terry also sug

[issue22233] http.client splits headers on none-\r\n characters

2015-03-16 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue23681] Have -b warn when directly comparing ints and bytes

2015-03-16 Thread Berker Peksag
Berker Peksag added the comment: > [...] fixes existing bugs in the stdlib and tests. These changes should probably be backported to 3.4. -- nosy: +berker.peksag ___ Python tracker

[issue23682] distutils docs still talk about compatibility with Python 2.2

2015-03-16 Thread Berker Peksag
Berker Peksag added the comment: Thanks Thomas! -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___ __

[issue23682] distutils docs still talk about compatibility with Python 2.2

2015-03-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 910a7a540a31 by Berker Peksag in branch '3.4': Issue #23682: Delete Python 2.2 mention from distutils documentation. https://hg.python.org/cpython/rev/910a7a540a31 New changeset 7757e98a9f3b by Berker Peksag in branch 'default': Issue #23682: Delete

[issue22852] urllib.parse wrongly strips empty #fragment

2015-03-16 Thread Demian Brecht
Demian Brecht added the comment: > I avoided making them positional parameters, as they are not part of the > underlying tuple object. Ignore me, I was off my face and you're absolutely correct. -- ___ Python tracker

[issue11410] Use GCC visibility attrs in PyAPI_*

2015-03-16 Thread Samuel Bronson
Samuel Bronson added the comment: Um ... any progress on reviewing this? -- nosy: +SamB ___ Python tracker ___ ___ Python-bugs-list ma

[issue22351] NNTP constructor exception leaves socket for garbage collector

2015-03-16 Thread Martin Panter
Martin Panter added the comment: Thanks for reviewing, Serhiy. I am posting a new patch addressing the comments: * Removed underscore from method name * Made separate MockSslTests subclass, using a hacked ssl_context parameter to bypass the SSL module * Separated asserts for closed socket and f

[issue22852] urllib.parse wrongly strips empty #fragment

2015-03-16 Thread Martin Panter
Martin Panter added the comment: Regarding unparsing of "evil.com", see Issue 23505, where the invalid behaviour is pointed out as a security issue. This was one of the bugs that motivated me to make this patch. I cannot imagine some existing code (other than an exploit) that would be brok

[issue22891] code removal from urllib.parse.urlsplit()

2015-03-16 Thread Martin Panter
Martin Panter added the comment: The patch seems sensible. The only behaviour change I can forsee would be the odd case of http:1234 no longer being parsed like this: >>> urlsplit("http:1234") SplitResult(scheme='http', netloc='', path='1234', query='', fragment='') Instead it would be parsed

[issue23684] urlparse() documentation does not account for default scheme

2015-03-16 Thread Martin Panter
New submission from Martin Panter: The documentation for urlsplit() says: ''' urlparse(urlstring, scheme='', allow_fragments=True) . . . If the scheme argument is specified, it gives the default addressing scheme, to be used only if the URL does not specify one. The default value for this ar

[issue23683] allow timeit to run expensive reset code per repeats

2015-03-16 Thread Robert Collins
New submission from Robert Collins: I was timing some cold-cache operations today and had to not use timeit because I wanted to run some code between statement (flushing caches) that shouldn't be timed as part of statement. It would be nice, similarly to -s, to be able to say -i 'something run

[issue22852] urllib.parse wrongly strips empty #fragment

2015-03-16 Thread Demian Brecht
Demian Brecht added the comment: urlsplit("evil.com").netloc > '' urlsplit("evil.com").has_netloc > True urlunsplit(urlsplit("evil.com")) # Adds “//” back > 'evil.com' RFC 3986, section 3.3: If a URI contains an authority component, then the path component

[issue23529] Limit decompressed data when reading from LZMAFile and BZ2File

2015-03-16 Thread Martin Panter
Martin Panter added the comment: Posting LZMAFile-etc.v5.patch with the following changes: * Merged with current code * Changed BZ2File(buffer_size=...) to a keyword-only parameter and restored previous unused “buffering” parameter. Also changed the LZMAFile parameter to keyword-only for consi

[issue23542] Update PEP 476 for using urllib2.build_opener()

2015-03-16 Thread Shakeel Mohamed
Shakeel Mohamed added the comment: Hi, any plans to do this? If not, we can close it. -- ___ Python tracker ___ ___ Python-bugs-list m

[issue17911] traceback: add a new thin class storing a traceback without storing local variables

2015-03-16 Thread Robert Collins
Robert Collins added the comment: Regression fixed AFAICT, please re-open if not. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue23682] distutils docs still talk about compatibility with Python 2.2

2015-03-16 Thread Berker Peksag
Changes by Berker Peksag : -- assignee: docs@python -> berker.peksag stage: -> commit review ___ Python tracker ___ ___ Python-bugs-l

[issue23682] distutils docs still talk about compatibility with Python 2.2

2015-03-16 Thread Berker Peksag
Berker Peksag added the comment: I also removed it in my patch for issue 19610. -- nosy: +berker.peksag ___ Python tracker ___ ___ Pyt

[issue22852] urllib.parse wrongly strips empty #fragment

2015-03-16 Thread Martin Panter
Martin Panter added the comment: ## Inferring flags ## The whole reason for the has_netloc etc flags is that I don’t think we can always infer their values, so we have to explicitly remember them. Consider the following two URLs, which I think should both have empty “netloc” strings for backw

[issue23441] rlcompleter: tab on empty prefix => insert spaces

2015-03-16 Thread Martin Sekera
Martin Sekera added the comment: In the end it doesn't matter what characters end up on the terminal. What matters is the UX of not having to press backspace several times to unindent. That's sloppy design. The issue of forcing a custom indent width on a user who might have their tab stops se

[issue23644] g++ module compile fails with ‘_Atomic’ does not name a type

2015-03-16 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: So use std::memory_order_relaxed, std::memory_order_acquire etc. -- ___ Python tracker ___

[issue23657] Don't do isinstance checks in zipapp

2015-03-16 Thread Paul Moore
Paul Moore added the comment: Updated version of the patch with tests, plus doc update noting that path objects are explicitly supported. -- Added file: http://bugs.python.org/file38513/duck_typed_zipapp.patch ___ Python tracker

[issue11726] clarify that linecache only works on files that can be decoded successfully

2015-03-16 Thread Thomas Kluyver
Thomas Kluyver added the comment: Anything else I should be doing here? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue23682] distutils docs still talk about compatibility with Python 2.2

2015-03-16 Thread Thomas Kluyver
New submission from Thomas Kluyver: I'm pretty sure the distutils docs for Python 3.4 don't need to describe how to make packages compatible with Python < 2.2.3. I know that these docs are deprecated in favour of the Python packaging guide, but I still look at them at times, and this is embarr

[issue23441] rlcompleter: tab on empty prefix => insert spaces

2015-03-16 Thread R. David Murray
R. David Murray added the comment: No program that I work with (and I use cli all the time) outputs a tab when I press the tab key. Now, true, I think I had to configure vi so that that was the case, but nothing else that I remember. Of course, most of those programs use readline and come wi

[issue23397] PEP 431 implementation

2015-03-16 Thread Lennart Regebro
Lennart Regebro added the comment: FYI me and Berker started over here: https://bitbucket.org/regebro/cpython -- ___ Python tracker ___ __

[issue23397] PEP 431 implementation

2015-03-16 Thread Dan Stromberg
Changes by Dan Stromberg : -- nosy: +strombrg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue23441] rlcompleter: tab on empty prefix => insert spaces

2015-03-16 Thread Martin Sekera
Martin Sekera added the comment: Copy that. Would the patch be acceptable if the '\t' was simply changed to 4 spaces? To discuss further, it is my opinion that the interpreter should output a \t character when the TAB key is pressed, as this is the behavior of nearly every shell and interpret

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-16 Thread Berker Peksag
Changes by Berker Peksag : -- stage: commit review -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23681] Have -b warn when directly comparing ints and bytes

2015-03-16 Thread Claudiu Popa
Changes by Claudiu Popa : -- nosy: +Claudiu.Popa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue23681] Have -b warn when directly comparing ints and bytes

2015-03-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch that adds required feature and fixes existing bugs in the stdlib and tests. No one of failed tests was false positive. -- keywords: +patch stage: test needed -> patch review Added file: http://bugs.python.org/file38511/bytes_to_int_co

[issue22625] When cross-compiling, don’t try to execute binaries

2015-03-16 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue23681] Have -b warn when directly comparing ints and bytes

2015-03-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 6 tests failed: test_buffer test_poplib test_quopri test_smtpd test_sunau test_tokenize And all of them look as bugs. -- nosy: +serhiy.storchaka ___ Python tracker _

[issue23673] IntEnum is unpicklable by previous Python versions

2015-03-16 Thread Ethan Furman
Ethan Furman added the comment: Patch adds Enum._convert which is a class method that handles: - creating the new Enum - adding the appropriate members - adding the new Enum to the module's namespace (which is a passed parameter) - replacing the __reduce_ex__ method to return just the me

[issue23679] SSL Ciphers RC4

2015-03-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset e1dfa5f0709f by Benjamin Peterson in branch '2.7': versionchanged for rc4 removal (closes #23679) https://hg.python.org/cpython/rev/e1dfa5f0709f New changeset 2a6a63828a40 by Benjamin Peterson in branch '3.4': versionchanged for rc4 removal (closes

[issue23679] SSL Ciphers RC4

2015-03-16 Thread R. David Murray
Changes by R. David Murray : -- resolution: duplicate -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue22931] cookies with square brackets in value

2015-03-16 Thread Mark Hughes
Mark Hughes added the comment: We experimented with a version of the patch for 2.7.9. One issue we immediately noticed is that even though disallowed by the spec the use of commas in cookie values is widespread so we needed to add \, to the _LEGAL_VALUES_PATT. -- ___

[issue23679] SSL Ciphers RC4

2015-03-16 Thread R. David Murray
R. David Murray added the comment: But the doc explicitly says 2.7.9, so no, they are not correct. There also should be versionchanged directive, I think. -- assignee: -> docs@python components: +Documentation dependencies: -SSL module should not offer RC4 based cipher suites for cli

[issue23679] SSL Ciphers RC4

2015-03-16 Thread mogli
mogli added the comment: So it seems the docs are wrong. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue23679] SSL Ciphers RC4

2015-03-16 Thread Benjamin Peterson
Benjamin Peterson added the comment: They're correct for the next release. :( -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue23681] Have -b warn when directly comparing ints and bytes

2015-03-16 Thread Brett Cannon
Changes by Brett Cannon : -- versions: +Python 3.5 -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23681] Have -b warn when directly comparing ints and bytes

2015-03-16 Thread Brett Cannon
Changes by Brett Cannon : -- priority: normal -> deferred blocker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue23680] Sporadic freeze in test_interrupted_write_retry_text

2015-03-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 10acab2d4a88 by Victor Stinner in branch 'default': Issue #23680: Reduce risk of race condition in check_interrupted_write() of https://hg.python.org/cpython/rev/10acab2d4a88 -- ___ Python tracker

[issue23681] Have -b warn when directly comparing ints and bytes

2015-03-16 Thread Brett Cannon
New submission from Brett Cannon: To help writing Python 2/3 code the -b flag should switch on a warning when comparing an int to a bytes object in Python 2. This will help when someone writes something like `b'abcd'[2] == b'c'` and it always returns False thanks to the indexing returning 99 i

[issue23681] Have -b warn when directly comparing ints and bytes

2015-03-16 Thread Brett Cannon
Changes by Brett Cannon : -- priority: deferred blocker -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue23680] Sporadic freeze in test_interrupted_write_retry_text

2015-03-16 Thread STINNER Victor
STINNER Victor added the comment: > Also, I think there another issue in that test. It uses `N = > support.PIPE_MAX_SIZE` but I think you want `N = support.PIPE_MAX_SIZE + 1` > if you want the raw write() to block. PIPE_MAX_SIZE is much larger than the effictive size of a pipe on Linux. It's d

[issue23680] Sporadic freeze in test_interrupted_write_retry_text

2015-03-16 Thread STINNER Victor
STINNER Victor added the comment: 2015-03-16 17:41 GMT+01:00 Antoine Pitrou : > Note that PIPE_MAX_SIZE can be large. Perhaps move the memory allocation > (i.e. `item * (support.PIPE_MAX_SIZE // len(item) + 1)`) before the alarm(1) > call? Good idea, the first strace shows that SIGALRM was rec

[issue23680] Sporadic freeze in test_interrupted_write_retry_text

2015-03-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Also, I think there another issue in that test. It uses `N = support.PIPE_MAX_SIZE` but I think you want `N = support.PIPE_MAX_SIZE + 1` if you want the raw write() to block. There is another test that can have a race condition: check_interrupted_write(). ---

[issue23680] Sporadic freeze in test_interrupted_write_retry_text

2015-03-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset a18f7508649b by Victor Stinner in branch 'default': Issue #23680: Reduce risk of race condition in check_interrupted_write_retry() https://hg.python.org/cpython/rev/a18f7508649b -- nosy: +python-dev ___ P

[issue23644] g++ module compile fails with ‘_Atomic’ does not name a type

2015-03-16 Thread Leonardo Bianconi
Leonardo Bianconi added the comment: > #define _Atomic(T) std::atomic Does not work, since there are definitions like "memory_order_relaxed" that are in std. I tested the other one, and it works fine: >#ifdef __cplusplus >extern "C" { >#if defined(HAVE_STD_ATOMIC) >using namespace std; >#endif

[issue23679] SSL Ciphers RC4

2015-03-16 Thread STINNER Victor
STINNER Victor added the comment: You can explicitly disable RC4 if you create a SSLContext and then call set_ciphers() with the right list of ciphers. See for examples cipher lists of Python 2.7 (development branch): https://hg.python.org/cpython/file/0b44c749ae51/Lib/ssl.py#l150 Add ":!RC4"

[issue23680] Sporadic freeze in test_interrupted_write_retry_text

2015-03-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Note that PIPE_MAX_SIZE can be large. Perhaps move the memory allocation (i.e. `item * (support.PIPE_MAX_SIZE // len(item) + 1)`) before the alarm(1) call? Or what if alarm_interrupt is simply set up to retrigger the signal? e.g. instead of: def alarm_int

[issue22852] urllib.parse wrongly strips empty #fragment

2015-03-16 Thread Demian Brecht
Demian Brecht added the comment: I've done an initial pass in Rietveld and left some comments, mostly around docs. Here are some additional questions though: Given has_* flags can be inferred during instantiation of *Result classes, is there a reason to have them writable, meaning is there a r

[issue23679] SSL Ciphers RC4

2015-03-16 Thread Benjamin Peterson
Benjamin Peterson added the comment: RC4 is dropped in the next releases. -- dependencies: +SSL module should not offer RC4 based cipher suites for clients by default nosy: +benjamin.peterson resolution: -> duplicate status: open -> closed ___ Pytho

[issue23680] Sporadic freeze in test_interrupted_write_retry_text

2015-03-16 Thread STINNER Victor
STINNER Victor added the comment: > The system is rather slow (a shared VPS instance). In the trace you can > SIGALRM is triggered before the first write() call (or so it seems). Yep. It remembers me my old idea to make "sleep configurable" in tests: issue #20910. Most of the time, 1 second i

[issue23680] Sporadic freeze in test_interrupted_write_retry_text

2015-03-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: The system is rather slow (a shared VPS instance). In the trace you can SIGALRM is triggered before the first write() call (or so it seems). -- ___ Python tracker

[issue23680] Sporadic freeze in test_interrupted_write_retry_text

2015-03-16 Thread STINNER Victor
STINNER Victor added the comment: The bug only occurs in Python 3.5, right? > Sometimes the test suite freezes in test_interrupted_write_retry_text > (test.test_io.CSignalsTest). How do you run the test suite? Is your system heavily loaded? Is it "fast"? This is an obvious race condition in t

[issue23680] Sporadic freeze in test_interrupted_write_retry_text

2015-03-16 Thread Antoine Pitrou
New submission from Antoine Pitrou: Sometimes the test suite freezes in test_interrupted_write_retry_text (test.test_io.CSignalsTest). Corresponding strace is: write(1, "test_interrupted_write_retry_tex"..., 66) = 66 rt_sigaction(SIGALRM, {0x00, [], SA_RESTORER, 0x7fd1ada2d0a0}, {SIG_DFL,

[issue23680] Sporadic freeze in test_interrupted_write_retry_text

2015-03-16 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- components: +Tests type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue23668] Support os.[f]truncate on Windows

2015-03-16 Thread Steve Dower
Steve Dower added the comment: It looks like mmap uses pure Win32 APIs for the Windows implementation, and so _chsize_s isn't necessary. There is a comment "todo: need ... a 'chsize' analog" in the file, but I'm not actually sure what that means. I've made some minor changes from the review, b

[issue23624] str.center inconsistent with format "^"

2015-03-16 Thread R. David Murray
R. David Murray added the comment: Backward compatibility does not mean "matches the docs", it means "if we change this, someone's existing code is likely to break". That does not prevent us from making at-the-margin changes in a feature release, but it is still a bar to be overcome in making

[issue23679] SSL Ciphers RC4

2015-03-16 Thread Alex Gaynor
Alex Gaynor added the comment: I believe RC4 will still be used under 2.7.9 on clients, this is changed for 2.7.10 -- ___ Python tracker ___

[issue23679] SSL Ciphers RC4

2015-03-16 Thread R. David Murray
Changes by R. David Murray : -- nosy: +alex, dstufft ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue23670] Modifications to support iOS as a cross-compilation target

2015-03-16 Thread R. David Murray
R. David Murray added the comment: The Sauce labs option may render this obsolete, but to answer your question, Russell: our buildbot fleet is distributed in many people's offices, basements, and occasionally colo racks. The buildbot needs to be on-line 24/7, but it "calls out" and does not n

[issue917120] imaplib: incorrect quoting in commands

2015-03-16 Thread R. David Murray
Changes by R. David Murray : -- nosy: +bjshan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue23678] imaplib status command cannot handle folder name containing whitespaces

2015-03-16 Thread R. David Murray
R. David Murray added the comment: This is a duplicate of a subset of issue 917120. -- nosy: +r.david.murray resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> imaplib: incorrect quoting in commands ___ Python tracker

[issue23656] shutil.copyfile (or built-in open) releases sqlite3's transaction lock

2015-03-16 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> not a bug stage: -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue23644] g++ module compile fails with ‘_Atomic’ does not name a type

2015-03-16 Thread STINNER Victor
STINNER Victor added the comment: > #define _Atomic(T) std::atomic This looks better to me :-) Can you please write a patch? -- ___ Python tracker ___ __

[issue2211] Cookie.Morsel interface needs update

2015-03-16 Thread Demian Brecht
Changes by Demian Brecht : Added file: http://bugs.python.org/file38509/issue2211_5.patch ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue23665] Provide IDLE menu option to set command-line arguments

2015-03-16 Thread Saimadhav Heblikar
Saimadhav Heblikar added the comment: http://bugs.python.org/issue5680 Also had submitted a patch for it. Could you post your review there? (I was learning the CPython style then, so excuse obvious mistakes :) ) -- nosy: +sahutd ___ Python tracker

[issue23644] g++ module compile fails with ‘_Atomic’ does not name a type

2015-03-16 Thread Joshua J Cogliati
Joshua J Cogliati added the comment: >> using namespace std; >Doing this in a header is ugly. If you put it in the: #ifdef __cplusplus extern "C" { #endif then it would only apply till the end of the pyatomic header, and not to anything that includes it. Something like: #ifdef __cplusplus e

[issue23658] multiprocessing: string arg to SystemExit

2015-03-16 Thread Dan Nawrocki
Dan Nawrocki added the comment: I am using 2.7.5 (RHEL7 and FC20). Indeed, this issue appears fixed in 2.7.7, by https://hg.python.org/cpython/diff/44b5ec2f0f5d/Lib/multiprocessing/process.py. I'm closing as not a bug. Thanks for the help! -- resolution: -> not a bug status: open ->

[issue22931] cookies with square brackets in value

2015-03-16 Thread Mark Hughes
Mark Hughes added the comment: This is also an issue with Python 2.7.9 but not 2.7.8. There were various cookie related fixes in 2.7.9 which could have revealed this issue. Maybe this one? https://hg.python.org/cpython/rev/9e765e65e5cb -- nosy: +Mark Hughes __

[issue23624] str.center inconsistent with format "^"

2015-03-16 Thread Vedran Čačić
Vedran Čačić added the comment: Ok, let's say I see your point about breaking existing code (though, I reiterate, it's _undocumented_ and even examples in the docs all cover only the obvious case). Is it _at least_ possible to give .center an (keyword-only if needed) argument that specifies t

[issue23677] Mention dict and set comps in library reference

2015-03-16 Thread R. David Murray
R. David Murray added the comment: Sounds reasonable. Dict and set comprehensions were added later than list comprehensions, and we probably just didn't notice this needed updating. Mark's patch, however, is incorrect. Mark: the dict/set literal notation is a different thing from a comprehen

[issue23644] g++ module compile fails with ‘_Atomic’ does not name a type

2015-03-16 Thread STINNER Victor
STINNER Victor added the comment: > using namespace std; Doing this in a header is ugly. -- ___ Python tracker ___ ___ Python-bugs-li

[issue23644] g++ module compile fails with ‘_Atomic’ does not name a type

2015-03-16 Thread Leonardo Bianconi
Leonardo Bianconi added the comment: @haypo For adding compatibility for atomics based on @Joshua.J.Cogliati change, I propose: #ifndef Py_LIMITED_API #ifndef Py_ATOMIC_H #define Py_ATOMIC_H #include "dynamic_annotations.h" #include "pyconfig.h" #if defined(HAVE_STD_ATOMIC) #ifdef __cpluspl

[issue22625] When cross-compiling, don’t try to execute binaries

2015-03-16 Thread Matthias Klose
Matthias Klose added the comment: there are two approaches here, one to check in generated files and try to avoid the rebuild, or completely fix the cross build. I think the patch for the parallel build just was a bit over-eager -- ___ Python tracke

[issue22359] Remove incorrect uses of recursive make

2015-03-16 Thread Matthias Klose
Matthias Klose added the comment: reopening, breaks cross builds. I'll have a look -- resolution: fixed -> status: closed -> open ___ Python tracker ___

[issue22625] When cross-compiling, don’t try to execute binaries

2015-03-16 Thread Russell Keith-Magee
Russell Keith-Magee added the comment: I'm looking into this issue because of issue23670 (iOS support). Am I correct in assuming that the right fix here is to identify a $(CC_FOR_BUILD) analog for $(PYTHON_FOR_BUILD) that will identify the build host's CC, enabling a build-host native $(PGEN)

[issue23670] Modifications to support iOS as a cross-compilation target

2015-03-16 Thread Russell Keith-Magee
Russell Keith-Magee added the comment: Nick: Finding a way to get on-device test results is next on my TODO list, once I've got the patch up to date for trunk. FYI - Updating to trunk is currently blocking on issue22625 (which was introduced by the fix for issue22359). I had thought about us

[issue23674] super() documentation isn't very clear

2015-03-16 Thread Tapani Kiiskinen
Tapani Kiiskinen added the comment: A link to the to the glossary would also be good yes. I was figuring out how super() works and as you said the doc gave the impression getattr would explain more but it doesn't. Had to use google to find the glossary entry for MRO which had the link explaini

[issue21862] cProfile command-line should accept "-m module_name" as an alternative to script path

2015-03-16 Thread Mayank Tripathi
Mayank Tripathi added the comment: Could someone please review the patch. Thanks. -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue23679] SSL Ciphers RC4

2015-03-16 Thread mogli
New submission from mogli: The documentation (https://docs.python.org/2/library/ssl.html) says: The settings in Python 2.7.9 are: PROTOCOL_SSLv23, OP_NO_SSLv2, and OP_NO_SSLv3 with high encryption cipher suites without RC4 But it still seems to use RC4: https://www.howsmyssl.com/a/check Also t

[issue23677] Mention dict and set comps in library reference

2015-03-16 Thread Mark Lawrence
Changes by Mark Lawrence : -- keywords: +patch versions: +Python 3.5 Added file: http://bugs.python.org/file38507/issue23677.diff ___ Python tracker ___ _

[issue18814] Add codecs.convert_surrogateescape to "clean" surrogate escaped strings

2015-03-16 Thread Nick Coghlan
Nick Coghlan added the comment: (Serhiy, did you miss uploading the new patch?) Regarding the names, we may need to think about the use cases a bit more explicitly to clarify that in terms of the Python codecs API rather than expecting folks to understand the underlying representation. In the

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 91fbe0fff882 by Victor Stinner in branch 'default': Issue #23571: Restore removed assert(!PyErr_Occurred()); in https://hg.python.org/cpython/rev/91fbe0fff882 -- ___ Python tracker

[issue18814] Add codecs.convert_surrogateescape to "clean" surrogate escaped strings

2015-03-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +patch Added file: http://bugs.python.org/file38506/codecs_convert_escapes.patch ___ Python tracker ___ ___

[issue23670] Modifications to support iOS as a cross-compilation target

2015-03-16 Thread Nick Coghlan
Nick Coghlan added the comment: (Some work on the Buildbot site would still be required, but it would be triggering a Sauce Labs run rather than managing the mobile hardware directly) -- ___ Python tracker ___

[issue23670] Modifications to support iOS as a cross-compilation target

2015-03-16 Thread Nick Coghlan
Nick Coghlan added the comment: Rather than trying to do something ourselves on the mobile testing front, we may want to instead explore the free-for-open-source-project offering from Sauce Labs: https://saucelabs.com/opensauce/ Adapting that to run the CPython self-tests as an "app" might be

[issue23566] RFE: faulthandler.register() should support file descriptors

2015-03-16 Thread STINNER Victor
STINNER Victor added the comment: I reviewed issue23566_fd_tests.patch . -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue23678] imaplib status command cannot handle folder name containing whitespaces

2015-03-16 Thread bjshan
New submission from bjshan: imaplib status failed if the folder name contains whitespace. For example, c = IMAP4_SSL('hostname') c = login(username, password) c.status('Drafts', '(MESSAGES)')# would succeed c.status('Apple Mail To Do', '(MESSAGES)') # would fail, error message is: imaplib.er

[issue23656] shutil.copyfile (or built-in open) releases sqlite3's transaction lock

2015-03-16 Thread Hiroaki Miyajima
Hiroaki Miyajima added the comment: I've realized that this is a bug of specification of fcntl system call. I am sorry to bother this site. -- status: open -> closed ___ Python tracker _

[issue23677] Mention dict and set comps in library reference

2015-03-16 Thread Frank Millman
New submission from Frank Millman: This is from the documentation at Section 4.6.4. Lists """ Lists may be constructed in several ways: Using a pair of square brackets to denote the empty list: [] Using square brackets, separating items with commas: [a], [a, b, c] Using a list comprehension: [x

[issue23668] Support os.[f]truncate on Windows

2015-03-16 Thread STINNER Victor
STINNER Victor added the comment: I reviewed 23668_2.patch. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23668] Support os.[f]truncate on Windows

2015-03-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: At first glance the patch looks good, but I did not test it. Are there tests for truncate() with large files (> 4 GiB)? ftruncate() is used also im mmap.resize(). Do you want to provide a patch also for mmap? --

[issue23649] tarfile not re-entrant for multi-threading

2015-03-16 Thread STINNER Victor
STINNER Victor added the comment: Lars Gustäbel added the comment: > I agree with David that there is no need for tarfile to be thread-safe. There > is nothing to be gained from distributing one TarFile object among multiple > threads because it operates on a single resource which has to be acc

  1   2   >