Well, if not modify python itself, I was thinking of making another shell,
which borrows a lot from python, something like merging bash and python. such
that I can do `cd ~/Desktop/dev` and `for i in open('file.txt'): print i` at
the some shell. This I think would be VERY useful.
IPyhton is
Well, if not modify python itself, I was thinking of making another shell,
which borrows a lot from python, something like merging bash and python. such
that I can do `cd ~/Desktop/dev` and `for i in open('file.txt'): print i` at
the some shell. This I think would be VERY useful.
IPyhton is
On Sun, 19 Feb 2012 00:16:43 -0800, SherjilOzair wrote:
Well, if not modify python itself, I was thinking of making another
shell, which borrows a lot from python, something like merging bash and
python. such that I can do `cd ~/Desktop/dev` and `for i in
open('file.txt'): print i` at the
On Feb 19, 8:44 am, Steven D'Aprano steve
+comp.lang.pyt...@pearwood.info wrote:
On Sun, 12 Feb 2012 19:09:32 -0800, rusi wrote:
I have some bunch of sanskrit (devanagari) to type. It would be easiest
for me if I could have the English (roman) as well as the sanskrit
(devanagari).
For
On 2/19/2012 3:18 AM, SherjilOzair wrote:
Well, if not modify python itself, I was thinking of making another
shell, which borrows a lot from python, something like merging bash
and python. such that I can do `cd ~/Desktop/dev` and `for i in
'cd xxx' cannot work because that is not python
I tried to use file to config my logger and I got a weird situation
that each message is outputted twice...
Here is my scenario:
python: 2.6
file abc_logging.conf:
[loggers]
keys=root,abc
[handlers]
keys=consoleHandler
[formatters]
keys=detailFormatter
[logger_root]
level=DEBUG
On 19/02/2012 20:23, Herman wrote:
I tried to use file to config my logger and I got a weird situation
that each message is outputted twice...
Here is my scenario:
python: 2.6
file abc_logging.conf:
[snip]
[logger_abc]
level=DEBUG
handlers=consoleHandler
qualname=abc
Add this line to stop
On 02/18/2012 11:58 AM, SherjilOzair wrote:
Has it been considered to add shell features to python, such that it
can be used as a default shell, as a replacement for bash, etc.
I'm sure everyone would agree that doing this would make the terminal
very powerful.
What are your views on
在 2012年2月20日星期一UTC+8上午8时23分33秒,Michael Torrie写道:
On 02/18/2012 11:58 AM, SherjilOzair wrote:
Has it been considered to add shell features to python, such that it
can be used as a default shell, as a replacement for bash, etc.
I'm sure everyone would agree that doing this would make the
Éric Araujo mer...@netwok.org added the comment:
Hello Michal. This bug tracker is used to collect bug reports and feature
requests, not for general support. Please use the python-list mailing list,
also known as the comp.lang.python newgroup, or #python on IRC (Freenode), or
Stack
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11051
___
___
Python-bugs-list
Ezio Melotti ezio.melo...@gmail.com added the comment:
We could just mention that a TypeError is raised if some of the elements can't
be compared. (Note that sorting a list that contains some types that cannot be
compared might still succeed in some corner cases, but there's no reason to
Éric Araujo mer...@netwok.org added the comment:
If I had read your patched version when I was a beginner, I don’t think it
would have helped me much. (Sorry for not coming up with an alternative right
now, it’s late/early here and I’m tired :)
--
nosy: +eric.araujo, terry.reedy
Changes by Éric Araujo mer...@netwok.org:
--
versions: +Python 3.3 -Python 2.6, Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6784
___
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14052
___
___
Python-bugs-list mailing
Michal Sladek mic...@sladkovi.eu added the comment:
Hello Eric!
I believe that there is a bug which prevents adding UTF-8 encoded
suject to multipart message properly. But because I am not a
programmer, I admin I might be wrong. So if you are a programmer and
you don't see any obvious mistake
Éric Araujo mer...@netwok.org added the comment:
Sorry, I cannot right now take the time to go through the doc and your code.
Please use any of the friendly venues I listed in my previous message to get
help on your code.
--
___
Python tracker
Éric Araujo mer...@netwok.org added the comment:
Closing for lack of information. Will reopen if someone explains what the
problem is.
--
assignee: tarek - eric.araujo
nosy: +eric.araujo
resolution: - invalid
stage: - committed/rejected
status: open - closed
Éric Araujo mer...@netwok.org added the comment:
Not sure if there is much to be done here; I don’t know if it is a reasonable
expectation that an installer created with 2.X still work with 2.X+1, and
anyway only 2.7 could get a bugfix now.
--
nosy: +eric.araujo
title: Windows
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
versions: -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7509
___
___
Michal Sladek mic...@sladkovi.eu added the comment:
I guess you don't understand me.
My script works properly. I don't need any help with it. OK? I have
found a workaround and I am happy with it for now. But I think, there
is a problem in current version of Python language.
Now, what should I
Éric Araujo mer...@netwok.org added the comment:
We have a Solaris buildbot but it’s offline, so I don’t know if this bug is
still current. If it is, then it should be easy to use “cc + ' -P'” for that
OS (IIUC the test can just be “if sys.platform == 'solaris'”).
--
assignee: tarek
Éric Araujo mer...@netwok.org added the comment:
The crash message is the same as the one in #4918; it looks like bdist_wininst
need better error reporting.
--
assignee: tarek - eric.araujo
stage: - test needed
versions: -Python 3.0
___
Python
Georg Brandl ge...@python.org added the comment:
Attaching reviewed version for 3.1 with unified env var PYTHONHASHSEED and
encompassing Antoine's and Greg's review comments.
--
Added file: http://bugs.python.org/file24561/hash-patch-3.1-gb.diff
___
Changes by Georg Brandl ge...@python.org:
Removed file: http://bugs.python.org/file24561/hash-patch-3.1-gb.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13703
___
Georg Brandl ge...@python.org added the comment:
New version, with the hope that it gets a review link.
--
Added file: http://bugs.python.org/file24562/hash-patch-3.1-gb.patch
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
Martin, are you rejecting this bug report as worksforme or is it a valid
feature request?
--
components: -Distutils
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
Ronny Pfannschmidt ronny.pfannschm...@gmail.com added the comment:
im unlikely to find the time to try and fix pickle/cpickle myself in the next
few months
--
nosy: +Ronny.Pfannschmidt
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
It’s strange that glob_to_re needs fixing too; at this point I’m not sure if
we’re still fixing my commit or if the original code never worked properly on
Windows. Could you run the same tests with a Python 2.7?
BTW I wonder if #9691 is yet
Éric Araujo mer...@netwok.org added the comment:
For distutils2, we’re going to generate .exe wrappers on Windows, like
setuptools does (see #12394).
distutils is feature-frozen.
--
assignee: tarek - eric.araujo
components: +Distutils2 -Distutils, Windows
nosy: +alexis, eric.araujo
Changes by Éric Araujo mer...@netwok.org:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1173134
___
___
Python-bugs-list
Éric Araujo mer...@netwok.org added the comment:
Thanks to Sandro’s explanation and a passage in the Unix Haters Handbook, I now
think that ignoring .nfs* files is a safe change. If should not be hard to add
a test for this in test_sdist.
--
assignee: tarek - eric.araujo
keywords:
Changes by Georg Brandl ge...@python.org:
Removed file: http://bugs.python.org/file24562/hash-patch-3.1-gb.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13703
___
Georg Brandl ge...@python.org added the comment:
New patch fixes failures due to sys.flags backwards compatibility.
With PYTHONHASHSEED=random, at least those tests still fail:
test_descr test_json test_set test_ttk_textonly test_urllib
Do we want to fix them in 3.1?
--
Added file:
Martin v. Löwis mar...@v.loewis.de added the comment:
Installers ought to work for subsequent versions if they contain pure-Python
packages (i.e. no extension modules). I agree that the issue is obsolete for
2.x, but it may still exist for 3.x.
--
Martin v. Löwis mar...@v.loewis.de added the comment:
As a feature request, it's fine - but I have no intention to work on this
feature.
--
assignee: loewis -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8526
Changes by Ramchandra Apte maniandra...@gmail.com:
--
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8526
___
___
STINNER Victor victor.stin...@gmail.com added the comment:
I changed the title of the issue because what matters is the total startup
time, not how it is improved :-)
--
title: system calls per import - Improve Python 3.3 startup time
___
Python
Changes by Éric Araujo mer...@netwok.org:
--
nosy: -eric.araujo
type: behavior - enhancement
versions: -Python 2.6, Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8526
___
Éric Araujo mer...@netwok.org added the comment:
Thanks, keeping it open. If I manage to get a VM set up I will see if this is
reproducible.
--
components: +Distutils2
nosy: +alexis
title: Windows installer created with Python 2.5 does not work with Python
2.6.1 - Windows installer
Éric Araujo mer...@netwok.org added the comment:
With PYTHONHASHSEED=random, at least those tests still fail:
test_descr test_json test_set test_ttk_textonly test_urllib
Do we want to fix them in 3.1?
It the failures are caused by the test depending on dict order (i.e. not real
bugs, not
Charles-François Natali neolo...@free.fr added the comment:
Committed, thanks!
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14001
STINNER Victor victor.stin...@gmail.com added the comment:
Using the following patch, ./python -s -c pass is 2x faster than without the
patch!
diff --git a/Lib/site.py b/Lib/site.py
--- a/Lib/site.py
+++ b/Lib/site.py
@@ -518,7 +518,8 @@ def main():
known_paths = removeduppaths()
if
Nadeem Vawda nadeem.va...@gmail.com added the comment:
It’s strange that glob_to_re needs fixing too; at this point I’m not sure if
we’re still fixing my commit or if the original code never worked properly on
Windows. Could you run the same tests with a Python 2.7?
The original code
Nadeem Vawda nadeem.va...@gmail.com added the comment:
This happens because the glob-to-regexp translator assumes that the
directory separator is /, regardless of platform. Consequently, the
regexp for include *.py ends up matching sandbox\dummy.py erroneously
on Windows.
The problem is
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
So I’ll certainly reuse your tests, but will have to redo the implementation.
That's fine, but please bear in mind what I said about a 100% declarative
approach being insufficient - see the Windows example I gave, where Windows
APIs have
Charles-François Natali neolo...@free.fr added the comment:
Two others seem to be the internal bootstate structure used to
run thread objects (daemon threads?).
Even for daemon threads, since the boostate structure is freed when
the thread's run() method returns, this shouldn't show up as a
Changes by Vladimir Rutsky altsy...@gmail.com:
--
nosy: +rutsky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13857
___
___
Python-bugs-list
Nick Coghlan ncogh...@gmail.com added the comment:
Purging __file__ of relative references isn't a problem - they're *supposed* to
always be absolute. The import.c version just stuffs it up sometimes (mainly
due to the way it handles the empty string in the path).
IOW, while the importlib
New submission from Francisco Martín Brugué franci...@email.de:
The devguide (http://docs.python.org/devguide/patch.html) recommends the use of
the mercurial “mq” feature to work with patches and that works IMHO very well.
It also states that before sending the patch a sanity check should be
Changes by Tshepang Lekhonkhobe tshep...@gmail.com:
--
nosy: +tshepang
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13248
___
___
Francisco Martín Brugué franci...@email.de added the comment:
Well, it's done:
http://bugs.python.org/issue14053
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13579
___
Merlijn van Deen valhall...@gmail.com added the comment:
Last night, I hacked together a wrapper to do what loewis suggested [1]. It
pickles bytes to str (for protocol = 2), and unpickles str to bytes.
If I (ever) get the build system and tests of python itself to work, I'll try
and see if I
Guido van Rossum gu...@python.org added the comment:
Wouldn't it make more sense to somehow share the dict with the underlying
function?
--
nosy: +gvanrossum
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14051
Antoine Pitrou pit...@free.fr added the comment:
If I (ever) get the build system and tests of python itself to work,
If you have any problems with that, don't hesitate to ask on python-dev
(or see http://mail.python.org/mailman/listinfo/core-mentorship )
--
Antoine Pitrou pit...@free.fr added the comment:
I haven't taken a look at the patch in detail, but it lacks some tests.
Pickling tests are generally in Lib/test/pickletester.py, they are invoked by
test_pickle and test_pickletools.
--
stage: needs patch - patch review
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +hynek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13842
___
___
Python-bugs-list mailing
Antoine Pitrou pit...@free.fr added the comment:
I'm completely new to the C API so not sure if the way I am building
python strings (to pass to save_global) is correct
It's correct but it's probably less efficient than calling a more specialized
function, such as PyUnicode_FromString():
Changes by Nadeem Vawda nadeem.va...@gmail.com:
--
nosy: +nadeem.vawda
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14053
___
___
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +eric.araujo
versions: +Python 2.7, Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14053
___
Benjamin Peterson benja...@python.org added the comment:
You can wrap anything with staticmethod, so it might not have a __dict__.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14051
___
New submission from Antoine Pitrou pit...@free.fr:
==
FAIL: test_case_sensitive
(importlib.test.extension.test_case_sensitivity.ExtensionModuleCaseSensitivityTest)
Antoine Pitrou pit...@free.fr added the comment:
Here is a patch simply removing the suffixes.
--
Added file: http://bugs.python.org/file24564/removesuffixes.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14040
Catalin Iacob iacobcata...@gmail.com added the comment:
Attached v2 of patch where mixing str and binary data for altchars or map01
raises TypeError.
I also added a note for each of the changed functions that it also accepts
strings (but didn't also update the docstrings).
When writing the
Antoine Pitrou pit...@free.fr added the comment:
I think trying to prevent mixed argument types is completely overkill. There's
no ambiguity since they all have to be ASCII anyway.
So I would prefer to commit issue13641-alternative-v1.patch
--
___
Francisco Martín Brugué franci...@email.de added the comment:
Here is a patch that works for me. Please check and review it.
Thanks in advance!
Francis
--
keywords: +patch
Added file: http://bugs.python.org/file24566/issue14053_336a614f35a3.patch
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 996efb0425c5 by Sandro Tosi in branch '3.2':
Issue #13605: use print() in argparse nargs example
http://hg.python.org/cpython/rev/996efb0425c5
New changeset c3daa6a834c6 by Sandro Tosi in branch 'default':
Issue
Martin v. Löwis mar...@v.loewis.de added the comment:
Michal, it's your wording of your report, and also some of the contents that
caused Eric's reaction. When you conclude with Am I doing something wrong?,
then your message is *not* a bug report, but a question for help (namely, you
are
Changes by Merlijn van Deen valhall...@gmail.com:
Added file: http://bugs.python.org/file24567/test_bytestrpickle.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6784
___
Merlijn van Deen valhall...@gmail.com added the comment:
OK, this is the pickle.py patch. A new parameter 'bytestr' has been added to
both _Pickler and _Unpickler to toggle the pickle.string=bytes behaviour:
_Pickler:
IF protocol = 2 AND bytestr=True
THEN bytes are stored as
Merlijn van Deen valhall...@gmail.com added the comment:
P.S. (sorry for forgetting this in the original post ;-))
Both
./python -m test -G -v test_pickle
and
./python test_bytestrpickle.py
pass, but I have not run the entire test suite, as that takes ~90 minutes on my
laptop
The
Stefan Krah stefan-use...@bytereef.org added the comment:
Charles-Fran??ois Natali rep...@bugs.python.org wrote:
However, I have a stupid question: are those logs for the main
process, or for child processes ?
Valgrind was run with --trace-children=no. However, the option is a bit
tricky,
Antoine Pitrou pit...@free.fr added the comment:
Regarding the posix_read leak: Running with --num-callers=50 shows
that it's also thread related:
Would be nice to know if it's a daemon thread. Daemon threads are simply
killed by the OS at shutdown.
--
Antoine Pitrou pit...@free.fr added the comment:
Could you provide a patch with those proposed changes?
Le samedi 18 février 2012 à 00:45 +, Vinay Sajip a écrit :
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
Almost there. The file now compiles, but a failure occurs in a later
Nadeem Vawda nadeem.va...@gmail.com added the comment:
Thanks for taking this up; it's something that's been bothering me for a
while now.
A couple of comments:
- The mq_changed_files() function will break if the user has specified
git-format diffs in their ~/.hgrc file. In this case, the
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
Attached.
--
Added file: http://bugs.python.org/file24569/ssl-ecdh.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13627
___
Antoine Pitrou pit...@free.fr added the comment:
Attached.
Thanks. Should be fixed in 1a06f0a8120f. Can you check? :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13627
___
New submission from Martin v. Löwis mar...@v.loewis.de:
The cElementTree Element currently returns an incorrect response to
sys.getsizeof, as it doesn't account for the extra structure, and for the child
pointers array. This patch corrects the computation.
--
files: sizeof.diff
Changes by Antoine Pitrou pit...@free.fr:
--
components: +Library (Lib)
nosy: +flox
stage: - patch review
type: - enhancement
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14055
Martin v. Löwis mar...@v.loewis.de added the comment:
I'm in favour of the removesuffixes.patch. However, it will need to be
accompanied with a whatsnew change.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14040
Changes by Éric Araujo mer...@netwok.org:
--
stage: test needed - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9691
___
Éric Araujo mer...@netwok.org added the comment:
The original code never worked properly on Windows - that's what the XXX
comment in glob_to_re() is
about. I've been able to reproduce the problem (erroneously including
.hg\last-message.txt) on
v2.7.2 (8527427914a2).
Can you reproduce the
Éric Araujo mer...@netwok.org added the comment:
(ISTM that such test improvements would be beneficial to all branches, and we
would also eschew merge issues if we change all branches. Other core devs
sometimes object to test improvements or additions in stable branches though.)
--
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +brett.cannon
title: Make Tools/scripts/patchcheck.py compatible with mercurial mqueues. -
Make patchcheck compatible with MQ
___
Python tracker rep...@bugs.python.org
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14040
___
___
Python-bugs-list
Éric Araujo mer...@netwok.org added the comment:
I think I was rude too when I called you off, apologies. I’ll gladly review or
help with a patch.
--
title: the example in argparse doc is too complex - first example in argparse
doc is too complicated
Berker Peksag berker.pek...@gmail.com added the comment:
I think this issue fixed in changeset 74194:cf57ef65bcd0.
See: http://hg.python.org/cpython/rev/cf57ef65bcd0#l2.75
--
nosy: +berkerpeksag
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
That's fine, but please bear in mind what I said about a 100% declarative
approach being insufficient
Well, the config file approach supports simple cases, and for people needing
Windows API calls, they will be able to use a pre-command hook.
New submission from Éric Araujo mer...@netwok.org:
A few things to improve in tarfile’s doc:
a) I found the heading “The following variables are available on module level”
strange; does “variable” mean that users are able to edit tarfile.ENCODING to
control the default encoding used? The
Éric Araujo mer...@netwok.org added the comment:
Another one: now that shutil provides archiving operations, there is a circular
dependency between tarfile and shutil. It does not cause problems*, as both
modules use qualified names, but it may be a good thing to avoid import
cascades for
New submission from STINNER Victor victor.stin...@gmail.com:
On my laptop, start Python compiled in debug mode takes 600 ms. Half of this
time is spend in the site module. And most of this time is spend in load the
sysconfig module, which parse sysconfig.cfg, just to get the user site packages
STINNER Victor victor.stin...@gmail.com added the comment:
I opened the issue #14057 for the sysconfig parser.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11051
___
STINNER Victor victor.stin...@gmail.com added the comment:
To speed up python -s, the following patch avoids loading the sysconfig module:
diff --git a/Lib/site.py b/Lib/site.py
--- a/Lib/site.py
+++ b/Lib/site.py
@@ -518,7 +518,8 @@ def main():
known_paths = removeduppaths()
if
Changes by Eric V. Smith e...@trueblade.com:
--
nosy: +eric.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14057
___
___
Python-bugs-list
Éric Araujo mer...@netwok.org added the comment:
The site.getusersitepackages, site.addusersitepackages and co. functions all
call one function which makes sure site.USER_SITE is set according to envvars
and command-line options; under python -s, addusersitepackages will not add the
user site
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14057
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 5b4b70bd2b6f by Brett Cannon in branch 'default':
Fix a failing importlib test under Windows.
http://hg.python.org/cpython/rev/5b4b70bd2b6f
--
nosy: +python-dev
___
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
Good news: the _ssl module builds OK, the ssl module can be imported, and
test_ssl now has no failures on Mac OS X 10.5.8 / OpenSSL 0.9.7 :-)
--
___
Python tracker rep...@bugs.python.org
Changes by Brett Cannon br...@python.org:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14054
___
Changes by Brett Cannon br...@python.org:
--
stage: needs patch - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14054
___
___
1 - 100 of 135 matches
Mail list logo