The TkinterTreectrl project has now permanently moved to sourceforge and can be
found at http://tkintertreectrl.sourceforge.net .
The TkinterTreectrl package wraps the treectrl tk extension
(http://tktreectrl.sourceforge.net) for use with Python/Tkinter. The treectrl
widget allows to create
I'm looking into writing a python script that colorizes particular hops when
using traceroute. Anyone run across something like this? I don't think it would
be extremely difficult to write but some example code would help.
Basically particular hops in traceroute output would match a table as
Jordan Bylsma jordan.byls...@gmail.com wrote:
I'm looking into writing a python script that colorizes particular
hops when using traceroute. Anyone run across something like this? I
don't think it would be extremely difficult to write but some example
code would help.
shameless
On Sat, 17 Nov 2012 14:26:43 +1100, Cameron Simpson wrote:
On 17Nov2012 03:12, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
| Is there some other trick to grab the current exception from inside an
| except block?
sys.exc_info ?
Thanks, that is just what I was looking for.
On Friday, November 16, 2012 4:33:14 PM UTC-8, Nobody wrote:
On Fri, 16 Nov 2012 13:44:03 -0800, buck wrote:
IOW: Microsoft's embrace, extend, extinguish strategy has been too
successful and now we have to deal with it. If HTML content is tagged as
using ISO-8859-1, it's more likely that it's
On Sat, 17 Nov 2012 09:25:02 -0800, rh wrote:
Is it for or range that is executed 8000 times when I for i in
range(3,8000,2):
I'm sorry, I don't understand that question.
Is it for what? What it are you talking about?
If you run the code:
for i in range(3, 8000, 2):
pass
the `for`
Hi I had one doubt.. I know very little bit of python .I wanted to know when to
use list,tuple,dictionary and set? Please reply me asap
thanks
--
http://mail.python.org/mailman/listinfo/python-list
Don't forget that most firewalls don't decrement) the time-to-live number, and
unless you REALLY know what to look for, are invisible.
-Bill
On Nov 17, 2012, at 10:04 AM, Jordan Bylsma jordan.byls...@gmail.com wrote:
I'm looking into writing a python script that colorizes particular hops when
On Nov 17, 2012, at 10:04 AM, Jordan Bylsma jordan.byls...@gmail.com wrote:
I'm looking into writing a python script that colorizes particular hops when
using traceroute. Anyone run across something like this? I don't think it
would be extremely difficult to write but some example code would
On Sat, Nov 17, 2012 at 11:08 AM, Ian Kelly ian.g.ke...@gmail.com wrote:
On Sat, Nov 17, 2012 at 9:56 AM, b...@yelp.com wrote:
should is a wish. The reality is that documents (and especially URLs)
exist that can be decoded with latin1, but will backtrace with cp1252. I see
this as a sign
On Sat, Nov 17, 2012 at 9:56 AM, b...@yelp.com wrote:
should is a wish. The reality is that documents (and especially URLs) exist
that can be decoded with latin1, but will backtrace with cp1252. I see this
as a sign that a small refactorization of cp1252 is in order. The proposal is
to
On 11/17/2012 12:25 PM, rh wrote:
Is it for or range that is executed 8000 times when I
for i in range(3,8000,2):
Nothing is executed 8000 times. I figure it at 3998 times. Anyway,
neither the for nor the range is executed multiple times. Deciphering
this depends on whether this is Python 2.x
In article mailman.3774.1353175657.27098.python-l...@python.org,
w...@mac.com wrote:
On Nov 17, 2012, at 10:04 AM, Jordan Bylsma jordan.byls...@gmail.com wrote:
I'm looking into writing a python script that colorizes particular hops
when using traceroute. Anyone run across something like
On Sun, Nov 18, 2012 at 5:38 AM, Roy Smith r...@panix.com wrote:
In article mailman.3774.1353175657.27098.python-l...@python.org,
w...@mac.com wrote:
Don't forget that most firewalls don't decrement) the time-to-live number,
and unless you REALLY know what to look for, are invisible.
On Sat, 17 Nov 2012 08:56:46 -0800, buck wrote:
Given that the only differences between the two are for code points
which are in the C1 range (0x80-0x9F), which should never occur in HTML,
parsing ISO-8859-1 as Windows-1252 should be harmless.
should is a wish. The reality is that documents
For this case the firewalls DO respond to TTL(in most cases) and will show in a
traceroute. The objective here is to colorize particular devices to easily see
what type of devices traffic would traverse across the network. I would be
using a database of device hostnames that when they match in
On Sun, Nov 18, 2012 at 6:59 AM, Jordan Bylsma jordan.byls...@gmail.com wrote:
For this case the firewalls DO respond to TTL(in most cases) and will show in
a traceroute. The objective here is to colorize particular devices to easily
see what type of devices traffic would traverse across the
On Sun, 18 Nov 2012 09:00:10 +1100, Chris Angelico wrote:
[...]
I've never used the program, though, so I have no idea how good it is.
All I've done is download the tar.gz and glance over a few bits (the
licence, mainly - which is mostly-GPL).
Mostly GPL? You mean not GPL.
I really wish
On Sun, Nov 18, 2012 at 12:18 PM, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
On Sun, 18 Nov 2012 09:00:10 +1100, Chris Angelico wrote:
[...]
I've never used the program, though, so I have no idea how good it is.
All I've done is download the tar.gz and glance over a few bits
On Sat, 17 Nov 2012 13:37:23 -0500, Dave Angel wrote:
On 11/17/2012 12:25 PM, rh wrote:
Is it for or range that is executed 8000 times when I for i in
range(3,8000,2):
Nothing is executed 8000 times. I figure it at 3998 times.
Off by one.
py len(range(3, 8000, 2))
3999
--
Steven
--
On 11/17/2012 08:30 PM, Steven D'Aprano wrote:
On Sat, 17 Nov 2012 13:37:23 -0500, Dave Angel wrote:
On 11/17/2012 12:25 PM, rh wrote:
Is it for or range that is executed 8000 times when I for i in
range(3,8000,2):
Nothing is executed 8000 times. I figure it at 3998 times.
Off by one.
py
Hi,
How to convert GMap Encoded Polyline string to a set of coordinates ?
I need it to calculate the distance between a coordinate and a line in a Django
app.
Thanks,
--
http://mail.python.org/mailman/listinfo/python-list
Eric Frederich eric.freder...@gmail.com writes:
...
So I'm guessing the problem is that after I log in, the process has a
conflicting libssl.so file loaded.
Then when I try to import smtplib it tries getting things from there and
that is where the errors are coming from.
The question
Gregory P. Smith added the comment:
I'm running into this on 2.7.3 with code that worked fine on 2.6.5.
The problem appears to be caused by a 'Host' http header that has a unicode
type for the hostname:port value.
Encoding header values makes sense though I haven't yet examined the patch in
New submission from Hans Larsen:
Med venlig hilsen:
Hans Larsen
Galgebakken Sønder 4-11A
DK-2620 Albertslund
Danmark/Danio
I has found a bug in Python3.3 on Windows!
Why are all 3 try-statements equal?
I don’t see a “..During handling of above exception, another exception occured:
...”
Where is
Mark Dickinson added the comment:
Please could you give a coherent description of the behaviour you think is a
bug. Include: (1) what you did, (2) what results you got (including
tracebacks for exceptions), (3) what results you expected to get.
--
nosy: +mark.dickinson
Mark Dickinson added the comment:
Here's the contents of the .rtf file:
PythonWin 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:57:17) [MSC v.1600 64 bit
(AMD64)] on win32.
Portions Copyright 1994-2008 Mark Hammond - see 'Help/About PythonWin' for
further copyright information.
try:
... 1/0
Roundup Robot added the comment:
New changeset 2e2e7f398864 by Ezio Melotti in branch '2.7':
#16470: mention set and dict comprehension in the tutorial. Patch by Yongzhi
Pan.
http://hg.python.org/cpython/rev/2e2e7f398864
--
nosy: +python-dev
___
Ezio Melotti added the comment:
Fixed, thanks for the patch!
I also rephrased the sentence on 3.x.
--
assignee: docs@python - ezio.melotti
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker
Thomas Kluyver added the comment:
It seems pretty arbitrary and newcomer-unfriendly to decide that Python doesn't
support running setup.py inside IDLE.
Exhibit A: confused newcomer trying to install distribute, getting unhelpful
error message.
Xavier de Gaye added the comment:
I was bitten by this behavior while, new to the importlib library, I
was trying to understand if one has to call recursively find_loader
for a dotted module name (in the way it must be done when using
imp.find_module), since the documentation on find_loader is
Stefan Krah added the comment:
New patch with docs. I've eliminated the unused context arg from canonical(). I
can't possibly imagine that anyone uses it (or
that anyone uses canonical() at all for that matter).
--
Added file: http://bugs.python.org/file28009/issue15783-all-2.diff
Ramchandra Apte added the comment:
Also, please report bugs in English.
(read the devguide to learn more)
--
nosy: +ramchandra.apte
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16491
___
Martin v. Löwis added the comment:
That looks like a bug/missing feature in PythonWin to me, which doesn't print
__context__ properly. Note: I haven't tested PythonWin to confirm.
Hans: is the output also incorrect in IDLE, or a command line shell? If no,
then this isn't a bug in Python
Ramchandra Apte added the comment:
+1 on OverflowError being a subclass of ValueError
--
nosy: +ramchandra.apte
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16483
___
Stefan Krah added the comment:
I don't particularly like OverflowError in any situation where the
potential overflow is detected *before* it actually happens. This is
another example:
x = [1]*
Traceback (most recent call last):
File stdin, line 1, in module
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16483
___
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16480
___
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16465
___
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15346
___
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16490
___
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16487
___
___
Roundup Robot added the comment:
New changeset 358be7742377 by Brett Cannon in branch '3.3':
Issue #16489: Make it clearer that importlib.find_loader() requires
http://hg.python.org/cpython/rev/358be7742377
New changeset ba1d7447bd1b by Brett Cannon in branch 'default':
Merge fix for #16489
Antoine Pitrou added the comment:
Can't right now. It's only relevant for pcbuild anyway so you can test
it for Unix if you want without fear. Don't worry, I always give my
patches a cleanup before committing them.
I don't want to review a patch if you tell me that it has problematic stuff
New submission from Brett Cannon:
To make using importlib.find_loader() easier, there should be a flag that says
to automatically import all parent packages for the desired submodule so as to
not force the user to do it::
def find_loader(name, path=None, *, load_parents=False): ...
That
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - duplicate
status: open - pending
superseder: - IDLE and Command line present different behavior for sys.stdin
___
Python tracker rep...@bugs.python.org
Brett Cannon added the comment:
I clarified the wording in 3.3 and default. I also opened issue #16492 to add a
keyword-only argument to find_loader() to have it import parent packages for
you if you so desire.
--
resolution: invalid - fixed
stage: - committed/rejected
Serhiy Storchaka added the comment:
Since all previous changes were dispense with tests, I don't see why it should
become an obstacle for this patch. Please review. This patch provides a
simple and reliable solution for some other issues (mentioned in msg172685
issues and issue12967).
Brett Cannon added the comment:
So at this point you should use inspect.signature(), not getfullargspec().
With that you could do this if you either allowed setting the __signature__
attribute and then provided code that would set it, made __signature__ a
property that returned the Signature
Antoine Pitrou added the comment:
Here is a patch for 3.x. It unify behavior of Python and C
implementations and unify behavior on 32- and 64-bit platforms. For
backward compatibility Pickler can pickle up to 2G data, but Unpickler
can unpickle up to 4G on 64-bit.
I agree the right
Antoine Pitrou added the comment:
I'd like to add that anyone wanting to serialize large data will certainly be
using _pickle (or its ancestor cPickle), since using pickle.py is probably
excruciatingly slow. Meaning we should favour preserving _pickle/cPickle's
behaviour over preserving
Vinay Sajip added the comment:
as far as I know virtualenv does not create links for local/bin and friends
either.
AFAIK it never used to, but it seems to do so since 1.6.3, in an attempt to fix
a problem with the posix_local install scheme. I just tested with virtualenv
1.6.4, and when I
Vinay Sajip added the comment:
Whoops, mouse glitch led to components being wrongly set.
--
components: +Library (Lib) -2to3 (2.x to 3.x conversion tool), Benchmarks,
Build, Cross-Build, ctypes
___
Python tracker rep...@bugs.python.org
Changes by Larry Hastings la...@hastings.org:
--
assignee: - larry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16490
___
___
Python-bugs-list
Brett Cannon added the comment:
I think we are as close as we are going to get with PEP 3018 being implemented.
if profile/cProfile ever get merged that is great (issue #16492), but I'm not
holding my breath and thus I am closing this issue.
--
dependencies: -Merge profile/cProfile
Larry Hastings added the comment:
I'm working on a solution for this--expect an announcement on c.l.p-d in, oh, a
week.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16490
___
Brett Cannon added the comment:
Another name for the method I thought of last night was
parse_bytecode_container().
People like that more? That would lead to new terminology to distinguish
bytecode ala dis module compared to bytecode file format ala importlib that
makes it clear that what is
Serhiy Storchaka added the comment:
The issue is not only in difference between Python and C implementations, but
also between 32-bit and 64-bit.
pickle.py on 32-bit accepts data up to 2G.
pickle.py on 64-bit accepts data up to 2G.
_pickle.c on 32-bit accepts data up to 2G.
_pickle.c on 64-bit
Roundup Robot added the comment:
New changeset 333fe4c4897a by Ezio Melotti in branch '2.7':
#16420: document a way to escape metacharacters in glob/fnmatch.
http://hg.python.org/cpython/rev/333fe4c4897a
New changeset 168f36c2b5ea by Ezio Melotti in branch '3.2':
#16420: document a way to
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
Removed message: http://bugs.python.org/msg175755
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16420
___
Martin v. Löwis added the comment:
IMO, the right solution is to finish PEP 3154, and support large strings in the
format.
For the time being, I'd claim that signed length in the existing
implementations are just a bug, and that unsigned lengths are the intended
semantics of these opcodes. I
New submission from Brett Cannon:
Looks like Georg added the flag in 2010 after Python 2.7 was already out, so
this doesn't need to be backported.
The possible values are:
-1 : optimization level the interpreter is already executing with
0 : no optimization
1 : -O
2 : -OO
--
Ezio Melotti added the comment:
Finalized!
--
assignee: docs@python - ezio.melotti
priority: high - normal
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Kushal Das added the comment:
I will submit a patch if no one is working on it.
--
nosy: +kushaldas
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16493
___
Brett Cannon added the comment:
We might want an keyword-only 'optimize' argument that maps to the compile()
function's 'optimize' argument.
--
dependencies: +Document the 'optimize' argument to compile()
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
Here is a patch for 3.x which extends supported size to 4G on 64-bit.
--
Added file: http://bugs.python.org/file28010/pickle_nonportable_size.patch
___
Python tracker rep...@bugs.python.org
New submission from Brett Cannon:
With issue #15031 providing a way to take a bytecode file and get a code object
out of it, there should probably be a comparable method that takes a code
object and a path stats dict and returns the bytes to write out to a file.
This could also be a slight
Changes by Brett Cannon br...@python.org:
--
title: Method on importlib.SourceLoader for creating bytecode file
format/container - Add a ethod on importlib.SourceLoader for creating bytecode
file format/container
___
Python tracker
Changes by Brett Cannon br...@python.org:
--
title: Add a ethod on importlib.SourceLoader for creating bytecode file
format/container - Add a method on importlib.SourceLoader for creating
bytecode file format/container
___
Python tracker
Serhiy Storchaka added the comment:
Thank you, Ezio. Can we now continue with issue8402?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16240
___
Brett Cannon added the comment:
I've decided against this as issues #15031 and #16494 will alleviate the need
to expose these functions.
--
dependencies: -Split .pyc parsing from module loading
resolution: - rejected
status: open - closed
___
Brett Cannon added the comment:
The story of impports from the C level is much more sane than back in the 2.6
days thanks to PyImport_Import, PyImport_ImportModuleLevelObject, and
PyImport_ImportModuleLevel.
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open
Ezio Melotti added the comment:
The workaround is now documented.
I'm still not sure if this should still be added, or if it should be closed as
rejected now that the workaround is documented.
A third option would be adding it as a recipe in the doc, given that the whole
functions boils down
Brett Cannon added the comment:
What exactly is blocking this? From looking on PyPI it seems Jinja2, Pygments,
and Sphinx have all been ported to Python 3 at this point. Is it a matter of
porting any custom code in Doc/ to Python 3 and then updating the Makefile to
grab Python 3 versions of
Brett Cannon added the comment:
Closing as works for me due to lack of reply from OP.
--
resolution: - works for me
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15292
Changes by Brett Cannon br...@python.org:
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15623
___
___
Python-bugs-list
Brett Cannon added the comment:
Should we just close this, Barry?
--
status: pending - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13572
___
Brett Cannon added the comment:
This still an issue?
--
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4347
___
___
Changes by Brett Cannon br...@python.org:
--
resolution: - wont fix
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4182
___
Roundup Robot added the comment:
New changeset d51665f9a416 by Ezio Melotti in branch 'default':
#11981: remove duplicate line. Patch by Johan Euphrosine.
http://hg.python.org/cpython/rev/d51665f9a416
--
nosy: +python-dev
___
Python tracker
Ezio Melotti added the comment:
Fixed, thanks for the patch!
--
assignee: - ezio.melotti
resolution: - fixed
stage: commit review - committed/rejected
status: open - closed
versions: -Python 3.3
___
Python tracker rep...@bugs.python.org
Brett Cannon added the comment:
At some point this was fixed in importlib.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6526
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
stage: - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16456
___
___
Brett Cannon added the comment:
A quick search through typeobject.c in 2.7 didn't show any PyErr_WarnPy3k calls
that didn't have their return value checked or propagated.
--
resolution: - out of date
status: open - closed
___
Python tracker
Changes by Brett Cannon br...@python.org:
--
resolution: - out of date
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2744
___
Brett Cannon added the comment:
Been longer than a weekend. =)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8585
___
___
Python-bugs-list
Terry J. Reedy added the comment:
Thomas, please re-read the messages starting msg145215 where it was decided
that this is not an issue about setup.py in particular. There appears to now
only be a problem if IDLE is run without a subprocess, and that option may
disappear in 3.4 as unneeded.
Changes by Brett Cannon br...@python.org:
--
nosy: -brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue850482
___
___
Python-bugs-list
Brett Cannon added the comment:
Never heard back from OP.
--
resolution: - out of date
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9761
___
Antoine Pitrou added the comment:
By the way, without looking too much at the patch, I think it would be cleaner
to let the certificate functions accept file-like objects, rather than adding
keydata/certdata arguments.
--
___
Python tracker
Changes by Brett Cannon br...@python.org:
--
nosy: -brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1539925
___
___
Python-bugs-list
Antoine Pitrou added the comment:
OTOH, I also think that it won't matter much in practive: if you try to
unpickle a string with more than 2GiB on a 32-bit system, chances are
really high that you run out of memory.
Agreed. I think this issue is mostly about 64-bit systems, even though we
Terry J. Reedy added the comment:
Even though the title of #9290 says stdin, the patches are for all std**
streams, so should cover this.
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12967
Changes by Terry J. Reedy tjre...@udel.edu:
--
stage: needs patch - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12967
___
___
Éric Araujo added the comment:
I had forgotten that README.Emacs was moved to the devguide. Adding doc about
Vim support can be another bug report. Thanks.
--
stage: needs patch - committed/rejected
___
Python tracker rep...@bugs.python.org
Xavier de Gaye added the comment:
Thanks, this is great!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16489
___
___
Python-bugs-list mailing
Changes by Terry J. Reedy tjre...@udel.edu:
--
versions: +Python 3.3, Python 3.4 -Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8585
___
Éric Araujo added the comment:
A patch and test making sure that pydoc generates the right URIs for upper-case
modules would help.
--
assignee: docs@python -
nosy: +eric.araujo -docs@python
stage: - needs patch
title: Missing/broken documentation redirect for
Roundup Robot added the comment:
New changeset d6cd283bb4c2 by Ezio Melotti in branch '3.3':
#16157: fix links in the whatsnew files.
http://hg.python.org/cpython/rev/d6cd283bb4c2
New changeset 9a08c9443c54 by Ezio Melotti in branch 'default':
#16157: merge with 3.3.
Ezio Melotti added the comment:
This should be fixed now.
I linked to http://hg.python.org/cpython/file/3.2/Misc/NEWS for the 3.2
whatsnew and to http://docs.python.org/3.3/whatsnew/changelog.html and
http://docs.python.org/3.4/whatsnew/changelog.html for 3.3 and 3.4 respectively.
--
1 - 100 of 173 matches
Mail list logo