On 29Apr2012 11:42, Chris Angelico ros...@gmail.com wrote:
| On Sun, Apr 29, 2012 at 10:45 AM, kenk marcin.maksym...@googlemail.com
wrote:
| I've got a server process written in C++ running on Unix machine.
| On the same box I'd like to run multiple Python scripts that will
| communicate with
On 29Apr2012 02:49, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info
wrote:
| On Sat, 28 Apr 2012 14:55:42 -0700, Xah Lee wrote:
| Learn Technical Writing from Unix Man in 10 Days
|
| Quote from man apt-get:
|
| remove
| remove is identical to install except that packages
(sent from my phone)
On Apr 28, 2012 7:36 PM, Chris Rebert c...@rebertia.com wrote:
Correct. Pedantically, you can define __hash__() on mutable objects;
it's just not very useful or sensible, so people generally don't.
I find it's fine to define __hash__ on mutable objects as long as __eq__
On Sat, 28 Apr 2012 14:55:42 -0700 (PDT)
Xah Lee xah...@gmail.com wrote:
Learn Technical Writing from Unix Man in 10 Days
Quote from man apt-get:
remove
remove is identical to install except that packages are
removed
instead of installed.
Translation:
On Sat, 28 Apr 2012 11:35:12 -0700
Chris Rebert c...@rebertia.com wrote:
[...]
Correct. Pedantically, you can define __hash__() on mutable objects;
it's just not very useful or sensible, so people generally don't. As
http://docs.python.org/reference/datamodel.html#object.__hash__ states
I am just wondering which specific algorithm does python use to compare two
strings. Could it be the Longest common subsequence is the most u
Regards
--
*Mob UG: +256 (0) 70 1735800 | NL +31 (0) 6 852 841 38 | Gtalk: jmwebaze |
skype: mwebazej | URL: www.astro.rug.nl/~jmwebaze
/* Life runs
Hello, Xah.
In comp.emacs Xah Lee xah...@gmail.com wrote:
Learn Technical Writing from Unix Man in 10 Days
Quote from man apt-get:
remove
remove is identical to install except that packages are
removed
instead of installed.
Translation:
kicking
kicking is
Hi all
I could not find a mailing list for sqlite3 - hope it is ok to post here.
My problem actually originates with a different problem relating to MS Sql
Server. Python's datetime.datetime object uses a precision of microseconds.
Sql Server's DATETIME type only uses a precision of
On 4/29/2012 3:59 AM, J. Mwebaze wrote:
I am just wondering which specific algorithm does python use to compare
two strings.
'Python' does not use algorithms, implementations do. CPython may check
id and or hash before doing a character-by-char comparison (or perhaps
multiple chars at a
On 4/29/2012 3:57 AM, John O'Hagan wrote:
How do function objects fit into this scheme? They have __hash__, __eq__, seem
to work as dict keys and are mutable. Is it because their hash value doesn't
change?
I suspect functions use the default equality and hash based on id, which
does not
Take the twisted library.
I used to write myself a socket server and client.
Socket is fast, but you need on the other hand to know how big the
dataset might be, that will be serialized and deserialized as well.
Tamer
Am 29.04.2012 08:24, schrieb Cameron Simpson:
On 29Apr2012 11:42, Chris
On Sun, Apr 29, 2012 at 4:24 PM, Cameron Simpson c...@zip.com.au wrote:
On 29Apr2012 11:42, Chris Angelico ros...@gmail.com wrote:
| Personally, I would recommend a TCP socket, because that allows the
| flexibility of splitting across multiple computers.
And the pain of ensuring security, if
On 4/28/2012 16:18, Adam Skutt wrote:
On Apr 28, 7:26 am, Kiuhnmkiuhnm03.4t.yahoo.it wrote:
On 4/27/2012 19:15, Adam Skutt wrote:
On Apr 27, 11:01 am, Kiuhnmkiuhnm03.4t.yahoo.itwrote:
The abstraction is this:
- There are primitives and objects.
- Primitives are not objects. The converse
On 4/28/2012 23:55, Xah Lee wrote:
Learn Technical Writing from Unix Man in 10 Days
Quote from man apt-get:
remove
remove is identical to install except that packages are
removed
instead of installed.
Translation:
kicking
kicking is identical to kissing
Hello Experts,
I am new to python and I have been trying to merge two csv files, and upon
several hours of unsuccessful attempts, I have decided to seek for help.
the format of the file is as follows. file A has columns a, b, c and values
1,2,3 for several rows. File B also has columns
On Mon, Apr 30, 2012 at 1:49 AM, Dennis Lee Bieber
wlfr...@ix.netcom.com wrote:
What do you want done if one file has fewer records than the other?
The OP did state that the files had the same number of rows. I'd say
this issue is outside the scope of the question.
ChrisA
--
On Fri, 27 Apr 2012 13:24:35 +0200, Kiuhnm kiuhnm03.4t.yahoo.it wrote:
I'd like to change the syntax of my module 'codeblocks' to make it more
pythonic.
Current Syntax:
with res func(arg1) 'x, y':
print(x, y)
with res func(arg1) block_name 'x, y':
Current Syntax:
with res func(arg1) 'x, y':
print(x, y)
with res func(arg1) block_name 'x, y':
print(x, y)
New Syntax:
with res == func(arg1) .taking_block (x, y):
print(x, y)
with res == func(arg1) .taking_block (x, y) as
On 4/29/2012 6:05 AM, Terry Reedy wrote:
On 4/29/2012 3:59 AM, J. Mwebaze wrote:
I am just wondering which specific algorithm does python use to compare
two strings.
'Python' does not use algorithms, implementations do. CPython may check
id and or hash before doing a character-by-char
Dear Stefan,
Because I am a very new beginner of python, even I don't know how to install
the package. I just copied the whole directory to the Lib dictionary. I need
steps to follow. Could you please help me? My system is Windows xp, thank
you!
Sincerely,
Vinco
--
View this message in
I have already
import string
from string import *
but I can not still convert an integer to string
str(42)
Traceback (most recent call last):
File pyshell#20, line 1, in module
str(42)
TypeError: 'module' object is not callable
What is it wrong?
Thank you
Prof. Dr. Andrés Soto
DES
On 4/29/12 5:34 PM, Terry Reedy wrote:
On 4/29/2012 6:05 AM, Terry Reedy wrote:
On 4/29/2012 3:59 AM, J. Mwebaze wrote:
I am just wondering which specific algorithm does python use to compare
two strings.
'Python' does not use algorithms, implementations do. CPython may check
id and or hash
On 4/28/2012 1:04 PM, Paul Rubin wrote:
Roy Smithr...@panix.com writes:
I agree that application-level name cacheing is wrong, but sometimes
doing it the wrong way just makes sense. I could whip up a simple
cacheing wrapper around getaddrinfo() in 5 minutes. Depending on the
environment
On 29/04/2012 18:18, Andres Soto wrote:
I have already
import string
from string import *
but I can not still convert an integer to string
str(42)
Traceback (most recent call last):
File pyshell#20, line 1, in module
str(42)
TypeError: 'module' object is not callable
What is it wrong?
On Sun, Apr 29, 2012 at 10:18 AM, Andres Soto soto_and...@yahoo.com wrote:
I have already
import string
from string import *
but I can not still convert an integer to string
There is no need to import the `string` module to do that. Most of the
`string` module is deprecated.
`str` is the
In article 7xipgj8vxh@ruckus.brouhaha.com,
Paul Rubin no.email@nospam.invalid wrote:
Roy Smith r...@panix.com writes:
I agree that application-level name cacheing is wrong, but sometimes
doing it the wrong way just makes sense. I could whip up a simple
cacheing wrapper around
Failr point - I should do that in original question.
The C++ server runs on Unix (Mac OS X as a matter of fact) and, as I'm the one
who develops it, can use whthever technology is suitable.
Currently it uses STL, Boost and Qt libraries.
The server is responsible for providing connectivity to
On 4/28/2012 4:47 AM, Kiuhnm wrote:
On 4/27/2012 17:39, Adam Skutt wrote:
On Apr 27, 8:07 am, Kiuhnmkiuhnm03.4t.yahoo.it wrote:
Useful... maybe, conceptually sound... no.
Conceptually, NaN is the class of all elements which are not numbers,
therefore NaN = NaN.
NaN isn't really the class of
Hi,
Notice cross-post, I hope you bear over with me for doing that (and I
imagine that some of you also like python in the matlab-group like
myself)...
--
Python vs. Matlab:
--
Python:
from numpy import
On 4/30/2012 0:17, someone wrote:
Hi,
Notice cross-post, I hope you bear over with me for doing that (and I
imagine that some of you also like python in the matlab-group like
myself)...
--
Python vs. Matlab:
--
On 29Apr2012 21:08, Chris Angelico ros...@gmail.com wrote:
| On Sun, Apr 29, 2012 at 4:24 PM, Cameron Simpson c...@zip.com.au wrote:
| On 29Apr2012 11:42, Chris Angelico ros...@gmail.com wrote:
| | Personally, I would recommend a TCP socket, because that allows the
| | flexibility of splitting
On 04/30/2012 12:39 AM, Kiuhnm wrote:
So Matlab at least warns about Matrix is close to singular or badly
scaled, which python (and I guess most other languages) does not...
A is not just close to singular: it's singular!
Ok. When do you define it to be singular, btw?
Which is the most
On 04/29/2012 05:17 PM, someone wrote:
I would also kindly ask about how to avoid this problem in
the future, I mean, this maybe means that I have to check the condition
number at all times before doing anything at all ? How to do that?
I hope you'll check the condition number all the time.
someone newsbo...@gmail.com writes:
A is not just close to singular: it's singular!
Ok. When do you define it to be singular, btw?
Singular means the determinant is zero, i.e. the rows or columns
are not linearly independent. Let's give names to the three rows:
a = [1 2 3]; b = [11 12 13];
On 04/30/2012 02:38 AM, Nasser M. Abbasi wrote:
On 04/29/2012 05:17 PM, someone wrote:
I would also kindly ask about how to avoid this problem in
the future, I mean, this maybe means that I have to check the condition
number at all times before doing anything at all ? How to do that?
I hope
On 04/29/2012 07:59 PM, someone wrote:
Also, as was said, do not use INV(A) directly to solve equations.
In Matlab I used x=A\b.
good.
I used inv(A) in python. Should I use some kind of pseudo-inverse or
what do you suggest?
I do not use python much myself, but a quick google showed
On 04/29/2012 07:17 PM, someone wrote:
Ok. When do you define it to be singular, btw?
There are things you can see right away about a matrix A being singular
without doing any computation. By just looking at it.
For example, If you see a column (or row) being a linear combination of
On Sat, Apr 28 2012, Steven D'Aprano wrote:
On Sat, 28 Apr 2012 14:55:42 -0700, Xah Lee wrote:
Learn Technical Writing from Unix Man in 10 Days
Quote from man apt-get:
remove
remove is identical to install except that packages are
removed
instead of installed.
29.04.12 19:05, Peter Pearson написав(ла):
Hey, guys, am I the only one here who can't even guess what
this code does? When did Python become so obscure?
This isn't Python at all. It's Ruby.
--
http://mail.python.org/mailman/listinfo/python-list
Peter Pearson ppearson@nowhere.invalid writes:
On Fri, 27 Apr 2012 13:24:35 +0200, Kiuhnm kiuhnm03.4t.yahoo.it wrote:
I'd like to change the syntax of my module 'codeblocks' to make it
more pythonic.
The “chained callable” style isn't very Pythonic, IMO. Even worse is the
penchant for ‘foo
On Mon, Apr 30, 2012 at 12:43 PM, Jason Earl je...@notengoamigos.org wrote:
It is considerably worse than that. If you look at what the
documentation for apt-get actually says, instead of just the badly
mangled version that Xah shares you would realize that the post was
basically a bald-face
On Apr 29, 7:43 pm, Jason Earl je...@notengoamigos.org wrote:
On Sat, Apr 28 2012, Steven D'Aprano wrote:
On Sat, 28 Apr 2012 14:55:42 -0700, Xah Lee wrote:
Learn Technical Writing from Unix Man in 10 Days
Quote from man apt-get:
remove
remove is identical to install
jason, are you trolling me, or me you?
?
Xah
Depends on what you classify as trolling these days. In all honesty,
the original concept of trolling seems to have become a lost art, with
only a few people even knowing what the act actually was anymore, and
in its absence everyone seems to draw
On Mon, Apr 30, 2012 at 2:50 PM, Xah Lee xah...@gmail.com wrote:
jason, are you trolling me, or me you?
Am I Turing dreaming I am a machine, or a machine dreaming I am Turing?
Personally, I've never Turred.
ChrisA
--
http://mail.python.org/mailman/listinfo/python-list
Serhiy Storchaka storch...@gmail.com added the comment:
I'm not sure about new tests, but the changes in the docstring and old tests
look necessary.
--
Added file: http://bugs.python.org/file25402/testzip-patch4.patch
___
Python tracker
Serhiy Storchaka storch...@gmail.com added the comment:
Anyone can look at the patch? This same problem reported in
http://bugs.python.org/msg73317 .
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14315
Nick Coghlan ncogh...@gmail.com added the comment:
Uploaded new bootstrapping patch that handles the fully explicit import
machinery.
I also tweaked a couple of things so it plays nicely in terms of building an
initial version with the checked in importlib.h. Specifically: pythonrun still
py.user bugzilla-mail-...@yandex.ru added the comment:
\S is equivalent to [^\s]
like \d with \D
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14236
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
Here's a patch.
--
assignee: docs@python - ezio.melotti
keywords: +patch
stage: needs patch - commit review
Added file: http://bugs.python.org/file25404/issue14558.diff
___
Python tracker
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset b26471a2a115 by Ezio Melotti in branch '2.7':
#14519: fix the regex used in the scanf example.
http://hg.python.org/cpython/rev/b26471a2a115
New changeset e317d651ccf8 by Ezio Melotti in branch '3.2':
#14519: fix
Ezio Melotti ezio.melo...@gmail.com added the comment:
Fixed, thanks for the report and the suggestions!
--
assignee: docs@python - ezio.melotti
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
type: - enhancement
New submission from Ramchandra Apte maniandra...@gmail.com:
A code example is not highlighted in the 3.3 docs for memoryview
(http://docs.python.org/dev/library/stdtypes.html#memoryview)
Only 3.3 is affected by this bug as the code example is for a feature in 3.3.
--
assignee:
Charles-François Natali neolo...@free.fr added the comment:
test_process_time_threads is failing on one of the buildbots:
==
FAIL: test_process_time_threads (test.test_time.TimeTestCase)
Charles-François Natali neolo...@free.fr added the comment:
LGTM.
Juste one nitpick: why do you sometimes import the clock source as get_time()
and others _time()? _time() looks fine to me.
--
___
Python tracker rep...@bugs.python.org
Ezio Melotti ezio.melo...@gmail.com added the comment:
Is there a way to add a :keep-doctest-flags: options to literal blocks?
--
stage: test needed - needs patch
type: - enhancement
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka storch...@gmail.com added the comment:
Support lines in zipfile looks contradictory and buggy. This complicates the
code and makes the behavior of zipfile.ZipExtFile incompatible with the
interface of other file-like objects. For example, the behavior of the read,
read1 and
Hynek Schlawack h...@ox.cx added the comment:
What is the reason for this one to languish for over a year now? Lack of proper
patch? It’s marked “high priority”, so let’s get moving.
--
nosy: +hynek, sandro.tosi
___
Python tracker
New submission from Jakob Simon-Gaarde jako...@gmail.com:
Hi
It seems like the parse_constant keyword parameter for registering a callback
function is no longer called in Python 2.7.
http://docs.python.org/library/json.html#json.load
I am using Python 2.7.3 on Ubuntu 12.04
I have created and
Ezio Melotti ezio.melo...@gmail.com added the comment:
Good point.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14236
___
___
Python-bugs-list
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 23d5b457dc71 by Ezio Melotti in branch '3.2':
#14236: fix docs for \S.
http://hg.python.org/cpython/rev/23d5b457dc71
New changeset 9165774a8055 by Ezio Melotti in branch 'default':
#14236: merge with 3.2.
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14692
___
Q abon...@gmail.com added the comment:
thanks, that's rather convenient
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14671
___
___
Serhiy Storchaka storch...@gmail.com added the comment:
This behavior was changed in changeset f686aced02a3 three year ago. If this
change is intentional, then you need edit documentation.
--
nosy: +storchaka
___
Python tracker
Hynek Schlawack h...@ox.cx added the comment:
Hi Jakob,
parse_constant has been changed as of d95e5add3ca4 to be called only on
-Infinity, Infinity, NaN:
``parse_constant``, if specified, will be called with one of the
following strings: -Infinity, Infinity, NaN.
This
Changes by Serhiy Storchaka storch...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file25406/json_parse_constant_doc.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14692
Yuval Greenfield ubershme...@gmail.com added the comment:
If we're modifying zipfile, please consider adding the reviewed patch for
ZipFile.remove at http://bugs.python.org/issue6818
--
nosy: +ubershmekel
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka storch...@gmail.com added the comment:
Actually reading from the zip file is buffered (at least 4 KiB of uncompressed
data at a time).
Can you give tests, scripts and data, which show the problem?
--
___
Python tracker
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14671
___
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
The original changeset is at [0], and the commit message just says even more
decoder optimizations. The official website[1] and the RFC[2] don't list any
constant, so I guess the definition of what a constant is is not well defined.
[0]:
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8767
___
___
Python-bugs-list
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14643
___
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
keywords: +patch
Added file:
http://bugs.python.org/file25407/zipfile_unsupported_compression.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14313
Daniel Swanson popcorn.tomato.d...@gmail.com added the comment:
Never mind. I think I used the start menu to do it myself.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14672
___
New submission from Dov Feldstern dfeldst...@nds.com:
Python has its own implementations of various hash functions, that can be used
as fallbacks when openssl is not available. However, if openssl *is* available
at build time, then these fallbacks don't get built.
It would be nice if they
Changes by Mark Dickinson dicki...@gmail.com:
--
nosy: -mark.dickinson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4653
___
___
Antoine Pitrou pit...@free.fr added the comment:
that message requests that a bug be opened about this, but I wasn't able to
find it?
Probably because no-one opened an issue.
build onto portable or shared storage, and run on multiple machines,
even if openssl happens not to be available
Antoine Pitrou pit...@free.fr added the comment:
Deprecate universal newline support in zipfile. zipfile.ZipExtFile
should always work with non-modified bytes, and who need the text, let
wraps zipfile.ZipExtFile with io.TextIOWrapper.
This would be fine with me.
--
nosy: +pitrou
Changes by Antoine Pitrou pit...@free.fr:
--
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14693
___
___
Python-bugs-list
Guido van Rossum gu...@python.org added the comment:
I could check it in, but I probably would mess up something (which branches are
affected?). Let me know if you want me to.
The priorities after that would be:
1) update docs (the warning about RuntimeError needs to be moderated)
2) convert
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset c468511fc887 by Mark Dickinson in branch 'default':
Issue #14521: Make result of float('nan') and float('-nan') more consistent
across platforms. Further, don't rely on Py_HUGE_VAL for float('inf').
Mark Dickinson dicki...@gmail.com added the comment:
Now fixed.
--
resolution: - fixed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14521
___
Guido van Rossum gu...@python.org added the comment:
Actually my patch doesn't even apply cleanly. I suspect the dict refactoring
for shared keys interfered. Someone please help!
--
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka storch...@gmail.com added the comment:
This would be fine with me.
It may be worth to deprecate PEP 278? Oh, only ten years have passed
since 2.3, but it seems it was so long ago.
--
___
Python tracker rep...@bugs.python.org
Antoine Pitrou pit...@free.fr added the comment:
It may be worth to deprecate PEP 278? Oh, only ten years have passed
since 2.3, but it seems it was so long ago.
Well, I don't know if PEPs ever get deprecated. In this case, PEP 3116
is probably the superseder.
--
Senthil Kumaran sent...@uthcode.com added the comment:
Is it a sphinx version problem? I could not figure out why that particular code
is not highlighted. The syntax looks correct.
--
nosy: +orsenthil
___
Python tracker rep...@bugs.python.org
Changes by Senthil Kumaran sent...@uthcode.com:
--
assignee: docs@python - orsenthil
nosy: +orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11352
___
Matthew Barnett pyt...@mrabarnett.plus.com added the comment:
It doesn't work in regex, but it probably should. IMHO, if it's a valid
identifier, then it should be allowed.
--
___
Python tracker rep...@bugs.python.org
Antoine Pitrou pit...@free.fr added the comment:
Actually, the modules are always compiled when in debug mode. Here is a patch
to always compile them.
--
keywords: +patch
Added file: http://bugs.python.org/file25408/hashlibfallbacks.patch
___
Python
Changes by Hynek Schlawack h...@ox.cx:
--
keywords: +needs review
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14157
___
Changes by Hynek Schlawack h...@ox.cx:
--
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14082
___
___
Python-bugs-list
Changes by Hynek Schlawack h...@ox.cx:
--
components: +Library (Lib) -None
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14662
___
Mark Dickinson dicki...@gmail.com added the comment:
Dropping this due to lack of time; unless anyone else wants to pick it up, it
should probably be closed as won't fix.
--
assignee: mark.dickinson -
priority: normal - low
___
Python tracker
Changes by Mark Dickinson dicki...@gmail.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14521
___
___
Mark Dickinson dicki...@gmail.com added the comment:
Unassigning. I'm not planning to work on this in the forseeable future, though
I'd be happy to review patches.
--
assignee: mark.dickinson -
___
Python tracker rep...@bugs.python.org
Hynek Schlawack h...@ox.cx added the comment:
This one LGTM, still applies cleanly against current tip and is languishing for
a way to long time.
Commit close?
--
nosy: +hynek
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
Charles-François Natali neolo...@free.fr added the comment:
I'm closing as invalid.
If you decide to fill a bug report to your distribution (or directly to the
libc in this case), it'd be interesting to post a link to the bug report here.
Thanks.
--
resolution: - invalid
stage: -
Charles-François Natali neolo...@free.fr added the comment:
Anybody working on this one? I’d give it a shot otherwise.
Go ahead.
You could - should? - probably use the new os.fwalk() to walk
directories in a safe maner.
--
___
Python tracker
New submission from endolith endol...@gmail.com:
Suggestion: Add an option to bin/hex/oct functions to format binary output with
a minimum fixed width, including leading zeros. Also might be useful for hex
and oct.
Currently, bin(18) produces '0b10010'
with this change, something like
Mark Dickinson dicki...@gmail.com added the comment:
-1. str.format already does this quite effectively; I don't see a real need to
complicate the bin, hex and oct signatures.
'{:016b}'.format(324)
'000101000100'
'{:016o}'.format(324)
'0504'
'{:016x}'.format(324)
Changes by Mark Dickinson dicki...@gmail.com:
--
versions: +Python 3.3 -Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14694
___
___
1 - 100 of 151 matches
Mail list logo