On Mon, 15 Apr 2013 21:56:12 -0700, rusi wrote:
On Apr 16, 7:32 am, Steven D'Aprano steve
+comp.lang.pyt...@pearwood.info wrote:
If I had a say in this, I would vote for the first case, with the
possible exception of documented singleton types like NoneType and
bool.
How is bool a
zipher於 2013年4月15日星期一UTC+8上午11時48分05秒寫道:
Hello,
I'm new to the list and hoping this might be the right place to
introduce something that has provoked a bit of an argument in my
programming community.
I'll state about my opinions about the imperative and
non-imperative part.
If the
On 16.04.13 07:46, Ian Kelly wrote:
On Mon, Apr 15, 2013 at 9:17 PM, Terry Jan Reedy tjre...@udel.edu wrote:
I will keep the above in mind if I write or review a patch. here are 4
non-subclassable builtin classes. Two are already documented. Bool in one,
forget which other. I believe it was
Op 16-04-13 05:17, Terry Jan Reedy schreef:
On 4/15/2013 10:32 PM, Steven D'Aprano wrote:
On Mon, 15 Apr 2013 20:52:58 -0400, Terry Jan Reedy wrote:
Some builtin classes cannot be subclassed. There is an issue to
document
which better. That does not mean that it is not a class.
I think it
We are re-designing a part of our codebase, which should in short be
able to generate forms with custom fields.
We use django for the frontend and bottle for the backend (using CouchDB
as database), and at the moment we simply plug extra fields on normal
django forms.
This is not really
Greetings,
I am trying to write a python script that, when called from the DOS prompt,
will call another python script and pass it input variables. My current code
will open the other python script but doesn't seem to pass it any values:
import os,sys,subprocess
Gilles nos...@nospam.com writes:
I see Python mentioned in /usr/lib and /usr/share, and was wondering
if all it'd take to solve this issue, is just to cross-compile the
interpreter and the rest is just CPU-agnostic Python scripts.
I suppose. In any case, cross compiling Python shouldn't be
I do not have admin rights on my machine and I am trying to build Python
directly from source code. After running:
./configure --prefix=/some/path --enable-shared
and then
make
I get the following:
Python build finished, but the necessary bits to build these modules
were
PyOhio 2013, the annual Python programming conference for Ohio and the
surrounding region, is now accepting proposals for scheduled talks,
tutorials, and panels.
This year's PyOhio will will take place Saturday, July 27th, and Sunday,
July 28th, 2013 at the Ohio Union, on the campus of The Ohio
Hi D'A,
Thanks alot for your reply, it works for me perfectly.
Best,
Chen
On Mon, 15 Apr 2013 02:57:35 +0800
pyth0n3r pyth0...@gmail.com wrote:
float(). How can i remove the comma in int data? Any reply will be
int(n.replace(',', ''))
--
D'Arcy J.M. Cain da...@druid.net | Democracy
Hi all,
i'm programming in python for the first time (usually i use C as programming
language). I don't understand these results:
a=[1,2,3,4,5]
a[:-1]
[1, 2, 3, 4]
a[::-1]
[5, 4, 3, 2, 1]
a[2::-1]
[3, 2, 1]
what does a[2::-1] means?
Thanks
--
On Wed, Apr 17, 2013 at 1:20 AM, idkfaidkfaid...@gmail.com wrote:
Hi all,
i'm programming in python for the first time (usually i use C as programming
language). I don't understand these results:
a=[1,2,3,4,5]
a[:-1]
[1, 2, 3, 4]
a[::-1]
[5, 4, 3, 2, 1]
a[2::-1]
[3, 2, 1]
what does
When slicing: l[start:end:step]
In your example of a[2::-1] you are reversing the list by using a step of
-1, then you are slicing at index 2 (third element).
*Matt Jones*
On Tue, Apr 16, 2013 at 10:30 AM, Chris Angelico ros...@gmail.com wrote:
On Wed, Apr 17, 2013 at 1:20 AM,
hello,
I am a beginner programmer. I started learning programming about a year and a
half ago, using C. I picked up python a few months ago, but only wrote very few
scripts.
I am currently trying to learn more about the python way of doing things by
writing a script that generates png images
On Wed, Apr 17, 2013 at 1:37 AM, aaB mecagonoisic...@gmail.com wrote:
but when I do:
for i in rule:
print rule[i]
When you iterate over rule, you don't iterate over the indices, but
over the values themselves. Try this:
for i in rule:
print i
Incidentally, for i in range(rule) isn't
On 2013-04-16, idkfaidkfaid...@gmail.com idkfaidkfaid...@gmail.com wrote:
Hi all,
i'm programming in python for the first time (usually i use C as programming
language). I don't understand these results:
a=[1,2,3,4,5]
a[:-1]
[1, 2, 3, 4]
a[::-1]
[5, 4, 3, 2, 1]
a[2::-1]
[3, 2, 1]
The
I came across this article which sums up some of the issues I have with
modern programming languages. I've never really looked at Javascript for
anything serious or Node itself but I found this article really
informational.
The “Batteries included” philosophy of Python was definitely the right
Neil Cerutti ne...@norwich.edu writes:
Imagine something like the following for loop taking place
somewhere:
for (int i = 2; i = 0; --i) {
fprintf(a[i]);
}
Neil most probably meant
for (int i = 2; i = 0; --i) {
fprintf(a[i]);
}
where fprintf is actually a fictitious do_something
On 4/16/2013 12:02 PM, Rodrick Brown wrote:
I came across this article which sums up some of the issues I have
with modern programming languages. I've never really looked at
Javascript for anything serious or Node itself but I found this
article really informational.
The Batteries included
On 16 April 2013 17:25, Ned Batchelder n...@nedbatchelder.com wrote:
On 4/16/2013 12:02 PM, Rodrick Brown wrote:
I came across this article which sums up some of the issues I have with
modern programming languages. I've never really looked at Javascript for
anything serious or Node itself
In mailman.668.1366126626.3114.python-l...@python.org aaB
mecagonoisic...@gmail.com writes:
but when I do:
for i in rule:
print rule[i]
I get the complement:
1
1
1
1
0
1
1
1
When you iterate over a list with this statement:
for i in rule:
i contains each successive list
On 4/16/2013 5:07 AM, Antoon Pardon wrote:
Op 16-04-13 05:17, Terry Jan Reedy schreef:
On 4/15/2013 10:32 PM, Steven D'Aprano wrote:
On Mon, 15 Apr 2013 20:52:58 -0400, Terry Jan Reedy wrote:
I will keep the above in mind if I write or review a patch. here are 4
non-subclassable builtin
On 2013.04.16 11:02, Rodrick Brown wrote:
I came across this article which sums up some of the issues I have with
modern programming languages. I've never really looked at Javascript
for anything serious or Node itself but I found this article really
informational.
I don't think the author
On 4/16/2013 10:30 AM, rosoloum wrote:
I do not have admin rights on my machine
The answer to your question may depend on the OS (linux), distribution
(many), and version.
What about `_tkinter` and `dl`? How can I have them ready for the Python
installer?
Building _tkinter (a Python
Hi,
For the context, I'm working on Pelix (https://github.com/tcalmant/ipopo),
a service-oriented architecture framework (in GPLv3), inspired by OSGi
(from the Java world).
It runs on Python = 2.6 (with the backport of importlib) and Python 3.1
(not tested upon this version).
It considers Python
For javascript *the language* this is a good watch:
http://www.youtube.com/watch?v=kXEgk1Hdze0
However I believe that the language view is a bit dated.
On Apr 16, 9:50 pm, Andrew Berg bahamutzero8...@gmail.com wrote:
Perhaps having a minimal core works well for node.js, but Python is much,
On 4/16/2013 11:37 AM, aaB wrote:
I represent the CA's rule with a list of integers, of value 1 or 0.
Here is the function I use to generate the list:
def get_rule(rulenum):
rule = []
while rulenum 0:
rule.append(rulenume % 2)
rulenum /= 2
divmod(rulenum) will return both
On 2013-04-16, Lele Gaifax l...@metapensiero.it wrote:
Neil Cerutti ne...@norwich.edu writes:
Imagine something like the following for loop taking place
somewhere:
for (int i = 2; i = 0; --i) {
fprintf(a[i]);
}
Neil most probably meant
for (int i = 2; i = 0; --i) {
Thank you Terry, I am working with:
cat /proc/version
Linux version 2.6.18-274.el5xen (brewbuil...@norob.fnal.gov) (gcc version
4.1.2 20080704 (Red Hat 4.1.2-50)) #1 SMP Thu Jul 21
cat /etc/redhat-release
Scientific Linux SL release 5.1 (Boron)
I did not find distribution-specific tar balls
On 2013.04.16 12:14, rusi wrote:
However combine it with your other statement
Python's package management is suboptimal (though it is being worked on),
and a different picture emerges, viz that *the ecosystem around the
language matters more than the language*
It was a minor point, and
On 4/16/2013 12:02 PM, Rodrick Brown wrote:
I came across this article which sums up some of the issues I have with
modern programming languages. I've never really looked at Javascript for
anything serious or Node itself but I found this article really
informational.
The “Batteries included”
On 04/16/2013 01:25 AM, Serhiy Storchaka wrote:
On 16.04.13 07:46, Ian Kelly wrote:
On Mon, Apr 15, 2013 at 9:17 PM, Terry Jan Reedy tjre...@udel.edu wrote:
I will keep the above in mind if I write or review a patch. here are 4
non-subclassable builtin classes. Two are already documented. Bool
Hi!
I am using ystockquote with the following code:
def get_historical_prices(symbol, start_date, end_date):
Get historical prices for the given ticker symbol.
Date format is 'MMDD'
Returns a nested list.
url = 'http://ichart.yahoo.com/table.csv?s=%s;' % symbol
On Tue, Apr 16, 2013 at 12:02 PM, hmjelte...@gmail.com wrote:
Hi!
I am using ystockquote with the following code:
def get_historical_prices(symbol, start_date, end_date):
Get historical prices for the given ticker symbol.
Date format is 'MMDD'
Returns a nested list.
On 4/16/2013 1:29 PM, Ethan Furman wrote:
On 04/16/2013 01:25 AM, Serhiy Storchaka wrote:
On 16.04.13 07:46, Ian Kelly wrote:
On Mon, Apr 15, 2013 at 9:17 PM, Terry Jan Reedy tjre...@udel.edu
wrote:
I will keep the above in mind if I write or review a patch. here are 4
non-subclassable
On Tue, Apr 16, 2013 at 11:29 AM, Ethan Furman et...@stoneleaf.us wrote:
The four are bool, NoneType, slice and ellipsis, I believe.
-- import builtins
-- for n in dir(builtins):
... if type(getattr(builtins, n)) is type:
... try:
... t = type(n, (getattr(builtins,
On 16/04/2013 19:02, hmjelte...@gmail.com wrote:
Hi!
I am using ystockquote with the following code:
def get_historical_prices(symbol, start_date, end_date):
Get historical prices for the given ticker symbol.
Date format is 'MMDD'
Returns a nested list.
url
I need a package for parsing a big .ttl file in pyhton2.7 in windows7
I have used rdflib but it returns out of memory Error.
Any suggestion?
--
http://mail.python.org/mailman/listinfo/python-list
On 4/16/2013 2:02 PM, hmjelte...@gmail.com wrote:
Hi!
I am using ystockquote with the following code:
def get_historical_prices(symbol, start_date, end_date):
Get historical prices for the given ticker symbol.
Date format is 'MMDD'
Returns a nested list.
On Tue, Apr 16, 2013 at 7:14 AM, PEnergy prqu...@gmail.com wrote:
Greetings,
I am trying to write a python script that, when called from the DOS prompt,
will call another python script and pass it input variables. My current code
will open the other python script but doesn't seem to pass
On Tue, 16 Apr 2013 12:10:09 -0700, Chris Rebert wrote:
On Tue, Apr 16, 2013 at 7:14 AM, PEnergy prqu...@gmail.com wrote:
Greetings,
I am trying to write a python script that, when called from the DOS
prompt, will call another python script and pass it input variables.
My current code will
On 04/16/2013 08:14 AM, PEnergy wrote:
Greetings,
I am trying to write a python script that, when called from the DOS
prompt, will call another python script and pass it input variables.
My current code will open the other python script but doesn't seem to
pass it any values:
import
On 04/16/2013 11:37 AM, aaB wrote:
hello,
I am a beginner programmer. I started learning programming about a year and a
half ago, using C. I picked up python a few months ago, but only wrote very few
scripts.
I am currently trying to learn more about the python way of doing things by
writing a
--
Using Opera's mail client: http://www.opera.com/mail/
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, 17 Apr 2013 01:30:03 +1000, Chris Angelico wrote:
By the way, regarding your email address: there are no cheat codes in
Python
ROFLMAO. Incidentally, my son used to use IDDQD rather than IDKFA.
I of course spurned all such, since I preferred to do it the hard way.
Thus I was Doomed.
On Wed, Apr 17, 2013 at 7:40 AM, Walter Hurry walterhu...@lavabit.com wrote:
On Wed, 17 Apr 2013 01:30:03 +1000, Chris Angelico wrote:
By the way, regarding your email address: there are no cheat codes in
Python
ROFLMAO. Incidentally, my son used to use IDDQD rather than IDKFA.
I of course
Hello. I am new to this group. I've done a search for the topic about which
I'm posting, and while I have found some threads that are relevant, I haven't
found anything exactly on point that I can understand. So, I'm taking the
liberty of asking about something that may be obvious to many
On Wed, Apr 17, 2013 at 2:50 AM, Andrew Berg bahamutzero8...@gmail.com wrote:
On 2013.04.16 11:02, Rodrick Brown wrote:
I came across this article which sums up some of the issues I have with
modern programming languages. I've never really looked at Javascript
for anything serious or Node
On Tue, 16 Apr 2013 15:19:25 -0700, Bruce McGoveran wrote:
Hello. I am new to this group. I've done a search for the topic about
which I'm posting, and while I have found some threads that are
relevant, I haven't found anything exactly on point that I can
understand. So, I'm taking the
On Mon, Apr 15, 2013 at 3:32 PM, Chris Angelico ros...@gmail.com wrote:
On Tue, Apr 16, 2013 at 8:12 AM, Rotwang sg...@hotmail.co.uk wrote:
Traceback (most recent call last):
File pyshell#2, line 1, in module
class C(type(lambda: None)):
TypeError: type 'function' is not an acceptable
On 04/16/2013 06:19 PM, Bruce McGoveran wrote:
Hello. I am new to this group. I've done a search for the topic about which
I'm posting, and while I have found some threads that are relevant, I haven't
found anything exactly on point that I can understand. So, I'm taking the
liberty of
On Tue, Apr 16, 2013 at 4:38 PM, Mark Janssen dreamingforw...@gmail.com wrote:
I think his point remains valid, from a theoretical pov. Python
prides itself on the idea of first-class functions and such, but
unlike the world of lambda calculus, this selling point is a bit
invalid. Because
I'm not quite sure I understand your question, but I'll give it a shot. :-)
Thank you, and my apologies for my late reply.
The C/C++ model, in which the types are anchored to the machine hardware, in
the exception, not the rule. In the academic literature, type theory is
almost entirely
On Tue, 16 Apr 2013 23:19:25 +0100, Bruce McGoveran
bruce.mcgove...@gmail.com wrote:
Hello. I am new to this group. I've done a search for the topic about
which I'm posting, and while I have found some threads that are
relevant, I haven't found anything exactly on point that I can
On 04/16/2013 08:37 AM, aaB wrote:
rule = getrule(int(8))
just rule = getrule(8) is sufficient -- you don't need to cast the integer 8
to an integer. ;)
Thanks, and sorry for the rather long post.
Not too long at all: it had lots of detail of what you were trying to do, what you were
On Mon, Apr 15, 2013 at 2:06 AM, Uday S Reddy u.s.re...@cs.bham.ac.uk wrote:
In programming language theory, there is no law to the effect that
everything should be of one kind or another. So, we would not go with
Alan Kay's ideal.
I understand. I state Kay's points to show how the evolution
Hi,
I'm trying to compile a regex Python with the re.VERBOSE flag (so that I can
add some friendly comments).
However, the issue is, I normally use constants to define re-usable bits of the
regex - however, these doesn't get interpreted inside the triple quotes.
For example:
import re
On Tue, Apr 16, 2013 at 5:16 PM, Mark Janssen dreamingforw...@gmail.com wrote:
Understood, but I feel this is where theory has gone too far away from
reality.
How so? Turing machines and lambda calculus were both invented in the
30s, before any real mechanical computers existed. If anything,
On Tue, Apr 16, 2013 at 5:40 PM, Mark Janssen dreamingforw...@gmail.com wrote:
I feel like I'm having to come up to speed of the academic
community, but wonder how and why this large chasm happened between
the applied community and the theoretical. In my mind, despite the
ideals of academia,
On 17/04/2013 00:45, Victor Hooi wrote:
Hi,
I'm trying to compile a regex Python with the re.VERBOSE flag (so that I can
add some friendly comments).
However, the issue is, I normally use constants to define re-usable bits of the
regex - however, these doesn't get interpreted inside the
Greetings,
I'm trying to find a way to have json emit float('NaN') as 'N/A'.
I can't seem to find a way since NaN is a float, which means overriding
default won't help.
Any simple way to do this?
Thanks,
--
Miki
--
http://mail.python.org/mailman/listinfo/python-list
[2nd try, quotation a bit messed up]
On 4/16/2013 6:19 PM, Bruce McGoveran wrote:
Hello. I am new to this group. I've done a search for the topic
about which I'm posting, and while I have found some threads that are
relevant, I haven't found anything exactly on point that I can
On Apr 16, 10:36 pm, Andrew Berg bahamutzero8...@gmail.com wrote:
On 2013.04.16 12:14, rusi wrote: However combine it with your other statement
Python's package management is suboptimal (though it is being worked on),
and a different picture emerges, viz that *the ecosystem around the
Thank you all for thoughts. I'm just about to post another question about
atoms and primaries. If you have a moment to look it over, I would appreciate
your thoughts.
Many thanks in advance.
On Tuesday, April 16, 2013 6:19:25 PM UTC-4, Bruce McGoveran wrote:
Hello. I am new to this group.
These are terms that appear in section 5 (Expressions) of the Python online
documentation. I'm having some trouble understanding what, precisely, these
terms mean. I'd appreciate the forum's thoughts on these questions:
1. Section 5.2.1 indicates that an identifier occurring as an atom is a
On Apr 17, 7:57 am, Bruce McGoveran bruce.mcgove...@gmail.com wrote:
These are terms that appear in section 5 (Expressions) of the Python online
documentation. I'm having some trouble understanding what, precisely, these
terms mean. I'd appreciate the forum's thoughts on these questions:
On Apr 16, 10:42 pm, Terry Jan Reedy tjre...@udel.edu wrote:
The “Batteries included” philosophy of Python was definitely the right
approach during the mid 90’s and one of the reasons that I loved Python
so much; this was a time before modern package management, and before it
was easy to
On 04/16/2013 08:37 AM, aaB wrote:
hello,
snip
I represent the CA's rule with a list of integers, of value 1 or 0.
Here is the function I use to generate the list:
def get_rule(rulenum):
rule = []
while rulenum 0:
rule.append(rulenume % 2)
rulenum /= 2
while len(rule)
Chris Rebert c...@rebertia.com wrote:
2. Glob/wildcard (*) expansion is done by the shell, but
subprocess.Popen does not use the shell by default (for good reason!).
This is only true in Linux. In Windows, the wildcard characters are passed
to the program, so each app must do its own glob
Miki Tebeka miki.teb...@gmail.com wrote:
I'm trying to find a way to have json emit float('NaN') as 'N/A'.
I can't seem to find a way since NaN is a float, which means overriding
default won't help.
Any simple way to do this?
No. There is no way to represent NaN in JSON. It's simply not part
Raymond Hettinger added the comment:
I reviewed the attrgetter(), mathodgetter(), and itemgetter() code in
py_operator.v12.diff. The looks clean and correct.
--
assignee: rhettinger -
___
Python tracker rep...@bugs.python.org
paul j3 added the comment:
This patch permits the mixing of optionals with positionals, with the caveat
that a particular positional cannot be split up.
If:
parser = ArgumentParser()
parser.add_argument('-f','--foo')
parser.add_argument('cmd')
parser.add_argument('rest',
Serhiy Storchaka added the comment:
Here is a patch. Please run test_tcl test on 64-bit platform with 20 GiB of
memory.
I haven't included a test for huge tuples because it requires a lot of memory
(perhaps the hundreds of GiBs) and should run a long time. It is impossible to
calculate
Changes by xiaowei xw.ch...@gmail.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17320
___
___
Python-bugs-list
Serhiy Storchaka added the comment:
Could you please provide the benchmarks results? I am afraid that it may hit a
performance. Results on Windows are especially interesting.
--
components: +Interpreter Core
stage: - patch review
type: - enhancement
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17742
___
___
Python-bugs-list
Changes by Greg Trahair greg.trah...@gmail.com:
--
nosy: +Greg.Trahair
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17204
___
___
Changes by Greg Trahair greg.trah...@gmail.com:
--
nosy: -Greg.Trahair
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17204
___
___
New submission from Jean-Baptiste Lallement:
The test test_shutil.TestWhich.test_non_matching_mode fails when running as
root because the temporary file is always writeable for this user.
To reproduce on linux:
$ sudo python3.3 -E -Wd -tt /usr/lib/python3.3/test/regrtest.py -v -w
test_shutil
Jean-Baptiste Lallement added the comment:
Reference on LP:
https://bugs.launchpad.net/ubuntu/+source/python3.3/+bug/1169458
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17746
___
Serhiy Storchaka added the comment:
Now we can remove all __func__s from _operator.c.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16694
___
Antoine Pitrou added the comment:
I did not run a benchmark yet. I wrote a patch to factorize the code,
not the make the code faster.
Your patches don't seem to reduce the line count, so I don't understand the
point.
--
___
Python tracker
Changes by Antoine Pitrou pit...@free.fr:
--
components: +Distutils, Distutils2
nosy: +alexis, tarek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17745
___
Antoine Pitrou added the comment:
I've posted on the tulip mailing-list already:
https://groups.google.com/forum/?fromgroups=#!topic/python-tulip/SNOnS27Bctc
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17741
Changes by Serhiy Storchaka storch...@gmail.com:
--
components: +Library (Lib) -Tests
nosy: +hynek, serhiy.storchaka, tarek
stage: - needs patch
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17746
New submission from Alexandre Vassalotti:
Pickle fast mode is currently a deprecated feature of the Pickler class used to
disable its memoization mechanism. It was used mainly to create smaller output
by not emitting a PUT opcode for each object saved. Unfortunately, this mode
only worked
New submission from Bohuslav Slavek Kabrda:
On Python 2, Condition.wait timeout is always taken as
min(delay * 2, remaining, .05)
which means it cannot be longer than 50 ms. I don't see a reason for this and
AFAIK this is no longer true for Python 3, where timeout can be arbitrarily
long.
New submission from Fabian:
If I get and configure a named logger in the main module and another module
that is imported uses the root logging functions (e.g., logging.info(Hello
World!)) somehow affects the configuration of the first (named) logger.
The file m1.py defines the logger
Jaroslav Škarvada added the comment:
The current behaviour is not good for power consumption especially with the
current tickless kernels - the python processes using threading shows in the
top of the powertop list (on machine tuned for low power consumption) causing
20 wakeups per second.
Antoine Pitrou added the comment:
Locks in 2.7 don't support a timeout, which is why Condition.wait has a polling
loop. The comment explains it all:
# Balancing act: We can't afford a pure busy loop, so we
# have to sleep; but if we sleep the whole timeout time,
# we'll be unresponsive.
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +vinay.sajip
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17749
___
___
Python-bugs-list
Matthias Klose added the comment:
one way would be to skip this test when running as root. Would the check for
the X bit work on Windows?
@unittest.skipUnless(hasattr(os, 'getuid') and os.getuid() != 0,
test always succeeds as root)
--
nosy: +doko
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
assignee: rhettinger - ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11957
___
Stijn Hoop added the comment:
Still seeing this on Fedora 18 / Python 2.7.3.
I only have loopback in /etc/hosts
[TUE\shoop@pclin281] ~ cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6
New submission from Matthias Klose:
[Meta issue, opening separate issues for test cases]
The default install always installs the testsuite together with all the python
batteries. So make sure that you can run the testsuite can run from the
installed location too.
- some tests require the
Changes by Matthias Klose d...@debian.org:
--
dependencies: +test_shutil.TestWhich.test_non_matching_mode fails when running
as root
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17750
___
Changes by Matthias Klose d...@debian.org:
--
nosy: +jibel
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17750
___
___
Python-bugs-list mailing
New submission from Matthias Klose:
the ctypes tests unconditionally import macholib.dyld, which is not available
in an installed testsuite on other platforms. So either don't install this
test, or only run the import and test when on MacOS?
--
components: Tests
messages: 187067
nosy:
Changes by Matthias Klose d...@debian.org:
--
dependencies: +ctypes/test/test_macholib.py fails when run from the installed
location
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17750
___
New submission from Matthias Klose:
many distutils tests fail when run from the installed location, either
depending on the 'srcdir' macro, files not installed ('xxmodule.c'), or needing
write permissions in the installed location.
--
components: Tests
messages: 187068
nosy: doko
1 - 100 of 207 matches
Mail list logo