New submission from Oleg Plakhotnyuk oleg...@gmail.com:
Two changes have been made to the library:
1. Lowercase compression type support have been added to the sample width
validation routine during write operation. Everywhere else compression types
are used in both lowercase and uppercase.
2.
Oleg Plakhotnyuk oleg...@gmail.com added the comment:
Fourth patch goes to issue 13680
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13394
___
Petri Lehtinen pe...@digip.org added the comment:
What? Don't you SEE that it works correctly? :)
Attached an updated patch with a test case.
FTR, I also tried to make it possible to have the SQL statement include a zero
byte, but it seems that sqlite3_prepare() (and also the newer
Tim Golden m...@timgolden.me.uk added the comment:
Well, the code in 2.x is quite different from that in 3.x.
Specifically, the 2.x code assumes that, for Windows, no
year before 1900 is valid for any of the formats. So a
simple check throws a ValueError for tm_year 0. For 3.x
the assumption
patrick vrijlandt patrick.vrijla...@gmail.com added the comment:
Somewhere in the code is also/still a seperate check concerning strftime:
PythonWin 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on
win32.
Portions Copyright 1994-2008 Mark Hammond - see 'Help/About
Antoine Pitrou pit...@free.fr added the comment:
Well, have you read http://docs.python.org/library/multiprocessing.html#windows
?
(especially Safe importing of main module)
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
Charles-François Natali neolo...@free.fr added the comment:
That's true. Do you think temptatively acquiring the lock (without
blocking) would solve the issue?
I think it should work. Something along those lines:
while True:
if lock.acquire(0):
lock.tstate = tstate
return
Tim Golden m...@timgolden.me.uk added the comment:
Yes, sorry. I wasn't clear enough. There *are* still checks
in the 3.x code (for the kind of thing you're showing). But
the checks assume 1000 = year = maxint is ok for all format
parameters on Windows. In fact, for %y, only 1900 = year is ok.
New submission from Oleg Plakhotnyuk oleg...@gmail.com:
This patch resolves two issues:
1. ADPCM compressed audio files reading. Such files have frame size of 4 bits.
Aifc lib cannot represent 4 bits frame size because it uses integer bytes count
variable. I have replaced it with bits count.
Oleg Plakhotnyuk oleg...@gmail.com added the comment:
I have put changes to both aifc and audioop module in this single patch. The
reason is that aifc test reading compressed frames will work properly only
after audioop fix has been applied.
--
___
Oleg Plakhotnyuk oleg...@gmail.com added the comment:
The last, fifth, patch goes to issue 13681
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13394
___
New submission from Petri Lehtinen pe...@digip.org:
From the docs of os.fdopen():
Return an open file object connected to the file descriptor fd. The
mode and bufsize arguments have the same meaning as the corresponding
arguments to the built-in open() function.
However, there's no
Antoine Pitrou pit...@free.fr added the comment:
If, on the other hand, we really want to reduce the number of cases
where a deadlock would occur by increasing the locking granularity,
then it's the way to go.
Yes, that's the point. Today you have to be careful when mixing imports
and
Michele Orrù maker...@gmail.com added the comment:
Joonas, this issue seems easy to solve. Do you want to try to post a
patch?. Extra credits for patching testsuite too :).
As far as I see, it would be sufficient to add unquote(passed) to
_open_generic_http. Regarding unittests instead,
Charles-François Natali neolo...@free.fr added the comment:
Seems to be fixed now.
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11812
Martin v. Löwis mar...@v.loewis.de added the comment:
I'd rather have you maintain poodle.python.org instead of maintaining Python
translations off-site.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13663
Charles-François Natali neolo...@free.fr added the comment:
This change probably should be backported to 3.2 branch.
I'm not sure about this, I don't feel comfortable backporting a such
path which doesn't solve a real world problem.
--
___
Python
New submission from maniram maniram maniandra...@gmail.com:
In the Python 3 docs for the raise statement,
http://docs.python.org/py3k/reference/simple_stmts.html#the-raise-statement,the
docs say If no exception is active in the current scope, a TypeError exception
is raised indicating that
New submission from luzakiru visco...@inbox.com:
readline() can return ''. This is handled in most places in httplib but not
when a tunnel is used. It leads to a infinite loop that permanently blocks the
program while wasting CPU cycles.
For the patch I simply copied the fix that is used
Rock Achu rockac...@gmail.com added the comment:
Erm.. No. I was unaware I had to do so.
Next time I'll be more careful.
Anyways, the docs say that python should throw a RuntimeError, but it didn't?
And would it be doable to add a warning at the top of the multiprocessing
tutorial/page that
Antoine Pitrou pit...@free.fr added the comment:
I believe this new patch should be much more robust than the previous one.
It also adds a test for the improvement (it freezes an unpatched interpreter).
--
Added file: http://bugs.python.org/file24114/implock5.patch
Antoine Pitrou pit...@free.fr added the comment:
Anyways, the docs say that python should throw a RuntimeError, but it
didn't?
I think running it directly would raise a RuntimeError, but importing it
wouldn't.
And would it be doable to add a warning at the top of the
multiprocessing
Antoine Pitrou pit...@free.fr added the comment:
Ok, closing this issue.
--
resolution: - invalid
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13679
___
Changes by Reuben Garrett reubengarr...@gmail.com:
--
nosy: +RubyTuesdayDONO
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12641
___
___
Antoine Pitrou pit...@free.fr added the comment:
(review posted on http://bugs.python.org/review/13609/show )
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13609
___
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +orsenthil
stage: - patch review
versions: +Python 3.2, Python 3.3 -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13684
___
Antoine Pitrou pit...@free.fr added the comment:
It would be nice to also have tests for the bytes and bytearray cases.
It also seems the generic case hasn't been fixed
(PyObject_CallFunction(self-connection-text_factory, y, val_str)).
--
___
Python
Brett Cannon br...@python.org added the comment:
Why change importlib's API and instead add to it? You could add the requisite
path_size() method to get the value, and assume 0 means unsupported (at least
until some future version where a deprecation warning about not requiring file
size
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13641
___
___
Python-bugs-list
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +belopolsky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13508
___
___
Python-bugs-list
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13508
___
___
Python-bugs-list
Éric Araujo mer...@netwok.org added the comment:
This is not a duplicate issue. The openat solution is no easier than the
os.open
solution.
Amaury did not suggest to use openat, but the new opener argument to open,
which was especially added for use cases such as the one discussed here:
Terry J. Reedy tjre...@udel.edu added the comment:
I should like it if a separate window were either automatic or a configuration
option for help on modules and classes, which should cover 'long' output. The
Windows workaround, which I will never remember, brings up an extraneous
cmd.exe
Éric Araujo mer...@netwok.org added the comment:
May I ask why you closed this? From a quick glance, a few functions from
ctypes.util are considered public and documented (albeit not with module
directives, so I’m not sure the indexing works helpfully for people searching);
I don’t know the
Terry J. Reedy tjre...@udel.edu added the comment:
The actual fix in the previous issue, as in Python 3, was to always write the
filename, but with errors replaced with '?/.
--
nosy: +lars.gustaebel, terry.reedy
___
Python tracker
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: +amaury.forgeotdarc, meador.inge
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13665
___
___
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo, loewis
versions: -Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13655
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13655
___
___
Python-bugs-list mailing
Terry J. Reedy tjre...@udel.edu added the comment:
2.6 only gets security updates.
I verified 'rzinfo' typo in x.1.6 in 2.7 and 3.2. Also in both,
tzinfo.utcoffset begins as Stephen claims. I have not verified that this is
error.
Also in both, in x.1.4, class GMT1 has
... def
Éric Araujo mer...@netwok.org added the comment:
It could be possible to set up an ad-hoc httpserver for that purpose,
but that sounds a bit overkill.
Oh, I assumed urllib already had a server for tests. We have one in
distutils2/packaging, otherwise we’d have to resort to manual testing
Éric Araujo mer...@netwok.org added the comment:
Hi Senthil. I think you applied a patch that did not have consensus.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13443
___
Éric Araujo mer...@netwok.org added the comment:
Just a note: “Incorporated Michele Orrù's code style changes into the trunk and
other codelines.”
The policy is to apply only bug fixes and doc fixes and improvements to stable
branches, not code cleanups (they’re usually compatible but are
Éric Araujo mer...@netwok.org added the comment:
Hm, it was actually Antoine who removed it.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13443
___
Changes by Éric Araujo mer...@netwok.org:
--
assignee: tarek - eric.araujo
components: +Distutils2
keywords: +easy
nosy: +alexis
stage: - test needed
title: `setup.py register` fails if long_description contains RST - setup.py
register fails if long_description contains ReST
type: -
Terry J. Reedy tjre...@udel.edu added the comment:
Flags comment applies to 3.2.2 docs and 2.7.2 docs. There is only one
additional flag: ast.PyCF_ONLY_AST, so 'flags' should be singular.
As for src and dst, doc has been updated to say 'Compile the source into a code
or AST object. ... source
Terry J. Reedy tjre...@udel.edu added the comment:
Verified for 3.2.2 cmd window and idle. Fix looks good.
--
keywords: +patch
nosy: +terry.reedy
stage: - needs patch
type: - behavior
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
Devin Jeanpierre jeanpierr...@gmail.com added the comment:
Amaury did not suggest to use openat, but the new opener argument to open,
which was especially added for use cases such as the one discussed here:
Sorry, yes. Wrong words, same thought. We can implement this using opener, but
we
Terry J. Reedy tjre...@udel.edu added the comment:
In 3.2, http.client.py, insertion would be at line 718.
However, only one statement is needed to break. 3.2 elsewhere has
if line in (b'\r\n', b'\n', b''):
break
But I note that at 512, there is the code luzakiru patched in. I think
New submission from Jeff Yurkiw j...@cyan.com:
I discovered this while programming the command line interface for a python
program that can take a passed argument and throw it into the 'where like'
clause of a SQL expression (intended for a postgresql database).
The wildcard character for
Eric V. Smith e...@trueblade.com added the comment:
This is because the help text support substitution, as mentioned here:
http://docs.python.org/dev/library/argparse.html#help
It's possible this documentation could be improved.
--
assignee: - docs@python
components: +Documentation
Éric Araujo mer...@netwok.org added the comment:
[...] There is slightly more versatility with the opener method, but no more
obviousness
and no less typing.
I agree with your opinion. I re-read this report:
- Antoine thinks this fills an important use case, namely avoiding race
Jim Jewett jimjjew...@gmail.com added the comment:
I'm not sure we're looking at the same thing. I was talking about the
docstring that shows up at the interactive prompt in response to
help(compile)
Going to hg.python.org/cpython and selecting branches, then default, then
browse, got me
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13590
___
___
Python-bugs-list
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
stage: - patch review
type: behavior - enhancement
versions: -Python 2.7, Python 3.1, Python 3.2, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13640
Terry J. Reedy tjre...@udel.edu added the comment:
I am aware that the docstring, shown at help(compile), is what you were talking
about. The docstring and manuals should say the same thing, or at least not
contradict each other, so it is common for both to be out of date and both to
be
New submission from Eli Bendersky eli...@gmail.com:
I've decided to study the multiprocessing module a bit, and carefully went over
the docs (for 2.7). Some small fixes I will commit myself, but a few issues
came up on which I'd like some opinion from others. In rough order of
appearance in
New submission from baleno cui_...@126.com:
i just tested python2.7.2 and python 3.2.2 on windows 7,this bugs at all
version.
my test code:
import sys
print(sys.argv)
command line:
test.py %cc%cd%bd
command result:
['E:\\Codes\\test.py', '%ccE:\\Codesbd']
--
components: None
files:
Eli Bendersky eli...@gmail.com added the comment:
10. Unless I'm missing something entirely obvious, except in the examples it
says that Value has a value attribute for actual data access. One is expected
to look in the docs of ctypes to find that?
--
baleno cui_...@126.com added the comment:
% is escape characters for DOS,
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13687
___
Ron Adam ron3...@gmail.com added the comment:
What about having idle open a web browser session with pydocs new browse option?
python3 -m pydoc -b
We've added input fields to the pages that take the same input as help()
command does. It also links to the online help pages, and you can view
60 matches
Mail list logo