Hi again,
a small follow up release of devpi-server is out to fix setup.py
register/upload commands with basic auth.
best,
holger
devpi-server-2.0.1
- fix regression which prevented the basic authentication for the
setuptools upload/register commands to fail. Thanks
On Wed, Jul 16, 2014 at 3:52 PM, Marko Rauhamaa ma...@pacujo.net wrote:
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info:
On Tue, 15 Jul 2014 23:01:25 +0300, Marko Rauhamaa wrote:
In fact, I find the lazy use of Unicode strings at least as scary as
the lazy use of byte strings, especially
Chris Angelico ros...@gmail.com:
Python defaults to the most common case, where they're connected to a
console, and does its best to allow print() to write Unicode to any
console.
I don't know where you pull your statistics.
Be that as it may, the main purpose of sys.stdin is to receive the
On Wed, Jul 16, 2014 at 4:44 PM, Marko Rauhamaa ma...@pacujo.net wrote:
Chris Angelico ros...@gmail.com:
Python defaults to the most common case, where they're connected to a
console, and does its best to allow print() to write Unicode to any
console.
I don't know where you pull your
I completed the basic version of my learning app. (It can be found
here for those remotely interested:
http://www.tyresoschack.se/apps/LASK.py). (LASK rating usually are in
the range c 800 to c 2700 the higher the better).
It's just a simple tool to calculate LASK chess rating and completely
CLI
On Wed, 16 Jul 2014 14:20:37 +1000, Chris Angelico wrote:
On Wed, Jul 16, 2014 at 1:51 PM, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
Perhaps the *stupidest* thing the author of the Python 3 is killing
Python blog post wrote was that it's easier to port Python code to a
Kevin Walzer wrote:
On 7/15/14, 9:56 PM, Nicholas Cannon wrote:
I then put the .msi on sourceforge and it works great
but when i put the .app on there and download it it says something
like i can open this on old architecture or something so i have to put
it through google drive
It's hard
On Wed, 16 Jul 2014 08:52:31 +0300, Marko Rauhamaa wrote:
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info:
On Tue, 15 Jul 2014 23:01:25 +0300, Marko Rauhamaa wrote:
In fact, I find the lazy use of Unicode strings at least as scary as
the lazy use of byte strings, especially since
On 16/07/2014 00:53, Rick Johnson wrote:
Another thing that irritates is those people who insist on shouting LIKE
THIS throughout their posts.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free
On Wed, Jul 16, 2014 at 5:49 PM, Steven D'Aprano st...@pearwood.info wrote:
... Although I'm open to the suggestion
that maybe the Pythonic way to do that should be:
print(foo bar baz, file=foo.txt)
And I would argue against that suggestion, having worked with a
language where that's the
A little more off-topic:
On Wed, Jul 16, 2014 at 3:57 AM, MRAB pyt...@mrabarnett.plus.com wrote:
On 2014-07-16 00:53, Rick Johnson wrote:
Some folks even have software that blabs about how great a job it
is doing […], so if you see […] some pretentious line
about this was sent from my i-phone
Steven D'Aprano st...@pearwood.info:
Likewise for files: by default, I should be able to do this:
open(foo.txt, w).write(foo bar baz)
and have something sensible happen.
I'd prefer:
open(foo.txt, wt).write(foo bar baz)
or:
open(foo.txt, w, encoding=utf-8).write(foo bar baz)
or:
On Wed, 16 Jul 2014 18:44:38 +1000, Chris Angelico wrote:
On Wed, Jul 16, 2014 at 5:49 PM, Steven D'Aprano st...@pearwood.info
wrote:
... Although I'm open to the suggestion that maybe the Pythonic way to
do that should be:
print(foo bar baz, file=foo.txt)
And I would argue against that
On Wed, Jul 16, 2014 at 9:35 PM, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
What I had in mind was for print to open the file in append mode, write,
then close the file.
Ahh, okay. Very different from what I thought you were talking about,
and distinctly different in behaviour
On Wed, 16 Jul 2014 13:46:45 +0300, Marko Rauhamaa wrote:
Python 3 really is on a mission to elevate text into the mainstream at
the expense of bytes. I'm guessing this is done primarily to promote the
cross-platform transparency of Python code.
Ahead of bytes? Possibly. At the expense of
On Wed, Jul 16, 2014 at 10:10 PM, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
Linux, like all Unixes, is primarily a text-based platform. With a few
exceptions, /etc is filled with text files, not binary files, and half
the executables on the system are text (Python, Perl, bash,
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info:
With a few exceptions, /etc is filled with text files, not binary
files, and half the executables on the system are text (Python, Perl,
bash, sh, awk, etc.).
Our debate seems to stem from a different idea of what text is. To me,
text in
hi,
I am trying to create a .bat file where (among other things) Python will have
to be silently installed.
It needs to be installed to the non-default location c:\program
files\python27. Any idea how this can be done?
I keep getting the 'Help' menu, indicating that something went wrong. I've
On Wed, Jul 16, 2014 at 8:29 AM, Albert-Jan Roskam
fo...@yahoo.com.dmarc.invalid wrote:
hi,
I am trying to create a .bat file where (among other things) Python will have
to be silently installed.
It needs to be installed to the non-default location c:\program
files\python27. Any idea how
On 2014-07-16, Dennis Lee Bieber wlfr...@ix.netcom.com wrote:
On Tue, 15 Jul 2014 20:43:03 -0400, Kevin Walzer k...@codebykevin.com
declaimed the following:
On 7/15/14, 6:38 PM, Mark Lawrence wrote:
I did see your correction but it gave me an opportunity to mention
google groups, something
On Wed, Jul 16, 2014 at 11:11 PM, Marko Rauhamaa ma...@pacujo.net wrote:
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info:
With a few exceptions, /etc is filled with text files, not binary
files, and half the executables on the system are text (Python, Perl,
bash, sh, awk, etc.).
Our
Marko Rauhamaa ma...@pacujo.net wrote in message
news:87egxl4zq8@elektro.pacujo.net...
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info:
On Tue, 15 Jul 2014 23:01:25 +0300, Marko Rauhamaa wrote:
In fact, I find the lazy use of Unicode strings at least as scary as
the lazy use of
- Original Message -
From: Zachary Ware zachary.ware+pyl...@gmail.com
To: Albert-Jan Roskam fo...@yahoo.com
Cc: Python python-list@python.org
Sent: Wednesday, July 16, 2014 3:47 PM
Subject: Re: how to msi install Python to non-default target dir?
On Wed, Jul 16, 2014 at 8:29 AM,
Chris Angelico ros...@gmail.com:
On Wed, Jul 16, 2014 at 11:11 PM, Marko Rauhamaa ma...@pacujo.net wrote:
I would be especially wary of letting Python 3 interpret those files for
me. [...]
If you're reading your own config files, you can simply stipulate that
they are to be encoded UTF-8,
On Thu, Jul 17, 2014 at 12:27 AM, Frank Millman fr...@chagford.com wrote:
FWIW, here are my thoughts -
1. There were many backward-incompatible changes made in Python3, but the
only one that seems to cause problems is the change to the bytes/str types.
I agree that it is a big change, but the
On Thu, Jul 17, 2014 at 12:39 AM, Marko Rauhamaa ma...@pacujo.net wrote:
In other words, the well-meaning Python3 blindly obeys the locale even
though I simply stipulated that my input is UTF-8.
Except that you didn't - that input was not UTF-8. When you put a text
string as redirected input
On 7/16/2014 10:27 AM, Frank Millman wrote:
Would this have been so easy using Python2 - I don't think so. What follows
is blatant speculation, but it is quite possible that there are many
non-English speakers out there that have had their lives made much easier by
the changes to Python3 - a
Chris Angelico ros...@gmail.com:
On Thu, Jul 17, 2014 at 12:39 AM, Marko Rauhamaa ma...@pacujo.net wrote:
In other words, the well-meaning Python3 blindly obeys the locale even
though I simply stipulated that my input is UTF-8.
Except that you didn't - that input was not UTF-8. When you put
On Thu, Jul 17, 2014 at 1:48 AM, Marko Rauhamaa ma...@pacujo.net wrote:
it is dangerous to assume that the file formats agree with
the locale.
Of course. You never assume anything about encodings. What you do is
expect something about the encoding, and either throw an error if it's
wrong, or
On Wed, Jul 16, 2014 at 11:29 PM, Albert-Jan Roskam
fo...@yahoo.com.dmarc.invalid wrote:
It needs to be installed to the non-default location c:\program
files\python27.
Why must it? Are you aware that many programs have issues with spaces
in file names? That's one reason for Python's default
Chris Angelico ros...@gmail.com:
Why must it? Are you aware that many programs have issues with spaces
in file names? That's one reason for Python's default installation
location NOT being in the stupidly-named Program Files. Putting Python
there may cause trouble with, for instance, binary
Chris Angelico ros...@gmail.com:
The only thing that might be an issue is that you can't use open(fn)
to read your files, but you have to explicitly state the encoding.
That would be an understandable problem, especially for someone who
develops on a single platform and forgets that the
On Thu, Jul 17, 2014 at 2:22 AM, Marko Rauhamaa ma...@pacujo.net wrote:
Chris Angelico ros...@gmail.com:
Why must it? Are you aware that many programs have issues with spaces
in file names? That's one reason for Python's default installation
location NOT being in the stupidly-named Program
On Wed, Jul 16, 2014 at 9:33 AM, Albert-Jan Roskam fo...@yahoo.com wrote:
From: Zachary Ware zachary.ware+pyl...@gmail.com
Also, 'set' doesn't require quotes
around a value with spaces, and you're also quoting %PYTHONDIR% when
you use it in the msiexec command, so you're actually
Can you all stop already with the non python US bashing? Please?
Deb in WA, USA
Protect your computer files with professional cloud backup.
Get PCRx Backup and upload unlimited files automatically.
Learn more at
I don't see anyone taking the Python 2 source code and backporting a
bunch of Python 3 features (and/or adding a bunch of their own
features) and creating the Python 2.8 that
http://blog.startifact.com/guido_no.jpg rejects. What split is
actually occurring, or going to occur? I think anyone
On 16/07/2014 15:27, Frank Millman wrote:
This sub-thread is the most constructive one I have seen yet that deals with
the 'problems' that Python3 has created, and how to deal with them.
How many of the Python3 'problems' were backported to 2.7 or even 2.6?
--
My fellow Pythonistas, ask not
On Wed, Jul 16, 2014 at 11:02 PM, Deb Wyatt codemon...@inbox.com wrote:
Can you all stop already with the non python US bashing? Please?
Deb in WA, USA
--
https://mail.python.org/mailman/listinfo/python-list
I'm actually picking up a lot of snippets of information from that thread
by
On Wed, Jul 16, 2014 at 11:33 AM, Javier nos...@nospam.com wrote:
I think there has been a severe miscalculation, and the change in the
name of the interpreter python3 to python
http://legacy.python.org/dev/peps/pep-0394/ is a good example of the
disconnection between GvR and the real world.
On Wed, 16 Jul 2014 09:32:31 -0800, Deb Wyatt wrote:
Can you all stop already with the non python US bashing? Please?
Deb in WA, USA
Protect
your computer files with professional cloud backup.
Get PCRx Backup and upload
On Wed, Jul 16, 2014 at 11:32 AM, Deb Wyatt codemon...@inbox.com wrote:
Can you all stop already with the non python US bashing? Please?
I read it more as counter-US-glorification-trolling than bashing, but
in any case that subthread seems to have died down already, so you
should be safe to
On 16/07/2014 18:32, Deb Wyatt wrote:
Can you all stop already with the non python US bashing? Please?
Deb in WA, USA
rr started it with a fairly impressive piece of trolling but as you've
asked so politely I will happily oblige.
--
My fellow Pythonistas, ask not what our language can do
On Wed, Jul 16, 2014 at 11:40 AM, Mark Lawrence breamore...@yahoo.co.uk
wrote:
On 16/07/2014 18:32, Deb Wyatt wrote:
Can you all stop already with the non python US bashing? Please?
Deb in WA, USA
rr started it with a fairly impressive piece of trolling but as you've
asked so politely I
Buy Oxycontin online, Really amazing prices and Free bonuses!
Oxycontin BEST SITES FOUND!
Just FOLLOW url below!
**
http://drugeasy.biz/?q=Oxycontin - CLICK HERE!
**
Full information about usage, dosage,
Buy Tramadol online, Really amazing prices and Free bonuses!
Tramadol BEST SITES FOUND!
Just FOLLOW url below!
**
http://drugeasy.biz/?q=Tramadol - CLICK HERE!
**
Full information about usage, dosage,
On 16/07/2014 20:24, Jason Swails wrote:
On Wed, Jul 16, 2014 at 11:40 AM, Mark Lawrence breamore...@yahoo.co.uk
mailto:breamore...@yahoo.co.uk wrote:
On 16/07/2014 18:32, Deb Wyatt wrote:
Can you all stop already with the non python US bashing? Please?
Deb in WA, USA
On Wed, Jul 16, 2014 at 3:27 PM, Mark Lawrence breamore...@yahoo.co.uk wrote:
The difference between our most illustrious resident unicode expert and rr
Sorry, who is rr? I went looking in the referenced thread but found
nobody with those initials. Not so helpfully, Gmail elides most sigs,
so I
On 7/16/2014 3:49 AM, Steven D'Aprano wrote:
There are certainly use-cases for stdin and stdout to use bytes, but
there are also use-cases for them to deal with strings. I'll certainly
grant you that there ought to be an easy way to get access to the binary
streams,
As has been discussed
On 2014-07-16 21:40, Skip Montanaro wrote:
On Wed, Jul 16, 2014 at 3:27 PM, Mark Lawrence breamore...@yahoo.co.uk wrote:
The difference between our most illustrious resident unicode expert and rr
Sorry, who is rr? I went looking in the referenced thread but found
nobody with those initials.
On 07/16/2014 02:32 PM, MRAB wrote:
On 2014-07-16 21:40, Skip Montanaro wrote:
Sorry, who is rr? I went looking in the referenced thread but found
nobody with those initials. Not so helpfully, Gmail elides most sigs,
so I couldn't reliably scan the full text either.
rr is
On Wednesday, July 16, 2014 9:27:56 AM UTC-5, Frank Millman wrote:
2. Those adversely affected by the change are very vocal,
but we hear very little from those who have benefited from
it. This is to be expected - they are just getting on with
developing in Python3 and have no need to get
On 7/16/2014 5:02 PM, Terry Reedy wrote:
On 7/16/2014 3:49 AM, Steven D'Aprano wrote:
There are certainly use-cases for stdin and stdout to use bytes, but
there are also use-cases for them to deal with strings. I'll certainly
grant you that there ought to be an easy way to get access to the
On 16/07/2014 23:41, Rick Johnson wrote:
Not to mention that at some point, when the numbers get low
*enough*, maintaining a project as big as Python becomes
untenable.
I'm not aware of any mass exodus from core Python 3 to the fork that has
consistently proposed to give the world Python
2014-07-15 14:20 GMT+02:00 Valery Khamenya khame...@gmail.com:
Hi,
both asyncio.as_completed() and asyncio.wait() work with lists only. No
generators are accepted. Are there anything similar to those functions that
pulls Tasks/Futures/coroutines one-by-one and processes them in a limited
On Wednesday, July 16, 2014 6:00:16 PM UTC-5, Mark Lawrence wrote:
I'm not aware of any mass exodus from core Python 3 to the
fork that has consistently proposed to give the world
Python 2.8. Do you know something that I don't?
Well, currently at least, we don't even *need* a Python 2.8,
not
On Wed, Jul 16, 2014 at 1:27 PM, Mark Lawrence breamore...@yahoo.co.uk
wrote:
The difference between our most illustrious resident unicode expert and rr
is that the former has only said anything of use once, whereas the latter
does know about tkinter/IDLE. rr doesn't show up that often, the
On Wed, 16 Jul 2014 19:20:14 +0300, Marko Rauhamaa wrote:
Chris Angelico ros...@gmail.com:
The only thing that might be an issue is that you can't use open(fn) to
read your files, but you have to explicitly state the encoding. That
would be an understandable problem, especially for someone
On Wed, 16 Jul 2014 18:16:16 -0700, Rick Johnson wrote:
On Wednesday, July 16, 2014 6:00:16 PM UTC-5, Mark Lawrence wrote:
I'm not aware of any mass exodus from core Python 3 to the fork that
has consistently proposed to give the world Python 2.8. Do you know
something that I don't?
Well,
On Thu, Jul 17, 2014 at 12:51 PM, Steven D'Aprano st...@pearwood.info wrote:
Most programming languages are written for
J. Random Hacker, not Jランダムハッカー.
I had to paste that into Google Translate to be able to understand
what you meant (although I could guess just fine)... but to actually
see
On Wed, 16 Jul 2014 15:41:38 -0700, Rick Johnson wrote:
I personally know of few major software developers, who whilst
shopping for a scripting language for their API, wanted to integrate
Python because of it's clean syntax and auto-encapsulation, but they
where forced to choose *another*
On Thu, Jul 17, 2014 at 11:16 AM, Rick Johnson
rantingrickjohn...@gmail.com wrote:
But i think that when the time arrives, the someone, or
some entity will inevitably decide that, whilst Python2.x
was the best high level language available to date, it has
many flaws that cannot be worked
On Jul 15, 2014, at 3:11 AM, u2107 phani@gmail.com wrote:
I am trying to read a file with 3 columns with col 1 and 2 as nodes/edges and
column 3 as weight (value with decimal)
I am trying to execute this code
import networkx as nx
G = nx.read_edgelist('file.txt',
Steven D'Aprano st...@pearwood.info wrote:
For what little it is worth, if any one country won World War Two, it was
the USSR.
I don't think that's quite accurate. It is certainly true that the USSR
suffered vastly more casualties than any participant in the war,
essentially losing one entire
MRAB pyt...@mrabarnett.plus.com wrote:
On 2014-07-16 00:53, Rick Johnson wrote:
On Tuesday, July 15, 2014 5:40:29 PM UTC-5, Abhiram R wrote:
...or some pretentious line
about this was sent from my i-phone -- send that crap to the
bitbucket!
This was sent from my iPhone == I have an iPhone!
On Wed, 16 Jul 2014 11:50:24 -0600, Ian Kelly wrote:
On Wed, Jul 16, 2014 at 11:33 AM, Javier nos...@nospam.com wrote:
I think there has been a severe miscalculation, and the change in the
name of the interpreter python3 to python
http://legacy.python.org/dev/peps/pep-0394/ is a good example
On Thu, Jul 17, 2014 at 6:40 AM, Skip Montanaro s...@pobox.com wrote:
On Wed, Jul 16, 2014 at 3:27 PM, Mark Lawrence breamore...@yahoo.co.uk
wrote:
The difference between our most illustrious resident unicode expert and rr
Sorry, who is rr? I went looking in the referenced thread but found
On Thu, Jul 17, 2014 at 1:20 PM, Tim Roberts t...@probo.com wrote:
MRAB pyt...@mrabarnett.plus.com wrote:
On 2014-07-16 00:53, Rick Johnson wrote:
On Tuesday, July 15, 2014 5:40:29 PM UTC-5, Abhiram R wrote:
...or some pretentious line
about this was sent from my i-phone -- send that crap to
On 15/07/2014 3:28 PM, Steven D'Aprano wrote:
# === module params.py ===
class Params(object):
a = 1
b = 2
@property
def c(self):
return self.a**2 + self.b**2 - self.a + 1
params = Params()
del Params # hide the class
Then callers just say:
from params import
Abhiram R abhi.darkn...@gmail.com writes:
Aah. Understood. Apologies for the noobishness :)
Thanks for understanding. Here is a good explanation of “Interleaved style”
URL:https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
which is the proper etiquette for text-based discussions.
Chris “Kwpolska” Warrick kwpol...@gmail.com writes:
Also, the correct solution for all those is getting a sane client that
can hide quotes and signatures.
No, there is often useful (or at least interesting) information in a
message signature block; the problem is with *some* of them, not all
On Wed, 16 Jul 2014 17:33:44 +, Javier wrote:
2.8 fork anybody?
It already exists. It is called 2.7, and 2.6 before that. Python 3.0 came
out on December 3rd, 2008, a couple of weeks before the last release of
2.4 and in parallel with 2.5 (2.4.6 and 2.5.3 both came out on the 19th
On Thu, 17 Jul 2014 13:35:24 +1000, alex23 wrote:
It's a shame the property decorator doesn't work at the module level,
though.
Not necessarily the property decorator, but some sort of computed
variable would be nice.
--
Steven
--
https://mail.python.org/mailman/listinfo/python-list
On Wednesday, July 16, 2014 10:16:00 PM UTC-5, Steven D'Aprano wrote:
If they are shopping for a scripting language, that
means they don't have one yet. Which means their users
have no existing scripts that need to be ported from
Python 2 to 3. Whatever language is chosen, whether it is
Ruby,
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote in message
news:53c66ba8$0$9505$c3e8da3$54964...@news.astraweb.com...
E.g. having babc[0] return 97 instead of ba was probably a mistake,
but there are four versions of Python 3.x that do it that way and it's
too late to change until
On Wednesday, July 16, 2014 10:18:56 PM UTC-5, Tim Roberts wrote:
Steven D'Aprano wrote:
For what little it is worth, if any one country won World War Two, it was
the USSR.
I don't think that's quite accurate. It is certainly true
that the USSR suffered vastly more casualties than any
Rick Johnson wrote:
*ANY* army can rape/kill women and children and raise peasant
villages to the ground!
So... the villages were underground before?
--
Greg
--
https://mail.python.org/mailman/listinfo/python-list
On Thu, Jul 17, 2014 at 3:15 PM, Rick Johnson
rantingrickjohn...@gmail.com wrote:
*ANY* army can rape/kill women and children and raise peasant
villages to the ground!
That would be raze, unless those villages grow like potatoes.
ChrisA
--
https://mail.python.org/mailman/listinfo/python-list
On 15/07/2014 11:57 PM, Kevin Walzer wrote:
The number of language revisions that result in deliberate, code-level
incompatibility out there is pretty small. People rightly expect that
code written for version 2.x of a language will continue to work with
version 3.x, even if 3.x is designed to
On 07/16/2014 08:35 PM, alex23 wrote:
On 15/07/2014 3:28 PM, Steven D'Aprano wrote:
# === module params.py ===
class Params(object):
a = 1
b = 2
@property
def c(self):
return self.a**2 + self.b**2 - self.a + 1
params = Params()
del Params # hide the class
Then
Serhiy Storchaka added the comment:
- when stdin is a pipe (ex: echo abc|python ...), the stdin encoding
becomes cp1252 (ANSI code page) because os.device_encoding(0) returns None;
cp1252 is the result of locale.getpreferredencoding(False) (ANSI code page).
sys.stdin.readline() does not
Claudiu Popa added the comment:
It works in IDLE because it registers a custom pickling for code objects, in
idlelib.rpc:
copyreg.pickle(types.CodeType, pickle_code, unpickle_code)
where pickle_code / unpickle_code calls marshal.dumps/loads.
Although, I admit that this is weird. If
Serhiy Storchaka added the comment:
Thank you Zach. I found even small regression.
Before:
$ ./python -m timeit -s x = 10 x+x; x+x; x+x; x+x; x+x; x+x; x+x; x+x; x+x;
x+x
100 loops, best of 3: 1.51 usec per loop
After:
$ ./python -m timeit -s x = 10 x+x; x+x; x+x; x+x; x+x; x+x; x+x;
Bohuslav Slavek Kabrda added the comment:
Hi, so I'm not sure I understand this correctly. AFAICS there are two patches
in issue 14443 that are, to certain degree, independent. As for the patch that
overrides __os_install_post [1], that is no longer needed in RHEL 7, since the
line
Changes by STINNER Victor victor.stin...@gmail.com:
--
Removed message: http://bugs.python.org/msg223179
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21955
___
Changes by STINNER Victor victor.stin...@gmail.com:
Added file: http://bugs.python.org/file35965/inline.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21955
___
STINNER Victor added the comment:
bench_long.py: micro-benchmark for x+y. I confirm a slow down with 21955.patch.
IMO you should at least inline PyLong_AsLong() which can be simplified if the
number has 0 or 1 digit. Here is my patch inline.patch which is 21955.patch
with PyLong_AsLong()
STINNER Victor added the comment:
bench_long.py: micro-benchmark for x+y. I confirm a slow down with 21955.patch.
IMO you should at least inline PyLong_AsLong() which can be simplified if the
number has 0 or 1 digit. Here is my patch inline.patch which is 21955.patch
with PyLong_AsLong()
STINNER Victor added the comment:
rdmurray@pydev:~/python/p34python -c 'import resource;
print(resource.getrlimit(resource.RLIMIT_NOFILE))'
(1024L, 1048576L)
Oh, 1 million files is much bigger than 4 thousand files (4096).
The test should only test FD_SETSIZE + 10 files, the problem is to
STINNER Victor added the comment:
Task was destroyed but it is pending! messages come from the issue #21163, I
know that I have to make these messages quiet and I don't know yet how to fix
this.
Read pipe 9 connected: ... until the end output was specific to the issue
#21645. I created a
Roundup Robot added the comment:
New changeset 1ff9ce2204ee by Victor Stinner in branch 'default':
Issue #21645, #21985: Remove debug code
http://hg.python.org/cpython/rev/1ff9ce2204ee
--
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 1ff9ce2204ee by Victor Stinner in branch 'default':
Issue #21645, #21985: Remove debug code
http://hg.python.org/cpython/rev/1ff9ce2204ee
--
nosy: +python-dev
___
Python tracker rep...@bugs.python.org
Changes by STINNER Victor victor.stin...@gmail.com:
--
components: +asyncio
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21985
___
___
Changes by STINNER Victor victor.stin...@gmail.com:
--
title: Race condition in signal handling on FreeBSD - asyncio: Race condition
in signal handling on FreeBSD
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21645
New submission from Serhiy Storchaka:
Currently timeit has significant iterating overhead when tests fast statements.
Such overhead makes hard to measure effects of microoptimizations. To decrease
overhead and get more precise results we should repeat tested statement many
times:
$ ./python
Serhiy Storchaka added the comment:
Confirmed speed up about 20%. Surprisingly it affects even integers outside of
the of preallocated small integers (-5...255).
Before:
$ ./python -m timeit -s x=10 x+x
1000 loops, best of 3: 0.143 usec per loop
$ ./python -m timeit -s x=1000 x+x
Changes by Serhiy Storchaka storch...@gmail.com:
--
title: Decrease iterating overhead it timeit - Decrease iterating overhead in
timeit
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21988
Steven D'Aprano added the comment:
Looks good, but I think it is better to have an unroll option rather than do
it automatically. I'm okay with the default being to unroll, but sometimes I
want to compare the speed between different versions of Python, and having
unroll=False to ensure the
Nick Coghlan added the comment:
Thanks Slavek. That means this bug doesn't affect RHEL 7 or CentOS 7, and if it
affects the Python 3 software collections on RHEL/CentOS 6, we can potentially
deal with it on the collection side of things.
Accordingly, closing this as a problem for downstream
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21965
___
___
Python-bugs-list
Jason R. Coombs added the comment:
Here I use the british pound symbol to attempt to answer that question. I've
disabled the environment variable PYTHONIOENCODING and not set any code page or
loaded any other Powershell profile settings.
PS C:\Users\jaraco echo £
£
PS C:\Users\jaraco chcp
1 - 100 of 250 matches
Mail list logo