luca72 wrote:
i have checked and pyscard accept also the decimal notation,
I'm not sure you ever understood what the problem was, or where, but I'm
happy you feel like you've solved it.
--
http://mail.python.org/mailman/listinfo/python-list
Ben Finney wrote:
i'm using pyscard
I don't know what that is; can you give a link to what you're referring
to?
Simple story: he has seen the examples with hex literals and didn't know
what they were.
--
http://mail.python.org/mailman/listinfo/python-list
??,??? wrote:
or is it possible for large source files?
Google for polystyle.
It's a tool that reformats a program (in several languages) using an
example you must provide (let's call it a "style sheet", written in
Python or whatever) of how you would want to format it.
You can then refo
Jon Clements wrote:
pychecker returns "test.py:3: No global (o) found" for the above, and
can be found at http://pychecker.sourceforge.net/
There's also pylint and another one whose name I can't remember...
pyflakes. I use that one
--
http://mail.python.org/mailman/listinfo/python-list
Terry Reedy wrote:
A 'pro' argument: Python was designed for learning and is good for that
and *is* used in schools down to the elementary level. But kids cannot
be expected to know foreign alphabets and words whill still learning
their own.
I taught myself BASIC at 9 by reading magazines, b
Louis Steinberg wrote:
I have run into what seems to be a major bug, but given my short
exposure to Python is probably just a feature:
Yes, it works as advertised :-/
which I would expect. Can anyone explain this or give me a workaround?
like this?
def p(d):
print d
l=[ ]
for
Jean-Michel Pichavant wrote:
if which == '':
i = 0
all = ''
while i < len(meanings):
table = '%s\n' % meanings[i]
table += "\n \n
composing HTML like that is painful, bug prone and insecure
You should have a look at http://tottinge.blogsome.com/meaningfulnames/
I
Alf P. Steinbach wrote:
Is this guaranteed to work in Python 3.x?
>>> def foo(): pass
>>> foo.blah = 222
>>> foo.blah
222
>>> _
I don't see why it shouldn't work.
BTW, it's a function, not a "routine"
--
http://mail.python.org/mailman/listinfo/python-list
evertheless are extremely responsive compared to other frameworks
tested, using a single machine (http://nonlineaire.univ-lille1.fr/SNL/
and http://nonlineaire.univ-lille1.fr/GDR3070/).
--
Dr. Marco
--
http://mail.python.org/mailman/listinfo/python-list
ly non-"C:
\Python25" directroy&file in my sys.path (under Python 2.5).
No idea why it needs it. And also in my case the zip file isnt in that
location anyway. So also not 3K only or so.
But I have no issues with it (so far :-)), do you? Do you run into
problems because of this in the path?
HTH,
Marco
--
http://mail.python.org/mailman/listinfo/python-list
0), (1, 1), (2, 2), (3, 3), (4, 4)]
This will reduce the function to a one-liner.
Regards,
Marco
--
http://mail.python.org/mailman/listinfo/python-list
better:
threads are always (programmers')-error-prone by nature.
But my question would be: does it REALLY need to be simultaneously:
the CPU/OS only has more overhead doing this in parallel with
processess. Measuring sequential processing and then trying to
optimize (e.g. for user response or
cument (normally Word will start with an empty document).
To open a document do something like the following.
>>> doc = app.Documents.Open("c:\\example.doc")
Further builtin Python modules that could be helpfull are:
glob-> for searching files matching a pattern
os, os.path -> for path related functionality like stripping
directory
names from a complete path
Take a look at the online documentation for more information
http://docs.python.org/modindex.html
Good luck and let us know the result.
Marco
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 9, 8:18 pm, "3lvss0...@gmail.com" <3lvss0...@gmail.com> wrote:
> Marco Nawijn: I have had installed pywin32 already. The three lines
> that you mentoined don't do this
I checked at my own computer and it works fine.
> also what did you mean with "doc =
&g
Cheers.
I like to add this one, which is nice to read just after reading the
"starters", covers all kinds of topics, and written by someone who
knows Python (I think at least).
http://oreilly.com/catalog/9780596009250/
HTH,
Marco
--
http://mail.python.org/mailman/listinfo/python-list
r m...@hellmutweber.de
> Degenfeldstraße 2 tel +49-89-3081172
> D-80803 München-Schwabing mobil +49-172-8450321
> please: No DOCs, no PPTs. why: tinyurl.com/cbgq
I would say you want to compare semantically an integer value with an
integer value so why not:
IDLE 1.1.3
>>> max = '5'
>>> n = 5
>>> n==(int(max))
True
>>>
?
(in Python 2.4...)
Regards,
Marco
--
http://mail.python.org/mailman/listinfo/python-list
Dennis Lee Bieber wrote:
One thing to note is that "break" ONLY exits the innermost loop --
Ada adds the confusion that one could define a label on the loops, and
have the innermost use
exit outer_label [when condition]
THAT I find scary... Since you have to match the l
Benedict Verheyen wrote:
Any ideas are welcome.
easy_install turbomail
:)
--
http://mail.python.org/mailman/listinfo/python-list
Diez B. Roggisch wrote:
I don't read that out of the post, and it almost certainly is wrong, at
least on a general level. There isn't much above SQLAlchemy regarding
flexibility & power, so while simple cases might be simpler with other
ORMs, they often make more complicated ones impossible.
Bu
You could try to flush the file? Maybe it would flush once you close,
which never happens; did you try to limit the amount of times it run
inside the 'while' loop?
Regards
Marco
On Mon, Oct 26, 2009 at 6:17 PM, Sandy Walsh wrote:
> Hi there,
>
> Seeing some really weird b
Grant Edwards wrote:
MacOS applications made the same mistake on the 68K.
And and awful lot of the Amiga software, with the same 24/32 bit CPU.
I did it too, every pointer came with 8 free bits so why not use them?
It wasn't the decades-long global debacle that was the MS-DOS
memory model,
Jean-Michel Pichavant wrote:
I guess the world is split in two categories, those how come back to fix
the TODO, and those how don't. I for myself belong to the second, that
is why I never write TODO comments, I either do the stuff or consider
this is not important enough to waste time on it. I
Emanuele D'Arrigo wrote:
In this context it seems to be the case that the executable would have
to be able to optionally accept -a list- of dictionaries to internally
translate to English the keywords found in the input code and at most -
one- dictionary to internally translate from English outp
used with some
examples and some logging helps (for me at least...).
The type of IDE you are looking for is more something like Rational
Rose (e.g. RRT?) type of tooling perhaps? There you "CAD" components
and their statebehavior and the system generates C or C++ code.
Regards,
Marco
--
http://mail.python.org/mailman/listinfo/python-list
On 02/04/2010 12:34 PM, lallous wrote:
> Now should I be using method 2 or 3 in production code?
Another way... depending on what you are using the string for, of
course. If it's an HTML/XML/SQL/whatever piece of code:
from textwrap import dedent
sql = dedent("""
> ... SEL
error check for large values and an absolute
> error check for values close to zero.
>
> For a vector, I'd check that the above holds for all pairs.
Hi All,
Why don't you treat the C and D tuples as vectors? You can than check
dot product
and norm (length) for equality. U
r
options).
Therefore I am looking for quicker possibilities to look into what causes our
memory leak.
Regards,
Marco
--
http://mail.python.org/mailman/listinfo/python-list
they come in. Is it possible to use a priority queue for the
process-pool?
Kind Regards,
Marco
--
http://mail.python.org/mailman/listinfo/python-list
they come in. Is it possible to use a priority queue for the
process-pool?
Kind Regards,
Marco
--
http://mail.python.org/mailman/listinfo/python-list
s MyModel(object):
def __init__(self, parameters):
self.parameters = parameters
def solve(self):
...solve the problem
The driver program would look something like this:
parser = MyParser()
params = parser.parse('inputfile')
model = MyModel(params)
model.solve()
I hope this is helpfull for you.
Regards,
Marco
--
http://mail.python.org/mailman/listinfo/python-list
produce:
2
1
0
Note that reversed returns an iterator.
Marco
--
http://mail.python.org/mailman/listinfo/python-list
ess the Python call from the corresponding VisualBasic code I record
with the macro recording facility. I know there are more sophisticated
methods out there, but I never tried them.
Regards,
Marco
--
http://mail.python.org/mailman/listinfo/python-list
On 14 jun, 17:55, Thales wrote:
> On 14 jun, 11:01, Marco Nawijn wrote:
>
>
>
>
>
> > On 14 jun, 13:19, Thales wrote:
>
> > > Good morning,
>
> > > I need to convert some files from .doc to .pdf. I've googled it a
> > > littl
rg.
The two options I mention above help you to understand whats going on.
If you feel comfortable with this, you can take a look at python web
frameworks like Django or Turbogears (or many others).
Good luck and keep us posted with what your progress.
Regards,
Marco
--
http://mail.python.org/mailman/listinfo/python-list
Hendrik van Rooyen wrote:
lb = list("banana")
Aaargh!
I should have known - you use a string method to get a list of words,
but you have to go to the list to get a list of characters from a string.
As they say, "Python is not Java".
Strings support the sequence protocol (aka interface), he
best suited to post such a question :)
(( Despite the fact that many people could know the answer ))
regards
Marco
On Wed, Jun 24, 2009 at 3:06 PM, Stephane Wirtel wrote:
> Hi all,
>
> I would like to know if there is a way to decode a barcode with a library ?
>
> Thank you so
Of course, you're sure that under
/data/oracle/product/10.2.0.3/lib
you can find
libclntsh.so.9.0
Regards
Marco
On Tue, Jun 30, 2009 at 1:45 PM, Harsha Reddy wrote:
>
> Hi All,
>
> Environment :- Solaris
> Python Version :- ActivePython 2.4.3 B
superpollo wrote:
what i was asking for is about a way to *INSTALL* and mantain different
python versions, a task i think is not unusal for developers.
Check out virtualenv, I ask myself how I could work without it.
http://pypi.python.org/pypi/virtualenv
--
http://mail.python.org/mailman/lis
Piotrek wrote:
that? I think about puting these files in /usr/share/myprogram and then
reading it the normal way (so the path "/usr/share/myprogram" would be just
hardwired in my program). Is it the way one usually does it in Python
program or is there any more sofisticated way?
Just keep them
r wrote:
My adventures in Ruby.
Oh, it's you.
Good boy.
Now, why don't you have a look at javascript and come back in six months?
Or better yet, haskell and twelve months.
thanks
--
http://mail.python.org/mailman/listinfo/python-list
export LD_LIBRARY_PATH=/path/to/python_shared_lib:
$LD_LIBRARY_PATH
2. Add path to dynamic linker configuration file. This typically
is in '/etc/ld.so.conf'. See man page for ld for more information.
Note that I assumed that you are on a Unix/Linux machine.
Regards,
Marco
--
http://mail.python.org/mailman/listinfo/python-list
#x27;t know
if it is already available for Python 3, but for me it worked fine in
Python 2.X.
Marco
--
http://mail.python.org/mailman/listinfo/python-list
rary support for at least a year or two. They will,
however, be hit by the confusion of seeing Python 2 code all over the
web.
We're tending towards 3, but I am a little cautious myself.
Marco
[1] http://umonya.co.za
--
Marco Gallotta
MSc Student
Department of Computer Science, Univer
Dear All,
Summary of the question:
Is it generally safe to dynamically change an objects class; if not
under which conditions can it be considered safe.
Context:
Given the code below, I have no direct control over Base and M1. M1
is a instantiated by 'calling' the read-only property of Base.
I
to provide a higher level interface
to the underlying C/C++ code.
The second is more interesting. I was aware of this and checked the source
code of the library. I know an M1 instance is not directly used by Base.
In addition, I expose the exact same interface in M2.
Thanks for the feedback. Much appreciated!
Marco
--
https://mail.python.org/mailman/listinfo/python-list
hetic and style than the developer of logging,
or email, or re, and so on.
True story
If we had one person who had the authority to make doc-wide decisions,
then we might be able to move towards coherent guidelines for the docs
to be more uniform.
That could be a solution :-)
--
Ma
if x < 5]
[1, 2, 3, 4, 5]
--
Marco Buttu
INAF-Osservatorio Astronomico di Cagliari
Via della Scienza n. 5, 09047 Selargius (CA)
Phone: 070 711 80 217
Email: mbu...@oa-cagliari.inaf.it
--
https://mail.python.org/mailman/listinfo/python-list
appreciated.
Thanks
- Marco
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 15, 2:09 pm, "James Mills"
wrote:
> On Thu, Jan 15, 2009 at 4:01 PM, wrote:
> > I have Python 3.0. I tried to use the 2to3 program included with the
> > interpreter to convert some scripts for Python 2.5 to Python 3.0 ones.
> > When I try to start it form the Python command line, it says
> You need to do 2 things:
>
> 1) Run 2to3 on the shell not the python interpreter.
> 2) Learn some basic UNIX.
>
> cheers
> James
I tried to run it on the command prompt (I use Windows XP) but it
doesn't work either.
I opened the command prompt:
C:\Documents and Settings\User>
Then I typed '$
Oh okay. I don't think my Python installation is in PATH yet. I'll try
to add it then.
--
http://mail.python.org/mailman/listinfo/python-list
> I don't yet have 3.0 installed, but my guess is you'll also need to
> have 'C:\Python30\Scripts' in your path as well. I'm assuming that's
> where it resides, so check first.
Its in C:\Python30\Tools\Scripts.
Anyway it now works.
C:\Documents and Settings\User>python C:\Python30\Tools\Scripts
On 29 March 2016 at 16:31, Chris Angelico wrote:
> But the definition of a sequence, and likewise the definition of a
> mapping, goes deeper than that. A sequence has *relative* stability;
> if one item is at a lower index than another, it will continue to be
> at a lower index, until you change o
On 30 March 2016 at 02:55, Terry Reedy wrote:
> To me [seq.items() and seq.keys()] are useless and confusing duplications
> since enumerate()(seq)
> and range(len(seq)) are quite different from dict.items and dict.keys.
It's true. Indeed IMHO it's enumerate() that will be a confusing duplication
Let me also add that even if it seems that my idea will not break any
official contracts, I can create a new ABC class and let maps and
sequence types inherit from it. IMHO it's absolutely not needed, but
at least the discussion will be no more distracted my secondary
considerations, since the main
On 31 March 2016 at 04:40, Steven D'Aprano wrote:
> Enough of the hypothetical arguments about what one could do or might do.
> Let's see a concrete example of actual real world code used in production,
> not a mickey-mouse toy program, where it is desirable that adding or
> deleting one key will
I want also to add that we are focusing on sequences, but my proposal
is also to make map interface more similar, introducing a vdict type
that iterates over values, and this will be for me really more
practical. PEP 234 ( http://legacy.python.org/dev/peps/pep-0234/ )
never convinced me. Van Rossu
I'm developing a web app based on aiohttp, and I find the event loop
concept very interesting. I never programmed with it before, but I
know that node.js and GUIs are based on it.
What I can't understand is how asyncio make it possible to run
multiple tasks concurrently, since it's single threaded
On 24 July 2016 at 14:48, Chris Angelico wrote:
> Maybe the people who are most worried about this can enact a
> simple rule: no dedent without a blank line? That can easily be
> verified by a script, and it'd protect against most of the given
> examples. It's not too much effort (after any reason
On 23 July 2016 at 16:06, Ian Kelly wrote:
> On Fri, Jul 22, 2016 at 6:27 PM, Marco S. via Python-list
> wrote:
>> Furthermore I have a question about exceptions in asyncio. If I
>> understand well how it works, tasks exceptions can be caught only if
>> you wait for tas
I have a simple curiosity: why Python has much keywords, and some
builtin types and methods, that are different from the other
languages? What is the rationale?
I'm referring to:
* `except` instead of `catch`
* `raise` instead of `throw`
* `self` instead of `this` (I know, it's not enforced, but i
On 6 August 2016 at 00:31, Chris Angelico wrote:
> On Sat, Aug 6, 2016 at 8:00 AM, Marco Sulla via Python-list
> wrote:
> This isn't slang; it's jargon
Right.
>> * `raise` instead of `throw`
>
> Quite a few other languages talk about raising exceptions rather th
On 6 August 2016 at 20:03, Michael Selik wrote:
> On Sat, Aug 6, 2016, 10:10 AM Marco Sulla via Python-list
> wrote:
>>
>> On 6 August 2016 at 00:31, Chris Angelico wrote:
>> > "map" has many other meanings (most notably the action wherein you
>
On 6 August 2016 at 02:13, Chris Angelico wrote:
> On Sat, Aug 6, 2016 at 9:21 AM, Marco Sulla
> wrote:
>> I want to clarify that when I say "different from the other
>> languages", I mean "different from the most used languages", that in
>> my
On 6 August 2016 at 03:14, Steven D'Aprano wrote:
> On Sat, 6 Aug 2016 08:00 am, Marco Sulla wrote:
>> I'm referring to:
>> * `except` instead of `catch`
>
> Because this isn't a game of "catch the ball". They're called "exceptions",
On 6 August 2016 at 03:35, Chris Angelico wrote:
> On Sat, Aug 6, 2016 at 11:14 AM, Steven D'Aprano
> wrote:
>>> I don't ask about `None` instead of `null` because I suppose here it's
>>> a matter of disambiguation (null, in many languages, is not equal to
>>> null).
>>
>> Really? Which languages
I programmed in Python 2 and 3 for many years, and I find it a fantastic
language.
Now I'm programming in Java by m ore than 2 years, and even if I found its
code much more boilerplate, I admit that JDBC is fantastic.
One example over all: Oracle. If you want to access an Oracle DB from
Python, y
On Mon, 20 May 2019 at 17:32, Thomas Jollans wrote:
> Python has a the "Python Database API" (DB API 2.0)
> https://www.python.org/dev/peps/pep-0249/
>
So why Oracle need instantclient for using cx_Oracle? They say they use
DB-API:
> *cx_Oracle* is a Python extension module that enables access
ven
repository...
On Sun, 26 May 2019 at 15:37, Bischoop wrote:
> On 2019-05-19, Marco Sulla wrote:
> >blablabla
> >blablablalbla
> >blablalblalbalblabla
>
> There's no perfect language mate, in some one is easier in other not,
> normal surprised you notice it
On Tue, 24 Dec 2019 at 01:07, Chris Angelico wrote:
> On Tue, Dec 24, 2019 at 10:45 AM Marco Sulla <...> wrote:
> > ??? Excuse me, but why you needed to call the same function SIX times? This
> > seems to me not elegant in primis.
> >
> > Can you give us a practic
On Tue, 24 Dec 2019 at 22:51, Avi Gross via Python-list
wrote:
> So, is that a feature you want warnings about? After all, a dangling comma
> may simply mean you left something out and meant to add later?
.completely OT. I responded to a topic named "List and missing
commas", and suggested a
On Tue, 24 Dec 2019 at 19:05, Avi Gross via Python-list
wrote:
> There are some lint programs that check your code and supply warnings and I
> see some languages have the option to generate warnings when the two strings
> are on the same line. I wonder if a Python lint does that. It may at least
>
I agree with Chris Angelico, branch1 is "the way to go". Maybe you
have to add a default at start, maybe None, and maybe raise an
exception if
res is None. Anyway, despite I'm a pain in the... arse and I usually
activate ALL the possible warnings in the world, I always disable
cyclomatic complexity
On Wed, 25 Dec 2019 at 00:56, Avi Gross
wrote:
> I may not be understanding what you are objecting to
I, sir, am objecting that I replied to a topic, and you answered to
me, but in another topic. You could have respond to me in the correct
topic, and then create this other one (that I'm not real
, repeat(args, times))
On Tue, 24 Dec 2019 at 21:41, Marco Sulla wrote:
>
> On Tue, 24 Dec 2019 at 01:07, Chris Angelico wrote:
> > On Tue, Dec 24, 2019 at 10:45 AM Marco Sulla <...> wrote:
> > > ??? Excuse me, but why you needed to call the same function SIX t
As title. Currently I'm using gcc 9.2.0 and its compilation seems to
work well and fast. But I would know by your experience if clang can
produce, on a *nix system, a "faster Python".
--
https://mail.python.org/mailman/listinfo/python-list
Good! Have you compiled it optimized (--enable-optimizations --with-lto)?
On Sun, 1 Mar 2020 at 23:48, Skip Montanaro wrote:
>
> > As title. Currently I'm using gcc 9.2.0 and its compilation seems to
> > work well and fast. But I would know by your experience if clang can
> > produce, on a *nix s
Oooohhh uff, I have to install latest clang... or better, compile
it as I did for gcc. And I have to read the install docs to see if
there's some trick to optimize it... and I have to read the docs of
pyperformance too (I only used pyperf until now)...
Oh well, tomorrow :-D
On Mon, 2 Mar 2020
On Fri, 28 Feb 2020 at 08:28, Adam Preble wrote:
>
> I have been making some progress on my custom interpreter project
Is your project published somewhere? What changes have you done to the
interpreter?
--
https://mail.python.org/mailman/listinfo/python-list
One of my post on this list was rejected. The reason is:
> Blind carbon copies or other implicit destinations are not allowed.
>Try reposting your message by explicitly including the list address in
> the To: or Cc: fields.
I rechecked my mail and I added the user to the To: field, and the
python
On Mon, 2 Mar 2020 at 22:36, Ethan Furman wrote:
> Questions like this should go to python-list-owner at python dot org. If
> this message hadn't been flagged we may not have noticed it.
Sorry, I posted to python-list-owner before reading this message.
> When the mailing list software received
Ok, I sent a message as I did before to the discussion "Re: Friday Finking:
Poly more thick", with only "test" as body.
On Mon, 2 Mar 2020 at 22:48, Marco Sulla wrote:
>
> On Mon, 2 Mar 2020 at 22:36, Ethan Furman wrote:
> > Questions like this should go to
As title. For example, `copy.copy` can use the __copy__() method of a
class, if defined.
Is this not possible with `json`?
--
https://mail.python.org/mailman/listinfo/python-list
I worked a lot with `asyncio` many years ago, when `aiohttp` was first
born. Now I'm working again with it, since a library that I need
requires it.
asyncio is much more simple to use now, but there's something that
still make me doubtful: the require of the `async` keyword for
coroutines.
When I
Mh. I hoped not, but unluckily I expected a response like this.
People of Python List, I strongly discourage you to support this user.
He is quite suspicious for the following reasons:
1. he go so far as he offers money for, IMHO, a trivial task
2. he does not trust binaries from pip. He is so ca
Subscribed. I have a little suggestion IMHO "What is you favourite
pip command or functionality?" is not very useful... of course the
most useful command is "install" :-)
--
https://mail.python.org/mailman/listinfo/python-list
There's someone of the pip team that can confirm this?
On Sat, 7 Mar 2020 at 02:49, Bernard Tyers - Sane UX Design
wrote:
>
> Hi there,
>
> My name is Bernard Tyers. I'm a UX designer and have recently started
> working on the PSF project to improve the usability of pip, funded by
> MOSS/CZI.
>
>
I suppose you tried to use this setup.py:
https://github.com/breathe/coffee_conda_package/blob/master/0001-Add-alternative-setup.py-script.patch
It's not well written IMHO... anyway this is not the problem.
I suppose you also downloaded the required sources from here:
https://data.mendeley.com/da
I think that implementing TotallyOrderable and PartiallyOrderable is a
good idea. But is it useful?
I mean, I don't know how much people needs really to order sets. Maybe
some mathematician. But they can simply use Sage:
http://doc.sagemath.org/html/en/reference/categories/sage/categories/posets.ht
I agree with Steven D'Aprano.
I never had problems with strip(), but if people find it confusing,
Python can simply leave strip() and all the other function as they are
and add another functions, like crop() or snip() or shear() prune() or
mow(). Personally I prefer crop() or prune().
This way the
On Mon, 9 Mar 2020 at 16:09, Paul Moore wrote:
> We've had some questions as to whether this survey is legitimate. I
> can confirm it is (speaking as a pip core developer).
Thank you a lot!
--
https://mail.python.org/mailman/listinfo/python-list
On Fri, 6 Mar 2020 at 17:30, Souvik Dutta wrote:
> And you cannot form opinions for
> other people's by saying them not to support a person. That is injustice
> and rude.
I would reply, but I was already too much off topic. I want only to
write what Gmail reports to me about the last message of t
Mon, 9 Mar 2020 at 22:36, Marco Sulla wrote:
>
> I suppose you tried to use this setup.py:
> https://github.com/breathe/coffee_conda_package/blob/master/0001-Add-alternative-setup.py-script.patch
>
> It's not well written IMHO... anyway this is not the problem.
>
> I suppo
*Ahem* I already posted the solution to your problem. I quote myself:
I suppose you also downloaded the required sources from here:
https://data.mendeley.com/datasets/s2x4d542dc/1
It seems the problem is that the above sources are generated by an old
version of Cython:
https://github.com/mcfletc
On Tue, 10 Mar 2020 at 13:41, Chris Angelico wrote:
> It makes good sense for
> division by 0 and division by 0.0 to both result in the same
> exception.
But Python 3 returns a float, for example, in division between
integers. 4 / 2 == 2.0. So some_integer / +0 should return +Infinity.
This is wh
she/... must be identifiable.
The mailing list has a Usenet gateway
Those users use the Usenet to post.
Check the Injection-Info header for the address of the news server
operator. He can identify the account that posted it.
--
kind regards
Marco
Send spam to 1718440236mu...@cartoonies
messages? Do yall prefer I post a pastebin link if
> it's over a certain number of lines? I know this isn't IRC - just
> asking.
Welcome!
Pastebin and other stuff has the disadvantage that the content might be
removed later.
What about pasting it under your actual message if it
I noticed that the sequence types does not have these methods that the map
types has: get(), items(), keys(), values().
It could seem useless to have them for sequences, but I think it will ease
the creation of functions and methods that allow you to input a generic
iterable as parameter, but nee
Steven D'Aprano wrote:
> The point you might have missed is that treating lists as if they were
> mappings violates at least one critical property of mappings: that the
> relationship between keys and values are stable.
This is true for immutable maps, but for mutable ones, you can simply do
ma
701 - 799 of 799 matches
Mail list logo