Serhiy Storchaka added the comment:
What exceptions are raised on Windows when try to open a file in bad directory?
open('foo').close()
open('foo/bar') # what raised?
open('nonexistent/bar') # what raised?
If raised the same exceptions as on Linux, then perhaps the following patch
Garrett Cooper added the comment:
Another note: mixed endianness might have been a factor as previous versions of
the product that were shipped used bi-arch x86 (32-bit userland on 64-bit
kernel.
--
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
And what returns os.access for writable directories and non-existent files?
os.mkdir('dir')
os.access('dir', os.W_OK) # what returns?
os.access('nonexistent', os.W_OK) # what returns or raises?
--
___
Serhiy Storchaka added the comment:
This looks as a duplicate of issue521723 and issue1471. Do you have tests that
demonstrate a failure with using ioctl on OpenBSD? May be there are problems on
64-bit big-endian platforms (or even on 64-bit little-endian if additional
parameters are passed
Garrett Cooper added the comment:
Yes, it's a duplicate. That being said, documentation alone it should be
unsigned long for Darwin (OS/X), FreeBSD, OpenBSD. Looking at the definition
for ioctl(2), the below example would cause a failure.
I need to hunt around for a practical example as I
Roundup Robot added the comment:
New changeset 354c3b65e245 by Serhiy Storchaka in branch '2.7':
Issue #21934: test_file2k no longer create regular file /dev/full on OpenBSD
https://hg.python.org/cpython/rev/354c3b65e245
--
nosy: +python-dev
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
dependencies: -Fix unicodeless build of Python
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21849
Rolf Krahl added the comment:
The design goal for my implementation was compatibility. My version can be
used as a drop in replacement for the existing urllib's HTTPHandler. The only
thing that need to be changed in the calling code is that it must call
build_opener() to select the chunked
Serhiy Storchaka added the comment:
And here is a patch for 2.7.
--
Added file: http://bugs.python.org/file38148/fileio_flush_closed-2.7.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5700
Antoine Pitrou added the comment:
Why the complication? You could just use open mode r+.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21934
___
Changes by Tim Golden m...@timgolden.me.uk:
--
components: +Windows
nosy: +tim.golden, zach.ware
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23465
___
Roundup Robot added the comment:
New changeset 138c2afd9f1f by Serhiy Storchaka in branch '3.4':
Issue #19681: Test the repr of partial with more than one keyword argument.
https://hg.python.org/cpython/rev/138c2afd9f1f
New changeset 6f80e8bcb5ad by Serhiy Storchaka in branch 'default':
Issue
Serhiy Storchaka added the comment:
Doctest still failed with backtrace if argument is a file name.
$ ./python -m doctest aaa.py
Traceback (most recent call last):
File /home/serhiy/py/cpython/Lib/runpy.py, line 170, in _run_module_as_main
__main__, mod_spec)
File
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23374
___
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23408
___
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23096
___
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6639
___
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23096
___
Roundup Robot added the comment:
New changeset 8c9121993eb5 by Serhiy Storchaka in branch 'default':
Issue #23096: Pickle representation of floats with protocol 0 now is the same
https://hg.python.org/cpython/rev/8c9121993eb5
--
nosy: +python-dev
___
Serhiy Storchaka added the comment:
Committed in d92a067464a0 and 3e4ed1a23cfc.
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23408
Serhiy Storchaka added the comment:
Added comments as Antoine suggested.
--
versions: +Python 2.7
Added file: http://bugs.python.org/file38147/fileio_flush_closed_2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5700
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6639
___
___
Python-bugs-list
Serhiy Storchaka added the comment:
Added a test.
--
Added file: http://bugs.python.org/file38146/pydoc_encoding_2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23374
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23146
___
___
Steve Dower added the comment:
There's nothing wrong with that line, it's probably the Tk or Tcl build
failing. Zach may have some ideas, or I'll play with it some more in the next
few days.
--
___
Python tracker rep...@bugs.python.org
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - fixed
stage: commit review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19681
___
Serhiy Storchaka added the comment:
This was my first idea. But this would be different test. The behavior of files
opened with w and r+ modes can be different.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21934
Steven D'Aprano added the comment:
Thanks for the note Mark. I need to give Oscar's comments some careful and
distraction-free thought, but off the top of my head I think Oscar's suggestion
to require consistent types seems reasonable, except that mixing int with any
other type should be
Changes by Antoine Pitrou pit...@free.fr:
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23239
___
Serhiy Storchaka added the comment:
Thank you for your patch Aleksi. It LGTM in general. Updated patch just moves
the test to Lib/test/test_multibytecodec.py where it can reuse ALL_CJKENCODINGS
and fixes few other minor bugs in multibyte codecs.
--
Added file:
Serhiy Storchaka added the comment:
Is there a difference if you do open(..., 'w')? It's a different enough
operation that it may have a different error.
Oh, yes, I forgot the 'w' mode.
Mark, could you please run following test on Windows?
import os
open('foo', 'wb').close()
flags =
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23215
___
___
Roundup Robot added the comment:
New changeset 0f8f24dab34b by Antoine Pitrou in branch '3.4':
Issue #23146: Fix mishandling of absolute Windows paths with forward slashes in
pathlib.
https://hg.python.org/cpython/rev/0f8f24dab34b
New changeset 0de45993c21c by Antoine Pitrou in branch
On Sun, Feb 15, 2015 7:43 AM CET dieter wrote:
Martijn Millecamp martijn.millec...@hotmail.com writes:
for a schoolproject we had to build a robot and control this robot with a
gui to follow a pathWe use multiprocessingand in our group 2 people can run
the
Serhiy Storchaka added the comment:
wordsplit_3.patch is wordsplit_2.patch with few added comments in tests. Is it
enough?
--
Added file: http://bugs.python.org/file38149/wordsplit_3.patch
___
Python tracker rep...@bugs.python.org
Mark Lawrence added the comment:
os.mkdir('dir')
os.access('dir', os.W_OK)
True
os.access('nonexistent', os.W_OK)
False
open('dir/bar')
Traceback (most recent call last):
File stdin, line 1, in module
FileNotFoundError: [Errno 2] No such file or directory: 'dir/bar'
Antoine Pitrou added the comment:
Thanks for the patch!
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23146
___
Serhiy Storchaka added the comment:
Thank you Mark. Could you please make first test in msg236028 (when first part
of the path is a file, not a directory)?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22107
Roundup Robot added the comment:
New changeset b15a5f239e8a by Antoine Pitrou in branch 'default':
Issue #23239: ssl.match_hostname() now supports matching of IP addresses.
https://hg.python.org/cpython/rev/b15a5f239e8a
--
nosy: +python-dev
___
Mark Lawrence added the comment:
open('README').close()
open('README/bar')
Traceback (most recent call last):
File stdin, line 1, in module
FileNotFoundError: [Errno 2] No such file or directory: 'README/bar'
--
___
Python tracker
Steve Dower added the comment:
Is there a difference if you do open(..., 'w')? It's a different enough
operation that it may have a different error.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22107
Hi
Has any one created Python RPM on AIX ?
I am using the spec file that comes with Python source file and here is the
problems I was facing:
README file says download the bz2 version, but only gziped and xz version
available from Python website
so had to convert the .tgz file to bz2 and
Changes by Brian Curtin br...@python.org:
--
nosy: -brian.curtin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19050
___
___
Python-bugs-list
From over yonder, on python-dev...
-- Forwarded message --
From: Steve Dower steve.do...@microsoft.com
Subject: Re: [Python-Dev] PEP 441 - Improving Python ZIP Application Support
Go ahead, make my pep.
We should make a python-dev t-shirt with this on it :)
+1 from me as
Vinay Sajip added the comment:
There is a bug in distlib.resources.
As far as I know, this is no longer the case - a change was made in
distlib.resources to get around the problem:
Serhiy Storchaka added the comment:
What about this issue?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22390
___
___
Python-bugs-list mailing
Berker Peksag added the comment:
Thanks for the patch! I'm -1 to adding IDE/editor specific files to .hgignore.
You can create a global .hgignore instead.
--
nosy: +berker.peksag
resolution: - wont fix
stage: patch review - resolved
status: open - closed
New submission from Berker Peksag:
Config/plugin/readme files for Emacs and Vim in Misc have been deleted. The
only remaining ones are for Wing IDE. Here is a patch to remove these files.
--
files: wpr.diff
keywords: patch
messages: 236082
nosy: berker.peksag
priority: normal
severity:
Steven D'Aprano added the comment:
This has come up on Python-Ideas again:
http://permalink.gmane.org/gmane.comp.python.ideas/32002
https://mail.python.org/pipermail/python-ideas/2015-February/032000.html
--
nosy: +steven.daprano
___
Python tracker
Serhiy Storchaka added the comment:
Great. There is only one difference between Windows and Linux, but it affects
only error type in tests. Here is a patch with updated test. It should now work
on Windows.
--
Added file: http://bugs.python.org/file38151/tempfile_bad_tempdir_2.patch
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +belopolsky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23468
___
___
Python-bugs-list
STINNER Victor added the comment:
As far as bytes formatting supports the %s code (an alias to %b) purely for
compatibility with Python 2, it would be good to support the %r as an alias to
%a.
I don't like this idea.
--
nosy: +haypo
___
Python
Changes by STINNER Victor victor.stin...@gmail.com:
--
title: Inconsistency between str and bytes formatting of integers - PEP 461:
Inconsistency between str and bytes formatting of integers
___
Python tracker rep...@bugs.python.org
Hello everyone,
[Python 3.X]
I have the following factory model for the initialization of a class
tree (code abbreviated for simplicity).
# item.py
class BadItemType(Exception):
pass
class Item:
def __init__(self, _data):
class Container(Item):
def __init__(self, _data):
STINNER Victor added the comment:
Modules/expat is not a copy of a module hosted somewhere else?
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22211
___
Changes by STINNER Victor victor.stin...@gmail.com:
--
title: asyncio: a new self-pipe should be created in the child process after
fork - asyncio: support fork
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21998
Changes by STINNER Victor victor.stin...@gmail.com:
--
title: asyncio: support multiprocessing (support fork=) - asyncio: support
multiprocessing (support fork)
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22087
STINNER Victor added the comment:
@Giampaolo: I'm not sure that I understood your proposition? Can you please
write a patch?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18932
___
Changes by STINNER Victor victor.stin...@gmail.com:
--
title: asyncio: support multiprocessing - asyncio: support multiprocessing
(support fork=)
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22087
New submission from Serhiy Storchaka:
PEP 461 says that all numeric bytes formatting codes will work as they do for
str. In particular b%x % val is equivalent to (%x % val).encode(ascii).
But this is wrong with current implementation:
'%x' % 3.14
Traceback (most recent call last):
File
SilentGhost added the comment:
Perhaps I'm misinterpreting your message, but this doesn't seem like a problem
with datetime module. The issue is with dateutil module, which is not the part
of the standard library and is not developed here. Also, I can reproduce this
issue on 3.4 (though I
STINNER Victor added the comment:
Can someone review at_fork-2.patch?
Martin: Can you please try my patch?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21998
___
Hi,
just upgraded my Mac Mini to Yosemite and have never dabbled in Python on this
OS.
I see it has Python 2.7.6 installed.
When I do something like
from PIL import ImageFont, ImageDraw
it tells me that it cannot find PIL
How do I install this on Yosemite?
Any pointers much appreciated
KP
New submission from Serhiy Storchaka:
The main motivation of PEP 461 was to help ease migration from, and/or have a
single code base with, Python 2. But bytes formatting don't support the %r code
supported in Python 2. Instead it supports the %a code which is exactly
equivalent to the %r code
Mark Lawrence added the comment:
open('foo', 'wb').close()
flags = os.O_RDWR | os.O_CREAT | os.O_EXCL | getattr(os, 'O_NOFOLLOW', 0) |
getattr(os, 'O_BINARY', 0)
os.open('foo/bar', flags, 0o600)
Traceback (most recent call last):
File stdin, line 1, in module
FileNotFoundError: [Errno 2]
New submission from Stoneagee:
Code:
import dateutil.parser
from datetime import datetime
a='0001-01-01T00:00:00+02:00'
b='1964-01-01T00:00:00+02:00'
ia=dateutil.parser.parse(a)
ib=dateutil.parser.parse(b)
print a
print ia
print b
print ib
output:
0001-01-01T00:00:00+02:00
2001-01-01
Guido van Rossum added the comment:
Yeah, we probably got carried away by purity concerns.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23467
___
STINNER Victor added the comment:
I'm sorry, I can't try this myself as I no longer run 2.7.
You should install Python 2.7 if you want to work on Python 2.7 only issue.
It's not so hard to install Python, especially on Windows (this issue looks to
be specific to Windows).
--
Ethan Furman added the comment:
Sometimes practicality wins; it's why we allow %s, and we should also allow %r.
Both %s and %r need to be clearly documented as an aid to Py2/3 code bases, and
not recommended for new code.
Serhiy, do you have time to take of this?
--
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21934
___
John Malmberg added the comment:
These files are identical to the files in the expat git repository.
So it looks like I need to submit the fix and get it accepted to that
repository first. And then at some point cPython will pick up the change.
I can still provide diffs if desired, but based
Roundup Robot added the comment:
New changeset 02865d22a98d by Serhiy Storchaka in branch '2.7':
Issue #22885: Fixed arbitrary code execution vulnerability in the dumbdbm
https://hg.python.org/cpython/rev/02865d22a98d
New changeset 693bf15b4314 by Serhiy Storchaka in branch '3.4':
Issue #22885:
Martin Panter added the comment:
For the record, the python-dev thread referenced in the original post is
https://mail.python.org/pipermail/python-dev/2009-April/088212.html.
The obvious fix to me is to have FileIO.close() call IOBase.close() to invoke
the flush() before continuing with its
Serhiy Storchaka added the comment:
Committed issue22885.patch with modified test which demonstrates vulnerability
of unpatched dbm.dumb. If you want to change exception type raised by dbm.dumb,
you can open new issue.
--
assignee: - serhiy.storchaka
resolution: - fixed
stage: patch
Martin Panter added the comment:
Patch looks sensible to me. This is another example of where Issue 15216 would
be useful (a standard way to modify the encoding settings of a stream).
--
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
Yes, the implementation of os.path is alright. There is a bug in
distlib.resources. And the lack of os.path documentation.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20140
Serhiy Storchaka added the comment:
In the case of this issue pydoc needs change not the encoding of stdout, but
errors handler of stdout. There is similar issue with pprint (issue19100).
--
___
Python tracker rep...@bugs.python.org
David Edelsohn added the comment:
When you configure Python, you can specify an installation directory, which
defaults to /usr/local. make install will overwrite the Python installation
in the specified (possibly default) installation location, but not versions
installed in other locations
Chris Angelico ros...@gmail.com writes:
On Sat, Feb 14, 2015 at 6:40 AM, John Ladasky
john_lada...@sbcglobal.net wrote:
The default font that the Geany program editor uses on my Ubuntu
system renders everything I've tried. When I look up that font in
Geany's Preferences menu, it is called,
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +berker.peksag
stage: - patch review
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23440
___
On Mon, Feb 16, 2015 at 8:09 AM, giacomo boffi pec...@pascolo.net wrote:
That's a font alias. Unfortunately, I've never yet figured out a
straight-forward way to snap the pointer;
when you know it, it's easy...
% fc-match mono
DejaVuSansMono.ttf: DejaVu Sans Mono Book
%
Learn something
Serhiy Storchaka added the comment:
The implementation is easy -- just add case 'r': before case 'a':. The hard
(to me) part is the documentation, so that I'm out of the game.
--
___
Python tracker rep...@bugs.python.org
Changes by Ethan Furman et...@stoneleaf.us:
--
assignee: - ethan.furman
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23467
___
___
Giampaolo Rodola' added the comment:
Attached is a patch (for epoll only) which updates the SelectorKey. This
introduces a considerable slowdown compared to my first patch:
no patch:16.2 usec per loop
your patch: 12.4 usec per loop
my patch:10.9 usec per loop
first patch: 3.07 usec
Changes by Alexander Belopolsky alexander.belopol...@gmail.com:
--
resolution: - third party
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23468
___
Berker Peksag added the comment:
Buildbots are not happy:
==
ERROR: test_write_filtered_python_package (test.test_zipfile.PyZipFileTests)
--
Traceback (most
Dwight added the comment:
Hi David,
Thanks for the feed back.
I must have a defective distribution because when installed
python 3 it did not remove the older python 2. Also for some
reason I have to set the LIBPATH to include the path to
python libarary. Don't know why; but the build
Mario Figueiredo wrote:
Hello everyone,
[Python 3.X]
I have the following factory model for the initialization of a class
tree (code abbreviated for simplicity).
# item.py
class BadItemType(Exception):
pass
If this is a type error, why aren't you using TypeError? Or at least
Roundup Robot added the comment:
New changeset 59716f28ed30 by Berker Peksag in branch '3.4':
Issue #17753: effective_ids unavailable on Windows.
https://hg.python.org/cpython/rev/59716f28ed30
New changeset 964753cf09de by Berker Peksag in branch 'default':
Issue #17753: effective_ids
Mark Lawrence added the comment:
Can we have a formal patch review please?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11717
___
___
Mario Figueiredo wrote:
Hello everyone,
[Python 3.X]
I have the following factory model for the initialization of a class
tree (code abbreviated for simplicity).
# item.py
class BadItemType(Exception):
pass
class Item:
def __init__(self, _data):
class Container(Item):
Changes by Berker Peksag berker.pek...@gmail.com:
--
stage: needs patch - resolved
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10818
___
___
Berker Peksag added the comment:
pydocgui.pyw was removed in https://hg.python.org/cpython/rev/2e578b80c2f3.
msi.py was updated in issue 14512. Closing this as out of date.
--
nosy: +berker.peksag
resolution: - out of date
stage: - resolved
status: open - closed
Changes by Berker Peksag berker.pek...@gmail.com:
--
stage: needs patch - resolved
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14512
___
___
Serhiy Storchaka added the comment:
Tests failed on Solaris:
http://buildbot.python.org/all/builders/AMD64%20Solaris%2011%20%5BSB%5D%203.x/builds/3895/steps/test/logs/stdio
==
FAIL: test_chown_without_permission
Roundup Robot added the comment:
New changeset 4cea99f51bfe by Serhiy Storchaka in branch 'default':
Issue #20069: Fixed test_os on Solaris: error message is platform depended.
https://hg.python.org/cpython/rev/4cea99f51bfe
--
___
Python tracker
Serhiy Storchaka added the comment:
Tests failed on Solaris:
http://buildbot.python.org/all/builders/AMD64%20Solaris%2011%20%5BSB%5D%203.x/builds/3895/steps/test/logs/stdio
==
ERROR: test_deleted_cwd
In article dc937f79-b6bf-4060-8c71-2f4939aef...@googlegroups.com,
KP kai.pet...@gmail.com wrote:
just upgraded my Mac Mini to Yosemite and have never dabbled in Python on
this OS.
I see it has Python 2.7.6 installed.
When I do something like
from PIL import ImageFont, ImageDraw
it
Changes by Serhiy Storchaka storch...@gmail.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17753
___
___
Serhiy Storchaka added the comment:
Thanks Berker.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17753
___
___
Python-bugs-list mailing list
1 - 100 of 103 matches
Mail list logo