/intro/intro.html?highlight=app#
First time that I cannot help myself. Please help, what do I do wrong?
Greetings
Wolfgang
--
https://mail.python.org/mailman/listinfo/python-list
at about changing the output of
dict_keys.__repr__ to
"dict_keys({'one', 'two'})"
(using curly braces instead of brackets)
Wolfgang
--
https://mail.python.org/mailman/listinfo/python-list
On 17.09.19 20:59, Manfred Lotz wrote:
> I have a function like follows
>
> def regex_from_filepat(fpat):
> rfpat = fpat.replace('.', '\\.') \
> .replace('%', '.') \
> .replace('*', '.*')
>
> return '^' + rfpat + '$'
>
>
> As I don't want to
y solution I know (except manipulating
Python's import path list) is to pip uninstall the per-user version.
Best,
Wolfgang
--
https://mail.python.org/mailman/listinfo/python-list
either continue to run pip like this (it is
a good way) or you'll have to make pip.exe discoverable from your PATH
as suggested by Abdur-Rahmaan.
Best,
Wolfgang
--
https://mail.python.org/mailman/listinfo/python-list
On 06/11/2018 04:19 PM, moha...@gmail.com wrote:
BTW i tried the code above, but i encountered a syntax error.
print(u"\u001b[{}A".format(n), flush=True, end="")
^
SyntaxError :invalid syntax
That's probably because you have been running
For me, that's a window width issue. The sidebar with the filters only
shows when the window is wide enough. Unfortunately, the text mentioning
it doesn't change, so this should be fixed.
On 03/27/2018 12:06 PM, Steven D'Aprano wrote:
On Tue, 27 Mar 2018 10:48:15 +0100, Paul Moore wrote:
By
On 03/23/2018 01:30 PM, Wolfgang Maier wrote:
On 03/23/2018 01:16 PM, ast wrote:
Hi
I found this way to put a large number in
a variable.
C = int(
"28871482380507712126714295971303939919776094592797"
"22700926516024197432303799152733116
On 03/23/2018 01:16 PM, ast wrote:
Hi
I found this way to put a large number in
a variable.
C = int(
"28871482380507712126714295971303939919776094592797"
"22700926516024197432303799152733116328983144639225"
"94197780311092934965557841894944174093380561511397"
"421542416933972905423711002751
On 03/20/2018 03:21 PM, Robin Becker wrote:
I don't know how I never came across this before, but there's a curious
asymmetry in the way ranges are limited
Python 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64 bit
(AMD64)] on win32
Type "help", "copyright", "credits" or "lic
ole window should appear.
To start IDLE from there type:
py -m idlelib
Good luck,
Wolfgang
--
https://mail.python.org/mailman/listinfo/python-list
al_1 calls) and I
don't think this is something that should be encouraged.
Wolfgang
--
https://mail.python.org/mailman/listinfo/python-list
ss methods that accept
**kwargs and that generate new instances of your class passing **kwargs
on to __init__, then call the corresponding instance method.
The stdlib textwrap module, for example, uses this approach.
Best,
Wolfgang
--
https://mail.python.org/mailman/listinfo/python-list
On 02/09/2018 12:23 PM, John Ladasky wrote:
On Friday, February 9, 2018 at 12:50:16 AM UTC-8, Tim Golden wrote:
Gmane offers a newsgroup interface to the mailing list
I haven't visited GMane in a few years, but I found it difficult to navigate.
In particular, I found searching to be cumberso
On 11/02/2017 06:09 PM, Skip Montanaro wrote:
Eh, what can I say? I guess I was paying too much attention to the baseball
game. Yes, "else" handles the "fall off the end" termination, not the "exit
early" termination. My apologies. I do think that having a way to spell "do
this when the loop exit
py> for char in "abcdefgh":
Steve> ... print(char, end='')
Steve> ... else:
Steve> ... print()
Steve> ...
Steve> abcdefgh
py>
else doesn't seem to bring any advantage over:
for char in "abcdefgh":
p
On 01.11.2017 18:25, Stefan Ram wrote:
I started to collect some code snippets:
Sleep one second
__import__( "time" ).sleep( 1 )
Get current directory
__import__( "os" ).getcwd()
Get a random number
__import__( "random" ).random()
And so on. You get the idea.
However, re
al, from within some IDE, inside a jupyter notebook?
Are you sure the script "is hanging on plt.plot(t, s)" and not after that?
Best,
Wolfgang
--
https://mail.python.org/mailman/listinfo/python-list
On 29.09.2017 11:05, Wolfgang Maier wrote:
On 29.09.2017 07:25, Steve D'Aprano wrote:
I'm pretty sure this is a bug.
Yes, it is a bug, but a known one: https://bugs.python.org/issue20491
The fix got backported even to 3.5, but I guess it depends which minor
version you are ru
guess it depends which minor
version you are running. I'm pretty sure that explains why people report
different outcomes.
Best,
Wolfgang
--
https://mail.python.org/mailman/listinfo/python-list
this experiment to next year's class), but I think it may be a lot of
fun, especially if you've played Minecraft before. Here's a link to get
you started: http://www.instructables.com/id/Python-coding-for-Minecraft/
Best,
Wolfgang
--
https://mail.python.org/mailman/listinfo/python-list
On 08/10/2017 04:28 PM, Steve D'Aprano wrote:
Every few years, the following syntax comes up for discussion, with some people
saying it isn't obvious what it would do, and others disagreeing and saying
that it is obvious. So I thought I'd do an informal survey.
What would you expect this syntax
On 07/11/2017 08:11 AM, Steven D'Aprano wrote:
I have a colleague who is allergic to mutating data structures. Yeah, I
know, he needs to just HTFU but I thought I'd humour him.
Suppose I have an iterator that yields named tuples:
Parrot(colour='blue', species='Norwegian', status='tired and shag
per's point of view, could be
x2goclient/server (http://wiki.x2go.org/doku.php/start). That would be
more like your putty suggestion, but a lot more user-friendly.
Wolfgang
--
https://mail.python.org/mailman/listinfo/python-list
sion of pip
will support):
pip list vs pip list --isolated
(which should give all installed packages pip knows about with and
without additional config settings.
Wolfgang
--
https://mail.python.org/mailman/listinfo/python-list
On 05/30/2017 10:18 AM, Mahmood Naderan via Python-list wrote:
Hello,
Although I have installed a package via pip on a centos-6.6, python interpreter
still says there is no such package!
Please see the output below
$ python exread2.py input.xlsx tmp/output
Traceback (most recent call last):
Fi
e how Mint handles this though.
Wolfgang
--
https://mail.python.org/mailman/listinfo/python-list
n rebuild Python3.6 by running:
1) make clean
2) ./configure
3) make
It could be worthwhile checking for other missing optional C libraries
first though. If you want to make sure you have all of them, follow the
steps described here:
https://docs.python.org/devguide/setup.html#build-dependencies
Best,
Wolfgang
--
https://mail.python.org/mailman/listinfo/python-list
On 24.02.2017 01:19, Irv Kalb wrote:
Hi,
I have built a set of three classes:
- A super class, let's call it: Base
- A class that inherits from Base, let's call that: ClassA
- Another class that inherits from Base, let's call that: ClassB
ClassA and ClassB have some code in their __init__ m
On 15.02.2017 13:42, poseidon wrote:
On 15/02/17 12:16, Wolfgang Maier wrote:
On 15.02.2017 10:33, poseidon wrote:
In /usr/lib/python3.6/site-packages I wrote a file tau4.pth. It contains
the line
/home/poseidon/tau4/swr/py3/src
In /home/poseidon/tau4/swr/py3/src there's an __init__.py
On 15.02.2017 10:33, poseidon wrote:
In /usr/lib/python3.6/site-packages I wrote a file tau4.pth. It contains
the line
/home/poseidon/tau4/swr/py3/src
In /home/poseidon/tau4/swr/py3/src there's an __init__.py file, so it
should be possible to write
import tau4
in my programs.
No, that's no
you know if path_pandoc
is maybe set to an existing file in your frozen code already so the
whole 'which' or 'where' branch is never executed?
Best,
Wolfgang
--
https://mail.python.org/mailman/listinfo/python-list
you know if path_pandoc
is maybe set to an existing file in your frozen code already so the
whole 'which' or 'where' branch is never executed?
Best,
Wolfgang
--
https://mail.python.org/mailman/listinfo/python-list
orm solution if I remember correctly):
https://mail.python.org/pipermail/python-ideas/2011-August/011131.html
which is related to http://bugs.python.org/issue12741
Wolfgang
--
https://mail.python.org/mailman/listinfo/python-list
On 1/6/2017 15:04, Peter Otten wrote:
Example: you are looking for the minimum absolute value in a series of
integers. As soon as you encounter the first 0 it's unnecessary extra work
to check the remaining values, but the builtin min() will continue.
The solution is a minimum function that allo
On 10.11.2016 01:02, Steve D'Aprano wrote:
On Thu, 10 Nov 2016 08:08 am, Wolfgang Maier wrote:
Hi,
I just used the stdlib's modulefinder.ModuleFinder (intended to find
modules used by a script) for the first time in my life and it just
doesn't seem to work like documented a
, YMMV slightly in Py3.
Yeah, I have tried this as well (with other stdlib modules), but you
shouldn't wind up things with the example bacon.py from the docs.
Best,
Wolfgang
--
https://mail.python.org/mailman/listinfo/python-list
/3/library/modulefinder.html
it's reporting every single module from the stdlib whether imported or
not! I tried with Python3.5, 3.4, 3.3, 3.2 and 2.7, but no success.
Has anybody here used this successfully and, if so, how?
Thanks for any help,
Wolfgang
--
https://mail.python.org/mailman/listinfo/python-list
On 17.10.2016 16:45, chenyong20...@gmail.com wrote:
Hi Wolfgang,
thanks for your kind reply. I try to explain what I got from your reply:
for code1, when running "foo = outer()", since outer() is callable, function outer() is running and it
returns an object, which referring to func
something and that
something is the NoneType object None. So the function above has the
side-effect of printing inside func, but it also returns None and these
are two totally different things
Once you have understood this you can try to go back and study your
original more complicated example.
Best,
Wolfgang
--
https://mail.python.org/mailman/listinfo/python-list
On 15.10.2016 18:16, Steve D'Aprano wrote:
# Python 3 only: use a dict comprehension
py> d = {x:[] for x in (1, 2, 3)}
py> d
{1: [], 2: [], 3: []}
dict (and set) comprehensions got backported so this works just as well
in Python 2.7
Wolfgang
--
https://mail.python.org/mailm
Try py instead of python. That invokes a thing called the python
launcher (see
https://docs.python.org/3/using/windows.html#python-launcher-for-windows
for more details).
Best,
Wolfgang
On 10.08.2016 06:46, sh.aja...@gmail.com wrote:
Hi Everyone
i have installed python 3.5 , but the
On 18.03.2016 16:08, John Gordon wrote:
In kevind0...@gmail.com
writes:
As requested , full code for promptUser_PWord
So promptUser_PWord is a module? Well, I'm confused. You gave us this
bit of code:
user_pword = promptUser_PWord()
But that can't work if promptUser_PWord is a mo
On 3/18/2016 20:19, kevind0...@gmail.com wrote:
so what I get from the various postings is promptUser_PWord must be
converted to a class. True?
A simple function would also do. Just make sure that the return is
inside a callable block.
--
https://mail.python.org/mailman/listinfo/python-li
On 11.03.2016 15:23, Fillmore wrote:
On 03/11/2016 07:13 AM, Wolfgang Maier wrote:
One lesson for Perl regex users is that in Python many things can be
solved without regexes.
How about defining:
printable = {chr(n) for n in range(32, 127)}
then using:
if (set(my_string) - set(printable
On 11.03.2016 13:13, Wolfgang Maier wrote:
One lesson for Perl regex users is that in Python many things can be
solved without regexes. How about defining:
printable = {chr(n) for n in range(32, 127)}
then using:
if (set(my_string) - set(printable)):
break
Err, I meant:
if (set
One lesson for Perl regex users is that in Python many things can be
solved without regexes. How about defining:
printable = {chr(n) for n in range(32, 127)}
then using:
if (set(my_string) - set(printable)):
break
On 11.03.2016 01:07, Fillmore wrote:
Here's another handy Perl regex wh
On 3/2/2016 21:43, Skip Montanaro wrote:
Running flake8 over some code which has if statements with multiple
conditions like this:
if (some_condition and
some_other_condition and
some_final_condition):
play_bingo()
the tool complains that the indentation of the c
On 26.02.2016 15:57, Emile van Sebille wrote:
On 2/26/2016 6:49 AM, Oscar Benjamin wrote:
On 26 February 2016 at 13:30, Peter Otten <__pete...@web.de> wrote:
Shweta Dinnimani wrote:
i saved my file as string.py since than i'm facing this error
Rename that file to something that does not clas
52248 discusses the problem and has some
code snippets that you may be interested in. While there is no trivial
solution there are certainly faster ways than your first attempt.
Wolfgang
--
https://mail.python.org/mailman/listinfo/python-list
On 04.02.2016 10:00, Chris Angelico wrote:
On Thu, Feb 4, 2016 at 7:54 PM, ast wrote:
It is strange but I dont have the same result that you:
(Python 3.4)
class A:
def a(self):pass
class B(A):
def b(self):pass
class C(B):
def c(self):pass
obj = C()
obj.a
>
Curious. It appears
On 03.02.2016 04:26, Rick Johnson wrote:
[STORY-TIME] THE BDFL AND HIS PYTHON PETTING ZOO
A long, long time a ago, in a sleepy little Scandinavian
village, somewhere outsi
On 26.01.2016 15:34, Matt Wheeler wrote:
The only slight issue you might encounter is that Python 3.2 is quite
old now and actually not as well supported as Python 2.7 (many
projects support Python 2.7 or 3.3+ only). Best to just try out your
script and find out though.
Right. For example, pi
I have used 2.7 and 3.2 side-by-side for two years or so on Ubuntu 12.04.
Never encountered any problem except for a few times that I accidentally
tried to run something with python when I should have used python3.
Cheers,
Wolfgang
On 26.01.2016 13:26, Gene Heskett wrote:
Greetings;
I have
On 1/21/2016 8:27, Chris Angelico wrote:
This is a Linux packaging question, more than a Python one. On Debian
systems, the way to do that is "apt-get build-dep python3"; check your
own package manager for an equivalent - it'll probably be called
builddep or similar.
Yes, you'd run:
dnf buil
er division with truncation towards zero.
if (a < 0) != (b < 0):
return -(-a // b)
else:
return a // b
Cheers,
Wolfgang
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
--
https://mail.python.org/mailman/listinfo/python-list
On 1/18/2016 14:05, Charles T. Smith wrote:
On Fri, 15 Jan 2016 14:20:17 +0100, Wolfgang Maier wrote:
pattern = pattern_str.compile()
try:
matches = pattern.findall(some_str, endpos=some_str.index(tail))
except ValueError:
# do something if tail is not found
pass
Oh! I
On 15.01.2016 12:04, Charles T. Smith wrote:
On Fri, 15 Jan 2016 11:42:24 +0100, Wolfgang Maier wrote:
On 15.01.2016 10:43, Peter Otten wrote:
Charles T. Smith wrote:
while ($str != $tail) {
$str ~= s/^(head-pattern)//;
use ($1);
}
things = []
while some_str != tail
On 15.01.2016 10:43, Peter Otten wrote:
Charles T. Smith wrote:
while ($str != $tail) {
$str ~= s/^(head-pattern)//;
use ($1);
}
For those whose Perl's a little rusty: what does this do?
A self-contained example might also be useful...
Right, an explanation would certainly get yo
On 03.12.2015 10:27, c.bu...@posteo.jp wrote:
>
> I often saw constructions like this
>x for x in y if ...
> But I don't understand that combination of the Python keywords (for,
> in, if) I allready know. It is to complex to imagine what there really
> happen.
>
> I understand this
>for x
art_value
def __call__ (self):
self.x += 1
1) solves the renaming problem
2) allows you to have several counters around:
counter1 = Counter()
counter2 = Counter()
counter3 = Counter(35)
counter1()
counter2()
counter1()
print (counter1.x, counter2.x, counter3.x)
Cheers,
Wolfgang
--
https://mail.python.org/mailman/listinfo/python-list
On 04.11.2015 11:43, Wolfgang Maier wrote:
On 04.11.2015 11:24, Steven D'Aprano wrote:
On Wed, 4 Nov 2015 07:19 pm, Wolfgang Maier wrote:
On 04.11.2015 04:18, Steven D'Aprano wrote:
This is one of the offending line from our code base:
print('<4>Suspicious answer
On 04.11.2015 11:24, Steven D'Aprano wrote:
On Wed, 4 Nov 2015 07:19 pm, Wolfgang Maier wrote:
On 04.11.2015 04:18, Steven D'Aprano wrote:
This is one of the offending line from our code base:
print('<4>Suspicious answer "{}"!'.format(answer), f
On 04.11.2015 04:18, Steven D'Aprano wrote:
On Wednesday 04 November 2015 09:25, Terry Reedy wrote:
On 11/3/2015 10:42 AM, Chris Angelico wrote:
On Wed, Nov 4, 2015 at 2:00 AM, Random832 wrote:
Nobody writes:
It's probably related to the fact that std{in,out,err} are Unicode
streams.
Th
On 03.11.2015 11:32, Nicholas Cole wrote:
I'm using python3.5 (installed from binaries) on the latest OS X.
I have a curious issue with virtual environments on this machine (but
not on my other machine).
$ python3.5 -m venv testenv
$ source testenv/bin/activate
(testenv)$ python -m pip
/privat
On 02.11.2015 11:48, Wolfgang Maier wrote:
Since Python3.3, the print function has a flush keyword argument that
accepts a boolean and lets you do just this. Rewrite your example as:
import sys, time
def test():
# Simulate a slow calculation that prints status and/or error
# messages to
sys.stderr, end="")
time.sleep(2)
print("", file=sys.stderr)
Best,
Wolfgang
--
https://mail.python.org/mailman/listinfo/python-list
On 20.10.2015 10:44, ngangsia akumbo wrote:
def n():
34 * 2
def g():
4 + 2
Your n and g functions do not have an explicit return so, after doing
their calculations and throwing the result away, they return None.
def ng():
return n() + g()
ng()
Trac
interface. I've reported this
almost a week ago on the pypi issue tracker on bitbucket, but there is
no answer yet.
Wolfgang
--
https://mail.python.org/mailman/listinfo/python-list
On 09.09.2015 21:59, Tim Golden wrote:
Well on my Win8.1 machine I created a local user with the name you give
and did a fresh install of the very latest Python 3.5rc. I installed
from the 32-bit web installer and the only variation from the defaults
was to add Python to the PATH (the last check
p
be a workaround?
I might be wrong, but it's worth a try.
Best,
Wolfgang
--
https://mail.python.org/mailman/listinfo/python-list
html.py file into the extracted setuptools folder, at
least, lets me reproduce your exact error.
What does
python -c "import html; print(html)"
tell you ?
Best,
Wolfgang
--
https://mail.python.org/mailman/listinfo/python-list
which systems does it not make sense ?
Thanks for any help,
Wolfgang
--
https://mail.python.org/mailman/listinfo/python-list
On 03/09/2015 03:04 PM, Wolfgang Maier wrote:
On 03/09/2015 02:33 PM, Albert-Jan Roskam wrote:
On Mon, 3/9/15, Tim Chase wrote:
"[^\d\W_]+" means something like "one or more (+) of 'not (a digit, a
non-word, an underscore)
ROMAN NUMERAL ONE HUNDRED THOUSAND ↈ):
>>> re.search('[^\d\W_]+', '\u2188', re.I | re.U)
<_sre.SRE_Match object; span=(0, 1), match='ↈ'>
ↈ and at least some other Nl (letter numbers) category characters seem
to be part of \w (not part of \W).
On 03/09/2015 01:26 PM, Antoon Pardon wrote:
Op 09-03-15 om 12:17 schreef Tim Chase:
On 2015-03-09 11:37, Wolfgang Maier wrote:
On 03/09/2015 11:23 AM, Antoon Pardon wrote:
Does anyone know what regular expression to use for a sequence of
letters? There is a class for alphanumerics but I
On 03/09/2015 11:23 AM, Antoon Pardon wrote:
I am using PLY for a parsing task which uses re for the lexical
analysis. Does anyone
know what regular expression to use for a sequence of letters? There is
a class for alphanumerics but I can't find one for just letters, which I
find odd.
I am using
t;>> from math import factorial
>>> factorial(50)
30414093201713378043612608166064768844377641568960512L
Wolfgang
--
https://mail.python.org/mailman/listinfo/python-list
On 03/06/2015 09:34 AM, Mark Lawrence wrote:
On 06/03/2015 06:44, Abhiram R wrote:
Hi all,
Is there a way to generate permutations of large arrays of sizes say,in
the hundreds, faster than in the time itertools.permutations() can
return?
-Abhiram.R
/~Never give up/
If there is I'd guess tha
On 03/02/2015 08:59 AM, alb wrote:
Hi everyone,
I'm writing a document in restructured text and I'd like to convert it
to latex for printing. To accomplish this I've used semi-successfully
pandoc and the wrapper pypandoc.
My biggest issue is with figures and references to them. We've our macro
On 03/02/2015 11:33 AM, INADA Naoki wrote:
PyPI parses your README strictly.
$ rst2html.py --strict README.rst
README.rst:700: (INFO/1) Duplicate implicit target name: "fingerprint".
Exiting due to level-1 (INFO) system message.
But I don't know how to avoid this error when converting from mark
On 20.02.2015 19:25, Ian Kelly wrote:
On Fri, Feb 20, 2015 at 8:16 AM, loial wrote:
On Friday, February 20, 2015 at 2:54:26 PM UTC, Ian wrote:
On Feb 20, 2015 7:46 AM, "loial" wrote:
On Linux we use
#!/usr/bin/env python
At the start of scripts to ensure that the python execut
so I cannot say anything about LaTeX).
I've found an old forum post from 2011:
https://groups.google.com/forum/#!topic/pandoc-discuss/OmGYDycaMjs
confirming that the figure directive was not supported at that time.
So, yes, I think upgrading pandoc could help.
Best,
Wolfgang
--
27;'.join(chr(n) for n in range(32))
s_in.strip(exclude)
Wolfgang
--
https://mail.python.org/mailman/listinfo/python-list
you:
e.g.
s_in =
'\x01\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x0010232ae8944a\x02\x00\x00\x00\x00\x00\x00\x00\n'
s_out = ''.join(c for c in s_in if c.isprintable())
Wolfgang
--
https://mail.python.org/mailman/listinfo/python-list
mented here:
https://docs.python.org/3/library/argparse.html#default
where it says that the default for the default argument is None ?
I think Skip is right: you should be able to just add
default = []
to your arguments in the add_argument call.
Wolfgang
--
https://mail.python.org/mailman/listinfo/python-list
On 04.12.2014 22:30, Chris Angelico wrote:
On Fri, Dec 5, 2014 at 7:56 AM, Wolfgang Maier
wrote:
On 04.12.2014 19:05, Chris Angelico wrote:
With os.path it definitely is. With the actual code in question, it's
a Python 2.7 project that mostly uses relative imports - inside
package.mo
of the modules.
What ? I'm usually thinking Python 3 not 2 and I'm never sure which
Python 2.x has backported which feature of 3, but I thought implicit
relative imports like you seem to describe are not working in 2.7 ?
Wolfgang
--
https://mail.python.org/mailman/listinfo/python-list
ath (while import .path is a SyntaxError, so you'd need a
slightly more complicated rewrite).
Wolfgang
--
https://mail.python.org/mailman/listinfo/python-list
error messages
and tracebacks instead of vague descriptions.
Best,
Wolfgang
On 11/10/2014 12:07 PM, Mok-Kong Shen wrote:
I don't understand the following phenomenon. Could someone kindly
explain it? Thanks in advance.
M. K. Shen
-
co
On 08.11.2014 22:31, Wolfgang Maier wrote:
On 08.11.2014 02:50, Steven D'Aprano wrote:
The following list comprehension and generator expression are almost, but
not quite, the same:
[expr for x in iterable]
list(expr for x in iterable)
The difference is in the handling of StopIter
On 08.11.2014 02:50, Steven D'Aprano wrote:
The following list comprehension and generator expression are almost, but
not quite, the same:
[expr for x in iterable]
list(expr for x in iterable)
The difference is in the handling of StopIteration raised inside the expr.
Generator expressions con
On 10/27/2014 05:01 PM, uma...@gmail.com wrote:
I use python 3.4.0 version. In the course of developing / running a python
program, I have encountered a problem. I have reproduced below a simple program
to bring it out.
d = [[0]*3]*4
dd = [1,2,3,4,5,6,7,8,9,10,11,12]
for i in range(4):
...
On 25.10.2014 19:27, Rustom Mody wrote:
Moved from other (Seymore's) thread where this is perhaps not relevant
On Saturday, October 25, 2014 1:15:09 PM UTC+5:30, Steven D'Aprano wrote:
Rustom Mody wrote:
On Saturday, October 25, 2014 11:20:03 AM UTC+5:30, Chris Angelico wrote:
On Sat, Oct 25
On 10/23/2014 04:47 PM, Alain Ketterlin wrote:
Simon Kennedy writes:
Just out of academic interest, is there somewhere in the Python docs where the
following is explained?
3 == True
False
if 3:
print("It's Twue")
It's Twue
i.e. in the if statement 3 is True but not in t
On 10/23/2014 04:30 PM, Simon Kennedy wrote:
Just out of academic interest, is there somewhere in the Python docs where the
following is explained?
https://docs.python.org/3/library/stdtypes.html#truth-value-testing
3 == True
False
as opposed to:
https://docs.python.org/3/library/stdtyp
On 14.10.2014 22:30, Ned Deily wrote:
In article ,
Wolfgang Maier wrote:
I'm not a regular MacPython user, but today I had to build Mac wheels
for different versions of Python. To test the wheel files I set up a
fresh Mac OS 10.9 Mavericks and and installed Python 3.2, 3.3, 3.4 fro
ill
crash in interactive mode on Mac OS 10.9) in the list of downloads at
https://www.python.org/downloads/mac-osx/ between Python 2.7.6 (the
first version with the issue fixed) and Python 3.2.5 (the last affected
version).
Wolfgang
--
https://mail.python.org/mailman/listinfo/python-list
ample of successful code
> presentation:
> - the layout is simple
> - the code and code output are clearly identified
> - a line of code can be highlighted while presenting
LyX and Beamer.
Sincerely,
Wolfgang
--
https://mail.python.org/mailman/listinfo/python-list
(https://github.com/kovidgoyal/calibre) and
looking at its source code should give you a good start.
Wolfgang
--
https://mail.python.org/mailman/listinfo/python-list
1 - 100 of 503 matches
Mail list logo