Charles-François Natali neolo...@free.fr added the comment:
Like I said, I dont know much about named pipes and im not even sure thats
how they are intended to work in this context. IE: if one process is
listening, can another listen on that named pipe as well?
Under Unix, you'd get a
Hynek Schlawack h...@ox.cx added the comment:
Oh sorry, I didn't look into the doc patch.
I unified both into one patch and added the versionchanged tag and also updated
the docstring of shutil.move.
--
Added file: http://bugs.python.org/file24149/shutil_move_symlinks.patch
Mark Shannon m...@hotpy.org added the comment:
I agree.
+1 for strings. -0 for numbers.
This might cause problems with dict subclasses and the like,
so I'm -1 on this.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13703
Mark Shannon m...@hotpy.org added the comment:
Without the context, that last message didn't make much sense.
I agree with Terry that we should copy Perl and Ruby (for strings).
I'm -1 on hash() returning a different value than dict uses internally.
--
Senthil Kumaran sent...@uthcode.com added the comment:
Some review comments. Instead of doing the inline unquote like this -
-auth = base64.b64encode(user_passwd).strip()
+auth = base64.b64encode(unquote(user_passwd)).strip()
It is better to do the explicitly above the
New submission from Michael Kesper mkes...@schokokeks.org:
http://docs.python.org/library/string.html#format-specification-mini-language
mentions:
Changed in version 2.7: Added the ',' option (see also PEP 378).
PEP 378 tells me:
The ',' option is defined as shown above for types 'd', 'e',
Zbyszek Szmek zbys...@in.waw.pl added the comment:
Following comments by Martin and Victor, here is next version: termsize.diff.4
Changes:
- just check for defined(MS_WINDOWS) and rely on windows.h.
- rename query_terminal_size to get_terminal_size_raw
This way it should be clearer that
Antoine Pitrou pit...@free.fr added the comment:
Le vendredi 06 janvier 2012 à 02:18 +, Phill a écrit :
Phill beer...@gmail.com added the comment:
Rather than listening on a socket, listening on a named pipe
eg:
address = (r'\\.\pipe\Test', 'AF_PIPE')
listener = Listener(*address)
Marc-Andre Lemburg m...@egenix.com added the comment:
Before continuing down the road of adding randomness to hash
functions, please have a good read of the existing dictionary
implementation:
Major subtleties ahead: Most hash schemes depend on having a good hash
function, in the sense of
Marc-Andre Lemburg m...@egenix.com added the comment:
Demo patch implementing the collision limit idea for Python 2.7.
--
Added file: http://bugs.python.org/file24151/hash-attack.patch
___
Python tracker rep...@bugs.python.org
Marc-Andre Lemburg m...@egenix.com added the comment:
The hash-attack.patch solves the problem for the integer case
I posted earlier on and doesn't cause any problems with the
test suite.
Traceback (most recent call last):
File stdin, line 1, in module
KeyError: 'too many hash collisions'
It
Marc-Andre Lemburg m...@egenix.com added the comment:
Stupid email interface again... here's the full text:
The hash-attack.patch solves the problem for the integer case
I posted earlier on and doesn't cause any problems with the
test suite.
d = dict((x*(2**64 - 1), hash(x*(2**64 - 1))) for x
Zbyszek Szmek zbys...@in.waw.pl added the comment:
New version to use after #13609 is implemented: patch2.diff
--
Added file: http://bugs.python.org/file24152/patch2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13041
New submission from Ralf Schmitt python-b...@systemexit.de:
Running setup.py bdist_msi upload fails with something like:
c:\Python27\python.exe setup.py bdist_msi upload
running bdist_msi
running build
running build_ext
installing to build\bdist.win-amd64\msi
running install_lib
creating
Antoine Pitrou pit...@free.fr added the comment:
(oops, hadn't seen Charles-François's answer before replying)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8184
___
Zbyszek Szmek zbys...@in.waw.pl added the comment:
One more comment on $COLUMNS overriding the actual terminal size:
Zbyszek, I just looked at [1] and I disagree that the environment
variable should have higher precedence. In fact, I believe it should
have lower precedence, and should be
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Some remarks on the Windows implementation in termsize.diff.4:
- On Windows, the C runtime always sets fileno(stdout) to 1, so hardcoded
values are OK.
But on Unix, I'm quite sure that embedded interpreters (mod_python?) sometimes
New submission from Zbyszek Szmek zbys...@in.waw.pl:
% cat test_argparse_narrow.py
import argparse
argparse.ArgumentParser().print_help()
% COLUMNS=15 ./python test_argparse_narrow.py
Traceback (most recent call last):
File test_argparse_narrow.py, line 2, in module
Joonas Kuorilehto jones...@derbian.fi added the comment:
It is better to do the explicitly above the b64 encoding step.
Just as host has been unquoted.
user_passwd, host = splituser(host)
host = unquote(host)
Ok. So it needs to be done on the line
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +eric.smith, ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13718
___
___
Changes by Eric V. Smith e...@trueblade.com:
--
assignee: - eric.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13718
___
___
Éric Araujo mer...@netwok.org added the comment:
Maybe related to (or same as) #11473.
--
assignee: tarek - eric.araujo
components: +Distutils2
nosy: +alexis
stage: - test needed
title: `setup.py register` fails with -r argument - setup.py register fails
with -r argument
versions:
Éric Araujo mer...@netwok.org added the comment:
This is a strange bug. I added a test using -r server2, using the
already-existing PYPIRC_LONG_PASSWORD string as .pypirc contents. The test
passes. To make sure changing one test would not affect another one, I created
a new .pypirc file,
Ray rpq...@hotmail.com added the comment:
Martin, did you read my last post? Did you read the updated topic? libdir and
includedir are *not* the issue.
So it makes sense to allow configuring multiple directories for python
installation for darwin but not linux? Why?
--
STINNER Victor victor.stin...@haypocalc.com added the comment:
hash-attack.patch does never decrement the collision counter.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13703
___
Éric Araujo mer...@netwok.org added the comment:
Thanks for the patch. Before you do any more work, do other core developers
agree that this function is a good addition or is it obsoleted by the generic
improved-walk-with-callback that Nick is working on?
Doc/library/shutil.rst:
I don’t
Éric Araujo mer...@netwok.org added the comment:
Attached patch adds the useful bits from the review I did; I hope you won’t
think it’s pointless nitpicking.
--
Added file: http://bugs.python.org/file24155/docembed-edits.patch
___
Python tracker
Éric Araujo mer...@netwok.org added the comment:
I did the markup edits but then found out that the doc for Py_Initialize in
c-api/init already mentions the module load path and the module table, so I’m
going to make another patch with just a link to that.
--
Éric Araujo mer...@netwok.org added the comment:
Thanks! Given the fragility of distutils, we try to add a test for every fix
we commit, but I don’t remember if we already have a basic HTTP server to test
the upload command. If not, I think I’ll commit this after manual testing (my
Windows
Changes by Éric Araujo mer...@netwok.org:
--
Removed message: http://bugs.python.org/msg150736
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11473
___
Éric Araujo mer...@netwok.org added the comment:
[copy/paste failure in my previous message, please disregard]
One possible factor is that my .pypirc is symlinked from ~/.pypirc to
config/python/.pypirc and
it's conceivable that Python 3.2.0 has some issues with symlink resolution
that
Éric Araujo mer...@netwok.org added the comment:
I merely forgot, thanks for the prod. I’m taking your message as a +1 to the
wording and will commit when the server I use for tunnels is back online.
--
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
Tarek ruled that time spent improving the distutils docs was time lost and
better spent on distutils2. Accordingly, I only fix clear bugs in the doc but
don’t improve them in any way. I’m inclined to close this as wontfix, or I can
remove the
Antoine Pitrou pit...@free.fr added the comment:
Attached patch adds the useful bits from the review I did; I hope you
won’t think it’s pointless nitpicking.
Looks good to me.
--
___
Python tracker rep...@bugs.python.org
Marc-Andre Lemburg m...@egenix.com added the comment:
STINNER Victor wrote:
STINNER Victor victor.stin...@haypocalc.com added the comment:
hash-attack.patch does never decrement the collision counter.
Why should it ? It's only used as local variable in the lookup function.
Note that the
Éric Araujo mer...@netwok.org added the comment:
http://docs.python.org/dev/documenting/building.html also needs to be updated
(it
still mentions Subversion and probably obsolete versions of Sphinx and other
packages).
Well, the doc makefile still uses Subversion. As for the versions, if
Ezio Melotti ezio.melo...@gmail.com added the comment:
http://docs.python.org/dev/documenting/building.html also needs to be updated
(it still mentions Subversion and probably obsolete versions of Sphinx and
other packages). If you are going to add the text proposed in your second
message,
Éric Araujo mer...@netwok.org added the comment:
IMO, help('help') should document the help function, not start an interactive
help session (that’d be help()).
--
nosy: +eric.araujo
versions: +Python 3.3 -Python 2.6
___
Python tracker
Ezio Melotti ezio.melo...@gmail.com added the comment:
Well, the doc makefile still uses Subversion.
Indeed, I was thinking about getting a CPython checkout with the doc, not about
the tools used to built it (maybe it could be clarified).
I don’t understand: ps?
From _Developpers's Guide:
Éric Araujo mer...@netwok.org added the comment:
Indeed, I was thinking about getting a CPython checkout with the doc
Right. I’ll edit my wording to mention Mercurial.
I don’t understand: ps?
From _Developpers's Guide: http://docs.python.org/devguide;
The curse of being French :) I always
Jason R. Coombs jar...@jaraco.com added the comment:
Windows symlinks, much like Unix symlinks, should dereference naturally when
open is called, although there is a bug in later versions of the c runtime
calling stat on a symlink. See issue6727 for details.
--
title: upload command
New submission from Mads Kiilerich m...@kiilerich.com:
According to http://docs.python.org/release/2.7.2/library/ssl wrap_socket can
be used either on connected sockets or on un-connected sockets which then can
be .connect'ed.
In the latter case SSLSocket.connect() will (AFAIK) always raise a
Antoine Pitrou pit...@free.fr added the comment:
Alternatively all SSLSocket methods should take care not to dereference
self._sslobj and they should respond properly - preferably with a
socket/ssl exception.
In getpeercert()'s case, I think None would be the right thing to return (as
Marc-Andre Lemburg m...@egenix.com added the comment:
Here's an example of hash-attack.patch finding an on-purpose
programming error (hashing all objects to the same value):
http://stackoverflow.com/questions/4865325/counting-collisions-in-a-python-dictionary
(see the second example on the page
Benjamin West bew...@gmail.com added the comment:
Ok, Steven, that sounds reasonable.
I checked out git-svn python and started comparing diffs... I'm a little
confused. What version of argparse should be patched to provide this feature?
My HG version from https://code.google.com/p/argparse/
Benjamin West bew...@gmail.com added the comment:
Ok, Steven, that sounds reasonable.
I checked out git-svn python and started comparing diffs... I'm a little
confused. What version of argparse should be patched to provide this feature?
My HG version from https://code.google.com/p/argparse/
Changes by Eric Snow ericsnowcurren...@gmail.com:
--
nosy: +eric.snow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13562
___
___
Python-bugs-list
Changes by Brian Curtin br...@python.org:
--
components: +Windows
nosy: +brian.curtin
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13719
___
Zbyszek Szmek zbys...@in.waw.pl added the comment:
Some remarks on the Windows implementation in termsize.diff.4:
- On Windows, the C runtime always sets fileno(stdout) to 1, so
hardcoded values are OK.
But on Unix, I'm quite sure that embedded interpreters (mod_python?)
sometimes close
Nam Nguyen bits...@gmail.com added the comment:
Please do keep the warning though. It is best to warn in both Python-C
Py_Initialize() document and the Embedding tutorial.
--
___
Python tracker rep...@bugs.python.org
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
I've made a patch which implements this functionality, together with docs and
tests. Please review.
--
hgrepos: +99
nosy: +vinay.sajip
stage: test needed - patch review
___
Python tracker
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk:
Added file: http://bugs.python.org/file24158/9e12275eec25.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1521950
___
Charles-François Natali neolo...@free.fr added the comment:
Antoine, could you test the last version (test_pickle and if possible
with the OP testcase)?
I can't test it myself (32-bit machine with 1 GB).
--
___
Python tracker rep...@bugs.python.org
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 1ea8b7233fd7 by Antoine Pitrou in branch 'default':
Issue #9993: When the source and destination are on different filesystems,
http://hg.python.org/cpython/rev/1ea8b7233fd7
--
nosy: +python-dev
Antoine Pitrou pit...@free.fr added the comment:
Patch now committed to 3.3. Thank you Jonathan and Hynek!
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Antoine Pitrou pit...@free.fr added the comment:
Le vendredi 06 janvier 2012 à 19:17 +, Charles-François Natali a
écrit :
Charles-François Natali neolo...@free.fr added the comment:
Antoine, could you test the last version (test_pickle and if possible
with the OP testcase)?
I can't
Paul McMillan p...@mcmillan.ws added the comment:
Those who use or advocate a simple randomized starting hash (Perl, Ruby,
perhaps MS, and the CCC presenters) are presuming that the randomized hash
values are kept private. Indeed, they should be (and the docs could note
this) unless an
New submission from Antoine Pitrou pit...@free.fr:
In _PyCodecRegistry_Init() (in Python/codecs.c), it is attempted to import the
encodings module (so that the default search function gets registered) and
failures get ignored following the same reasoning:
/* Ignore ImportErrors...
Changes by Pavel Labushev p.labus...@gmail.com:
--
nosy: +Arach
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13703
___
___
Python-bugs-list
Terry J. Reedy tjre...@udel.edu added the comment:
You're suggesting that in order for a Python application to be secure,
it's a requirement that we randomly kill and restart processes from
time to time?
No, that is not what I said.
--
___
Python
Paul McMillan p...@mcmillan.ws added the comment:
An attack can be based on trying to find many objects with the same
hash value, or trying to find many objects that, as they get inserted
into a dictionary, very often cause collisions due to the collision
resolution algorithm not finding a
New submission from Eric Promislow er...@activestate.com:
This regular expression takes a few seconds to be evaluated
against any text:
(.*?)((?:X|\s+)*)$
This reg ex is much faster:
(.*?)((?:X|\s)*)$
To be fair, Ruby's performance with the first regex is the same as Python's.
PHP and
Changes by Alex Gaynor alex.gay...@gmail.com:
--
nosy: +alex
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13723
___
___
Python-bugs-list mailing
Antoine Pitrou pit...@free.fr added the comment:
I'm in cautious agreement that collision counting is a better
strategy.
Disagreed. Raising randomly is unacceptable (false positives), especially in a
bugfix release.
The dict implementation performance would suffer from
randomization.
Changes by Stefan Krah stefan-use...@bytereef.org:
--
nosy: +skrah
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13703
___
___
Python-bugs-list
New submission from Mads Kiilerich m...@kiilerich.com:
Forked from issue13721 where I was too lazy to report it separately:
http://docs.python.org/release/2.7.2/library/socket#socket.create_connection
doesn't describe how it loops over all IP addresses. That seems to be the
functions main
Mads Kiilerich m...@kiilerich.com added the comment:
I think it would be confusing if getpeercert returned None both for valid
connections without certificates and also for invalid connections. I would
almost prefer the current behaviour (AttributeError) if just it was documented
and there
Martin v. Löwis mar...@v.loewis.de added the comment:
No, I only read the original message. I find it too tedious to read the entire
set of messages just to find out what the issue may be. If an issue has
sufficiently deviated from the original report, it is better closed, and a new
issue is
STINNER Victor victor.stin...@haypocalc.com added the comment:
- fd argument is retained, because we might want to test terminals
opened with openpty.
You mean a terminal different than the one used for stdin, stdout and stderr?
- two functions: still there. I think that
Zbyszek Szmek zbys...@in.waw.pl added the comment:
- fd argument is retained, because we might want to test terminals
opened with openpty.
You mean a terminal different than the one used for stdin, stdout and
stderr?
For example, let's see what is the size of my two xterms:
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Agreed. This behavior probably comes from the times when unicode was an
optional feature.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13722
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: +bethard
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13685
___
___
Python-bugs-list mailing
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: +jnoller
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13686
___
___
Python-bugs-list mailing
Terry J. Reedy tjre...@udel.edu added the comment:
I agree. It should explain the three options:
help(object): help on object or class of object, except
help('name'): help on object/module named 'name'
help(): run utility, which starts with utility help
help(help) prints unhelpful
Help on
Terry J. Reedy tjre...@udel.edu added the comment:
If this is fixed in 3.2, can this be closed?
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13692
___
Antoine Pitrou pit...@free.fr added the comment:
I hope the proper fix will ensure that an exception always is raised
if the ssl handshake fails - and that a successful wrap_socket means
that the ssl negotiation did succeed with the given constraints. It
might however only be feasible to fix
Antoine Pitrou pit...@free.fr added the comment:
http://docs.python.org/release/2.7.2/library/socket#socket.create_connection
doesn't describe how it loops over all IP addresses. That seems to be the
functions main advantage (and a gotcha) compared to creating the socket and
connecting
Terry J. Reedy tjre...@udel.edu added the comment:
The code works fine on 3.2.2, Win7, IDLE, narrowest window possible (about 14
chars), which actually wraps to the window width. (In command window, lines are
fixed length and scroll bar is added if window is narrowed.) What system and
version
Devin Jeanpierre jeanpierr...@gmail.com added the comment:
IMO, help('help') should document the help function, not start an interactive
help session (that’d be help()).
Ahhh, that explains it. help('help') isn't ever meant to be called; it's
supposed to be:
help()
...
help help
...
the
Éric Araujo mer...@netwok.org added the comment:
You should work in the 3.3 standard library, i.e. on Lib/argparse.py in the
default branch of the CPython Mercurial repository. See the devguide for more
info. Thanks!
--
___
Python tracker
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
stage: - needs patch
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13691
___
81 matches
Mail list logo