Raymond Hettinger added the comment:
We document what we're willing to guarantee. The exposure of descriptors in
old-style classes was an incidental implementation detail.
Sorry, I'm going to close this one. Besides, it's time to start forgetting
Python 2 and move along :-)
--
Changes by Andreas Jung zopyxfil...@gmail.com:
--
components: +Build
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18092
___
___
Python-bugs-list
New submission from Andreas Jung:
I tried to install 2.7.5 on my OpenSuse 12.2 (latest patches)
ajung@blackmoon2:~/sandboxes/mib.portal cat /etc/issue
Welcome to openSUSE 12.2 Mantis - Kernel \r (\l).
Compilation went fine (no visible errors).
Starting the interpreter gives me:
Ned Deily added the comment:
Without more information, it is difficult to guess what is going wrong. Please
provide exactly what ./configure options you used to build Python and any make
install options. When you start Python, what values do sys.prefix,
sys.exec_prefix, and sys.path have?
Martin v. Löwis added the comment:
I can't reproduce the issue it all; IDLE just readily pins to the task bar with
the correct icon. Can somebody please provide exact steps to reproduce?
--
___
Python tracker rep...@bugs.python.org
Dražen Lučanin added the comment:
I created a first version of the patch (attached as a remote hg repo). It would
enable users to exclude hidden files with:
import os
print(os.listdir(path='.', show_hidden=False))
while still keeping full backwards compatibility, since show_hidden is
Ronald Oussoren added the comment:
I'm +1 on the general idea, but have some remarks anyway:
1) for all users vs. current user
This likely requires a post-install script to fix up the load command's in
binaries: on OSX binaries contain absolute paths to the libraries the link with
(which for
Ronald Oussoren added the comment:
BTW. There is a completely different way for distributing Python: drop the
entire installer and provide a zipfile containing a single application bundle.
The most likely target for the application is IDLE, with a new menu item for
making the command-line
Terry J. Reedy added the comment:
All I did was install (standard, all users) and start Idle without rebooting.
Problem goes away after reboot. This happened on previous versions with
different hardware.
--
___
Python tracker rep...@bugs.python.org
Amaury Forgeot d'Arc added the comment:
The concept of hidden file depends on the platform, and is independent of the
listdir() function. The first thing is to agree on an implementation of the
hidden property, and expose it as os.path.ishidden.
Then we can consider an option to os.listdir.
Antoine Pitrou added the comment:
I don't really understand, since this is an easy one-liner:
[n for n in os.listdir(...) if not n.startswith(.)]
Also, as mentioned, what you want to hide is not necessarily well-defined. For
example, under Unix you might want to hide *~ files.
So I don't
Antoine Pitrou added the comment:
If noone has reported the issue in years (Google doesn't seem to report any
occurrence), perhaps it means the code is simply not used anymore? In which
case it should probably be removed.
--
nosy: +pitrou
___
Antoine Pitrou added the comment:
Looks good to me.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9369
___
___
Python-bugs-list
Dmi Baranov added the comment:
Also, as mentioned, what you want to hide is not necessarily
well-defined. For example, under Unix you might want
to hide *~ files.
Yes, and instead of adding another parameters, something like that:
os.listdir(path, show_hidden=False, hidden_files_mask='*~',
Dmi Baranov added the comment:
Fred or Serhiy - any news here? I'm signed Contributor Agreement few days ago,
just waiting a change in my profile here, please don't worry about copyright :-)
--
___
Python tracker rep...@bugs.python.org
Changes by Larry Hastings la...@hastings.org:
--
nosy: +Mark.Shannon, rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18090
___
___
Larry Hastings added the comment:
Either of you gentlemen care to offer an opinion?
--
nosy: +benjamin.peterson, pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18091
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - rejected
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18087
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9369
___
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16102
___
___
Amaury Forgeot d'Arc added the comment:
And is it necessary to list all functions there?
Many functions share the same behavior: they don't change the ownership of
PyObject* passed as argument, and return a new reference.
Only document functions that don't conform to this rule, like
Antoine Pitrou added the comment:
I would recommend suppressing all register keywords from our C source files.
It shouldn't make any difference these days.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18090
Serhiy Storchaka added the comment:
Can you please submit a contributor form?
http://python.org/psf/contrib/contrib-form/
http://python.org/psf/contrib/
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18084
Stefan Krah added the comment:
Here's a baroque patch for _decimal. It's complicated by the fact
that there's no way of knowing what kind of UTF-8 fragments might
be hidden in multi-byte separators or decimal points.
--
Added file: http://bugs.python.org/file30407/issue17768.diff
Nick Coghlan added the comment:
Note that the two patches are the same, I was just curious to see the
difference in handling between them in terms of the review integration.
--
___
Python tracker rep...@bugs.python.org
New submission from Nick Coghlan:
This patch moves the C level main functions for python, _testembed and
_freeze_importlib to a new Programs directory.
I added README files with my current understanding of the expected contents of
the Python, Objects, Modules and Programs directories and also
Changes by Nick Coghlan ncogh...@gmail.com:
Added file: http://bugs.python.org/file30409/move_programs.git.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18093
___
Changes by Nick Coghlan ncogh...@gmail.com:
Removed file: http://bugs.python.org/file30408/move_programs.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18093
___
Changes by Nick Coghlan ncogh...@gmail.com:
--
Removed message: http://bugs.python.org/msg190293
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18093
___
Dražen Lučanin added the comment:
@Amaury Forgeot d'Arc - well, the '.' and '..' special files are
detected directly in the listdir code, so I don't think there is any
need to interleave this logic any deeper (such as os.path.ishidden).
@Antoine Pitrou - a one-liner, but it unnecessarily
Dmi Baranov added the comment:
I'll be glad to do it, but having some questions for discussing.
First about FEXTRA format - it consists of a series of subfields [1] and
current Lib/test/test_gzip.py :: test_read_with_extra having a bit incorrect
extra field - sure, if somebody using format
New submission from Serhiy Storchaka:
Tests in test_uuid just silently skipped if ran on unsuitable platform or if
required module is not available. In such cases tests resulted as succesful
passed. The proposed patch uses unittest.skipUnless to mark them as skipped.
--
components:
Serhiy Storchaka added the comment:
Any exceptions were silently dropped. And tests silently skipped (issue18094).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16102
___
Fred L. Drake, Jr. added the comment:
From v5 of the patch:
+ A context managers that temporarily replaces the :data:`sys.stdin` /
+ :data:`sys.stdout` / :data:`sys.stderr` stream with :class:`io.StringIO`
+ object.
I'd go with singular nouns instead of trying to map across them with
Xavier de Gaye added the comment:
The problem is that when the fifo contains a producer and the more()
method of the producer returns a non-empty bytes sequence, then the
producer must be put back in the fifo first. This is what does the
following change made to Pierrick patch:
diff --git
Changes by Serhiy Storchaka storch...@gmail.com:
Added file: http://bugs.python.org/file30412/zip_extra.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17681
___
Serhiy Storchaka added the comment:
I have an almost ready patch but I doubt about interface. It can be discussed.
ZIP file entries have similar extra field and I'm planning to add similar
feature to the zipfile module too.
Here are preliminary patches.
--
keywords: +patch
title:
Giampaolo Rodola' added the comment:
I think we shouldn't expect asynchat to be thread safe in this regard.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17925
___
Changes by Barry A. Warsaw ba...@python.org:
--
nosy: +barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18093
___
___
Python-bugs-list mailing
Serhiy Storchaka added the comment:
LGTM with Fred's suggestion.
--
assignee: docs@python - fdrake
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17987
___
englabenny added the comment:
NIST has published a tentative schedule for SHA-3 standardization. They expect
to publish in the second quarter of 2014.
See http://csrc.nist.gov/groups/ST/hash/sha-3/timeline_fips.html
and http://csrc.nist.gov/groups/ST/hash/sha-3/sha-3_standardization.html
Roundup Robot added the comment:
New changeset 30128355f53b by Senthil Kumaran in branch '3.3':
#17403: urllib.parse.robotparser normalizes the urls before adding to ruleline.
http://hg.python.org/cpython/rev/30128355f53b
New changeset e954d7a3bb8a by Senthil Kumaran in branch 'default':
merge
Andrew Stormont added the comment:
What about changing:
self.producer_fifo.appendleft(first)
self.producer_fifo.appendleft(data)
To
self.producer_fifo.extendleft([data, first])
Assuming deque's extendleft is actually thread safe.
--
___
Python
Senthil Kumaran added the comment:
This is fixed in default, 3.3 and 2.7. I will merge this change to 3.2 code
line before closing this. I shall raise a new request for updating robotparser
with other goodies.
--
___
Python tracker
Roundup Robot added the comment:
New changeset 9156c663d6aa by Stefan Krah in branch '3.3':
Issue #17768: Support newline fill character in decimal.py and NUL fill
http://hg.python.org/cpython/rev/9156c663d6aa
--
nosy: +python-dev
___
Python tracker
Changes by Stefan Krah stefan-use...@bytereef.org:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17768
___
New submission from Roman Valov:
There is a way to disconnect UDP socket
that was previously connected to specific
remote endpoint in C:
struct sockaddr_in sin;
memset((char *)sin, 0, sizeof(sin));
sin.sin_family = AF_UNSPEC;
connect(fd, (struct sockaddr *)sin, sizeof(sin));
Marius Gedminas added the comment:
This is a duplicate of issue2604, isn't it?
--
nosy: +mgedmin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9736
___
Changes by Stefan Drees ste...@drees.name:
--
nosy: +dilettant
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18093
___
___
Python-bugs-list
João Bernardo added the comment:
I did what @Richard Oudkerk said and created the wait_for_any classmethod for
the Condition class.
Other Changes:
- I had to refactor wait and wait_for to be specializations of
wait_for_any.
- try...except on notify because the inner lock might have been
Hideaki Takahashi added the comment:
I signed it and by eSign and got a signed/filed response yesterday.
But according to Lifecycle of a patch in developer guide, my name is needed to
be added to Misc/ACKS.
Can I update patch to do this?
--
___
Ethan Furman added the comment:
Working on documentation...
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17947
___
___
Python-bugs-list
Serhiy Storchaka added the comment:
Yes, please.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18084
___
___
Python-bugs-list mailing list
Serhiy Storchaka added the comment:
Jörg, Lars, can you please submit a contributor form?
http://python.org/psf/contrib/contrib-form/
http://python.org/psf/contrib/
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9369
Roundup Robot added the comment:
New changeset 0a45896a7cde by Serhiy Storchaka in branch 'default':
Issue #9369: The types of `char*` arguments of PyObject_CallFunction() and
http://hg.python.org/cpython/rev/0a45896a7cde
--
nosy: +python-dev
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: accepted - fixed
stage: commit review - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9369
___
michael kearney added the comment:
Thanks for the pointer to your work and discussion in issue16895. I was
contemplating something along those lines. I had not started down that path
first because I've only relatively recently thrashed the problem enough to
understand the issues, and second
Benjamin Peterson added the comment:
If you want to convince Blender to stop using it, you can kill it. It's seems
fairly harmless, though.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18091
Changes by Tshepang Lekhonkhobe tshep...@gmail.com:
--
nosy: +tshepang
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18093
___
___
Xavier de Gaye added the comment:
extendleft is an extension module C function (in the _collections
module) that does not release the GIL, so it is thread safe.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17925
New submission from David Taylor:
Misc/python-config.in returns a bad library order when given the --ldflags or
--libs arguments. A library should be listed *BEFORE* those libraries that it
depends upon. The python library depends upon all the other libraries listed,
but it is listed last
Skip Montanaro added the comment:
And is it necessary to list all functions there?
Probably not. However, BITD, I was figuring this stuff out as I was
going along by examining the source code and writing down what I
found. No regard for common or special cases.
S
--
New submission from Michel Weinachter:
LinkedIn
I'd like to include you in my network to share updates and stay in touch.
- Michel
Michel Weinachter
Senior security manager / RSSI at Thales
Paris Area, France
Confirm that you know Michel Weinachter:
Matthew Barnett added the comment:
You could've obtained it from msg76556 or msg190100:
print(ascii('हिन्दी'))
'\u0939\u093f\u0928\u094d\u0926\u0940'
import re, regex
print(ascii(re.match(r\w+,
'\u0939\u093f\u0928\u094d\u0926\u0940').group()))
'\u0939'
print(ascii(regex.match(r\w+,
Changes by Amaury Forgeot d'Arc amaur...@gmail.com:
--
resolution: - invalid
status: open - closed
title: Check out my profile on LinkedIn - spam
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18097
Jeffrey C. Jacobs added the comment:
Thanks Matthew and sorry to put you through more work; I just wanted to verify
exactly which unicode (UTF-16 I take it) were being used to verify if the
UNICODE standard expected them to be treated as unique words or single letters
within a word. Sanskrit
Matthew Barnett added the comment:
UTF-16 has nothing to do with it, that's just an encoding (a pair of them
actually, UTF-16LE and UTF-16BE).
And I don't know why you thought I was using findall in msg190100 when the
examples were using match! :-)
--
Changes by R. David Murray rdmur...@bitdance.com:
Removed file: http://bugs.python.org/file30415/unnamed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18097
___
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18090
___
___
Python-bugs-list
Hideaki Takahashi added the comment:
Patch updated. Thanks.
--
Added file: http://bugs.python.org/file30416/18084_2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18084
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +mark.dickinson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18090
___
___
STINNER Victor added the comment:
Let see Modules/_sre.c:
#define SRE_UNI_IS_ALNUM(ch) Py_UNICODE_ISALNUM(ch)
#define SRE_UNI_IS_WORD(ch) (SRE_UNI_IS_ALNUM(ch) || (ch) == '_')
[ch.isalpha() for ch in '\u0939\u093f\u0928\u094d\u0926\u0940']
[True, False, True, False, True, False]
import
Mark Shannon added the comment:
The register qualifier on the parameter does not alter the calling convention,
it determines the storage class of the parameter variable within the function.
Having said that I am all in favour in removing any and all register
declarations.
--
Larry Hastings added the comment:
The register qualifier on the parameter does not alter the calling
convention, it determines the storage class of the parameter variable
within the function.
You assert that declaring a parameter as register instructs the compiler that
callers should pass
Roundup Robot added the comment:
New changeset ccffce2dde49 by Serhiy Storchaka in branch 'default':
Issue #18084: Use sys.byteorder in wave.py.
http://hg.python.org/cpython/rev/ccffce2dde49
--
nosy: +python-dev
___
Python tracker
Serhiy Storchaka added the comment:
Thank you for your patch.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18084
Stefan Krah added the comment:
With this patch float and int should behave like Decimal. It may
break existing code that (accidentally) uses both legacy zero padding
and explicit alignment.
--
keywords: +patch
stage: needs patch - patch review
versions: -Python 3.3
Added file:
Stefan Krah added the comment:
Hi, I think this broke the tiger buildbot:
http://buildbot.python.org/all/builders/x86%20Tiger%203.x/builds/6368/steps/test/logs/stdio
--
nosy: +skrah
___
Python tracker rep...@bugs.python.org
New submission from Ned Deily:
The Build Applet.app tool for OS X depends on the deprecated EasyDialogs module
to interact with the user. EasyDialogs depends on Apple-deprecated Carbon
QuickDraw APIs. As of OS X 10.8, the headers for the QuickDraw APIs are no
longer supplied with Xcode 4.
Changes by Todd Rovito rovit...@gmail.com:
--
nosy: +Todd.Rovito
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7136
___
___
Python-bugs-list
Todd Rovito added the comment:
Roger's patch works but the documentation has changed since he made the patch
back in 2011. So I patched the patch and hope this very simple patch will get
committed. I will work on a patch for 2.7 next.
Today I was teaching a student on how to use Python with
Todd Rovito added the comment:
Same patch but for Python 2.7.5. I just updated the documentation from Roger's
excellent patch.
--
versions: +Python 2.7
Added file:
http://bugs.python.org/file30419/7136FileMenuConfusionV22point7.patch
___
Python
Roger Serwy added the comment:
The problem I'm encountering is that tk.splitlist() is now being given a
Tcl_Obj instead of a str type. Since everything is Tcl is a string,
explicitly casting a Tcl_Obj to a string seems reasonable. Attached is some
proof-of-concept code to work around the
Roger Serwy added the comment:
LGTM. Thanks Todd!
--
assignee: - roger.serwy
stage: needs patch - commit review
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7136
___
Roger Serwy added the comment:
I'm running Win7 64-bit in a VM. The steps for me was to start with a system
without any Python version installed. Install 3.3.1 32-bit, and then install
3.3.2 32-bit. IDLE launches with a red Tk icon and pinning it to the task bar
does not actually pin IDLE. A
paul j3 added the comment:
This is a refinement of the patch with Message188609.
In parse_known_intermixed_args, the temporary capture of formatted usage has
been put in a try/finally structure.
Positionals are now 'deactivated' with
action.nargs = SUPPRESS
action.default = SUPPRESS
Glenn Linderman added the comment:
These sound like good refinements. You've been thinking. By making the
fallback happen externally, it simplifies the implementation of
parse_intermixed_args, and forces the application to accept responsibility for
calling it with a consistent set of
87 matches
Mail list logo