Georg Brandl added the comment:
This patch includes changes from #17851, please remove that (but you can remove
the comma after block).
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17858
Changes by Alex Gaynor alex.gay...@gmail.com:
--
nosy: +alex
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17853
___
___
Python-bugs-list mailing
Charles-François Natali added the comment:
It used to be a consistently reliable behavior in Python 2 (and we made it so
in PyPy too), provided of course that the process exits normally; but it no
longer is in Python 3. Well I can see the reasons for not flushing files, if
it's clearly
Roger Serwy added the comment:
I agree with Serhiy that the patch should be updated to better explain why the
extra reference to stdin was being held. The attached patch provides that
update in case anyone considers applying it in the future.
Terry, are you suggesting that the code should
New submission from anatoly techtonik:
I needed to write some bytes to file and got this message.
hex = open('hex', 'wb')
for x in range(0, 0xff, 0x11):
... hex.write(x)
...
Traceback (most recent call last):
File stdin, line 2, in module
TypeError: 'int' does not support the buffer
Ezio Melotti added the comment:
Without patch:
$ ./python -m timeit -s 'et = a\tb\tc\td\te.expandtabs' 'et()'
100 loops, best of 3: 0.672 usec per loop
$ ./python -m timeit -s 'et = a\tb\tc\td\te.expandtabs' 'et(4)'
100 loops, best of 3: 0.744 usec per loop
$ ./python -m timeit -s 'et =
Ezio Melotti added the comment:
Maybe the error could be replaced with something like:
TypeError: write() requires an object that supports the buffer interface, not
'type'
But that's a bit long and also not entirely accurate, because the type accepted
by write depends on the type of the file
Marc-Andre Lemburg added the comment:
On 28.04.2013 05:20, Ned Deily wrote:
Ned Deily added the comment:
Marc-Andre, can you elaborate on why you think Python 3 is not affected? The
changes for Issue17073 also added sqlite3_int64 to 3.2, 3.3, and default and,
for me on 10.4,
Changes by Florent Xicluna florent.xicl...@gmail.com:
--
nosy: +flox
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16518
___
___
Python-bugs-list
Changes by Florent Xicluna florent.xicl...@gmail.com:
--
components: +Interpreter Core, Library (Lib)
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17825
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17857
___
___
Serhiy Storchaka added the comment:
Patch for issue14572 was applied only to 2.7 and then I backported the bug back
from 3.x.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17857
___
Serhiy Storchaka added the comment:
Last patch LGTM.
With keeping a reference in sys.__stdin__ we will encounter same issue.
sys.stdin = None
sys.__stdin__ = None # close!
--
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 44fe1f5b07e3 by Serhiy Storchaka in branch '2.7':
Issue #17857: Prevent build failures with pre-3.5.0 versions of sqlite3,
http://hg.python.org/cpython/rev/44fe1f5b07e3
New changeset b677f656c0bf by Serhiy Storchaka in branch '3.3':
Issue #17857:
Roundup Robot added the comment:
New changeset 44fe1f5b07e3 by Serhiy Storchaka in branch '2.7':
Issue #17857: Prevent build failures with pre-3.5.0 versions of sqlite3,
http://hg.python.org/cpython/rev/44fe1f5b07e3
--
___
Python tracker
Roundup Robot added the comment:
New changeset 44fe1f5b07e3 by Serhiy Storchaka in branch '2.7':
Issue #17857: Prevent build failures with pre-3.5.0 versions of sqlite3,
http://hg.python.org/cpython/rev/44fe1f5b07e3
--
___
Python tracker
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17842
___
___
Changes by Benjamin Peterson benja...@python.org:
--
versions: +Python 3.4 -Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17853
___
Roundup Robot added the comment:
New changeset 6e57d097ae56 by Serhiy Storchaka in branch '2.7':
Issue #17842. Added base64 module tests with bytearray arguments.
http://hg.python.org/cpython/rev/6e57d097ae56
New changeset 44edbea21640 by Serhiy Storchaka in branch '3.3':
Issue #17842. Added
R. David Murray added the comment:
Thanks for the patch. We'll be interested in the results of your research,
certainly. Windows support would also be a question we'd probably want to
consider before deciding whether or not to add this.
I've added MAL as nosy since I suspect he'll have
R. David Murray added the comment:
Thanks for the patch. It would be nice to have a test before we commit this.
The tests should use assertRaisesRegex to look for something specific to this
error...probably the word 'syntax'...in the error text.
On the other hand, if the spaces are
R. David Murray added the comment:
Thanks for verifying this, Adam.
--
nosy: +r.david.murray
resolution: - out of date
stage: test needed - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
R. David Murray added the comment:
I presume you closed this bug yourself because you decided it probably wasn't
worth applying it? I'm inclined to agree. Cleaning up the code would be nice,
but since the existing code works fine, changing it *just* to clean it up
probably isn't worth the
New submission from anatoly techtonik:
http://docs.python.org/3/library/subprocess.html
A common confusion is that result from subprocess calls in Python 3 is bytes,
not string, and needs to be converted.
The problem is complicated because you need to know the encoding of
input/output
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti, haypo
stage: - needs patch
type: - enhancement
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17860
Benjamin Peterson added the comment:
Nick, care to review?
--
keywords: +patch
Added file: http://bugs.python.org/file30043/classderef.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17853
Serhiy Storchaka added the comment:
Here is a patch which allows bytes-like arguments in the base64 module. I just
removed type checking if underlying function raises an exception with an
appropriate message. I'm not sure about b32encode(), perhaps we can left an
exception from memoryview().
Serhiy Storchaka added the comment:
Committed. Thank you for the patch.
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17842
New submission from Benjamin Peterson:
Right now, opcode information is duplicated in Include/opcode.h and
Lib/opcode.py. I should only have to update one manually and have the other one
generated automatically. opcode.h should probably be generated by a script from
opcode.py.
--
Roundup Robot added the comment:
New changeset f2472fb98457 by R David Murray in branch '3.3':
#7152: Clarify that ProxyHandler is added only if proxy settings are detected.
http://hg.python.org/cpython/rev/f2472fb98457
New changeset aca80409ecdd by R David Murray in branch 'default':
Merge
Ethan Furman added the comment:
Thanks, Benjamin. Looking at that patch I realize the fix was way beyond my
current core-hacking skills.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17853
Roundup Robot added the comment:
New changeset 3dcc81c2eef5 by Brett Cannon in branch '3.3':
Issue #17358: imp.load_source() and load_compiled() should now return
http://hg.python.org/cpython/rev/3dcc81c2eef5
New changeset be6bbc9f0561 by Brett Cannon in branch 'default':
merge for issue #17358
Brett Cannon added the comment:
I figured out why testing was difficult; the file is only read from if it's
necessary. That means if you are trying to load source which has bytecode
available which is legitimate it will simply skip over the source and read from
the bytecode.
So in the end I
Éric Araujo added the comment:
If I read the patch correctly, the code can return 0 if Monday is the first
weekday as indicated by glibc, or as a fallback. I think there should be a
difference.
--
___
Python tracker rep...@bugs.python.org
Terry J. Reedy added the comment:
'unsupported syntax' would be more accurate, but I agree that saying what it is
that is unsupported is even better.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12220
Éric Araujo added the comment:
Patch adds a mention of DataHandler, that code doesn’t have yet.
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7152
___
Éric Araujo added the comment:
I don’t understand that the first message says.
If one wants to call the write method of a file object opened in binary mode,
one needs to pass bytes, as the doc surely explains. The same error that is
seen here with ints would be seen with any other objects.
New submission from anatoly techtonik:
The history:
2007 - http://bugs.python.org/issue1502
2009 - http://bugs.python.org/issue6021
I'd like to resurrect this proposal again, but name it:
itertools.chunks(iterable, size, fill=None)
Two reasons.
1. practicality - top itertools request on
Andrew Svetlov added the comment:
Actually stdin/stdout/stderr are string streams if universal_newline is True
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17860
___
Mark Dickinson added the comment:
What's the purpose of the CLASS_FREE #definition?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17853
___
___
Kushal Das added the comment:
Here is a simple script which prints the opcode.h in console. We can redirect
it as required.
--
nosy: +kushaldas
Added file: http://bugs.python.org/file30045/generate_opcode_h.py
___
Python tracker
Roundup Robot added the comment:
New changeset b7bfedc8ee18 by Nadeem Vawda in branch '2.7':
Issue #17843: Remove bz2 test data that triggers antivirus warnings.
http://hg.python.org/cpython/rev/b7bfedc8ee18
--
nosy: +python-dev
___
Python tracker
Kushal Das added the comment:
Second version of the script with the fix for HAVE_ARGUMENT
--
Added file: http://bugs.python.org/file30046/generate_opcode_h.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17861
Terry J. Reedy added the comment:
With PEP343 accepted, we can apply changes more uniformly.
I think each of the changes listed should be separate issues with separate
review, as most already are (msg149930).
Run a script without saving it first. I am sure this has been mentioned on at
Christian Heimes added the comment:
Yes, you are right. Python 3.3.1 doesn't contain the file in question, just
2.7.4 and 3.2.4.
Could you update Misc/NEWS, too? The release notes should mention that a false
positive virus warning was removed.
--
Roundup Robot added the comment:
New changeset 529c4defbfd7 by Nadeem Vawda in branch '2.7':
Add missing NEWS entry for issue #17843.
http://hg.python.org/cpython/rev/529c4defbfd7
--
___
Python tracker rep...@bugs.python.org
Andriy Mysyk added the comment:
Apologies. I did not mean to include 17851 changes. Removed the changes,
leaving out the comma after block in the attached patch.
--
Added file: http://bugs.python.org/file30047/issue17858.patch
___
Python tracker
Kushal Das added the comment:
Third revision with fixed empty spaces at the end of the lines.
--
Added file: http://bugs.python.org/file30048/generate_opcode_h.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17861
New submission from Terry J. Reedy:
This appears to be Python 3 specific. On 2.7.4 (Win7):
import sys
sys.stdin='abd'
With fresh 3.4 repository debug build, prompt never appears, ^C, ^D are
ignored. Must close with window's [X] button. With fresh 3.3, get repeated
[62312 refs] lines. One
Changes by Barry A. Warsaw ba...@python.org:
--
nosy: +barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17853
___
___
Python-bugs-list mailing
Nadeem Vawda added the comment:
OK, 2.7 is done.
Georg, what do we want to do for 3.2? I've attached a patch.
--
assignee: nadeem.vawda - georg.brandl
keywords: +patch
Added file: http://bugs.python.org/file30049/bz2-viruswarning.diff
___
Python
Benjamin Peterson added the comment:
That's superflous.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17853
___
___
Python-bugs-list mailing
Terry J. Reedy added the comment:
Roger: yes. This solves immediate problem and makes Idle more like console
interpreter. Same should be done for all three.
Serhiy: the sole and documented purpose of sys.__stdxyz__ is to serve as backup
bindings for the three i/o streams, so rebinding them is
Alejandro Rodas added the comment:
I have made a patch to zoom in and out with Control-plus and Control-minus
events, respectively. I'll upload it soon since the test suite is giving me an
error in test_multiprocessing, even before writing the patch.
I have taken a look at ZoomFont.py of
New submission from Ben Read:
I am installing Python 3.31 on a Mac running OS 10.8.2 and have already
installed ActiveTCL 8.5.13. When I try and launch IDLE, the icon appears on the
dock for a second and then disappears and the application doesn't run. I have
already installed both Python and
Ned Deily added the comment:
Fix verified on OS X 10.4 for 2.7, 3.3, and default.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17857
___
___
Ned Deily added the comment:
How are you trying to launch IDLE? Also, use the Console.app (in
/Applications/Utilites) to examine system.log to see if there are any error
messages produced there when you attempt to launch IDLE.
--
nosy: +ned.deily
Nathan Housel added the comment:
This has been fixed in trunk, the split* methods have documentation and appear
in the module docs.
See:
help('urllib')
--
nosy: +plasticgap
___
Python tracker rep...@bugs.python.org
Georg Brandl added the comment:
Thanks, I've got it from here.
--
versions: -Python 2.7, Python 3.3, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17843
___
Changes by Georg Brandl ge...@python.org:
--
versions: +Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15535
___
___
Python-bugs-list
anatoly techtonik added the comment:
Actually stdin/stdout/stderr are string streams if universal_newline is
True
I believe that makes the issue even worse. =)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17860
Changes by Georg Brandl ge...@python.org:
--
versions: +Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17547
___
___
Python-bugs-list
Georg Brandl added the comment:
Greg?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17192
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Georg Brandl ge...@python.org:
--
versions: -Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17123
___
___
Changes by Georg Brandl ge...@python.org:
--
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17425
___
___
Python-bugs-list
Ben Read added the comment:
Hi there,
I'm launching IDLE from Applications in Finder (double clicking the application
file).
I've tried doing this while Console is open and the response is:
28/04/2013 21:17:19.271 Dock[167]: no information back from LS about running
process
Thanks,
Ben
Abhishek Kumar added the comment:
I have submitted a patch that is working fine on Windows and on Ubuntu. I have
used ZoomFont.py of IdleX.
On pressing Ctrl+ or Ctrl- it changes the user configuration and updates the
font of all open windows as there is a common user configuration for all
Martin v. Löwis added the comment:
Please don't reopen issues. If there is a bug in the current setup, please
submit a new reporting indicating what the problem is.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17425
Ned Deily added the comment:
OK, assuming you are using a default install of Python 3.3.1, try opening a
terminal window (Terminal.app) and launching IDLE from there by typing:
/usr/local/bin/python3.3 -c 'import sys;print(sys.version)'
/usr/local/bin/python3.3 -m idlelib
and report what
R. David Murray added the comment:
Thanks, Jessica. I reworded it slightly, since the proxy setting can come from
things other than environment variables on Windows and OSX. Also found one
other place it needed to be mentioned, and fixed up the punctuation on one of
the pre-existing
Claudiu.Popa added the comment:
I've modified the patch according to your comments, thanks! Now the result of
getparams() is picklable again.
--
Added file: http://bugs.python.org/file30052/aifc_3.patch
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 5da7bb478dd9 by R David Murray in branch '2.7':
#7152: Remove incorrectly added reference to DataHandler.
http://hg.python.org/cpython/rev/5da7bb478dd9
New changeset 122d42d5268e by R David Murray in branch '3.3':
#7152: Remove incorrectly added
R. David Murray added the comment:
Anatoly, do you have a specific suggestion for improved wording? This *is*
documented in the subprocess documentation, in several appropriate places,
including the fact that the appropriate encoding to use may need to be
determined at the application level.
R. David Murray added the comment:
Indeed, in both 3.3.0 non-debug and 3.4 tip debug, python starts consuming 100%
of the CPU. I'm guessing there is some subtlety involving the new IO system
involved here.
Python 2.7 debug build acts as you indicate for your 2.7 non-debug build.
All my
R. David Murray added the comment:
Éric, print doesn't help if one is writing binary data.
What do you mean by not understanding the first message? If you are agreeing
that the first error message in Anatoly's initial post isn't clear, does Ezio's
proposed change make it clearer?
Ben Read added the comment:
In response to the first command:
3.3.1 (v3.3.1:d9893d13c628, Apr 6 2013, 11:07:11)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]
…and the second command:
Warning: unable to create user config directory
/Users/ben/.idlerc
Check path and permissions.
Exiting!
Ned Deily added the comment:
That's really odd. It looks you have a permissions problem with your home
directory. On startup, IDLE attempts to create the directory .idlerc in your
home directory, /Users/ben, if it doesn't exist already. If for some reason
the directory creation fails, IDLE
Alejandro Rodas added the comment:
I have uploaded my patch as well, it doesn't make use of tkfont (just vanilla
Tkinter methods) and it works both in Python 2.7 and 3.4 without the need of
any import.
I think the main difference with Abhishek Kumar's version is that mine does not
use
Changes by Alejandro Rodas alexrd...@gmail.com:
Removed file: http://bugs.python.org/file30053/ZoomInOut.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17642
___
Alejandro Rodas added the comment:
Sorry, I submitted a patch which only works on Windows. This one has been
tested on Ubuntu too.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17642
___
Terry J. Reedy added the comment:
In searching for an existing issue about this, there seemed to be other
edge-case stdin problems. I don't think that they were all usage errors. This
problem was revealed by an accidental usage error that should have lain dormant
until an exception was raised
New submission from Ellen Wang:
This is only on a PowerPC, specifically a p2020, running Debian 7.0 wheezy,
python 2.7.3.
Calling round() seems to corrupt something (in the floating point state?) that
causes subsequent exponentiation (the ** operator) to be wrong:
Python 2.7.3 (default, Jan
Ellen Wang added the comment:
Here's an example that uses only math library functions and float literals,
presumably with a simpler code path:
Python 2.7.3 (default, Jan 2 2013, 16:38:11)
[GCC 4.6.3] on linux2
Type help, copyright, credits or license for more information.
import math
Eli Bendersky added the comment:
Thanks for the heads up Chris. Since I'm a bit busy myself lately, it's fine to
wait until you have time to complete the patch. I'll review it then.
--
___
Python tracker rep...@bugs.python.org
Kushal Das added the comment:
Version 2 of the patch, with typo fixed also one more addition test to check
callable side effect in create_autospec.
--
Added file: http://bugs.python.org/file30055/issue17826_v2.patch
___
Python tracker
anatoly techtonik added the comment:
Ping.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16631
___
___
Python-bugs-list mailing list
86 matches
Mail list logo