New submission from Berker Peksag:
I have an outdated and WIP patch to implement PEP 431 on GitHub:
https://github.com/berkerpeksag/cpython Hopefully, I will complete my work
before beta 1.
--
assignee: berker.peksag
components: Library (Lib)
messages: 235423
nosy: berker.peksag
Steve Dower added the comment:
Got about as many reviews as I expected, but the builds have been going fine
and I want this checked in before alpha, so in it goes :)
--
resolution: - fixed
stage: - resolved
status: open - closed
___
Python tracker
Roundup Robot added the comment:
New changeset e7dbef447157 by Steve Dower in branch 'default':
Issue #23260: Update Windows installer
https://hg.python.org/cpython/rev/e7dbef447157
--
nosy: +python-dev
___
Python tracker rep...@bugs.python.org
Changes by Vinson Lee v...@freedesktop.org:
--
nosy: +vlee
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19884
___
___
Python-bugs-list mailing
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/issue23392
___
Serhiy Storchaka added the comment:
What are your thoughts Victor?
--
title: Marshal: special case int and float, don't use references - Marshal:
performance regression with versions 3 and 4
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 6384c0cd3b2d by Benjamin Peterson in branch '3.4':
fix many custom mro() edge cases and improve code quality (#22735)
https://hg.python.org/cpython/rev/6384c0cd3b2d
New changeset 75fd0bd89eef by Benjamin Peterson in branch 'default':
merge 3.4
Daniil Bondarev added the comment:
As long as you think It fits into your issue, I'm ok with adding this patch to
it (: it's different files, so no conflicts. Should I just add this patch to
your ticket?
--
___
Python tracker rep...@bugs.python.org
Chris Angelico wrote:
[] = x
# is equivalent to
try: next(iter(x))
except StopIteration: pass
else: raise ValueError(too many values to unpack (expected 0))
It's a way of asserting that an iterator is exhausted!
But why disallow using () for the same thing? This
is a blatant case of outright
Serhiy Storchaka added the comment:
Actually this is #23381, not #23881.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22765
___
___
This would be much better posted on the github page for the project. I don't
have the URL handy, but if you search github for Python Azure SDK you'll find
it.
Cheers,
Steve
Sent from my Windows Phone
From: syed khalidmailto:sy...@pacificloud.com
Sent:
Roundup Robot added the comment:
New changeset 30e6c8caa5b9 by Serhiy Storchaka in branch '3.4':
Issue #23881: Only use entry-values with gdb 7.4 in tests.
https://hg.python.org/cpython/rev/30e6c8caa5b9
New changeset 981e108039f1 by Serhiy Storchaka in branch 'default':
Issue #23881: Only use
Roundup Robot added the comment:
New changeset e55f955659bc by Serhiy Storchaka in branch '2.7':
Issue #23392: Added tests for marshal C API that works with FILE*.
https://hg.python.org/cpython/rev/e55f955659bc
New changeset 05153851d1d6 by Serhiy Storchaka in branch '3.4':
Issue #23392: Added
I am getting http error 404. I am able to access the site via telnet which
eliminates network issues. Here is the code and subsequent errors
user/bin/python
import sys
import azure
import socket
from azure.servicebus import (
_service_bus_error_handler
)
from
Serhiy Storchaka added the comment:
I provided similar patch in issue22765, but your patch looks more clear.
Committed in 30e6c8caa5b9, 981e108039f1, and cee39701b280. Thanks for your
patch Vinson.
--
resolution: - fixed
stage: - resolved
status: open - closed
versions: +Python 3.4,
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22765
___
Serhiy Storchaka added the comment:
LGTM.
--
stage: patch review - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20289
___
___
Roundup Robot added the comment:
New changeset 28a9da0842aa by Serhiy Storchaka in branch '3.4':
Issue #18982: Add tests for CLI of the calendar module.
https://hg.python.org/cpython/rev/28a9da0842aa
New changeset e057da873673 by Serhiy Storchaka in branch 'default':
Issue #18982: Add tests for
Søren Løvborg added the comment:
I take it the silence means that the patch is neither obviously good nor
obviously bad. :-)
It all comes down to a judgment call: is this a bug, or expected (but
undocumented) behavior?
In PEP 387 lingo: Is this a reasonable bug fix? Or is it a design
Antoine Pitrou added the comment:
Would it be possible to push the latest patch right now
It's ok for me. Please watch the buildbots :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23285
Serhiy Storchaka added the comment:
Thanks for your review Berker.
--
assignee: - serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18982
___
Roundup Robot added the comment:
New changeset f2991b52157e by Serhiy Storchaka in branch '2.7':
Issue #18982: Fixed newlines in calendar CLI tests on Windows.
https://hg.python.org/cpython/rev/f2991b52157e
--
___
Python tracker
On Thu, Feb 5, 2015 at 2:40 AM, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
Devin Jeanpierre wrote:
On Wed, Feb 4, 2015 at 1:18 PM, Chris Angelico ros...@gmail.com wrote:
On Thu, Feb 5, 2015 at 4:36 AM, Peter Otten __pete...@web.de wrote:
Another alternative is to put a list
STINNER Victor added the comment:
2015-02-05 18:46 GMT+01:00 Giampaolo Rodola' rep...@bugs.python.org:
+def modify(self, fileobj, events, data=None):
+...
+if events != key.events:
You should update the SelectorKey in the case, no?
--
On Thu, 05 Feb 2015 11:25:42 -0800, Paul Moore wrote:
On Thursday, 5 February 2015 16:57:07 UTC, Rob Gaddi wrote:
You don't need the whole scipy stack, numpy will let you do everything
you want. The trick to working in numpy is to parallelize your
problem;
you don't do a thing a thousand
Changes by Serhiy Storchaka storch...@gmail.com:
--
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17189
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
dependencies: -Use allowZip64=True by default
resolution: - out of date
superseder: - Use allowZip64=True by default
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17189
Charles-François Natali added the comment:
Antoine Pitrou added the comment:
Would it be possible to push the latest patch right now
It's ok for me. Please watch the buildbots :)
Cool, I'll push on Friday evening or Saturday.
--
___
Python
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes:
Vito De Tullio wrote:
Steven D'Aprano wrote:
This just does not roll of the fingers well. Too many “reach for
modifier keys” in a row.
*One* modifier key in a row is too many?
s o m e SHIFT D o c [ ' SHIFT _ i d ' ]
I'm
On Thu, Feb 5, 2015 at 12:25 PM, Paul Moore p.f.mo...@gmail.com wrote:
On Thursday, 5 February 2015 16:57:07 UTC, Rob Gaddi wrote:
You don't need the whole scipy stack, numpy will let you do everything
you want. The trick to working in numpy is to parallelize your problem;
you don't do a
Serhiy Storchaka added the comment:
Ping.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21717
___
___
Python-bugs-list mailing list
eryksun added the comment:
The changeset from 03 Dec is in the Windows 2.7.9 release.
Python 2.7.9 (default, Dec 10 2014, 12:28:03) [MSC v.1500 64 bit
(AMD64)] on win32
Type help, copyright, credits or license for more
information.
import zipfile
zipfile._SharedFile
ast nom...@invalid.com a écrit dans le message de
news:54d227ef$0$3292$426a7...@news.free.fr...
thanks for the answers
--
https://mail.python.org/mailman/listinfo/python-list
STINNER Victor added the comment:
Would it be possible to push the latest patch right now, and fix remaining
issues (if there are known issues?), before Python 3.4 alpha 1? According to
the PEP 478, the alpha 1 is scheduled for this sunday (February 8, 2015).
--
STINNER Victor added the comment:
- drop SelectSelector._modify(): calling unregister() + register() is just
fine
I checked with strace: PollSelector.modify() doesn't require any syscall, so I
propose to also drop it (to just call unregister + register). What do you think?
I would like to
Antoine Pitrou added the comment:
I just posted some review comments.
I also realized that it posted some older comments that I hadn't submitted
before... some of them may be obsolete, sorry :-/
--
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
Here is a patch which skips tests if there are no write access to the installed
location.
--
keywords: +patch
stage: needs patch - patch review
versions: +Python 2.7
Added file: http://bugs.python.org/file38021/issue17753.patch
STINNER Victor added the comment:
Updated patch with a less surprising _modify() method:
- the default implementation simply calls unregister() + register(), as before
- drop SelectSelector._modify(): calling unregister() + register() is just fine
--
Added file:
Changes by Anthony Sottile asott...@yelp.com:
--
nosy: +asottile
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16806
___
___
Python-bugs-list
On Wed, Feb 4, 2015 at 10:53 PM, Abhiram R abhi.darkn...@gmail.com wrote:
So is it possible to let everyone know that they need to paste their code
on
some site like pastebin.com and give us the link here so help can be
provided better?
Better would be to attach small code snippets.
I agree
Nick Coghlan added the comment:
I think in this case, the fact that it's easier to decompose an exception
into the corresponding triple rather than vice-versa, together with the
fact that other exception state manipulation APIs like exc_info() and
__exit__() methods work with triples, means it
On Fri, Feb 6, 2015 at 7:22 AM, Оlе Ѕtrеісhеr ole-usenet-s...@gmx.net wrote:
I am just trying to prepare a package (astropy) for (Debian) Hurd. This
os lacks a sem_open() implementation. When I now try:
import multiprocessing
q = multiprocessing.Queue()
I get an ImportError with Python 2.7,
Antoine Pitrou added the comment:
The solution of having two constructor classmethods actually seems nice
and symmetric to me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17911
___
On Thursday, 5 February 2015 21:01:21 UTC, Ian wrote:
Building on Rob's example:
def monopoly(throws, per=2, rerolls=3, sides=6):
all_dice = np.random.randint(1, sides+1, size=(throws, rerolls, per))
doubles = all_dice[...,0] == all_dice[...,1]
three_doubles = doubles[:,0]
Devin Jeanpierre wrote:
On Wed, Feb 4, 2015 at 1:18 PM, Chris Angelico ros...@gmail.com wrote:
On Thu, Feb 5, 2015 at 4:36 AM, Peter Otten __pete...@web.de wrote:
[result] = f()
result
Huh, was not aware of that alternate syntax.
Nor are most people. Nor is Python, in some places -- it
New submission from Barry A. Warsaw:
There is a subtle behavior difference between virtualenv and pyvenv. When you
create a venv with virtualenv, the symbolic links files venv/bin are
relative, while they are absolute with pyvenv. This means that virtual
environments created with virtualenv
I'm interested in prototyping a Monte Carlo type simulation algorithm in
Python. The background is that a friend has written a similar program in C++,
and I'm interested in seeing if I can achieve something comparable in a much
better language :-)
The basic job of the program will be to
On Thu, Feb 5, 2015 at 11:20 AM, Paul Moore p.f.mo...@gmail.com wrote:
I'm interested in prototyping a Monte Carlo type simulation algorithm in
Python. The background is that a friend has written a similar program in
C++, and I'm interested in seeing if I can achieve something comparable in
a
Tuple packing. No longer supported in Python 3, but in available in Python = 2.
Skip
On Thu, Feb 5, 2015 at 10:45 AM, Rustom Mody rustompm...@gmail.com wrote:
On Thursday, February 5, 2015 at 9:39:27 PM UTC+5:30, Ian wrote:
On Thu, Feb 5, 2015 at 2:40 AM, Steven D'Aprano wrote:
Devin
On Thursday, February 5, 2015 at 10:15:29 PM UTC+5:30, Rustom Mody wrote:
On Thursday, February 5, 2015 at 9:39:27 PM UTC+5:30, Ian wrote:
On Thu, Feb 5, 2015 at 2:40 AM, Steven D'Aprano wrote:
Devin Jeanpierre wrote:
On Wed, Feb 4, 2015 at 1:18 PM, Chris Angelico wrote:
On Thu, Feb
On Thursday, 5 February 2015 16:28:07 UTC, Joel Goldstick wrote:
have you googled python monte carlo?
Yes. And a number of other variations. None gave anything that seemed to
relate. It's quite likely though that I'm simply not understanding how things
like pymc (which came up in the
On Thursday, February 5, 2015 at 9:39:27 PM UTC+5:30, Ian wrote:
On Thu, Feb 5, 2015 at 2:40 AM, Steven D'Aprano wrote:
Devin Jeanpierre wrote:
On Wed, Feb 4, 2015 at 1:18 PM, Chris Angelico wrote:
On Thu, Feb 5, 2015 at 4:36 AM, Peter Otten wrote:
Another alternative is to put a list
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/issue18982
___
On 2015-02-05 08:45, Rustom Mody wrote:
def f(a, (b, c)):
... print a, b, c
What the hell is that?!
First I am hearing/seeing it.
Whats it called?
tuple parameter unpacking, removed in Py3
https://www.python.org/dev/peps/pep-3113/
-tkc
--
On Thu, 05 Feb 2015 08:20:41 -0800, Paul Moore wrote:
I'm interested in prototyping a Monte Carlo type simulation algorithm in
Python. The background is that a friend has written a similar program in
C++, and I'm interested in seeing if I can achieve something comparable
in a much better
On Fri, Feb 6, 2015 at 12:12 PM, Devin Jeanpierre
jeanpierr...@gmail.com wrote:
Here's another example, one that still exists in Python 3:
[] = ''
() = ''
File stdin, line 1
SyntaxError: can't assign to ()
The syntax explicitly blacklists (), but forgets to blacklist [].
So... this is
On Thu, Feb 5, 2015 at 8:08 AM, Ian Kelly ian.g.ke...@gmail.com wrote:
On Thu, Feb 5, 2015 at 2:40 AM, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
Devin Jeanpierre wrote:
On Wed, Feb 4, 2015 at 1:18 PM, Chris Angelico ros...@gmail.com wrote:
[result] = f()
result
42
Huh,
Ben Hoyt added the comment:
Victor, I'd love to push forward with this (I doubt it's going to make alpha 1
on February 8, but hopefully alpha 2 on March 8).
It seems pretty settled that we need to use the all-C version I've created,
especially for Linux.
Can you please review
STINNER Victor added the comment:
Updated patch:
- drop PollSelector._at_fork(): PollSelector is not shared with the parent
process
- _at_fork() of BaseEventLoop and SelectorEventLoop now do nothing by default:
only _UnixSelectorEventLoop._at_fork() handle the fork, nothing is needed on
Devin Jeanpierre wrote:
On Wed, Feb 4, 2015 at 1:18 PM, Chris Angelico ros...@gmail.com wrote:
On Thu, Feb 5, 2015 at 4:36 AM, Peter Otten __pete...@web.de wrote:
Another alternative is to put a list literal on the lefthand side:
def f(): yield 42
...
[result] = f()
result
42
Huh, was
STINNER Victor added the comment:
A workaround is to check (once) that the command set print entry-values no
and set print address off are supported.
Gdb provides its version in the Python API as a string: gdb.VERSION (ex:
'Fedora 7.8.2-38.fc21').
--
Serhiy Storchaka added the comment:
Here is a patch which adds command 'set print entry-values no' only for gdb
version = 7.4.
--
Added file: http://bugs.python.org/file38020/test_gdb_entry_values.patch
___
Python tracker rep...@bugs.python.org
STINNER Victor added the comment:
New changeset 5b5a581d91c8 by Serhiy Storchaka in branch '3.4':
Issue #22765: Fixed test_gdb failures. Supressed unexpected gdb output.
https://hg.python.org/cpython/rev/5b5a581d91c8
Since this change, test_gdb fails on AMD64 OpenIndiana 3.x:
On Wed, Feb 4, 2015 at 1:18 PM, Chris Angelico ros...@gmail.com wrote:
On Thu, Feb 5, 2015 at 4:36 AM, Peter Otten __pete...@web.de wrote:
Another alternative is to put a list literal on the lefthand side:
def f(): yield 42
...
[result] = f()
result
42
Huh, was not aware of that
Nick Coghlan added the comment:
+1 for having the base __init__ API be the exception triple and then a
TracebackException.from_exception() class method as an alternate constructor.
However, the redundancy between TracebackException.__init__() and
TracebackException.from_exc_tuple() feels very
On Wed, 04 Feb 2015 19:07:53 -0800, syed khalid wrote:
I downloaded this code and am attempting to run it. I keep getting
indentation error.
class EventHubClient(object):
def sendMessage(self,body,partition):eventHubHost =
pac-ns.servicebus.windows.net
httpclient =
paul added the comment:
ping
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23361
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22079
Giampaolo Rodola' added the comment:
Yes, it appears so. I would suggest to come up with a patch which overrides
modify() for all those selectors which can benefit from it (poll, epoll,
kqueue) and refactor register() / unregister() (for select) in a separate issue
/ patch. Also, I suppose a
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
stage: - needs patch
type: - performance
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18932
___
Roundup Robot added the comment:
New changeset 7b74c65758ca by Ned Deily in branch '2.7':
Issue #23212: Update OS X installer build OpenSSL to 1.0.1l.
https://hg.python.org/cpython/rev/7b74c65758ca
New changeset 1ddf68f118c7 by Ned Deily in branch '3.4':
Issue #23212: Update OS X installer
Changes by Ned Deily n...@acm.org:
--
resolution: - fixed
stage: needs patch - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23212
___
Giampaolo Rodola' added the comment:
I mean something like this (for epoll), as in avoiding to call unregister() /
register() at all:
diff -r 017e7391ab58 Lib/selectors.py
--- a/Lib/selectors.py Wed Feb 04 08:37:02 2015 -0800
+++ b/Lib/selectors.py Thu Feb 05 18:42:26 2015 +0100
@@ -412,6
New submission from Sergiy:
print(calendar.monthrange(2015,2))
(6, 28)
February has only 5 weeks.
--
components: Extension Modules
messages: 235440
nosy: skarpovsky
priority: normal
severity: normal
status: open
title: calendar.monthrange for February 2015
type: behavior
versions:
Antoine Pitrou added the comment:
That would be great!
--
nosy: +barry, pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23397
___
___
Geoffrey Spear added the comment:
Returns weekday of first day of the month and number of days in month, for the
specified year and month..
The 6 means February began on a Sunday, not that there are 6 weeks in the month.
--
nosy: +geoffreyspear
___
Ethan Furman added the comment:
https://docs.python.org/3/library/calendar.html#calendar.monthrange
--
nosy: +ethan.furman
resolution: - not a bug
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
Robert Collins added the comment:
I can certainly do that; I was aiming to make it fair I guess, given Antoines
strong feelings on this matter. As long as I'm not piggy-in-the-middle, I don't
have a care in this regard :)
--
___
Python tracker
Eldar Abusalimov added the comment:
I feel a bit uneasy, but... any news on this?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22735
___
___
Anthony Sottile added the comment:
Any updates on this? I'm running into this as well (still a problem in 3.4)
```$ python3.4
Python 3.4.2 (default, Oct 11 2014, 17:59:27)
[GCC 4.4.3] on linux
Type help, copyright, credits or license for more information.
import ast
Serhiy Storchaka added the comment:
Fixed in issue14099 for 3.5. Do you think that this solution should be
backported Martin?
An alternative solution of this issue would be to convert relative path to
absolute path in ZipFile constructor.
--
versions: -Python 3.2
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +nadeem.vawda
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23306
___
___
Serhiy Storchaka added the comment:
Looks as this bug was fixed in issue1710703.
--
nosy: +serhiy.storchaka
resolution: - out of date
stage: test needed - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
Changes by Vinson Lee v...@freedesktop.org:
--
keywords: +patch
Added file:
http://bugs.python.org/file38022/0001-Issue-23881-Only-use-entry-values-with-gdb-7.4.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23381
On Thursday, 5 February 2015 16:57:07 UTC, Rob Gaddi wrote:
You don't need the whole scipy stack, numpy will let you do everything
you want. The trick to working in numpy is to parallelize your problem;
you don't do a thing a thousand times; you do it on a thousand-length
array. For
On 2015-02-05 09:08, Ian Kelly wrote:
Got an example where you can use a,b but not [a,b] or (a,b)?
def f(a, (b, c)):
... print a, b, c
...
Interesting. I knew that at one point you could do this with lambdas
but never thought to do it with regular functions. There are times
this
Hi,
I am just trying to prepare a package (astropy) for (Debian) Hurd. This
os lacks a sem_open() implementation. When I now try:
import multiprocessing
q = multiprocessing.Queue()
I get an ImportError with Python 2.7, but an AttributeError with Python
3.4. In the documentation of
87 matches
Mail list logo