New submission from Ritesh Raj Sarraf r...@researchut.com:
Shoudl argparse be included in the Python Standard Library.
I know we already have getopt and optparse but optparse doesn't
support many features easily. (like options without hyphen, nargs=*)
Here a little about argparse:
argparse:
Martin v. Löwis mar...@v.loewis.de added the comment:
One important prerequisite for including it is that the author of the
code contributes it for inclusion (irrespective of any license that may
allow us to fork the code), and that he, or somebody else, volunteers to
maintain it.
IIUC, you are
Martin v. Löwis mar...@v.loewis.de added the comment:
To add a little bit more analysis: posix.device_encoding requires that
the LC_CTYPE is set. Setting it just in this function would not be
possible, as setlocale is not thread-safe.
So for 3.1, it seems that Python must set LC_CTYPE. If
Martin v. Löwis mar...@v.loewis.de added the comment:
Why is this still open?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5623
___
___
Ritesh Raj Sarraf r...@researchut.com added the comment:
From the author, Steven Berthard:
Sorry about the delay - conferences and moving means that I haven't
had as much time for argparse as I'd like. Basically, the way things
get into the Python standard library is if a
rubisher rubis...@scarlet.be added the comment:
Just to mention the same issue for Python-2.6.2 and gcc-4.2.0 on aix
5.3 too.
--
nosy: +rubisher
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6006
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
Closing this defect, as the issues seems worked around on our end.
Btw, here is the issue on Microsoft's end. They've marked it as won't
fix.
https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?
John Szakmeister j...@szakmeister.net added the comment:
I think Ronald is trying to say that a 10.6 SDK is likely not to support
building 64-bit binaries at all for the PPC (since there won't be 64-bit
versions of the supporting libraries). So you need this patch, if
you're going to build
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Here is a patch: fix+test.
I left the initial code, #ifdef'd for PC platforms different than
MS_WINDOWS. Just in case someone wants to port py3k to OS/2...
--
keywords: +patch
Added file:
Changes by Antoine Pitrou pit...@free.fr:
--
assignee: - georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6203
___
___
Python-bugs-list
Antoine Pitrou pit...@free.fr added the comment:
Why do you need all this? Isn't it enough to take a weakref and check
the callback is triggered?
(besides, we should avoid tests which only work in debug mode)
--
___
Python tracker
Antoine Pitrou pit...@free.fr added the comment:
AIX doesn't seem listed in the platforms supported by libffi.
http://sourceware.org/libffi/ suggests you send platform test results to
libffi-disc...@sourceware.org
On the other hand, perhaps the libffi version which comes with Python is
Eric Smith e...@trueblade.com added the comment:
In r73314, I restored the one test erroneously removed (%#.0f 1.5 - 2.).
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6198
Senthil orsent...@gmail.com added the comment:
I hope you read this thread which discusses the same issue.
* http://mail.python.org/pipermail/python-list/2007-January/592646.html
MvL,effbot and jjlee had shared their views to the original author of
argparse module. It did not go anywhere from
Changes by Benjamin Peterson benja...@python.org:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6247
___
___
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
Here is a better patch.
Remove the individual flush() operations from the implementation classes,
rather do it in the BaseHTTPRequestHandler(). This allows any request
handler to be write buffered.
--
Added file:
Ritesh Raj Sarraf r...@researchut.com added the comment:
Thanks for the link. As a user, I see many of the features that argparse
brings, to be helpful.
Since they are missing in optparse, and since it doesn't look like
argparse will be included, should I open new bugs for those features
Lisandro Dalcin dalc...@gmail.com added the comment:
I've tested latest David's patch against Cython test suite (doctests
living in extension modules), and all is working as expected.
--
___
Python tracker rep...@bugs.python.org
Robert Cronk cron...@gmail.com added the comment:
Thanks Vinay. I ran the newest revised script with virus protection
turned off and got the same failures as before (see console output
below).
If you comment out the os.system() calls, everything works just fine.
Uncomment them and logging
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
Debugging threading problems is never as simple as it seems. I don't
believe logging is breaking because of some interaction with the system
calls - rather, the presence of the system calls is changing the
real-time characteristics of the
New submission from Kristján Valur Jónsson krist...@ccpgames.com:
When an error occurs in a StreamRequestHandler, its wfile and rfile
members are not closed. This causes the underlaying socket to stay
alive and and it is therefore not closed, even when the SocketServer
closes it in
Antoine Pitrou pit...@free.fr added the comment:
Guido, Raymond suggested we ask your input on this one, although it's
obviously a bit late (the patch has been committed).
--
nosy: +gvanrossum
___
Python tracker rep...@bugs.python.org
Guido van Rossum gu...@python.org added the comment:
I'm not on IRC. What exactly is your question for me? What is Raymond's
view?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6137
___
Robert Cronk cron...@gmail.com added the comment:
I'll thoroughly look through every piece of software that's running to
see if I can turn eveything off that might be causing the problem.
Were you able to reproduce the problem with my original script? I'm
sure you have all of your
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
I vaguely remember you rejecting a proposal along these lines when Brett
was doing the library renaming.
The patch (as applied) turns on the renaming automatically when used
with protocol 2 (i.e. all object names are stored
Guido van Rossum gu...@python.org added the comment:
Ah. How about only doing back-translation when protocol=2 (or lower)
is explicitly selected?
I don't much like that 3.0 will be to read pickles written by 3.1 with
the default protocol (i.e. 3), but I don't mind breaking protocol 2,
since
Antoine Pitrou pit...@free.fr added the comment:
Ah. How about only doing back-translation when protocol=2 (or lower)
is explicitly selected?
Well, this is exactly what is implemented!
I don't much like that 3.0 will be to read pickles written by 3.1 with
the default protocol (i.e. 3),
I
Guido van Rossum gu...@python.org added the comment:
On Tue, Jun 9, 2009 at 12:16 PM, Antoine Pitrourep...@bugs.python.org wrote:
Antoine Pitrou pit...@free.fr added the comment:
Ah. How about only doing back-translation when protocol=2 (or lower)
is explicitly selected?
Well, this is
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Thanks for taking a look and opining.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6137
___
Geoffrey Bache gjb1...@users.sourceforge.net added the comment:
My comp.lang.python thread is here:
http://groups.google.com/group/comp.lang.python/browse_thread/thread/a0c35c3c9ad210a4
It was met by deafening silence though.
I don't see why a simple format would need to be customer-specific.
Alexandre Vassalotti alexan...@peadrop.com added the comment:
Why do you need all this? Isn't it enough to take a weakref and check
the callback is triggered?
No, because you would need a weak reference to the instance's __dict__,
which is unavailable for io.StringIO.
Anyway, here's a
Alexandre Vassalotti alexan...@peadrop.com added the comment:
I think the build configuration for _io on Windows is missing.
Modules/Setup.dist probably needs to be updated too.
--
___
Python tracker rep...@bugs.python.org
Martin v. Löwis mar...@v.loewis.de added the comment:
FWIW,
it's the --with-universal-archs option that he said wasn't 100% usable,
not the binaries.
Ah, ok. That clarifies it.
--
___
Python tracker rep...@bugs.python.org
Antoine Pitrou pit...@free.fr added the comment:
I think the build configuration for _io on Windows is missing.
Yes.
Modules/Setup.dist probably needs to be updated too.
Not sure, I don't think any of these modules are built-in.
--
___
Python
Martin v. Löwis mar...@v.loewis.de added the comment:
The patch looks right to me, please apply.
--
assignee: - amaury.forgeotdarc
resolution: - accepted
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5924
Alexandre Vassalotti alexan...@peadrop.com added the comment:
Not sure, I don't think any of these modules are built-in.
Ah true. Although there are built-in in py3k, you are right that it
doesn't make sense to make the trunk versions built-in.
--
Martin v. Löwis mar...@v.loewis.de added the comment:
Since they are missing in optparse, and since it doesn't look like
argparse will be included, should I open new bugs for those features
against optparse ?
I think chances are very low that any such bug report would be reacted
on within
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Fixed in r73322 (py3k) and r73323 (3.0)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5924
___
Changes by Amaury Forgeot d'Arc amaur...@gmail.com:
--
resolution: accepted - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5924
___
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
It was met by deafening silence though.
Give it time - it's only been a few days. For some reason, Google Groups
doesn't show your post in the first page of results when I search for
logging configuration by date (i.e. most recent on top):
Alexandre Vassalotti alexan...@peadrop.com added the comment:
Jean Brouwers wrote:
All tests passed after regenerating the expected results
The tests for profile are output test. If you regenerate them, they pass
for sure.
Merging cProfile/profile will require a lot more work than just
Robert Cronk cron...@gmail.com added the comment:
I turned off anti-virus again as well as file indexing and google
desktop too and still got the errors when I disabled the locks around
the os.system() calls.
Vinay - when the locks aren't around the os.system() calls, do you get
the rotating
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Fixed with r73325.
2.7 really introduces an incompatibility here; I added an entry in the
whatsnew file.
--
nosy: +amaury.forgeotdarc
resolution: - fixed
status: open - closed
___
Python
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
I've just run a test several times - it's your original script with
joins added at the end. I kept the acquire_lock and release_lock calls
but made them only do anything if a constant USE_LOCK was True. I set
this to False, so that no
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk:
Added file: http://bugs.python.org/file14248/thredio.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4749
___
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk:
--
resolution: - invalid
status: open - closed
Added file: http://bugs.python.org/file14249/python-io-capture.log
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4749
Jason Kankiewicz jkankiew...@acm.org added the comment:
I've attached a patch, based on the original, that will fix distutils
for both GCC and ICC.
--
nosy: +jkankiewicz
Added file: http://bugs.python.org/file14250/distutils-rpath-gcc_and_icc.patch
Changes by Jason Kankiewicz jkankiew...@acm.org:
Removed file: http://bugs.python.org/file14250/distutils-rpath-gcc_and_icc.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1254718
___
Jason Kankiewicz jkankiew...@acm.org added the comment:
I've updated my patch to resemble the patch from issue1032 and also
because profiling showed that using str.__contains__ is more efficient
than using str.find.
--
Added file:
New submission from SonMarvin marvi...@gmail.com:
When I open a Python File Prompt closes it quickly.My friends do not
have this problem. Now reinstall, download older versions and the
problem continued.
--
components: Windows
messages: 89177
nosy: SonMarvin
severity: normal
status:
Seo Sanghyeon sanx...@gmail.com added the comment:
any() built-in is new in 2.5. PEP 291 specifies 2.3 compatibility for
distutils. (tarek: Why?) The original patch used str.find because
backward-compatibility requirement used to be stricter.
--
___
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
FWIW, min() can usually be substituted for any().
--
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1254718
Robert Cronk cron...@gmail.com added the comment:
Vinay - that's great news! Are you going to create a new bug for this issue
with a proper title? It would seem to me that the fix for this would be to put
locks internal to the os.system() call around where it spawns cmd so multiple
spawns
Changes by Alexandre Vassalotti alexan...@peadrop.com:
--
resolution: - duplicate
status: open - closed
superseder: - GCC detection for runtime_library_dirs when ccache is used
___
Python tracker rep...@bugs.python.org
Alexandre Vassalotti alexan...@peadrop.com added the comment:
Honestly, I don't think it is a big issue. MemoryErrors are rare and
typically cause the interpreter to shutdown.
By the way, do you think the static PyExc_RecursionErrorInst object is
affected by this bug?
--
nosy:
Steven Bethard steven.beth...@gmail.com added the comment:
I'm happy to contribute argparse to the standard library and volunteer
to maintain it.
For what it's worth, I don't agree that there are already too many
argument parsing libraries in the standard library. I do agree that
there are
New submission from James Abbatiello abb...@gmail.com:
Python currently emits bytecode for code that is unreachable (e.g.
following a return statement). This doesn't hurt anything but it takes
up space doing nothing.
This patch attempts to avoid generating any bytecode in this situation.
57 matches
Mail list logo