Re: Ref-strings in logging messages (was: Performance issue with CPython 3.10 + Cython)

2022-10-07 Thread Julian Smith
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 >

Please can i have your attention

2022-04-27 Thread Julian Bikarm
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

Re: UDP decode

2016-10-26 Thread Julian Madoz
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

Re: O'Reilly Python Certification

2014-09-05 Thread julian
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

How to inspect slot wrappers arguments in Python?

2011-10-01 Thread julian bilcke
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

Re: unable to mkvirtualenv

2010-10-06 Thread Julian
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

add bitbucket repo url to install_requires

2010-10-05 Thread Julian
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

unable to mkvirtualenv

2010-10-05 Thread Julian
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

Re: Fascinating interview by Richard Stallman on Russia TV

2010-07-18 Thread Julian Bradfield
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

Your beloved python features

2010-02-04 Thread Julian
whatever, please give it to me, google couldn't. Regards Julian -- http://mail.python.org/mailman/listinfo/python-list

Re: Design question about pretree classifier

2009-12-18 Thread Julian
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

Design question about pretree classifier

2009-12-18 Thread Julian
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

Re: Attaching a live interpreter to a script?

2009-01-13 Thread Julian Smith
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

Re: Using the `email' module in a bazaar plugin

2008-12-10 Thread Julian Smith
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

Using the `email' module in a bazaar plugin

2008-12-10 Thread Julian Smith
; 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

nested popen4

2008-10-04 Thread julian
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

Re: adding python scripting to my application

2006-11-13 Thread Julian
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

adding python scripting to my application

2006-11-05 Thread Julian
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

Live Coding in pygame

2006-08-26 Thread Julian Snitow
) 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

Re: Python Doc Problem Example: os.path.split

2005-09-18 Thread Julian Fondren
> 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

Re: Creating anonymous functions using eval

2005-08-22 Thread Julian Smith
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

Creating anonymous functions using eval

2005-07-12 Thread Julian Smith
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

Re: convert user input to Decimal objects using eval()?

2005-03-29 Thread Julian Hernandez Gomez
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.

convert user input to Decimal objects using eval()?

2005-03-28 Thread Julian Hernandez Gomez
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

Re: Anonymus functions revisited

2005-03-23 Thread Julian Smith
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

Re: Iterate through dictionary of file objects and file names

2005-02-12 Thread Julian Yap
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

Iterate through dictionary of file objects and file names

2005-02-12 Thread Julian Yap
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