On Fri, 7 Oct 2022 18:28:06 +0100
Barry wrote:
> > On 7 Oct 2022, at 18:16, MRAB wrote:
> >
> > On 2022-10-07 16:45, Skip Montanaro wrote:
> >>> On Fri, Oct 7, 2022 at 9:42 AM Andreas Ames
> >>>
> >>> wrote:
> >>> 1. The culprit was me. As lazy as I am, I have used f-strings all over the
>
Dear ,
Please can I have your attention and possibly help me for humanity's
sake please. I am writing this message with a heavy heart filled with
sorrows and sadness.
Please if you can respond, i have an issue that i will be most
grateful if you could help me deal with it please.
J
Thanks for response!
I don't know what can appear because the values changes 30 times per second. I
only know the format.
--
https://mail.python.org/mailman/listinfo/python-list
On Wednesday, September 3, 2014 5:53:12 PM UTC-4, jaron...@gmail.com wrote:
> Ethan, Steve, Tim, and others:
>
>
>
> I'm thinking of taking the program. How long, in hours, does it take to
> complete all four Python courses?
I'm currently taking the first out of four modules. I have extensive
Hi,
I would like to get the list of parameters I need to initialize an AST node.
I'm trying to use the `inspect` module, however it seems I can't use it on a
built-in (native?) class, or else I misunderstood.
I'm using Python 2.7 and tried with Python 3.2.
This is working:
>>> import inspe
On 5 Okt., 10:17, Julian wrote:
> Hi,
>
> when creating a virtualenv withmkvirtualenv, I receive an error:
>
> http://pastebin.com/1N8yRZUv
>
> I've updated the relating packages (virtualenv, virtualenvwrapper,
> distutils, distribute, pip) and couldn't solve my
Hi,
I'm developing a django app which depends on an app in a private
bitbucket repository, for example
ssh://h...@bitbucket.org/username/my-django-app.
is it possible to add this url to the list of install_requires in my
setup.py? tried various possibilities, but none worked.
--
http://mail.pyth
Hi,
when creating a virtualenv with mkvirtualenv, I receive an error:
http://pastebin.com/1N8yRZUv
I've updated the relating packages (virtualenv, virtualenvwrapper,
distutils, distribute, pip) and couldn't solve my problem via google.
--
http://mail.python.org/mailman/listinfo/python-list
On 2010-07-18, Emmy Noether wrote:
> DEFUN ("or", For, Sor, 0, UNEVALLED, 0,
> "Eval args until one of them yields non-NIL, then return that value.
> \n\
> The remaining args are not evalled at all.\n\
> If all args return NIL, return NIL.")
> (args)
> Lisp_Object args;
> {
> register L
whatever, please give it to me, google couldn't.
Regards
Julian
--
http://mail.python.org/mailman/listinfo/python-list
On 18 Dez., 18:59, Steve Holden wrote:
> Julian wrote:
> > Hello,
>
> > I've got a design problem for a classifier. To make it short: it maps
> > strings on strings.
>
> > Some strings have exactly one classification, some none and some more
> > th
Hello,
I've got a design problem for a classifier. To make it short: it maps
strings on strings.
Some strings have exactly one classification, some none and some more
than one.
There's a method classify(self, word) wich classifies a word. For the
first case there's no problem:
- one classificat
On Mon, 12 Jan 2009 23:35:14 -0800 (PST)
Kannon wrote:
> What I'd like to do is attach an interpreter to a program running from
> a script (I.E, not something I typed into the live interpreter). It'd
> be an awesome way to debug programs, as well as tweak parameters and
> such at runtime. Ideally
On Wed, 10 Dec 2008 12:13:28 +
Matt Nordhoff <[EMAIL PROTECTED]> wrote:
> Julian Smith wrote:
> > I don't seem to be able to use the `email' module from within a bazaar
> > plugin. Other modules work ok, e.g. nntplib.
> >
> > Here's my
; module's use of
LazyImporter. I've tried various things such as `from email.mime.text import
MIMEText', and they fail in similar ways.
I'm using bzr-1.9, python 2.5.2, on Ubuntu-8.xx.
Does anyone have any ideas ?
Thanks,
- Julian
--
http://op59.net/
--
http://mail.python.org/mailman/listinfo/python-list
Hi all,
I know it's a kind of bizarre question but here I go: I want to
execute an script using popen4. This script executes a command in turn
using popen4 too. The first one throws a 256 exit code.
Any suggestions?
Thanks
J.
--
http://mail.python.org/mailman/listinfo/python-list
hon, while Embedding was making Python Code Available
> in your app.
>
Like I mentioned in my first post, one of the purposes of linking to python
would be to run multiple cases in a for loop.
that would mean passing information from the python script to my c++
application. mean python would have to be the top-level program.
so, I think I should be looking at extending my program. I am going to look
at using swig for this..
thanks,
Julian.
--
http://mail.python.org/mailman/listinfo/python-list
t/webpage that talks
about this.
thanks a lot,
Julian.
PS, my fea program uses its own script to read the analysis model
information using the c++ iostream and our own parsing functions - but
I don't have to stick to those function when I am writing the new code.
--
http://mail.python.org/mailman/listinfo/python-list
) floating around in your program's running instance, yet
no longer mentioned in the program's source code. Ephemeral
programming!
Enjoy. :-)
Julian
live.py
import pygame
from pygame.locals import *
from pygame import display
try:
import livetest
exce
> Please don't feed the trolls.
> In other words, if everybody ignores this loser, he might crawl back under
> the rock he came from.
Well, comp.lang.python people would do better to accept the suggested
rewrite and ignore at the rest at their discretion.
--
http://mail.python.org/mailman/listi
elif c=='\\':
ret += ''
else:
if c==quote:
quote = None
ret += c
else:
if c=='\'' or c=='"':
quote = c
ret += c
return ret
text = _escape_quotes( text)
#print 'execing:', text
# the exec will put the fn in the locals_ dict. we return it after
# removing it from this dict.
exec 'def _yabs_fn_temp' + text in globals_, locals_
ret = locals_['_yabs_fn_temp']
del locals_['_yabs_fn_temp']
return ret
- Julian
--
http://www.op59.net/
--
http://mail.python.org/mailman/listinfo/python-list
of overcoming the limitations of
python's lambda.
But... I haven't seen this technique mentioned anywhere, so does anyone know
of any problems that I should be wary of?
- Julian
--
http://www.op59.net/
--
http://mail.python.org/mailman/listinfo/python-list
On Tuesday 29 March 2005 03:04, Raymond Hettinger wrote:
> from decimal import Decimal
> import re
>
> number = re.compile(r"((\b|(?=\W))(\d+(\.\d*)?|\.\d+)([eE][+-]?\d{1,3})?)")
> deciexpr = lambda s: number.sub(r"Decimal('\1')", s)
>
> for s in ('1.0001+0.111',
> '+21.3e-5*85-.1234/81.
Hi !
This is maybe a silly question, but...
is there a "easy way" to make eval() convert all floating numbers to Decimal
objects and return a Decimal?
for example:
eval('1.0001+0.111') --> convert each number to a Decimal object,
perform the sum and obtain a Decimal object as a result
e proposal (sorry, don't have a link to hand)
about extending lambda to allow things like `myfn = def ' was
something that I initially assumed would become part of the language in time.
Is there some definitive information that explains why python is moving away
from lambdas an
like:
if fileAreaCode:
...
But now I can just do:
if optionalFiles['areacode.11']:
...
I think I was just too much in the above mindset to think clearly about
the dictionary.
Using a file object as a key!? What was I thinking :P
Julian
--
http://mail.python.org/mailman/listinfo/python-list
N >---
# Optional input files
try:
fileAreaCode = open("areacode.11", "r")
except:
fileAreaCode = False
try:
fileBuild = open("build.11", "r")
except:
fileBuild = False
...
# Close files
for optionalFile in [fileAreaCode, fileBuild]:
if
27 matches
Mail list logo