> Am I the only one who'd like to see optional types introduced in Python?
Nope! Some dude named "Guido" would like to see them as well:
https://mail.python.org/pipermail/python-ideas/2014-August/028742.html
--
https://mail.python.org/mailman/listinfo/python-list
On 08/08/2014 01:45 PM, cwolf.a...@gmail.com wrote:
> On Friday, August 8, 2014 10:35:12 AM UTC-4, Skip Montanaro wrote:
>> P.S. Probably a topic for a separate thread, and not actually
>> Python-related, but on a related note, I have never found a free password
>> keeper which works on all my p
On 06/11/2014 10:35 AM, Michael Torrie wrote:
> On 06/11/2014 06:23 AM, BrJohan wrote:
>> For some genealogical purposes I consider using Python's re module.
>>
>> Rather many names can be spelled in a number of similar ways, and in
>> order to match names even if they are spelled differently, I
ou narrow
down where the problem lies.
-Nick Cash
--
https://mail.python.org/mailman/listinfo/python-list
> and "%s" (which is incredibly useful) is not even documented (I suspect it's
> also not available on all platforms).
The format specifiers available to Python are just whatever is available to the
underlying c time.h.
The manpage for strftime indicates that %s isn't part of the C standard, bu
utions. Which is to
say, not at all.
-Nick Cash
--
https://mail.python.org/mailman/listinfo/python-list
>My question is, what do Python interpreters do with power operators where the
>power is a small constant, like 2? Do they know to take the shortcut?
Nope:
Python 3.3.0 (default, Sep 25 2013, 19:28:08)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
tc. It's not the prettiest solution, but it
could work.
-Nick Cash
--
https://mail.python.org/mailman/listinfo/python-list
be added to itertools before, but rejected:
https://mail.python.org/pipermail/python-ideas/2012-July/015671.html and
http://bugs.python.org/issue13095
- Nick Cash
--
https://mail.python.org/mailman/listinfo/python-list
eeded! Although it's not as pretty as the original post, but
neither was Roy's.
-Nick Cash
--
https://mail.python.org/mailman/listinfo/python-list
use COM
>to control the Excel >application in reading and writing the files. Outside
>of Windows, the best bet is usually to work >with csv files instead, as Dave
>suggested.
I've had success with the xlrd and xlwt suite of modules
(http://www.python-excel.org/), using bo
db. If dbm objects were real context managers, they would do
this for you.
This does seem like a useful enhancement. It might be slightly involved to do,
as the dbm module has multiple implementations depending on what libraries are
available on the OS.
-Nick Cash
--
http://mail.python.org/mailman/listinfo/python-list
ction to be a
single token?
Have you looked at the CSV module (http://docs.python.org/3/library/csv.html)?
If my guess is wrong, or you're having difficulties with the csv module, a more
specific question will help you get the answer you're looking for.
-Nick Cash
--
http://mail.python.org/mailman/listinfo/python-list
ted or closed... that seems like a stretch,
though. Is this a urllib2 bug, or am I crazy?
-Nick Cash
--
http://mail.python.org/mailman/listinfo/python-list
> I have a problem which may fit in a mysql database, but which I only
> have python as an alternate tool to solve... so I'd like to hear some
> opinions...
Is there a reason you can't use an RDBMS for this? MySQL would certainly be
fine, although I always recommend PostgreSQL over it. Based on t
> Error: AttributeError: 'module' object has no attribute '_strptime'
>
> This problem is driving me crazy. It only happens in Python 3.3.0,
> while on my server running 3.1.3 it behaves as expected. When I try to
> access time.strptime() it errors with
>
> AttributeError: 'module' object has no
> In python2, this work if "something" is a regular file on the system as
> well as a remote URL. The 2to3 script convert this to
> urllib.request.urlopen. But it does not work anymore if "something"
> is just a file name.
>
> My aim is to let the user specify a "file" on the command line and have
pes would be
similar, though I don't see anything explicitly saying so for bytearray.
-Nick Cash
--
http://mail.python.org/mailman/listinfo/python-list
uk/scholar?q=albert+einstein%2B1905&btnG=&hl=en&as_sdt=0%2C5&as_sdtp=";,
headers={"User-Agent":"Mozilla/5.0 Cheater/1.0"}))
-Nick Cash
--
http://mail.python.org/mailman/listinfo/python-list
ecessary.
A simple solution would be just a quick list comprehension:
stereo_array = [[1, 1], [1, 2], [2, 3]]
mono_array = [l+r for (l, r) in stereo_array]
Thanks,
Nick Cash
--
http://mail.python.org/mailman/listinfo/python-list
You may want to look into http://www.crummy.com/software/BeautifulSoup/
It's made for parsing (potentially bad) HTML, and is quite easy to use. I'd say
it's quite feasible.
Thanks,
Nick Cash
NPC International
-Original Message-
From: python-list-bounces+nick.cash=n
This is really up to your programming style, but I'm of the opinion that
defining all of the default values in one place keeps maintenance easier.
Of course, if it's done differently elsewhere in your code base, I would aim
for consistency instead.
Thanks,
Nick Cash
-Origin
22 matches
Mail list logo