Gregory P. Smith g...@krypto.org added the comment:
r72210 pep8-ified the test names.
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3959
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
Actually I'd like to have some kind of convention mainly when the user
writes the encoding as a string, e.g. s.encode('utf-8'). Indeed, if the
encoding comes from a webpage or somewhere else it makes sense to have
some flexibility.
I think
Claudio Canepa ccanep...@gmail.com added the comment:
On Sat, May 2, 2009 at 11:31 PM, Kurt B. Kaiser rep...@bugs.python.orgwrote:
Kurt B. Kaiser k...@shore.net added the comment:
r72227.
How's your test code coming? A relative Win filename with leading
spaces should be found even when
Changes by tyoc z...@alum.com:
--
title: I need to import the module in the same thread? - I need to import the
module in the same thread
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5908
Georg Brandl ge...@python.org added the comment:
Interestingly, my setlocale(3p) man page says:
ERRORS
No errors are defined.
So isn't it debatable if returning the NULL pointer really is an error?
--
nosy: +georg.brandl
___
Python tracker
Jeroen Ruigrok van der Werven asmo...@in-nomine.org added the comment:
On the subject whether or not returning a null pointer should be
considered he said:
-
On the subject whether or not returning a null pointer should be
considered an error he said:
--
Changes by Jeroen Ruigrok van der Werven asmo...@in-nomine.org:
Removed file: http://bugs.python.org/file13843/locale.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1443504
___
Changes by Jeroen Ruigrok van der Werven asmo...@in-nomine.org:
Removed file: http://bugs.python.org/file13849/locale.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1443504
___
Jeroen Ruigrok van der Werven asmo...@in-nomine.org added the comment:
Really correct this time.
--
Added file: http://bugs.python.org/file13850/locale.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1443504
Mark Dickinson dicki...@gmail.com added the comment:
This doesn't look like a Python issue to me; it also looks like it's
nothing to do with ctypes, so I've unselected that from the components.
The bug may well be in gobjectmodule.c, which isn't part of core Python
AFAIK.
Any chance you
Jeroen Ruigrok van der Werven asmo...@in-nomine.org added the comment:
Georg pointed out a mistake I introduced in my patch, updated now.
--
Added file: http://bugs.python.org/file13849/locale.diff
___
Python tracker rep...@bugs.python.org
Jeroen Ruigrok van der Werven asmo...@in-nomine.org added the comment:
I asked that as well on the POSIX/SUS list and Don Cragun responded with:
If you make the last argument to setlocale() be a pointer to
unallocated memory, implementations would be allowed to set errno to
EFAULT and terminate
John Morton j...@angrymonkey.net.nz added the comment:
While it's true that repr() methods cannot generally be expected to eval
back into an object of the same type, the old repr behaviour of the
struct_time object did effectively do so. Admittedly it was a kludge due
to the time module
Gerald Britton gerald.brit...@gmail.com added the comment:
This bug reports corresponds to one opened on Gnome:
http://bugzilla.gnome.org/show_bug.cgi?id=578419
According to the devs there:
As far as I can tell this is a Python/C bug. PyGObject is doing
everything by
the book, and it is
New submission from ayal baron ayal.ba...@rocketier.com:
While running 2 or more threads, if one thread is importing anything
(i.e. has the import lock) and the other thread runs fork and then the
child process runs import then the child and parent will hang forever
(the child waits on the
New submission from Ezio Melotti ezio.melo...@gmail.com:
On Windows, with Python2/Python3, os.listdir('')/os.listdir(b'') list
the content of the current working directory and
os.listdir(u'')/os.listdir('') the content of C:\.
On Linux the error OSError: [Errno 2] No such file or directory: ''
Thomas Heller thel...@ctypes.org added the comment:
Tested myself, on a mipsel debian qemu instance.
--
resolution: accepted - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4305
Philipp Hagemeister phi...@phihag.de added the comment:
Updated patch to use the new ipaddr module instead of the
platform-specific socket.inet_pton (unavailable on some platforms,
including Windows XP)
Updated formatting
--
Added file:
Changes by Philipp Hagemeister phi...@phihag.de:
Removed file: http://bugs.python.org/file13198/mcast-example.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5379
___
New submission from Mark Dickinson dicki...@gmail.com:
Here's a patch that adds a PyOS_string_to_double function to complement
the recently added PyOS_double_to_string function.
This is supposed to be a more Pythonic version of PyOS_ascii_strtod. It
raises Python exceptions to correspond to
Eric Smith e...@trueblade.com added the comment:
This looks okay to me (although since it's not hooked up I haven't
tested it). I particularly like that it doesn't allow leading
whitespace, and that the caller no longer has to remember errno
(forgetting to set and/or test it have both caused me
Kurt B. Kaiser k...@shore.net added the comment:
IDLE doesn't control window placement - that's left to Tk to handle.
Hopefully it will get better with time. Once you take control, you
have to handle all the window placement, which is one of the things
that window managers are expert at,
Martin v. Löwis mar...@v.loewis.de added the comment:
ERRORS
No errors are defined.
So isn't it debatable if returning the NULL pointer really is an error?
As Jeroen reports, this really means two different things
a) no errors really means no errno codes. Whether or not
an
Martin v. Löwis mar...@v.loewis.de added the comment:
I am just wondering why we want to be quite different from how many
other languages are approaching the issue.
Because we have exceptions, and they don't. Would you also propose
that open() should return None, just because fopen(3) returns
Martin v. Löwis mar...@v.loewis.de added the comment:
The question remains, how to fix it?
Or whether to change it at all. It's hard to imagine that
applications may rely on that aspect of the behavior - they
have to use eval, after all.
--
___
Antoine Pitrou pit...@free.fr added the comment:
As for the C: behaviour, I think it is normal: you are not specifying
the path itself, only the drive letter, so it uses the current path in
the specified drive (which /is/ cwd if you are already running from C:,
but may be something else if
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +christian.heimes
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5910
___
___
Python-bugs-list
Mark Dickinson dicki...@gmail.com added the comment:
Thanks for the feedback!
Here's an updated patch that also deprecates PyOS_ascii_strtod and
PyOS_ascii_atof and hooks up PyOS_string_to_double everywhere. The
documentation still needs proper markup, and I'll add some C-API tests.
Martin v. Löwis mar...@v.loewis.de added the comment:
Before anything is changed, I would first like to understand where the
difference comes from.
If it gives ENOENT on Unix, it should also give ENOENT on Windows
(rather than giving ValueError). In addition, it should also give what
Eric Smith e...@trueblade.com added the comment:
This looks okay to me, and passes the tests.
In PyOS_string_to_double, you can simplify it by using PyErr_Format
instead of printing into a buffer and using PyErr_SetString. Sorry I
didn't catch this earlier.
--
Fazal Majid pyt...@sentfrom.com added the comment:
I am experiencing the same problem with 2.6.2, whether using parallel
make or not, but 2.6.1. builds just fine.
--
nosy: +majid
___
Python tracker rep...@bugs.python.org
Gregory P. Smith g...@krypto.org added the comment:
thanks! committed in r72237 py3k r72238.
--
resolution: - accepted
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5379
Steven Bethard steven.beth...@gmail.com added the comment:
A slightly improved patch, using DuplicateFile instead of storing a copy
of each file for each Python version. Should keep the size of the
resulting MSI similar to the size of the currently generated MSIs.
--
Added file:
Changes by Steven Bethard steven.beth...@gmail.com:
Removed file: http://bugs.python.org/file13847/bdist_msi.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5311
___
Gregory P. Smith g...@krypto.org added the comment:
both the behavior change and PySys_SetArgvEx() with an additional
boolean parameter sounds good to me.
Some people may disagree about changing the default behavior. So long
as its documented in the whatsnew I personally think it is fine. But
Changes by Mark Dickinson dicki...@gmail.com:
--
assignee: barry - marketdickinson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5724
___
___
Steven Bethard steven.beth...@gmail.com added the comment:
Ok, one last tiny update that makes sure TARGETDIR is always set to one
of the TARGETDIRX.Ys from a Feature that is actually selected.
I swear I'm done with this now. ;-)
--
Added file:
Changes by Steven Bethard steven.beth...@gmail.com:
Removed file: http://bugs.python.org/file13854/bdist_msi.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5311
___
Antoine Pitrou pit...@free.fr added the comment:
By the way, the advantage of a new function over a behaviour change is
that the new function could safely be backported to 2.6.3, since it is
also a security fix.
--
___
Python tracker
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +barry, benjamin.peterson
priority: critical - release blocker
stage: test needed - needs patch
versions: +Python 2.6, Python 3.0
___
Python tracker rep...@bugs.python.org
Gregory P. Smith g...@krypto.org added the comment:
release30-maint r72245 (its already been merged into py3k).
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5705
Martin v. Löwis mar...@v.loewis.de added the comment:
Can you kindly attach a demo MSI, to simplify review?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5311
___
Steven Bethard steven.beth...@gmail.com added the comment:
Here's an MSI generated for the argparse module.
--
Added file: http://bugs.python.org/file13856/argparse-0.9.1.win32.msi
___
Python tracker rep...@bugs.python.org
Gregory P. Smith g...@krypto.org added the comment:
yes the reporter is correct.
the suggested chdir happens in the subprocess.
however, that only works on posix systems:
windows currently uses popen2/3. (see issue1535504 for another issue
with that). switching to subprocess and passing in
Mark Dickinson dicki...@gmail.com added the comment:
Thanks. I've committed a version of this patch, with Eric's suggested
PyErr_Format change, in r72248.
--
resolution: - accepted
stage: patch review - committed/rejected
status: open - closed
___
New submission from Martin v. Löwis mar...@v.loewis.de:
This is the implementation of PEP 383. Rietveld submission will follow.
--
assignee: benjamin.peterson
files: 383.diff
keywords: patch
messages: 87069
nosy: benjamin.peterson, loewis
priority: release blocker
severity: normal
Martin v. Löwis mar...@v.loewis.de added the comment:
http://codereview.appspot.com/52095
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5915
___
Martin v. Löwis mar...@v.loewis.de added the comment:
Some notes, in addition to the PEP:
- the file system APIs have all stopped using et converters, and use O
converters, with a new API function PyUnicode_FSConverter. This outputs
a bytes or bytearray object which needs to be released when
Terry J. Reedy tjre...@udel.edu added the comment:
When I shrank the initial height, tk starting randomizing the initial
placement so that it only occasionally puts the window too low. I will
tolerate that.
It is a bug for a window manager to ignore the Taskbar; this is rare to
unique in my
Guilherme Polo ggp...@gmail.com added the comment:
It is a bug for a window manager to ignore the Taskbar; this is rare to
unique in my experience. In fact, most Windows apps reopen at the size
and position closed. But I am no longer bothered enough to find,
register with, and post to
Benjamin Peterson benja...@python.org added the comment:
The calls to bytes2str are not checked in posixmodule.c.
http://codereview.appspot.com/52095/diff/1/5
File Include/unicodeobject.h (right):
http://codereview.appspot.com/52095/diff/1/5#newcode1254
Line 1254: The function is intended to
Gregory P. Smith g...@krypto.org added the comment:
fyi - non-posix / non-windows platforms could include alternate python
VMs that don't support fork, popen2 or subprocess.
--
assignee: gregory.p.smith -
___
Python tracker rep...@bugs.python.org
New submission from Philipp Hagemeister phi...@phihag.de:
From the documentation of socket.inet_aton (and socket.inet_ntoa):
inet_aton() does not support IPv6, and getnameinfo() should be used
instead for IPv4/v6 dual stack support.
socket.getnameinfo can not replace inet_aton/inet_ntoa at
Gregory P. Smith g...@krypto.org added the comment:
not reproducable in head as stated.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3066
___
New submission from Philipp Hagemeister phi...@phihag.de:
socket.inet_ntop is only available on some UNIX platforms, although for
example Windows users may want to use it. The new ipaddr module provides
a platform-independent conversion to the packed format on all platforms
and should therefore
R. David Murray rdmur...@bitdance.com added the comment:
On Sun, 3 May 2009 at 08:55, Jeroen Ruigrok van der Werven wrote:
I am just wondering why we want to be quite different from how many
other languages are approaching the issue. Sure enough, we can use a
try: construct, but it kind of
R. David Murray rdmur...@bitdance.com added the comment:
On Sun, 3 May 2009 at 17:36, Antoine Pitrou wrote:
As for the C: behaviour, I think it is normal: you are not specifying
the path itself, only the drive letter, so it uses the current path in
the specified drive (which /is/ cwd if you
Walter Dörwald wal...@livinglogic.de added the comment:
Checked in:
r72260 (trunk)
r72262 (release26-maint)
r72265 (py3k)
r72266 (release30-maint)
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
STINNER Victor victor.stin...@haypocalc.com added the comment:
The problem with your patch is that it calls PyUnicode_DecodeUTF8()
twice
I read your patch: storing the decoded string is the right way to do
that, but i didn't noticed the callresult stack.
Could you test this new version to
Antoine Pitrou pit...@free.fr added the comment:
Here is a patch for trunk.
--
Added file: http://bugs.python.org/file13860/setargvex.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5753
Antoine Pitrou pit...@free.fr added the comment:
Jan, would the new API be ok to you?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5753
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
PEP 349 was rejected because it breaks backward compatibility, eg. it
breaks the assomption that str(ux) converts unicode to byte string.
Python3 is the only good fix for all byte/character Python2 issues.
--
resolution:
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
components: -Windows
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1602
___
___
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
components: +Windows
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1602
___
___
Antoine Pitrou pit...@free.fr added the comment:
Yes, it is a Windows problem. There simply doesn't seem to be a true
Unicode codepage for command-line apps. Recommend closing.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
New submission from Antoine Pitrou pit...@free.fr:
This happens sometimes here on trunk, in non-debug mode:
$ ./python -m test.regrtest test_distutils test_parser
Could not find '/home/antoine/cpython/__svn__/Lib/test' in sys.path to
remove it
test_distutils
0 blocks
find:
STINNER Victor victor.stin...@haypocalc.com added the comment:
I like the idea of using uint16_t and uint32_t. Unicode 5.1 contains
approximately 1 million of codes (and 100,000 characters), so 21 bits
are already enough to use the full Unicode 5.1 standard (released in
April 2009). Use more
Antoine Pitrou pit...@free.fr added the comment:
Sorry, it also fails with ./python -m test.regrtest test_os
test_parser, so it's not caused by test_distutils.
--
assignee: tarek -
title: test_parser crashes when run after test_distutils - test_parser crashes
when run after some other
STINNER Victor victor.stin...@haypocalc.com added the comment:
The patch introduces a memory leak, canonicalize_file_name() returns a
new allocated string which is not freed later.
--
___
Python tracker rep...@bugs.python.org
Gregory P. Smith g...@krypto.org added the comment:
Committed with a couple refactorings in trunk r72267. I also added a
test (basically checking for corruption that would occur if the locks
weren't working).
(I'll sort out any py3k vs trunk differences to make future change
merges easier).
Eric Smith e...@trueblade.com added the comment:
With the implementation of issue5859 (py3k only), the only case where
this matters in NAN and INF. I'm going to address those in 3.1, and not
make any change for 2.x.
--
versions: -Python 2.7
___
Eric Smith e...@trueblade.com added the comment:
With the new PyOS_double_to_string, this issue largely goes away. There
are some remaining issues with commas, 'n' and the like. I'll address those.
--
___
Python tracker rep...@bugs.python.org
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
I hope attached patch works.
import os
os.listdir()
Traceback (most recent call last):
File stdin, line 1, in module
WindowsError: [Error 3] 指定されたパスが見つかりません。: ''
[36200 refs]
os.listdir(u)
Traceback (most recent call last):
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
For u, os.listdir calls FindFirstFileW with u\\*.*,
For , os.listdir calls FindFirstFileA with *.*.
The code before FindFirstFile[AW] is slightly different for empty path.
--
___
Python
Larry Hastings la...@hastings.org added the comment:
I've generated a new patch, attached. I don't know why you had trouble
applying. I tested this one with a clean tree and patch -p1 ... and
it applied cleanly. If it fails again, how about I upload the three
modified files?
I removed the
Martin v. Löwis mar...@v.loewis.de added the comment:
Hirokazu, the patch looks fine, please apply to 2.7 and 3k.
I wouldn't backport it to 2.6/3.0, since it may break existing code.
--
assignee: - ocean-city
resolution: - accepted
___
Python
Martin v. Löwis mar...@v.loewis.de added the comment:
Reviewers: report_bugs.python.org, Benjamin,
Message:
Fixed in r72272
http://codereview.appspot.com/52095/diff/1/5
File Include/unicodeobject.h (right):
http://codereview.appspot.com/52095/diff/1/5#newcode1254
Line 1254: The function is
Changes by Martin v. Löwis mar...@v.loewis.de:
Removed file: http://bugs.python.org/file13857/383.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5915
___
Changes by Martin v. Löwis mar...@v.loewis.de:
Added file: http://bugs.python.org/file13863/383.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5915
___
79 matches
Mail list logo