Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
The ZIP file format is unable to store dates before 1980. With version 3.2,
your script even raises an exception. Please file this in a different issue.
--
nosy: +amaury.forgeotdarc
___
New submission from Nick Coghlan ncogh...@gmail.com:
A complete build on Ubuntu currently requires fiddling with LDFLAGS before
invoking configure (otherwise the build process fails to find the necessary
pieces to build some modules):
Petri Lehtinen pe...@digip.org added the comment:
tokenize processes a line at a time, and noticing that an ending triple quote
is missing would mean reading the whole file in the worst case. As tokenize
seems to work in a generator-like fashion, it's probably not desired to cache
all the
Changes by Petri Lehtinen pe...@digip.org:
--
versions: +Python 2.7, Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12063
___
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
+1 on the doc suggestions
-1 on any hope that casual users will have read or remembered them. ISTM that
a common theme among the post of people getting tripped-up by this is that they
aren't doing more than a quick skim of the
Erik Cederstrand e...@1calendar.dk added the comment:
I respectfully disagree. I take strptime('2002 01 1', '%Y %V %u') as mening
first day of first week in the year 2002
There is only one date that corresponds to the first day of the first week of
2002, i.e. Dec. 31, 2001. If you specify the
Marc-Andre Lemburg m...@egenix.com added the comment:
Roundup Robot wrote:
Roundup Robot devnull@devnull added the comment:
New changeset 3555cf6f9c98 by Victor Stinner in branch 'default':
Issue #8796: codecs.open() calls the builtin open() function instead of using
Charles-François Natali neolo...@free.fr added the comment:
Hello Nicholas,
kqueue is not standardized.
You're probably right, but depending on the version of your manpages, the
definition changes:
Nicholas Marriott nicholas.marri...@gmail.com added the comment:
Hi
The second one is correct - OpenBSD -current has this in event.h:
struct kevent {
u_int ident; /* identifier for this event */
short filter; /* filter for event */
Nicholas Marriott nicholas.marri...@gmail.com added the comment:
Not that I'm unsympathetic but this is really only a concern if you depend on
the internal structure layout and I think if you do that, you need to take
account of differences between platforms. We don't guarantee we aren't going
Thorsten Kampe thors...@thorstenkampe.de added the comment:
LANG=de_De - should've been LANG=de_DE. Sorry for wasting someone's time. I
shouldn't write bug reports in the middle of the night.
Sorry and thanks, Thorsten
--
resolution: - invalid
status: open - closed
Charles-François Natali neolo...@free.fr added the comment:
Concerning the differences between platforms, as noted, FreeBSD, NetBSD and
OS-X are all consistent and I don't think it'll change tomorrow, so for now
it's not a problem. Arbitrarily changing such structures definition - event
STINNER Victor victor.stin...@haypocalc.com added the comment:
The bug is specific to compile(), the import machinery supports Windows
newlines on Linux for example.
marge$ python2.6
Type help, copyright, credits or license for more information.
code=open(win.py, rb).read()
exec
Erik Cederstrand e...@1calendar.dk added the comment:
Reading you comment again, I see the ambiguity now, if %Y is interpreted as
The resulting date MUST be in 2001.
I think the safest way would be to implement %G and fail if %Y is used in
combination with %V. Maybe even fail if %V and %u
Nicholas Marriott nicholas.marri...@gmail.com added the comment:
Well they do it that way is not a justification that necessarily works for
OpenBSD :-).
I'll see if I can come up with a diff to fix this in Python. Not this weekend
though, maybe next week. Unless Remi do you want to have a go?
STINNER Victor victor.stin...@haypocalc.com added the comment:
If there are only two versions of the structure on all operating systems, we
can add a check in configure (e.g. test the size of the ident attribute, =int
or =void*?) to define a macro (e.g. HAVE_OPENBSD_KEVENT_STRUCT). You might
Ezio Melotti ezio.melo...@gmail.com added the comment:
I find this wording a little confusing: For lists, sets, and dicts, methods
that change the contents or order never return the instance. Instead, they
return an item from the instance or, more commonly, None..
I would suggest to drop the
Petri Lehtinen pe...@digip.org added the comment:
Added a patch. It was only a matter of making the size parameter optional.
--
keywords: +patch
nosy: +petri.lehtinen
Added file: http://bugs.python.org/file22142/mmap_read_all.patch
___
Python tracker
Petri Lehtinen pe...@digip.org added the comment:
Updated the patch to also update the documentation of mmap.read().
--
Added file: http://bugs.python.org/file22143/mmap_read_all_2.patch
___
Python tracker rep...@bugs.python.org
Ram Rachum cool...@cool-rr.com added the comment:
Diff attached, is it good? I'm not very experienced with diffs, I usually work
with pull requests.
--
keywords: +patch
Added file: http://bugs.python.org/file22144/patch.diff
___
Python tracker
Petri Lehtinen pe...@digip.org added the comment:
Your patch is good in this case, as the person who applies the patch knows
which file is affected.
In the future, use diff -u original_file modified_file to get a unified diff.
It's the de facto format for patches.
--
nosy:
Petri Lehtinen pe...@digip.org added the comment:
Actually, I only commented on the patch format and not on the actual contents
of the patch, sorry :)
Your test method missed the self parameter, and the test case needed to be
added to the testcases_other list for the test to be actually run.
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
nosy: +giampaolo.rodola
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12191
___
___
New submission from JJeffries jamesjeffri...@gmail.com:
There are very few pages relating to annotations in the documentation. Making
it very unclear how they work and what they could be used for other than the
original PEP.
--
assignee: docs@python
components: Documentation
messages:
Michele Orrù maker...@gmail.com added the comment:
Any idea about how to unittest mime.aliases?
Also, since I've just created a new file, are there some buracratic issues? I
mean, do I have to add something at the top of the file?
(I'm just signing the Contributor Agreement)
--
Added
Marc-Andre Lemburg m...@egenix.com added the comment:
Michele Orrù wrote:
Michele Orrù maker...@gmail.com added the comment:
Any idea about how to unittest mime.aliases?
Test the APIs you probably created for accessing it.
Also, since I've just created a new file, are there some
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
We could beef this up a little bit, but it was intentional that we leave it
completely open on how to use it.
--
assignee: docs@python - rhettinger
nosy: +rhettinger
___
Python tracker
R. David Murray rdmur...@bitdance.com added the comment:
Your new file isn't in the patch. I'm imagining it is a table and a couple
methods, so I think perhaps putting it either in charset or in utils would be
better than creating a new file.
As for testing it, what I'd love to see is a test
Roundup Robot devnull@devnull added the comment:
New changeset 27359a4e0f8c by Benjamin Peterson in branch 'default':
try to use the same str object for all code filenames when compiling or
unmarshalling (#12190)
http://hg.python.org/cpython/rev/27359a4e0f8c
--
nosy: +python-dev
Benjamin Peterson benja...@python.org added the comment:
As you can see, I've implemented a similar solution in 3.3. It should have the
same memory savings but not disk space saving. (This would require
reintroducing the marshal feature for interned strings.)
--
New submission from Charles-François Natali neolo...@free.fr:
pipe2() makes it possible to create a pipe O_CLOEXEC or O_NONBLOCK atomically,
which can be quite useful, especially in multi-threaded code. It would be nice
to expose it in the os module.
Patch attached.
--
components:
Benjamin Peterson benja...@python.org added the comment:
FWIW, if you still want to advance this, you could bring it up on Python-dev. I
still feel uncomfortable with the API but could be convinced with others
thought it was the best solution.
--
R. David Murray rdmur...@bitdance.com added the comment:
Prompted on IRC, I see I missed the file because it was so short.
This still isn't what I'm looking for. We are assuming that email is going to
use the codec eventually so that it is not a bad thing to have charset
pre-populate the
STINNER Victor victor.stin...@haypocalc.com added the comment:
+self.assertRaises(TypeError, os.pipe2, (0, 0))
Do you want to call the function with two arguments or one tuple with 2 items?
You may test both :-)
+# try a write big enough to fill-up the pipe (64K on most
Roundup Robot devnull@devnull added the comment:
New changeset 4d2ddd86b531 by Victor Stinner in branch 'default':
Revert my commit 3555cf6f9c98: Issue #8796: codecs.open() calls the builtin
http://hg.python.org/cpython/rev/4d2ddd86b531
--
___
Python
Changes by Barry A. Warsaw ba...@python.org:
--
resolution: - duplicate
status: open - closed
superseder: - Building Python on multiarch Debian and Ubuntu
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12194
Josh Triplett j...@joshtriplett.org added the comment:
GRUB's filesystem drivers don't support reading mtime. And no, no form of
stat() function exists, f or otherwise.
On a related note, without HAVE_STAT, import.c can't import package modules at
all, since it uses stat to check in advance
Changes by Ram Rachum cool...@cool-rr.com:
Removed file: http://bugs.python.org/file22144/patch.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11969
___
Changes by Ram Rachum cool...@cool-rr.com:
Removed file: http://bugs.python.org/file22027/test.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11969
___
R. David Murray rdmur...@bitdance.com added the comment:
The second line in that try: block should have been:
mime_name = ALIASES.get(python_name, python_name)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8898
Ram Rachum cool...@cool-rr.com added the comment:
Thanks for the `-u` tip and the correction to the code, Petri. I removed my
previous files since yours is the definite one. And yeah, it's a Windows issue.
--
___
Python tracker
Éric Araujo mer...@netwok.org added the comment:
Stealing two lines from 3.2 fixes this. See attached patch.
--
keywords: +patch
stage: needs patch - commit review
Added file:
http://bugs.python.org/file22148/fix-environ-test_httpservers-3.1.diff
Jordan Stadler jordan.stad...@gmail.com added the comment:
Alright, thanks for the clarification, that's pretty much how I thought it
worked. Patches supplied should be good then.
--
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
Turns out the fix is very simple. Please review.
--
keywords: +needs review, patch
nosy: +ysj.ray
stage: - patch review
versions: +Python 2.7, Python 3.1, Python 3.3
Added file:
Éric Araujo mer...@netwok.org added the comment:
I read again the part of the PEP about __file__ and decided the code is a dead
branch, so I removed it.
--
keywords: +needs review, patch
stage: - commit review
Added file:
Terry J. Reedy tjre...@udel.edu added the comment:
Jesse, I do not understand your comment, including 'REPL'
--
components: +Windows
versions: +Python 3.2 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11969
Charles-François Natali neolo...@free.fr added the comment:
Do you want to call the function with two arguments or one tuple with 2
items? You may test both :-)
The former. Fixed.
Hum, I'm not sure that it's revelant to test the time
I didn't like it either, I just reused what's done in
Éric Araujo mer...@netwok.org added the comment:
I don’t know if we should go out of our way to support running tests in
interactive mode. Running them from regrtest is the recommended way.
--
title: Test_argparse failure but only in interactive mode - test_argparse
failure in
Changes by Charles-François Natali neolo...@free.fr:
Removed file: http://bugs.python.org/file22147/posix_pipe2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12196
___
Changes by Charles-François Natali neolo...@free.fr:
Added file: http://bugs.python.org/file22152/posix_pipe2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12196
___
Éric Araujo mer...@netwok.org added the comment:
I think I’d better leave this one to Terry or Raymond.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11948
___
Changes by Michele Orrù maker...@gmail.com:
Added file: http://bugs.python.org/file22153/issue8898_3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8898
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
+# A constant likely larger than the underlying OS pipe buffer size.
+# Windows limit seems to be around 512B, and most Unix kernels have a 64K pipe
+# buffer size: take 1MB to be sure.
+PIPE_MAX_SIZE = 1024 * 1024
Hum, I am not
STINNER Victor victor.stin...@haypocalc.com added the comment:
Oh, sigwait() doesn't accept a timeout! I would be nice to have also
sigwaitinfo().. and maybe also its friend, sigwaitinfo() (if we implement the
former, it's trivial to implement the latter). Python 3.3 adds optional timeout
Éric Araujo mer...@netwok.org added the comment:
email (silently) failed to encode a string
Is this silent error another bug to fix?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8898
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
The patch looks good. A nit-pick:
+if len(parts) 0:
Since *parts* is a list, the above can be replaced with simply if parts:.
Also, it seems to me that the new code may produce an AttributeError when given
Éric Araujo mer...@netwok.org added the comment:
I made a few comments and asked two questions on the review page. (I should
have said so here.)
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1625
Darren Dale dsdal...@gmail.com added the comment:
Thank you for the suggestion. I will follow up at python-dev, but it will
probably be a few weeks before I have time to do a proper job of it.
--
___
Python tracker rep...@bugs.python.org
Michael Foord mich...@voidspace.org.uk added the comment:
Unless Terry wants to contribute a fix I suggest closing this.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11906
___
Éric Araujo mer...@netwok.org added the comment:
Since *parts* is a list, the above can be replaced with simply if parts:
Heh, I always use implied truth values and one disagreed with Tarek about this,
but here if felt more natural to spell out my mind with an explicit 0
comparison :)
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
On Fri, May 27, 2011 at 12:23 PM, Éric Araujo rep...@bugs.python.org wrote:
.. I’ll add tests and see if I can reproduce what you’re hinting at (it would
be helpful
if you could give examples of invalid names: full
Changes by Charles-François Natali neolo...@free.fr:
Removed file: http://bugs.python.org/file22152/posix_pipe2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12196
___
Changes by Charles-François Natali neolo...@free.fr:
Added file: http://bugs.python.org/file22154/posix_pipe2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12196
___
R. David Murray rdmur...@bitdance.com added the comment:
REPL is the Python interactive prompt in this case (REPL is Read Eval Print
Loop). So Jesse is saying that using multiprocessing from the REPL (at least
on Windows) isn't supported. This is because on Windows multiprocessing needs
to
Éric Araujo mer...@netwok.org added the comment:
FYI, you can upload versions of the same patch with the same name and remove
old versions. The code review tool will remember versions, and it’s easier for
human if there’s only one patch.
--
versions: +Python 3.3 -Python 3.2
Changes by Éric Araujo mer...@netwok.org:
Removed file: http://bugs.python.org/file22141/unnamed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12042
___
Charles-François Natali neolo...@free.fr added the comment:
+# A constant likely larger than the underlying OS pipe buffer size.
+# Windows limit seems to be around 512B, and most Unix kernels have a 64K
pipe
+# buffer size: take 1MB to be sure.
+PIPE_MAX_SIZE = 1024 * 1024
Hum, I am not
R. David Murray rdmur...@bitdance.com added the comment:
Not in email5. The RFC says that if the charset parameter isn't known you just
pass it through. In email6 we will be making a more careful distinction
between errors that should be passed silently per the RFC, and ones that should
be
Daniel Stutzbach stutzb...@google.com added the comment:
Comment: This rule applies to special methods like __getitem__
and __setitem__. 'lis.append(item)' is equivalent to
lis.__setitem__(len(lis):len(lis), item), so it should not be so
surprising that it has the same return.
It's not true
Éric Araujo mer...@netwok.org added the comment:
As a general rule, rewrapping is not done in patches, it can make review less
easy. The committer can do it, sometimes in a second commit.
I commented on the review page.
--
nosy: +eric.araujo
title: Shutil - add chown() in order to
Terry J. Reedy tjre...@udel.edu added the comment:
Ahem. Interactive mode is an approved method of running Python code, along with
batch mode. The core interpreter and stdlib modules should run correctly in
both modes. So the entire test suite should pass in both modes too. If the
tests are
R. David Murray rdmur...@bitdance.com added the comment:
What I had in mind for the second test was something that did this (which I
think is legal from reading the docs):
parser.add_argument('foo')
parser.add_argument('bar', nargs='?', default='eggs')
with
Éric Araujo mer...@netwok.org added the comment:
Interactive mode is an approved method of running Python code, along
with batch mode. The core interpreter and stdlib modules should run
correctly in both modes. So the entire test suite should pass in both
modes too.
You are right.
That
Michael Foord mich...@voidspace.org.uk added the comment:
Interactive mode is an approved method of running Python code, along with
batch mode.
That is not guaranteed for any particular piece of Python code in the standard
library. In particular it is not amenable to test automation, so it
Emmanuel Decitre emm...@googlemail.com added the comment:
Issue reproduceable on 3.2 (r32:88445) with drag_bug_is_nesting_events.py
--
nosy: +Emmanuel.Decitre
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6717
Changes by Michele Orrù maker...@gmail.com:
Added file: http://bugs.python.org/file22155/issue10424.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10424
___
Terry J. Reedy tjre...@udel.edu added the comment:
After looking at the doc chapter, I get that 'if __name__' block is needed on
Windows.
OK. batch mode with if __name__ block:
testmp.py
-
print('Top of Module')
class C:
def f(s): print('Method C.f')
if __name__ == '__main__':
Oleg Oshmyan chor...@inbox.lv added the comment:
I've added passing __init__ an undeclared keyword argument as an example to the
comment following your suggestion. I've also reworded the comment to make it
sound better to me and added a full stop. :-)
--
Added file:
New submission from David Siroky sir...@dasir.cz:
Trying to send large bulk of data in MS Windows via non-blocking SSLSocket
raises an exception but part of the data is delivered.
E.g.
ssl_socket.write(ba * 20)
raises
ssl.SSLError: [Errno 3] _ssl.c:1126: The operation did not complete
New submission from Greg Steuck gnezdo+pythonb...@google.com:
zipfile.py displays warning when trying to write files timestamped before 1980.
% cat /tmp/a.py
import zipfile
import os
z = zipfile.ZipFile('/tmp/a.zip', 'w')
open(/tmp/a, w)
os.utime(/tmp/a, (0,0))
z.write(/tmp/a, a)
% python -V
Terry J. Reedy tjre...@udel.edu added the comment:
Unless the doc for a module explicitly diclaims interactive mode (as does
multiproccessing), it should run interactively as documented. Batch and
interactive are not mutually exclusive; python -i runs a file in batch mode and
switches to
Roundup Robot devnull@devnull added the comment:
New changeset 9b11cc4e2918 by Benjamin Peterson in branch 'default':
reflect with statements with multiple items in the AST (closes #12106)
http://hg.python.org/cpython/rev/9b11cc4e2918
--
nosy: +python-dev
resolution: - fixed
stage: -
Terry J. Reedy tjre...@udel.edu added the comment:
Darn, I knew there might be an exception I was overlooking ;-).
Anyway, I considered the general statements to be drafts, to be rewritten after
comments.
As to the footnote (9) suggestion: the set and dict sections list each method
separately
New submission from Benjamin Peterson benja...@python.org:
You can write them as one compound statement in Python, so there's no point in
having two ast classes.
--
components: Interpreter Core
files: try.patch
keywords: patch
messages: 137097
nosy: benjamin.peterson, ncoghlan
Nadeem Vawda nadeem.va...@gmail.com added the comment:
I seem to be unable to log in to rietveld, so I'll reply here.
result += decomp.decompress(data)
Is this efficient? I understood that other Python implementations
had poorly performing str.__iadd__, and therefore that using a list
was
Michael Foord mich...@voidspace.org.uk added the comment:
it should run interactively as documented.
Where is it documented that all tests will run from the IDLE prompt?
I have *never* heard this claim before. I have nothing against tests supporting
this, but those who want it to happen will
Changes by Ned Deily n...@acm.org:
--
nosy: +ghaering
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11689
___
___
Python-bugs-list mailing list
Changes by Ned Deily n...@acm.org:
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11653
___
___
Python-bugs-list
Mike Solomon ms...@gmail.com added the comment:
The in-memory fix is really the most important - the disk space was a bonus
and an easy metric to gather.
Unfortunately, our app won't be upgrading to python 3.x.
On Fri, May 27, 2011 at 7:10 AM, Benjamin Peterson
rep...@bugs.python.orgwrote:
Benjamin Peterson benja...@python.org added the comment:
Okay, I'll close.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12190
___
Nick Coghlan ncogh...@gmail.com added the comment:
In the time since 2.3, pydoc.visiblename() has been updated to use the correct
definition of visibility.
A developer mode that exposes internal details doesn't make sense. When
you're developing something and want to see internal details,
Brian Curtin br...@python.org added the comment:
It turns out DeviceIoControl/FSCTL_GET_REPARSE_POINT (in win32_read_link) will
only work for us as long as the symlink was created with a full path. Starting
at the top level of a source checkout, if I create `os.symlink(README,
README.lnk)`
library.engine library.eng...@gmail.com added the comment:
I second request for tag names not prefixed with a root namespace in python,
mostly because of ugly code, as performance degradation is negligible on
relatively small files. But this ubiquitous repeating (even in the case if
you're
New submission from Mark Hammond skippy.hamm...@gmail.com:
Probably in all versions, but certainly in 2.7.
If you create an installer with bdist_wininst and specify an install_script,
that script is not run on uninstallation.
See attached test case: setup.py specifies an install_script which
Changes by Mark Hammond skippy.hamm...@gmail.com:
Added file: http://bugs.python.org/file22161/hello.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12200
___
Changes by Mark Hammond skippy.hamm...@gmail.com:
Added file: http://bugs.python.org/file22162/hello-install.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12200
___
96 matches
Mail list logo