On Tue, Aug 31, 2010 at 7:30 AM, vsoler vicente.so...@gmail.com wrote:
I'm interested in studying the itertools source code, especially the
permutations function.
However, I cannot find the library. Where could I find it?
Running Python 3.1
Thank you
Either you can download it or browse
On 31 ago, 04:14, Lawrence D'Oliveiro l...@geek-
central.gen.new_zealand wrote:
In message
9aa266f0-be9b-4c9a-bfbd-6cdfc86ad...@t20g2000yqa.googlegroups.com, vsoler
wrote:
I'm interested in studying the itertools source code, especially the
permutations function.
However, I cannot
vsoler vicente.so...@gmail.com writes:
I was expecting an itertools.py file, but I don't see it in your list.
./python3.1-3.1.2+20100829/Modules/itertoolsmodule.c
looks promising. Lots of stdlib modules are written in C for speed or
access to system facilities.
--
On 31 ago, 04:42, Paul Rubin no.em...@nospam.invalid wrote:
vsoler vicente.so...@gmail.com writes:
I was expecting an itertools.py file, but I don't see it in your list.
./python3.1-3.1.2+20100829/Modules/itertoolsmodule.c
looks promising. Lots of stdlib modules are written in C for speed
On Aug 31, 3:45 am, NickC reply...@works.fine.invalid wrote:
I'm struggling to see how you could refactor the option parsing function.
After all, it has to process the options, so it has to do all the setup
for those options, and then process them.
Perhaps plac could simplify your life, by
On Mon, Aug 30, 2010 at 11:06 PM, vsoler vicente.so...@gmail.com wrote:
On 31 ago, 04:42, Paul Rubin no.em...@nospam.invalid wrote:
vsoler vicente.so...@gmail.com writes:
I was expecting an itertools.py file, but I don't see it in your list.
Bradley Hintze wrote:
I may be having a brain fart, but is it at all possible to have a
function first return a value then continue its calculation. Like this
simple example:
my_var = 5
def my_function():
return my_var
my_var +=1
This obviously won't work as written but is there a
On Mon, Aug 30, 2010 at 22:06, vsoler vicente.so...@gmail.com wrote:
On 31 ago, 04:42, Paul Rubin no.em...@nospam.invalid wrote:
vsoler vicente.so...@gmail.com writes:
I was expecting an itertools.py file, but I don't see it in your list.
On 8/30/2010 10:27 PM, vsoler wrote:
I was expecting an itertools.py file, but I don't see it in your
list.
The manual page has the original python source for each function.
I recommend you look at that.
Itertool was rewritten in C for speed but the C source will not tell you
any more about
On Mon, Aug 30, 2010 at 5:05 PM, Bradley Hintze
bradle...@aggiemail.usu.edu wrote:
I may be having a brain fart, but is it at all possible to have a
function first return a value then continue its calculation. Like this
simple example:
my_var = 5
def my_function():
return my_var
Perhaps, I should give an example of using plac.
For instance, here is how you could implement a SVN-like
tool with two commands ``checkout`` and ``commit``. The trick is to
write a class with two methods ``checkout`` and ``commit`` and an
attribute ``.commands`` listing them, and to call the
On 08/30/2010 04:50 AM, Thomas Jollans wrote:
On Monday 30 August 2010, it occurred to ru...@yahoo.com to exclaim:
Face the facts dude. The Python docs have some major problems.
They were pretty good when Python was a new, cool, project used
by a handful of geeks. They are good relative to
On 08/30/2010 01:14 PM, Terry Reedy wrote:
On 8/30/2010 12:23 AM, ru...@yahoo.com wrote:
The Python docs have some major problems.
And I have no idea what you think they are.
I have written about a few of them here in the past. I sure Google
will
turn up something.
I have participated in
Éric Araujo mer...@netwok.org added the comment:
One part of develop that we could add is the creation of a .pth file in a
directory on sys.path (with Python = 2.6, --user gives that for free). IMNSHO,
this should be implemented as an option to the install_lib* command, named
--link-only or
New submission from Florent Xicluna florent.xicl...@gmail.com:
from io import BytesIO
from tokenize import tokenize, tok_name
sample = 'éléphants = un éléphant, deux éléphants, ...\nprint(éléphants)\n'
sampleb = sample.encode('utf-8')
exec(sample)
# output: un éléphant, deux éléphants, ...
New submission from Campbell Barton ideasma...@gmail.com:
On linux I have a path which python reads as...
/data/test/num\udce9ro_bad/untitled.blend
os.listdir(/data/test/) returns this ['num\udce9ro_bad']
But the same path cant be given to the C api's Py_CompileString
Where fn is
Marc-Andre Lemburg m...@egenix.com added the comment:
Terry J. Reedy wrote:
Terry J. Reedy tjre...@udel.edu added the comment:
This is really two issues: docs and windows builds. As for docs:
Many of the module doc pages mention original authors and give urls for
further info. The ssl
Marc-Andre Lemburg m...@egenix.com added the comment:
Raymond Hettinger wrote:
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
FYI, there is a section of the docs devoted to notifications and attribution
licenses:
Martin von Gagern martin.vgag...@gmx.net added the comment:
Maybe I'm missing something here, but r84229 looks to me like aliasing
'macintosh' to itself, instead of to 'mac_roman'. 'csmacintosh' and 'mac' are
not included at all, without any comment as to why they have been omitted.
Makes me
Sébastien Sablé sa...@users.sourceforge.net added the comment:
This is also related to issue1234: It was the same issue but concerning AIX
5.2. This patch corrects the problem in the same way but for AIX 6.1.
regards
--
___
Python tracker
New submission from Kuno Woudt k...@frob.nl:
In the WWW-Authenticate header Catalyst::Authentication::Credential::HTTP sends
the following value for qop:
qop=auth,auth-int
This is identical to the example given in section 3.5 of the RFC
(http://tools.ietf.org/html/rfc2617#section-3.5 ), so I
New submission from Antoine Pitrou pit...@free.fr:
This is an improvement patch for the :mod:`io` documentation.
It adds an user-friendly overview, and makes a couple of other
fixes/improvements.
There's a problem where I want to make a link to a glossary term while using
the plural form
Changes by Antoine Pitrou pit...@free.fr:
Removed file: http://bugs.python.org/file18679/iodoc.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9715
___
Changes by Antoine Pitrou pit...@free.fr:
Added file: http://bugs.python.org/file18680/iodoc.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9715
___
Sébastien Sablé sa...@users.sourceforge.net added the comment:
The workaround that I have been using is to call configure like this:
./configure --with-gcc=${CC}
(I usually define CC like this: export CC=xlc_r)
Python compiles fine on AIX 6.1 with that.
--
nosy: +sable
red stefano.bon...@gmail.com added the comment:
I'm using an old Plone/Zope Product, PHParser, that uses the popen2 call ...
same problem for me.
Is there a thread-safe alternative to execute subprocesses in threads? I need a
patch!!! thanks in advance!!!
--
nosy: +shaphiro
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9713
___
___
Python-bugs-list mailing list
Antoine Pitrou pit...@free.fr added the comment:
Ok, committed in r84357 (py3k) and r84358 (3.1). Backporting to 2.7 would be
too much work.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
versions: -Python 2.7
Skip Montanaro s...@pobox.com added the comment:
A couple wording comments:
All streams are careful about the type of data you give to them
would read better as All streams accept specific types of data.
The default mode is ``'r'`` (open for reading text, synonym of
``'rt'``). I liked the
Benjamin Peterson benja...@python.org added the comment:
2010/8/30 Skip Montanaro rep...@bugs.python.org:
Skip Montanaro s...@pobox.com added the comment:
A couple wording comments:
All streams are careful about the type of data you give to them
would read better as All streams accept
Antoine Pitrou pit...@free.fr added the comment:
The default mode is ``'r'`` (open for reading text, synonym of
``'rt'``). I liked the original wording better.
Well, people use r in practice, and rt is a somewhat rarer
alternative. We could drop the synonym... part entirely.
--
Changes by Meador Inge mead...@gmail.com:
--
nosy: +meador.inge
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9633
___
___
Python-bugs-list
Catherine Devlin fredv8vi...@liquidid.net added the comment:
Did my suggestion to alter pydoc output so it always contains a link to the
enclosing module's documentation not seem like a reasonable compromise?
I actually don't understand how that would help. The ``pydoc time`` output
doesn't
Skip Montanaro s...@pobox.com added the comment:
Finally, not specific to this change, but I wonder if rather than
having distinct io.StringIO and io.BytesIO classes it would be better
to have a single io.MemoryIO class which takes mode arguments just
like io.FileIO? Â The
Antoine Pitrou pit...@free.fr added the comment:
File I/O and memory I/O would have more uniform in their APIs and thus be
easier to document, describe and use. Currently, one class is used to do
file I/O.
That's wrong. Various classes are used for file I/O: FileIO,
Benjamin Peterson benja...@python.org added the comment:
r84364
--
nosy: +benjamin.peterson
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9712
___
Skip Montanaro s...@pobox.com added the comment:
Did my suggestion to alter pydoc output so it always contains a link
to the enclosing module's documentation not seem like a reasonable
compromise?
Catherine I actually don't understand how that would help. The ``pydoc
Antoine Pitrou pit...@free.fr added the comment:
Patch committed in r84366 (py3k), r84367 (3.1), r84368 (2.7). Thanks for your
contribution!
--
nosy: +pitrou
resolution: - fixed
stage: - committed/rejected
status: open - closed
versions: -Python 2.6, Python 3.3
Antoine Pitrou pit...@free.fr added the comment:
Good catch. keyfile without certfile should be forbidden, and raise a
ValueError.
--
components: +Library (Lib)
stage: - needs patch
type: - behavior
versions: +Python 3.2
___
Python tracker
Giampaolo Rodola' g.rod...@gmail.com added the comment:
Are we sure? Do we have a reference which states that?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9711
___
Antoine Pitrou pit...@free.fr added the comment:
Not really, but in previous versions it would fail as soon as you try to
connect:
s = ssl.wrap_socket(socket.socket(), keyfile=XXX)
s.connect((svn.python.org, 443))
Traceback (most recent call last):
File stdin, line 1, in module
File
Stefan Krah stefan-use...@bytereef.org added the comment:
I have a new patch with tests, but I'm not quite satisfied with it.
The remaining problem is that the choice of ml64 or ml is fragile
if a user has executed `vcvarsall xyz`, and we attempt to use the
resulting environment.
For example,
Stefan Krah stefan-use...@bytereef.org added the comment:
For Visual Studio Express this issue depends on issue 7511.
--
dependencies: +msvc9compiler.py: ValueError: [u'path']
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7546
Stefan Krah stefan-use...@bytereef.org added the comment:
Stefan (sorry for the misattribution in my previous message), can you test
with 3.2 and 3.1 and adjust versions if needed?
Not easily at the moment. I just noticed that I replaced my only
Express installation with a Pro trial-edition.
Sridhar Ratnakumar sridh...@activestate.com added the comment:
On 2010-08-28, at 12:48 AM, Martin v. Löwis wrote:
Martin v. Löwis mar...@v.loewis.de added the comment:
Ok, I have now added these files in r84332.
Thanks!
--
___
Python tracker
Mark Lawrence breamore...@yahoo.co.uk added the comment:
@Ben are you still interested in this or can it be closed?
--
nosy: +BreamoreBoy
versions: +Python 3.2 -Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1351020
Mark Lawrence breamore...@yahoo.co.uk added the comment:
3 weeks since msg113207 and no response. Seriously, what is a reasonable time
before closing as out of date?
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
Georg Brandl ge...@python.org added the comment:
That depends. Especially feature requests need not be closed prematurely.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1353344
___
Mark Lawrence breamore...@yahoo.co.uk added the comment:
No reply to msg109880.
--
resolution: - wont fix
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1367631
___
Mark Lawrence breamore...@yahoo.co.uk added the comment:
A patch is attached to #1375011.
--
dependencies: -Improper handling of duplicate cookies
nosy: +BreamoreBoy
resolution: - duplicate
status: open - closed
superseder: - Improper handling of duplicate cookies
Antoine Pitrou pit...@free.fr added the comment:
I don't think there's any point in including DJGPP support in the Python tree
(DJGPP targets MS-DOS, which is completely marginal today). Furthermore, the
patch has no chance of applying cleanly on the current source tree. I would
suggest that
New submission from Kay Hayen kayha...@gmx.de:
Hello,
I try to include modules with PyImport_AppendInittab or PyImport_ExtendInittab
and that works fine. But if these modules are part of a package, i.e. I provide
package_name.module_name as the name, they never get considered.
Is there any
Giampaolo Rodola' g.rod...@gmail.com added the comment:
Fixed in r84370.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9711
___
New submission from Arnaud Delobelle arno...@googlemail.com:
More detailed explanation of how in place operators work, and how they are
related to the operator module iadd, isub, ... functions.
Submitted following this message on python-list:
Terry J. Reedy tjre...@udel.edu added the comment:
I asked because there was no such thing in the Unix I once used and I have
never used Linux (yet). I take Georg's answer to mean that this is not
obviously obsolete and should be left open.
--
___
Giampaolo Rodola' g.rod...@gmail.com added the comment:
Updated patch which fixes a little test error.
--
Added file: http://bugs.python.org/file18683/asynchat-push-callable.patch
___
Python tracker rep...@bugs.python.org
New submission from quindraco rickweinber...@gmail.com:
I am attaching my stacktrace from using Python 2.6, but I get identical
behaviour in 2.7. I suspect that at least one of the underlying modules I'm
using is broken, but the interpreter shouldn't crash just because an external
module is
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +orsenthil
versions: -Python 2.5, Python 2.6, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9714
___
Antoine Pitrou pit...@free.fr added the comment:
Some comments:
- the signature in the doc is not the same as in the code: (fun, args, kwds)
instead of (fun, *args, **kwds)
- I don't understand what _Callable is used for; why not just a tuple?
(or a function if you prefer)
- if you use
Sridhar Ratnakumar sridh...@activestate.com added the comment:
Like Mark, I too see an error with ctypes due to this change:
*** WARNING: renaming _ctypes since importing it failed:
dlopen(build/lib.macosx-10.5-intel-3.2/_ctypes.so, 2): Symbol not found:
_ffi_closure_alloc
Referenced from:
New submission from Sridhar Ratnakumar sridh...@activestate.com:
With openssl-1.0.0a, I get the following error when building the py3k branch on
Windows 64-bit:
Traceback (most recent call last):
File build_ssl.py, line 262, in module
main()
File build_ssl.py, line 234, in main
for
Sridhar Ratnakumar sridh...@activestate.com added the comment:
I cannot arrive at a possible rationale behind that commit, as the only '*.asm'
file I see in the openssl-1.0.0a/ directory is ms\update.asm.
--
___
Python tracker rep...@bugs.python.org
Changes by Sridhar Ratnakumar sridh...@activestate.com:
--
type: - compile error
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9719
___
___
Antoine Pitrou pit...@free.fr added the comment:
This seems to be a pyodbc problem, you should post the issue to them.
When an extension module written in C (pyodbc.so) has an issue, there's nothing
Python can do to prevent it from crashing the whole process, since C is an
insecure language.
Changes by Nick Coghlan ncogh...@gmail.com:
--
nosy: +ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1868
___
___
Python-bugs-list mailing
Stefan Krah stefan-use...@bytereef.org added the comment:
I see the same crash in test_capi, qemu, Windows 7, Debug|x64. The
function crash_no_current_thread() introduced in r81142 ultimately
calls Py_FatalError, which then aborts.
--
nosy: +skrah
quindraco rickweinber...@gmail.com added the comment:
I thought as much, so I've already posted on the pyodbc bug tracker, but thanks
for the second opinion; I wasn't sure.
I realise modules written in C can't be prevented from crashing, but is it
really impossible to keep the interpreter
Benjamin Peterson benja...@python.org added the comment:
Well, that's a another issue completely.
--
nosy: +benjamin.peterson
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9718
Stefan Krah stefan-use...@bytereef.org added the comment:
I just see that the test is running as expected:
_testcapi.crash_no_current_thread() is running in a subprocess, so
the abort() is harmless on Linux. On Windows, abort() causes the
pop-ups, apparently even when it occurs in a subprocess.
New submission from Craig de Stigter craig...@gmail.com:
Steps to reproduce:
# create a large (4gb) file
f = open('foo.txt', 'wb')
text = 'a' * 1024**2
for i in xrange(5 * 1024):
f.write(text)
f.close()
# now zip the file
import zipfile
z = zipfile.ZipFile('foo.zip', mode='w',
Changes by R. David Murray rdmur...@bitdance.com:
--
status: closed - languishing
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1367631
___
___
Ben Decker bd...@users.sourceforge.net added the comment:
Closed then. The next patch will posted at http://www.caddit.net/pythond/when
we get around to doing a version 3 port.
Frankly, as the current v2 binary meets most remaining requirements on this
legacy platform, we are left with modern
New submission from Bastian Kleineidam cal...@users.sourceforge.net:
The urljoin() implementation cuts off the last base URL
character if the URL to join starts with a semicolon.
Expected output is no cut off characters.
$ python2.6
Python 2.6.6 (r266:84292, Aug 29 2010, 12:36:23)
[GCC 4.4.5
101 - 173 of 173 matches
Mail list logo