==
Announcing bcolz 0.7.2
==
What's new
==
This is a maintenance release that fixes various bits and pieces.
Importantly, compatibility with Numpy 1.9 and Cython 0.21 has been fixed
and the test suit no longer segfaults on 32 bit UNIX.
Howdy all,
I'm hoping that the problem I currently have is one already solved,
either in the Python standard library, or with some well-tested obvious
code.
A program I'm working on needs to access a set of files locally; they're
just normal files.
But those files are local cached copies of
On Mon, Oct 13, 2014 at 5:36 PM, Ben Finney ben+pyt...@benfinney.id.au wrote:
So this is something similar to an HTTP object cache. Except where those
are usually URL-focussed with the local files a hidden implementation
detail, I want an API that focusses on the local files, with the remote
On Mon, Oct 13, 2014 at 1:31 PM, Rustom Mody rustompm...@gmail.com wrote:
Hearing a bit about docker nowadays.
Here's why its supposedly better than a VM:
https://www.docker.com/whatisdocker/
Downsides?? No idea!
One obvious downside is that it doesn't allow guests to modify the OS
at all.
On Monday, October 13, 2014 1:24:27 PM UTC+5:30, Chris Angelico wrote:
On Mon, Oct 13, 2014 at 1:31 PM, Rustom Mody wrote:
Hearing a bit about docker nowadays.
Here's why its supposedly better than a VM:
https://www.docker.com/whatisdocker/
Downsides?? No idea!
One obvious downside is
On Mon, 13 Oct 2014 05:43:10 +1100, Chris Angelico wrote:
On Mon, Oct 13, 2014 at 5:38 AM, Tony the Tiger tony@tiger.invalid
wrote:
colour = 'red' if colour == 'blue' else 'blue'
I call that a subtle bug that most likely will jump up and bite your
behind when you least expect it.
More
On 10/12/2014 07:08 PM, Shiva wrote:
while ans.lower() != 'yes' or ans.lower()[0] != 'y':
ans = input('Do you like python?')
I personally consider double negations less intuitive than following:
while not( ans.lower() == 'yes' and ans.lower()[0] == 'y' ):
Reading this line yoy would
I am getting this error trying to use a python27 pip install of stuff which ends
up requiring pysqlite=2.6.3,2.7
building 'pysqlite2._sqlite' extension
creating build\temp.win-amd64-2.7
creating build\temp.win-amd64-2.7\Release
creating build\temp.win-amd64-2.7\Release\src
c:\Program Files
Ian Kelly ian.g.ke...@gmail.com Wrote in message:
On Sun, Oct 12, 2014 at 6:55 AM, roro codeath rorocode...@gmail.com wrote:
How to implement it in my class?
class Str(str):
def __init__(self, *args, **kwargs):
pass
Str('smth', kwarg='a')
The error is coming from the __new__
Dave Angel wrote:
Ian Kelly ian.g.ke...@gmail.com Wrote in
message:
On Sun, Oct 12, 2014 at 6:55 AM, roro codeath
rorocode...@gmail.com wrote:
How to implement it in my class?
class Str(str):
def __init__(self, *args, **kwargs):
pass
Str('smth', kwarg='a')
The error is
Dear All,
How to write a program for reading or parsing the XML file in Sub root Wise.
For ex:
Below XMl, I want to read/ parse first country details and here also two year
tag values are there.. Here I need to read/parse first year value only measn
'2008' Only..After that I need to read
On Mon, Oct 13, 2014 at 7:31 PM, Gelonida N gelon...@gmail.com wrote:
Taking into account the Steven's suggestion about using the 'in' expression
it could be:
while True:
ans = input('Do you like python?')
if ans.lower() in ('yes', 'y'):
break
Or, even simpler: Use an
Chris Angelico ros...@gmail.com:
Or, even simpler: Use an active condition.
while input('Do you like python?') not in ('yes', 'y'): pass
Instead of the traditional pull technology, you could take advantage
of the state-of-the-art push approach:
print(You must love python -- everybody
On Mon, Oct 13, 2014 at 6:59 AM, Chris Angelico ros...@gmail.com wrote:
while input('Do you like python?') not in ('yes', 'y'): pass
Unfortunately, you probably have to account for people who SHOUT:
while input('Do you like python?').lower() not in ('yes', 'y'): pass
wink
Skip
--
On Mon, Oct 13, 2014 at 11:10 PM, Skip Montanaro
skip.montan...@gmail.com wrote:
On Mon, Oct 13, 2014 at 6:59 AM, Chris Angelico ros...@gmail.com wrote:
while input('Do you like python?') not in ('yes', 'y'): pass
Unfortunately, you probably have to account for people who SHOUT:
while
On Mon, Oct 13, 2014 at 11:09 PM, Marko Rauhamaa ma...@pacujo.net wrote:
Chris Angelico ros...@gmail.com:
Or, even simpler: Use an active condition.
while input('Do you like python?') not in ('yes', 'y'): pass
Instead of the traditional pull technology, you could take advantage
of the
On Mon, Oct 13, 2014 at 7:00 PM, Rustom Mody rustompm...@gmail.com wrote:
On Monday, October 13, 2014 1:24:27 PM UTC+5:30, Chris Angelico wrote:
On Mon, Oct 13, 2014 at 1:31 PM, Rustom Mody wrote:
Hearing a bit about docker nowadays.
Here's why its supposedly better than a VM:
On 10/12/14 9:33 AM, Albert-Jan Roskam wrote:
Hi,
(sorry for cross-posting)
A few days ago I needed to check whether some Python code ran with Python 2.6.
What is the easiest way to install another Python version along side the
default Python version? My own computer is Debian Linux 64 bit,
On Mon, Oct 13, 2014 at 5:39 AM, Venugopal Reddy
venugopal.re...@tspl.com wrote:
Dear All,
How to write a program for reading or parsing the XML file in Sub root Wise.
I don't know what Sub root Wise is. You can find an overview of
Python's XML parsing interfaces at
On Mon, 13 Oct 2014 09:56:02 +1100
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote:
When you have multiple clauses in the condition, it's easier to reason about
them if you write the clauses as positive statements rather than negative
statements, that is, something is true rather
On Monday, October 13, 2014 9:43:03 PM UTC+5:30, Rob Gaddi wrote:
On Mon, 13 Oct 2014 09:56:02 +1100
Steven D'Aprano wrote:
When you have multiple clauses in the condition, it's easier to reason about
them if you write the clauses as positive statements rather than negative
statements,
On Mon, 13 Oct 2014 09:26:57 -0700 (PDT)
Rustom Mody rustompm...@gmail.com wrote:
On Monday, October 13, 2014 9:43:03 PM UTC+5:30, Rob Gaddi wrote:
On Mon, 13 Oct 2014 09:56:02 +1100
Steven D'Aprano wrote:
When you have multiple clauses in the condition, it's easier to reason
about
On Monday, October 13, 2014 10:13:20 PM UTC+5:30, Rob Gaddi wrote:
On Mon, 13 Oct 2014 09:26:57 -0700 (PDT)
Rustom Mody wrote:
On Monday, October 13, 2014 9:43:03 PM UTC+5:30, Rob Gaddi wrote:
On Mon, 13 Oct 2014 09:56:02 +1100
Steven D'Aprano wrote:
When you have multiple clauses
Hi,
I have a text file. Now it is required to select every other line of that text
to
generate a new text file. I have read through Python grammar, but still lack
the
idea at the beginning of the task. Could you tell me some methods to get this?
Thanks,
--
On Tue, Oct 14, 2014 at 4:38 AM, Rff rw...@avnera.com wrote:
I have a text file. Now it is required to select every other line of that
text to
generate a new text file. I have read through Python grammar, but still lack
the
idea at the beginning of the task. Could you tell me some methods
In 3be64ca8-d2e7-493a-b4f3-ef114f581...@googlegroups.com Rff
rw...@avnera.com writes:
Hi,
I have a text file. Now it is required to select every other line of that
text to generate a new text file. I have read through Python grammar, but
still lack the idea at the beginning of the task.
On 10/13/2014 10:38 AM, Rff wrote:
Hi,
I have a text file. Now it is required to select every other line of that text
to
generate a new text file. I have read through Python grammar, but still lack
the
idea at the beginning of the task. Could you tell me some methods to get this?
Thanks,
On 13/10/2014 18:48, John Gordon wrote:
In 3be64ca8-d2e7-493a-b4f3-ef114f581...@googlegroups.com Rff
rw...@avnera.com writes:
Hi,
I have a text file. Now it is required to select every other line of that
text to generate a new text file. I have read through Python grammar, but
still lack the
On 10/13/2014 11:02 AM, Mark Lawrence wrote:
Why bother to initialise a counter when you can get the enumerate
function to do all the work for you?
I see it as a question of addressing the audience.
Emile
--
https://mail.python.org/mailman/listinfo/python-list
Trying to get scipy 0.14 running on python 3.4.1 on SLES 11 SP2 LINUX system.
Scipy seemed to compile fine using the command python setup.py install but
when I try the scipy.test(full), I get errors regarding gfortran. I am using
GCC(gfortran) version 4.9.1.
The error states that
On Mon, Oct 13, 2014 at 2:11 PM, emile em...@fenx.com wrote:
On 10/13/2014 11:02 AM, Mark Lawrence wrote:
Why bother to initialise a counter when you can get the enumerate
function to do all the work for you?
I see it as a question of addressing the audience.
Emile
I don't agree with the
On 2014-10-13, Chris Angelico ros...@gmail.com wrote:
On Tue, Oct 14, 2014 at 4:38 AM, Rff rw...@avnera.com wrote:
I have a text file. Now it is required to select every other line of that
text to
generate a new text file. I have read through Python grammar, but still
lack the
idea at
On 2014-10-13 10:38, Rff wrote:
Hi,
I have a text file. Now it is required to select every other line
of that text to generate a new text file. I have read through
Python grammar, but still lack the idea at the beginning of the
task. Could you tell me some methods to get this?
You could
On 2014-10-13 14:45, Joel Goldstick wrote:
Not apropos to the OP, but what came up in my mind was to write a
generator function that returns every other line. This would
separate the reading from the writing code.
You mean like
offset = 0 # or 1 if you prefer
for line in
On 10/13/2014 12:12 PM, Tim Chase wrote:
You mean like
offset = 0 # or 1 if you prefer
for line in itertools.islice(source_iter, offset, None, 2):
do_something(line)
I certainly did. Learning the python standard library is different from
learning python and each in its own
On 10/13/2014 4:31 PM, Dennis Lee Bieber wrote:
On Mon, 13 Oct 2014 10:49:27 +0100, Robin Becker ro...@reportlab.com
declaimed the following:
c:\users\rptlab\tmp\tmcallister\build\pysqlite\src\connection.h(33) : fatal
error C1083: Cannot open include file: 'sqli
te3.h': No such file or
On 10/10/2014 04:22 PM, Juan Christian wrote:
Maybe that's because I feel the Django doc a bit confuse, I tried reading
(and practicing!) tutorials, official doc, books, and so on, but I can't
quite understand the whole thing.
Is Flask really underestimated? Can you guys mention big name
On 10/13/2014 11:12 AM, Rustom Mody wrote:
On Monday, October 13, 2014 10:13:20 PM UTC+5:30, Rob Gaddi wrote:
On Mon, 13 Oct 2014 09:26:57 -0700 (PDT)
Rustom Mody wrote:
On Monday, October 13, 2014 9:43:03 PM UTC+5:30, Rob Gaddi wrote:
On Mon, 13 Oct 2014 09:56:02 +1100
Steven D'Aprano
On Mon, 13 Oct 2014 10:38:48 -0700, Rff wrote:
I have a text file. Now it is required to select every other line of
that text to
generate a new text file. I have read through Python grammar, but still
lack the idea at the beginning of the task. Could you tell me some
methods to get this?
On Mon, Oct 13, 2014 at 10:38 AM, Rff rw...@avnera.com wrote:
Hi,
I have a text file. Now it is required to select every other line of that
text to
generate a new text file. I have read through Python grammar, but still lack
the
idea at the beginning of the task. Could you tell me some
Hi,
I have a log file which has lot of information like..SQL query.. number of
records read...records loaded etc..
My requirement is i would like to read the SQL query completly and write it to
another txt file.. also the log file may not be always same so can not make
static choices...
my
On 10/12/2014 08:05 PM, ryguy7272 wrote:
Ah!!! I didn't know I needed to run it from the command prompt! Ok, not
it makes sense, and everything works.
Thanks to all!
You don't have to run python apps from the command line. Apps that
throw up windows can usually be run by
On 14/10/2014 11:47 AM, Sagar Deshmukh wrote:
I have a log file which has lot of information like..SQL query.. number of
records read...records loaded etc..
My requirement is i would like to read the SQL query completly and write it to
another txt file..
Generally we encourage people to post
New submission from josch:
I recently realized that the output of the following is different between 32
bit and 64 bit architectures:
PYTHONHASHSEED=0 python3 -c 'print(hash(a))'
In my case, I'm running some test cases which involve calling a Python module
which creates several hundred
Cristian Baboi added the comment:
I don't know if it is a documentation error for I've not read it yet.
Maybe the best way is to put a shortcut to idle in the main directory where the
python is.
On 12 octombrie 2014 22:43:48 EEST, R. David Murray rep...@bugs.python.org
wrote:
R. David Murray
Anselm Kruis added the comment:
It's indeed a very low priority issue.
You mention VS2008 and VS2010 PGO compiler bugs. I'm aware of the VS 2010 bugs,
but I didn't observe any VS 2008 PGO bug with Python 2.7. Are you aware of any
publicly available bug reports?
About the black/white list. I
Georg Brandl added the comment:
While I can feel your pain regarding the use case you describe, I don't think
this has enough general value to add to CPython. It is not really related to
PYTHONHASHSEED, since we never made guarantees about hash values being stable
across platforms and Python
Changes by Georg Brandl ge...@python.org:
--
resolution: - not a bug
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9311
___
Serhiy Storchaka added the comment:
You left this issue number off your tkinter test updates, such as
f6f098bdb843.
This is minor change. Actually, it should be done yet in issue22236, I had
just missed it, because these warnings was produced only in 2.7.
By using .update_idletasks instead
josch added the comment:
Thank you for your quick reply.
Yes, as I wrote above there are ways around it by creating a stable in-memory
representation and comparing that to a stable in-memory representation of the
expected output. Since both input are several hundred megabytes in size, this
Serhiy Storchaka added the comment:
PyShell imports non-idlelib modules, including re, before idlelib modules,
such as rpc. So the re addition is there, though I strongly doubt that
compiled regexs are every sent to the user process.
But we can't guarantee that this alway will be so. Other
Georg Brandl added the comment:
Would your decision be more favorable if you received a patch implementing
this feature?
I'll keep this on pending for other devs to weigh in with opinions.
In general, we are not keen on keeping text representations stable, as they do
not form part of the
Serhiy Storchaka added the comment:
Ah, ASCII locale...
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13664
___
___
Python-bugs-list mailing
Roundup Robot added the comment:
New changeset 7657cc08d29b by Serhiy Storchaka in branch '2.7':
Fixed the test of issue #13664 on platforms without unicode filenames support.
https://hg.python.org/cpython/rev/7657cc08d29b
--
___
Python tracker
Andy Maier added the comment:
@Guido:
Agree to all you said in your #msg226496.
There is additional information about comparison in:
- Tutorial (5.8. Comparing Sequences and Other Types),
- Library Reference (5.3. Comparisons),
- Language Reference (3.3.1. Basic customization)
that needs to be
Serhiy Storchaka added the comment:
There is one downside of my solution. For now the code uses current builtin
open() which can be overloaded (to handle reading from ZIP archive for example,
or to check permissions). With my solution it uses builtin open() at the time
of import. I don't know
Andy Maier added the comment:
I reviewed the issues discussed here and believe that the patch for #Issue
12067 adresses all of them (and yes, it is large, unfortunately).
It became large because I think that more needed to be fixed. May I suggest to
review that patch.
Andy
--
nosy:
Mark Dickinson added the comment:
Antoine: is it okay to close this as wont fix?
--
assignee: - mark.dickinson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22590
___
Antoine Pitrou added the comment:
Yep, it's ok.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22590
___
___
Python-bugs-list mailing list
Changes by Raúl Cumplido raulcumpl...@gmail.com:
--
nosy: +raulcd
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22417
___
___
Python-bugs-list
Changes by Mark Dickinson dicki...@gmail.com:
--
resolution: - wont fix
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22590
___
Serhiy Storchaka added the comment:
I don't understand why you want to remove more files than before. You may
open a different issue, or at least explain the rationale.
I thought it would be good idea slightly extend this cleanup while we are
here. I'm not motivated enough to open a
Rishi added the comment:
My observation is that a file with more than normal (exact numbers below)
line-feed characters takes way too long.
I tried porting the above patch to my default branch, but it has some boundary
and CRLF/LF issues, but more importantly it relies on seeking the
Andy Maier added the comment:
Uploading v10 of the patch, which addresses all review comments made on v9.
There is one open question back to Martin Panter about which different types of
byte sequences can be compared in Py 3.4.
I also believe this patch addresses all of Issue 22001. Let me
Changes by Larry Hastings la...@hastings.org:
--
title: make clinic doesn't work - Argument Clinic doesn't support the type
argument for the int converter
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22615
Roundup Robot added the comment:
New changeset c0224ff67cdd by Larry Hastings in branch 'default':
Issue #22615: Argument Clinic now supports the type argument for the
https://hg.python.org/cpython/rev/c0224ff67cdd
--
nosy: +python-dev
___
Python
Changes by Larry Hastings la...@hastings.org:
--
assignee: - larry
resolution: - fixed
status: open - closed
type: - compile error
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22615
___
New submission from towb:
This generates an XML declaration:
import xml.etree.ElementTree as ET
root = ET.Element('rss', version='2.0')
tree = ET.ElementTree(root)
tree.write('test.xml', encoding='iso-8859-1', xml_declaration=True)
However the declaration disappears if your
Changes by Martin Dengler mar...@martindengler.com:
--
nosy: +mdengler
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20954
___
___
Martin Dengler added the comment:
Just got hit with this in 2.7.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20954
___
___
Python-bugs-list
Andy Maier added the comment:
Here is the delta between v9 and v10 of the patch, if people want to see just
that.
--
Added file:
http://bugs.python.org/file36897/issue12067-expressions-py34_delta-v9-v10.diff
___
Python tracker
Antoine Pitrou added the comment:
Thanks, Larry!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22615
___
___
Python-bugs-list mailing list
Serhiy Storchaka added the comment:
I think there is nothing more to do here and the issue can be closed.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20079
___
New submission from Link Mauve:
Many POSIX functions aren’t available on every system, especially embedded ones.
The first patch introduces guards around some of these functions and add them
to AC_CHECK_FUNCS in the configure.ac; the second one recompile every changed
generated file, using
Changes by Link Mauve b...@linkmauve.fr:
--
keywords: +patch
Added file: http://bugs.python.org/file36898/f3cf19e38efe.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22623
___
Benjamin Peterson added the comment:
We can reevaluate when we know when 2.7.10 will be released.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22559
___
Martin Panter added the comment:
About the byte sequence comparisons, I wondered if it was misleading to say
that a list(), tuple() or range() can only be compared to the same type,
without mentioning that bytes() and bytearray() can be compared to each other.
BTW just noticed you say range()
Stéphane Wirtel added the comment:
ping
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21224
___
___
Python-bugs-list mailing list
Unsubscribe:
Dmitry Kazakov added the comment:
Here's the updated (optimized) patch
--
hgrepos: +277
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22619
___
Changes by Dmitry Kazakov jsb...@gmail.com:
Added file: http://bugs.python.org/file36899/9cb7aaad1d85.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22619
___
Changes by Dmitry Kazakov jsb...@gmail.com:
--
hgrepos: -277
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22619
___
___
Python-bugs-list mailing
Ethan Furman added the comment:
Code looks good.
Only downside is the change in help and inspect.signature output, but that is
minor:
Help on dict object:
class dict(object)
[...]
| __init__(self, /, *args, **kwargs)
vs.
Help on class Counter in module collections:
class
Changes by Stefan Behnel sco...@users.sourceforge.net:
--
nosy: +eli.bendersky, scoder
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22622
___
___
anupama srinivas murthy added the comment:
I have added the link and attached the patch below. Could you review it?
Thank you
--
components: -Regular Expressions
keywords: +patch
nosy: +anupama.srinivas.murthy
Added file: http://bugs.python.org/file36900/regex-link.patch
Larry Hastings added the comment:
FWIW, I agree that it should be fixed:
dict(self=1)
{'self': 1}
--
nosy: +larry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22609
___
Stéphane Wirtel added the comment:
David,
do you have an example, I am at the CPython sprint in Dublin, and I think I can
work on this issue.
Thanks
--
nosy: +matrixise
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21991
Zachary Ware added the comment:
After the last round of changes, the buildbots appear to be mostly happy. If
anybody else wants to backport the changes, I'd be happy to review and commit,
but I'll leave the backporting itself to whoever wants to do it. In the
meantime, closing the issue.
Georg Brandl added the comment:
currently more bugfree and intended to replace re
The first part is spreading FUD if not explained in more detail. The second is
probably never going to happend :(
--
nosy: +georg.brandl
___
Python tracker
R. David Murray added the comment:
The principle example is the 'params' dictionary in headerregistry. Currently
it gets recreated every time you access that attribute. You can *apparently*
change it, but that has no real effect. Probably the computed value should be
cached the first time
Changes by Dmitry Kazakov jsb...@gmail.com:
--
hgrepos: -275
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22619
___
___
Python-bugs-list mailing
Alex Gaynor added the comment:
Patch with the implementation, and initial work on documentation. Needs review
please, I suspect we need more docs in more places. Feedback please!
--
keywords: +needs review
Added file: http://bugs.python.org/file36901/issue22417.diff
Roundup Robot added the comment:
New changeset 437002018d2d by Charles-François Natali in branch '2.7':
Issue #22435: Fix a file descriptor leak when SocketServer bind fails.
https://hg.python.org/cpython/rev/437002018d2d
--
nosy: +python-dev
___
Antoine Pitrou added the comment:
Actually, looking up __package__ would be wrong.
Say I have: from pack.module import foo
and foo doesn't exist in pack.module but exists in pack.
Since pack.module.__package__ == pack, using __package__ would wrongly find
the foo in pack.
--
Roundup Robot added the comment:
New changeset fded07a2d616 by Antoine Pitrou in branch 'default':
Issue #17636: Circular imports involving relative imports are now supported.
https://hg.python.org/cpython/rev/fded07a2d616
--
nosy: +python-dev
___
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/issue17636
___
Changes by Aaron Meurer asmeu...@gmail.com:
--
nosy: +Aaron.Meurer
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14102
___
___
Python-bugs-list
Roundup Robot added the comment:
New changeset 9c8016af2ed8 by Charles-François Natali in branch '3.4':
Issue #22435: Fix a file descriptor leak when SocketServer bind fails.
https://hg.python.org/cpython/rev/9c8016af2ed8
New changeset 3bd0f2516445 by Charles-François Natali in branch
New submission from Link Mauve:
In Modules/timemodule.c, py_process_time() still uses floatclock() even when
HAVE_CLOCK isn’t defined.
--
components: Build
messages: 229260
nosy: Link Mauve
priority: normal
severity: normal
status: open
title: Bogus usage of floatclock in timemodule
New submission from Link Mauve:
```
% make
./Programs/_freeze_importlib \
./Lib/importlib/_bootstrap.py Python/importlib.h
./Programs/_freeze_importlib: ./Programs/_freeze_importlib: cannot execute
binary file
Makefile:710: recipe for target 'Python/importlib.h' failed
make: ***
Antoine Pitrou added the comment:
Rishi, thanks for the patch. I was going to give a review but first I have to
ask: is so much support code necessary for this?
Another approach would be to wrap self.fp in a io.BufferedReader (if it's not
already buffered) and then use the peek() method to
1 - 100 of 125 matches
Mail list logo