Charles-François Natali added the comment:
If I remember correctly the problem is that some OS like linux (and
probably others) do not really allocate space until something is written.
If that's the case then the process may get killed later on when it writes
something in the array.
Yes, it's
Richard Oudkerk added the comment:
I would recommended using _overlapped instead of _winapi.
I intend to move multiprocessing over in future.
Also note that you can do nonblocking reads by starting an overlapped read
then cancelling it immediately if it fails with incomplete. You will
need to
bagrat lazaryan added the comment:
terry, i indeed didn't know about output windows. (or at least i didn't know i
knew. by the way, what are they?) the logic behind my request is that the file
being edited in the editor is the most important thing of the editor. a quick
glance at the taskbar,
Mark Dickinson added the comment:
LGTM.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21136
___
___
Python-bugs-list mailing list
Unsubscribe:
Mark Dickinson added the comment:
Hmm. Does this work correctly in the case `Fraction(0, 1) ** -2`?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21136
___
Mark Dickinson added the comment:
Does this work correctly in the case `Fraction(0, 1) ** -2`?
Looks like it doesn't. How about adding a `_skip_normalization` keyword
argument to `Fraction.__new__` instead? That would ensure that any future
changes made to `__new__` don't get skipped by
Mark Dickinson added the comment:
(And other operations like `__pos__`, `__neg__` and `__abs__` would benefit
from a `_skip_normalization` flag, too.)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21136
New submission from Nick Coghlan:
At Anatoly's prompting, Andrey Ponomarenko set up ABI/API compatibility checks
for CPython on the Linux upstream tracker (http://upstream-tracker.org/)
Everything: http://upstream-tracker.org/versions/python.html
Public API/ABI (no leading underscores):
Médéric Boquien added the comment:
the process will get killed when first writing to the page in case of memory
pressure.
According to the documentation, the returned shared array is zeroed.
https://docs.python.org/3.4/library/multiprocessing.html#module-multiprocessing.sharedctypes
In that
New submission from Jyrki Pulliainen:
Looks like the documentation of the __builtin__.max() got copied over from the
__builtin__.min.
Instead of the smallest of the positional arguments it should say the
largest of the positional arguments.
This was introduced in 3.4. Patch attached.
Thanks
Berker Peksag added the comment:
I also fixed this as part of issue 20620.
--
nosy: +berker.peksag
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21143
___
Serhiy Storchaka added the comment:
The repr of threading._RLock contains owner and count, but not lock/unlock
status. The repr of locks from _dummy_thread also should contain lock/unlock
status. And it would be nice to have the open/closed status in the repr of
other synchronization
Serhiy Storchaka added the comment:
And of course we should keep at 0x... part, because it is the way to
distinguish different lock objects.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21137
New submission from Nikolaus Demmel:
I am installing python 3.4 on OS X 10.9 Mavericks via Homebrew.
The Homebrew formula is:
https://github.com/Homebrew/homebrew/blob/4bd9b7538297c2ecbcaba281a6db86e8d8f660c8/Library/Formula/python3.rb
During the installation, `ensurepip` is called, but
New submission from Omer Katz:
cached properties are widely used in various prominent Python projects such as
Django and pip (and many more).
They are not very complicated and there are proven implementation out there.
Unfortunately there are way too many of them. This situation leads me to
New submission from Wolfgang Maier:
The current documentation of the gzip module should have its section 12.2.1.
Examples of usage updated to reflect the changes made to the module in
Python3.2 (https://docs.python.org/3.2/whatsnew/3.2.html#gzip-and-zipfile).
Currently, the recipe given for
Andrey added the comment:
There are just three simple steps to setup ABI checker:
1. Create ABI dump of the _reference_ version (see instructions [1]) and commit
it to the source tree (ABI-ref.dump):
$ abi-compliance-checker -l python -dump descriptor.xml -dump-path ABI-ref.dump
2. Create
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21145
___
___
Python-bugs-list
Changes by Saimadhav Heblikar saimadhavhebli...@gmail.com:
--
nosy: +sahutd
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21140
___
___
INADA Naoki added the comment:
Maybe, shutil.copyfileobj() is good.
import gzip
import shutil
with open(src, 'rb') as f_in:
with gzip.open(dst, 'wb') as f_out:
shutil.copyfileobj(f_in, f_out)
--
nosy: +naoki
___
Python tracker
Wolfgang Maier added the comment:
with open(src, 'rb') as f_in:
with gzip.open(dst, 'wb') as f_out:
shutil.copyfileobj(f_in, f_out)
+1 !!
exactly as fast as my suggestion (with compression and de-compression), but a
lot clearer !
Hadn't thought of it.
--
Wolfgang Maier added the comment:
same speed is not surprising though as shutil.copyfileobj is implemented like
this:
def copyfileobj(fsrc, fdst, length=16*1024):
copy data from file-like object fsrc to file-like object fdst
while 1:
buf = fsrc.read(length)
if not buf:
Roundup Robot added the comment:
New changeset 871278b87c62 by Eli Bendersky in branch '3.4':
Issue #20375: Clarify ET's parsing of comments and processing instructions.
http://hg.python.org/cpython/rev/871278b87c62
New changeset 5c3166ec80e1 by Eli Bendersky in branch 'default':
Issue #20375:
Eli Bendersky added the comment:
Thanks. Doc patch committed with some slight rewording.
Would you like to prepare a separate patch for the tests, default branch only
this time?
--
versions: -Python 3.4
___
Python tracker rep...@bugs.python.org
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +dstufft
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21144
___
___
Python-bugs-list
Eli Bendersky added the comment:
Since there has mostly been support for this, I'll wait a couple more days and
commit it unless someones objects or asks for more time for review.
--
___
Python tracker rep...@bugs.python.org
Benjamin Peterson added the comment:
Good point. Perhaps we should reccomend
https://raw.github.com/pypa/pip/master/contrib/get-pip.py instead, though?
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 54bd06097619 by Benjamin Peterson in branch '3.4':
remove unused argument (closes #21135)
http://hg.python.org/cpython/rev/54bd06097619
New changeset 2299cb5e8592 by Benjamin Peterson in branch 'default':
merge 3.4 (#21135)
Roundup Robot added the comment:
New changeset 03df2c1c6892 by Benjamin Peterson in branch '2.7':
properly close files in test_zipfile (#20887)
http://hg.python.org/cpython/rev/03df2c1c6892
--
nosy: +python-dev
___
Python tracker
Benjamin Peterson added the comment:
Thanks for the patch. 3.x test_zipfile can be dealt with elsewhere if desired.
--
nosy: +benjamin.peterson
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 8fe2bb0c5851 by Raymond Hettinger in branch '3.4':
Issue 21143: Fix typo in docs for max().
http://hg.python.org/cpython/rev/8fe2bb0c5851
--
nosy: +python-dev
___
Python tracker rep...@bugs.python.org
Raymond Hettinger added the comment:
Thanks for the report.
--
nosy: +rhettinger
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21143
___
Saimadhav Heblikar added the comment:
Attaching a patch.
The file type on OutputWIndow defaults to .txt. Can be very easily made to
default to none aswell.
Tested on linux for 2.7 and 3.4.(Debian Wheezy, Gnome 3)
On 2.7, made changes so that ispythonsource(in EditorWindow) behaves similar to
Changes by Saimadhav Heblikar saimadhavhebli...@gmail.com:
Added file: http://bugs.python.org/file34714/issue21140-34.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21140
___
Jurko Gospodnetić added the comment:
Or, if you do not want to get into the specifics of how
to manually install setuptools/pip, it would probably be
better to just refer the user to the 'ensurepip' module
for the initial installation and tell him to upgrade
whatever is needed from there without
Stefan Krah added the comment:
This looks like a duplicate of #12546.
--
resolution: - duplicate
stage: patch review - committed/rejected
status: open - closed
versions: +Python 3.5 -Python 2.7, Python 3.3
___
Python tracker rep...@bugs.python.org
Changes by Stefan Krah stefan-use...@bytereef.org:
--
superseder: - builtin __format__ methods cannot fill with \x00 char
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17705
___
STINNER Victor added the comment:
#17705 has been closed as a duplicate of this issue.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12546
___
Changes by Eric V. Smith e...@trueblade.com:
--
versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12546
___
STINNER Victor added the comment:
Georg, is this issue wort to be fixed in 3.2? If yes, use the patch against
2.7.
Ping?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19279
___
New submission from STINNER Victor:
import sqlite3
c=sqlite3.connect(:memory:)
c.execute(select 1)
sqlite3.Cursor object at 0x7fd11e6a9110
c.execute(select 1).fetchall()
[(1,)]
c.execute(\0select 1).fetchall()
[]
--
messages: 215459
nosy: haypo
priority: normal
severity: normal
Charles-François Natali added the comment:
Also, the FreeBSD man page for mmap() has the following warning:
That's mostly important for real file-backed mapping.
In our case, we don't want a file-backed mmap: we expect the mapping to fit
entirely in memory, so the writeback/read performance
New submission from Julian Taylor:
attached a prototype patch that avoids the memset of ob_item in PyTuple_New
which is not necessary for the BUILD_TUPLE bytecode and PyTuple_Pack as these
overwrite every entry in ob_item anyway.
This improves small tuple creation by about 5%.
It does this by
Changes by Ned Deily n...@acm.org:
--
nosy: -ned.deily
resolution: duplicate -
stage: committed/rejected -
superseder: Add Mingw recognition to pyport.h to allow building extensions -
___
Python tracker rep...@bugs.python.org
Changes by Ned Deily n...@acm.org:
--
nosy: +ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21034
___
___
Python-bugs-list mailing list
mattip added the comment:
the gc.collect is not needed, sorry. I updated the patch, which affects
test_argparse.py (make files rw before rmtree)
test_file.py (add file.close() )
test_file2k.py (add file.close() )
test_httpservers.py (add file.close() )
--
Added file:
Zachary Ware added the comment:
Here's a slightly revised patch, including documentation changes in
PCbuild/readme.txt. Also, this patch doesn't rename build_ssl.(bat|py), so
Rietveld should accept the patch as reviewable. I think the renames should
actually happen, though.
--
Changes by Stefan Krah stefan-use...@bytereef.org:
--
nosy: -skrah
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20361
___
___
Python-bugs-list
Changes by Stefan Krah stefan-use...@bytereef.org:
--
nosy: -skrah
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20355
___
___
Python-bugs-list
Stefan Krah added the comment:
Is this still an issue?
--
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19354
___
___
Nikolaus Rath added the comment:
Thanks for the commit!
My intention is to fix the behavior itself for 3.5 (see issue 9521), so I think
adding testcases for the old behavior in the meantime isn't necessary.
--
___
Python tracker
New submission from Devin Jeanpierre:
If another thread is active during interpreter shutdown, it can hold the last
reference to a handler; when it drops that reference, the weakref callback --
_removeHandlerRef -- will be executed in this other thread. So while this
callback is running, the
Stefan Krah added the comment:
Can we somehow merge this issue with #20904?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18062
___
___
New submission from Raymond Hettinger:
The argparse module has many functions and options.
It would benefit from a summary and quick links table at the top of the page
just like we have for the itertools module docs and the builtins module docs.
--
assignee: docs@python
components:
Changes by Ned Deily n...@acm.org:
--
nosy: +vinay.sajip
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21149
___
___
Python-bugs-list mailing list
Antoine Pitrou added the comment:
A 5% improvement on a micro-benchmark probably means 0% on real workloads. You
could try to run the benchmarks suite at http://hg.python.org/benchmarks
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
mirabilos added the comment:
Veto on m68k-float-prec.patch for Linux/m68k for now.
Reasoning is same as in #18062 (thanks skrah for linking it):
Enabling this *will* break Python on Linux/m68k on the most
widespread emulator in all released versions of that emulator
(ARAnyM) because the
Maciej Szulik added the comment:
I've just checked the patch still applies to current HEAD. What about the
question regarding 0's in date.strptime(...) I asked in previous comment? I'd
like to move this issue forward now when 3.4 is released.
--
Eli Bendersky added the comment:
On Thu, Apr 3, 2014 at 1:19 PM, Nikolaus Rath rep...@bugs.python.orgwrote:
Nikolaus Rath added the comment:
Thanks for the commit!
My intention is to fix the behavior itself for 3.5 (see issue 9521), so I
think adding testcases for the old behavior in the
Josh Rosenberg added the comment:
Hmm... Maybe I'm testing it wrong, but I'm finding your patch is slowing down
translation by a small amount on my test case; not a lot, maybe a 10% slowdown
on enlarging translations, 6% for 1-1, and deletion in between.
--
Alexander Belopolsky added the comment:
Is this documentation still valid?
+.. staticmethod:: date.strptime(date_string, format)
+
+ Return a :class:`date` corresponding to *date_string*, parsed according to
+ *format*. This is equivalent to ``date(*(time.strptime(date_string,
+
Changes by Sarah Mount mount.sa...@gmail.com:
--
nosy: +snim2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14060
___
___
Python-bugs-list mailing
Andreas Schwab added the comment:
Enabling this *will* break Python on Linux/m68k
??? It will not of course, it will *fix* it. You have no idea what you are
talking about.
--
___
Python tracker rep...@bugs.python.org
Martin v. Löwis added the comment:
Can you please explain what this has to do with dropping the mentioning of Perl?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21141
___
mirabilos added the comment:
Andreas Schwab dixit:
Andreas Schwab added the comment:
Enabling this *will* break Python on Linux/m68k
??? It will not of course, it will *fix* it. You have no idea what you are
talking about.
No: it will break Debian/m68k which heavily uses Python, because:
Benjamin Peterson added the comment:
This patch appears to have been generated against a pypy checkout rather than a
cpython checkout.
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21128
Vinay Sajip added the comment:
please let me know if there are any contributor agreements
Yes, there is a contributor agreement form which needs to be completed and
signed:
https://www.python.org/psf/contrib/contrib-form-python/
--
___
Python
Andreas Schwab added the comment:
There is no excuse for using a broken emulator.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20904
___
___
Antoine Pitrou added the comment:
Or maybe it's time to add an API to access shared memory from Python
(since
that's really what we're trying to achieve here).
That sounds like a good idea. Especially since we now have the memoryview type.
--
___
mirabilos added the comment:
Andreas Schwab dixit:
There is no excuse for using a broken emulator.
Sure, if nobody releases a fixed version… and even then,
there’s got to be a grace period.
I say that if you break ARAnyM you kill off Debian/m68k
on ARAnyM (and I’ll have to shut down my
Changes by Nikolaus Rath nikol...@rath.org:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20375
___
___
Python-bugs-list
Devin Jeanpierre added the comment:
Are you sure? There should have been many previous contributions by Google, so
the relevant copyright agreements _should_ have already been signed.
I asked internally and was told that a corporate version of this agreement had
been signed a long time ago.
R. David Murray added the comment:
Yes, I remember previous discussions of the corporate agreement from Google, so
I'm sure it exists.
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21149
Raymond Hettinger added the comment:
FWIW, students commonly save shell sessions as a record of everything they
tried in call. It would nice if there were a way to trigger a periodic
autosave (perhaps every five minutes or so).
--
nosy: +rhettinger
New submission from Dave Odell:
Here's a small program that crashes Python 3.
import winreg
winreg.SetValueEx(winreg.HKEY_CURRENT_USER, 'Value', 0, 3, None)
I get a 0xC374 exception (STATUS_HEAP_CORRUPTION) when trying to run this.
Here's a stack dump:
(snip)
Zachary Ware added the comment:
Sure; currently, the ssl project emits messages from build_ssl.py concerning
the finding of Perl. On a machine with a usable Perl, it's just
Found a working perl at 'C:\Perl\bin\perl.exe'
On machines without Perl, its the more worrisome
Can not
Madison May added the comment:
There's currently an example of a cached property decorator implementation in
the wiki, although it doesn't leverage functools:
https://wiki.python.org/moin/PythonDecoratorLibrary#Cached_Properties
--
nosy: +madison.may
Westley Martínez added the comment:
I second that the title should start with the filename, by default. This seems
to be the precedent, and it makes it easy when working with multiple files.
Example:
xxx.py - IDLE x.y.z: C:\mydir\xxx.py
Terry, I think we can generalize this as
eryksun added the comment:
In Py2Reg, the REG_BINARY (3) case sets `*retDataSize = 0` when the value is
None:
http://hg.python.org/cpython/file/04f714765c13/PC/winreg.c#l766
It doesn't modify *retDataBuf. Then in PySetValueEx, PyMem_DEL is called for
the uninitialized address in data:
Maciej Szulik added the comment:
Alexander yes it's correct. It's checking for time part in date.strptime and
for time part in time.strptime. The only problem I came into is that when
passing 0 hours or 0 minutes into date.strptime it won't raise an exception,
though doc explicitly says:
80 matches
Mail list logo