[issue7946] Convoy effect with I/O bound threads and New GIL

2021-01-14 Thread Stuart Axon
Stuart Axon added the comment: Catching up on the comments on this, it seems like nobody has enough certainty to say it will work well enough. In Linux, the scheduler is pluggable, which lets other non-default schedulers be shipped and tried in the real world. - See schedutil, introduced

[issue34972] json dump silently converts int keys to string

2020-04-06 Thread Stuart Bishop
Stuart Bishop added the comment: (sorry, my example is normal Python behavior. {1:1, 1.0:2} == {1:2} , {1.0:1} == {1:1} ) -- nosy: +stub ___ Python tracker <https://bugs.python.org/issue34

[issue39623] __str__ and __repr__ for asyncio.Task still omit arg values

2020-02-13 Thread Stuart Ball
New submission from Stuart Ball : This is not very helpful if your gather or wait contains multiple versions of foo with different argument values: `` Should just be: `` Would probably take all of 5 minutes to implement and make a lot of people's lives easier. -- messages

[issue33193] Cannot create a venv on Windows when directory path contains dollar character

2018-03-31 Thread Stuart Cuthbertson
New submission from Stuart Cuthbertson <stu...@sjcuthbertson.me.uk>: I should clarify first that I haven't reproduced the following bug specifically with venv. I was asked to raise this here after raising an identical issue about virtualenv (https://github.com/pypa/virtualenv/issue

[issue25942] Do not immediately SIGKILL subprocess child processes upon ^C

2018-01-30 Thread Stuart Berg
Change by Stuart Berg <be...@janelia.hhmi.org>: -- nosy: +stuarteberg ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue25942> ___ _

[issue25942] subprocess.call SIGKILLs too liberally

2017-11-04 Thread Stuart Berg
Change by Stuart Berg <be...@janelia.hhmi.org>: -- pull_requests: +4245 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue25942> ___

[issue28837] 2to3 does not wrap zip correctly

2017-02-15 Thread Stuart Berg
Changes by Stuart Berg <be...@janelia.hhmi.org>: -- pull_requests: +85 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28837> ___ _

[issue28837] 2to3 does not wrap zip correctly

2017-02-11 Thread Stuart Berg
Stuart Berg added the comment: Patch submitted as github PR #24: https://github.com/python/cpython/pull/24 -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue28837] 2to3 does not wrap zip correctly

2017-01-19 Thread Stuart Berg
Changes by Stuart Berg <be...@janelia.hhmi.org>: Added file: http://bugs.python.org/file46343/fix-28837.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue28837] 2to3 does not wrap zip correctly

2017-01-19 Thread Stuart Berg
Changes by Stuart Berg <be...@janelia.hhmi.org>: Removed file: http://bugs.python.org/file46342/fix-28837.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue28837] 2to3 does not wrap zip correctly

2017-01-19 Thread Stuart Berg
Changes by Stuart Berg <be...@janelia.hhmi.org>: Removed file: http://bugs.python.org/file46341/fix-28837.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue28837] 2to3 does not wrap zip correctly

2017-01-19 Thread Stuart Berg
Stuart Berg added the comment: Sorry for re-uploading the patch; I made some pep8 fixes. -- Added file: http://bugs.python.org/file46342/fix-28837.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue28837] 2to3 does not wrap zip correctly

2017-01-19 Thread Stuart Berg
Changes by Stuart Berg <be...@janelia.hhmi.org>: Added file: http://bugs.python.org/file46341/fix-28837.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue28837] 2to3 does not wrap zip correctly

2017-01-19 Thread Stuart Berg
Changes by Stuart Berg <be...@janelia.hhmi.org>: Removed file: http://bugs.python.org/file46339/fix-28837.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue28837] 2to3 does not wrap zip correctly

2017-01-19 Thread Stuart Berg
Stuart Berg added the comment: In addition to zip(), this problem also affects map() and filter(). The problem is that the match patterns in FixZip, FixMap, and FixFilter do not allow for more than one "trailer" node. (And even if they did, their transform() methods aren't

[issue21628] 2to3 does not fix zip in some cases

2017-01-19 Thread Stuart Berg
Stuart Berg added the comment: Already closed, but FWIW, I think this was incorrectly marked as a duplicate. Issue 20742 discusses a different issue related to lib2to3 and zip. Meanwhile, this issue has been raised again in 28837, so I will continue the discussion there. (I have a patch

[issue28631] [2.7/3.5/3.6 Regression] crash using ctypes

2016-11-14 Thread Stuart Prescott
Stuart Prescott added the comment: Having added the suggested restype (plus a lot of others and also quite a few extra argtypes), we now have code that works across a few different versions of Python once again. Thanks for the hint, eryksun and also thanks to doko for proxying the report

[issue26368] grammatical error in documentation

2016-02-15 Thread Ryan Stuart
New submission from Ryan Stuart: The note for 18.5.5.1. Stream functions is missing a word. It should read "Note The top-level functions in this module are meant **as** convenience wrappers only; there’s really nothing special there, and if they don’t do exactly what you want, feel

[issue24773] Implement PEP 495 (Local Time Disambiguation)

2015-10-02 Thread Stuart Bishop
Changes by Stuart Bishop <stu...@stuartbishop.net>: -- nosy: +stub ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24773> ___ _

Re: Sqlite pragma statement "locking_mode" set to "EXCLUSIVE" by default

2015-09-22 Thread Ryan Stuart
rogerbinns/apsw Cheers > > On Tue, Sep 22, 2015 at 2:04 PM, Ryan Stuart <ryan.stuart...@gmail.com> > wrote: > >> On Thu, Sep 17, 2015 at 2:24 PM, sol433tt <sol43...@gmail.com> wrote: >> >>> I would like to have the Sqlite pragma statement "locking_mode

Re: Sqlite pragma statement "locking_mode" set to "EXCLUSIVE" by default

2015-09-21 Thread Ryan Stuart
> -- > https://mail.python.org/mailman/listinfo/python-list > > -- Ryan Stuart, B.Eng Software Engineer W: http://www.kapiche.com/ M: +61-431-299-036 -- https://mail.python.org/mailman/listinfo/python-list

Re: Parser needed.

2015-06-09 Thread Ryan Stuart
, Skybuck. -- https://mail.python.org/mailman/listinfo/python-list -- Ryan Stuart, B.Eng Software Engineer ABN: 81-206-082-133 W: http://www.textisbeautiful.net/ M: +61-431-299-036 -- https://mail.python.org/mailman/listinfo/python-list

[issue23757] tuple function gives wrong answer when called on list subclass with custom __iter__

2015-05-13 Thread Stuart Bishop
Stuart Bishop added the comment: Can we get this reopened? As David MacIver points out, this seems entirely a wart in tuple's constructor (compared to all the other builtin types), whereas 10977 is worrying about how 3rd party code using the C API can corrupt subclasses of builtin types

Re: test2

2015-03-24 Thread Ryan Stuart
': ['console', 'logfile'], 'level': 'DEBUG', }, } } === -- https://mail.python.org/mailman/listinfo/python-list -- Ryan Stuart, B.Eng Software Engineer ABN: 81-206-082-133 W: http://www.textisbeautiful.net/ M: +61-431-299-036 -- https://mail.python.org

Re: HELP!! How to ask a girl out with a simple witty Python code??

2015-03-04 Thread Ryan Stuart
On Thu, 5 Mar 2015 at 11:35 Xrrific xiaok...@gmail.com wrote: Could you please come up with something witty incorporating a simple python line like If...then... but..etc. Send her this: import base64

Re: Are threads bad? - was: Future of Pypy?

2015-02-24 Thread Ryan Stuart
On Tue Feb 24 2015 at 3:32:47 PM Paul Rubin no.email@nospam.invalid wrote: Ryan Stuart ryan.stuart...@gmail.com writes: Sure, the shared memory introduces the possibility of some bad errors, I'm just saying that I've found that by staying with a certain straightforward style, it doesn't seem

Re: Future of Pypy?

2015-02-22 Thread Ryan Stuart
On Mon Feb 23 2015 at 4:15:42 PM Paul Rubin no.email@nospam.invalid wrote: What do you mean about Queues working with processes? I meant Queue.Queue. There is multiprocessing.Queue but that's much less capable, and it uses cumbersome IPC like pipes or sockets instead of a lighter weight

Re: Future of Pypy?

2015-02-22 Thread Ryan Stuart
On Mon Feb 23 2015 at 12:05:46 PM Paul Rubin no.email@nospam.invalid wrote: I don't see what the big deal is. I hear tons of horror stories about threads and I believe them, but the thing is, they almost always revolve around acquiring and releasing locks in the wrong order, forgetting to

Re: Future of Pypy?

2015-02-22 Thread Ryan Stuart
On Mon Feb 23 2015 at 1:50:40 PM Paul Rubin no.email@nospam.invalid wrote: That article is about the hazards of mutable state shared between threads. The key to using threads safely is to not do that. So the transfer example in the article would instead be a message handler in the thread

Re: TypeError: list indices must be integers, not tuple

2015-02-10 Thread Ryan Stuart
Hi, There is a lot of issues with this code. First, setting fav to a 1 tuples with a string probably isn't what you want. What you probably mean is: if restraunt == (Pizza): fav = 1 Second, when you are trying to lookup items in Menu, you are using the incorrect fav. Lists have int indicies

Re: Profiler for long-running application

2015-02-09 Thread Ryan Stuart
Hi Asad, Is there any reason why you can't just use profile/cProfile? In particular, you could use the api of that module to save out the profile stats to an external file with a unique name and then inspect them later with a tool like snakeviz https://jiffyclub.github.io/snakeviz/. The code to

Convert 3d NumPy array into 2d

2014-08-27 Thread phinn stuart
Hi everyone, how can I convert (1L, 480L, 1440L) shaped numpy array into (480L, 1440L)? Thanks in the advance. phinn -- https://mail.python.org/mailman/listinfo/python-list

Re: I look for a list to convert time zone abbreviation to full time zone in python

2013-12-03 Thread Stuart Bishop
the database is corrected). Also, to correctly represent this you need to specify the point in time. EST in 'Tue Dec 3 20:44:00 EST 2013' maps to about 3 timezones. EST in 'Tue Dec 3 20:44:00 EST 2011' maps to about 6. -- Stuart Bishop stu...@stuartbishop.net http://www.stuartbishop.net

[issue17989] ElementTree.Element broken attribute setting

2013-05-19 Thread Joe Stuart
Joe Stuart added the comment: Looks like a typo in arbitrary. AttributeError: Can't set arbitraty attributes on Element -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17989

[issue17989] ElementTree.Element broken attribute setting

2013-05-17 Thread Joe Stuart
Joe Stuart added the comment: It looks like it's being called from the c extension. I would think it should still throw an exception though? e = etree.Element e.ham = 1 Traceback (most recent call last): File stdin, line 1, in module TypeError: can't set attributes of built-in/extension

[issue17989] ElementTree.Element broken attribute setting

2013-05-17 Thread Joe Stuart
Joe Stuart added the comment: At the end of ElementTree all of the c accelerators are being imported and it looks like only XMLParser is being used. Here is a patch that only imports XMLParser. -- keywords: +patch Added file: http://bugs.python.org/file30298/ElementTree.patch

[issue17989] ElementTree.Element broken attribute setting

2013-05-17 Thread Joe Stuart
Changes by Joe Stuart joe.stu...@gmail.com: Removed file: http://bugs.python.org/file30298/ElementTree.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17989

[issue17989] ElementTree.Element broken attribute setting

2013-05-17 Thread Joe Stuart
Joe Stuart added the comment: This patch should fix the issue of the classes being overwritten by the c accelerated ones. -- Added file: http://bugs.python.org/file30300/ElementTree.patch ___ Python tracker rep...@bugs.python.org http

[issue17989] ElementTree.Element broken attribute setting

2013-05-17 Thread Joe Stuart
Changes by Joe Stuart joe.stu...@gmail.com: Removed file: http://bugs.python.org/file30300/ElementTree.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17989

[issue17989] ElementTree.Element broken attribute setting

2013-05-17 Thread Joe Stuart
Joe Stuart added the comment: Forgot to update the XMLParser() assignment. -- Added file: http://bugs.python.org/file30301/ElementTree.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17989

[issue17709] http://docs.python.org/2.7/objects.inv doesn't support :func:`repr` or :exc:`Exception`

2013-04-13 Thread Russell Stuart
New submission from Russell Stuart: .. topic:: http://docs.python.org/2.7/objects.inv doesn't support :func:`repr` or :exc:`Exception` A bug report for Python 2.7's docs. .. _intro: Bug === Running:: sphinx-build -c conf2.7 -n -b html -E . html Produces:: Running Sphinx v1.1.3

[issue17709] http://docs.python.org/2.7/objects.inv doesn't support :func:`repr` or :exc:`Exception`

2013-04-13 Thread Russell Stuart
Changes by Russell Stuart russell+pyt...@stuart.id.au: Added file: http://bugs.python.org/file29795/conf.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17709

[issue17709] http://docs.python.org/2.7/objects.inv doesn't support :func:`repr` or :exc:`Exception`

2013-04-13 Thread Russell Stuart
Changes by Russell Stuart russell+pyt...@stuart.id.au: Added file: http://bugs.python.org/file29796/conf.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17709

[issue17008] Descriptor __get__() invoke is bypassed in the class context

2013-01-21 Thread stuart
New submission from stuart: I emulated a real classmethod using python: class cm(object): def __init__(self, o): self.o = o def __get__(self, obj, type=None): return self.o.__get__(obj, type) then I check whether it is workable in the interactive mode and it is working

Re: OAuth 2.0 implementation

2012-03-27 Thread Stuart Bishop
') and OAuth ('post this message to your Facebook wall'). -- Stuart Bishop stu...@stuartbishop.net http://www.stuartbishop.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Web Applications - Separating DB Connections

2011-06-08 Thread Stuart MacKay
/en/1.0.1/api/contrib/files.html and the --config option on http://docs.fabfile.org/en/1.0.1/usage/fab.html Stuart MacKay Lisbon, Portugal Hello Everyone: I am trying to find a way to extract and remove database connection information (username, password, schema name) from the application

Re: FW: help please

2011-05-18 Thread Stuart MacKay
then asking the poster to phrase it better is going to help solve the issue faster but for a mailing list like this simply ignore it. Stuart -- http://mail.python.org/mailman/listinfo/python-list

[issue11691] sqlite3 Cursor.description doesn't set type_code

2011-03-26 Thread William Edward Stuart Clemens
New submission from William Edward Stuart Clemens wesclemens+pyt...@gmail.com: The DB API Spec 2.0 (PEP 249) clearly requires that column name and type_code be set as the first two values in Cursor.description the other 5 attributes are optional. The sqlite3 module doesn't set type_code

[issue11691] sqlite3 Cursor.description doesn't set type_code

2011-03-26 Thread William Edward Stuart Clemens
William Edward Stuart Clemens wesclemens+pyt...@gmail.com added the comment: The patch for version 3.3 has a one line difference. -- assignee: - docs@python components: +Documentation, Library (Lib) -None nosy: +docs@python versions: +Python 3.3 Added file: http://bugs.python.org

Re: hmac module and key format

2011-02-21 Thread Stuart Longland
On Feb 21, 4:59 am, Peter Pearson ppear...@nowhere.invalid wrote: On Sun, 20 Feb 2011 04:01:20 -0800, Paul Rubin no.em...@nospam.invalid wrote: Stuart Longland redhat...@gentoo.org writes: What format does hmac require the key to be in? It's an arbitrary string.       I have a key

hmac module and key format

2011-02-20 Thread Stuart Longland
be most grateful. Regards, Stuart Longland -- http://mail.python.org/mailman/listinfo/python-list

Re: exceptions and unicode

2010-06-19 Thread Stuart McGraw
On 06/16/2010 03:53 PM, Martin v. Loewis wrote: So how do I get what I want? Submit a patch. You would have to explain why this is a bug fix and not a new feature, as new features are not allowed anymore for 2.x. Thanks. Actually I have no idea if this is a bug or a feature (despite

Re: exceptions and unicode

2010-06-19 Thread Stuart McGraw
On 06/16/2010 03:51 PM, Thomas Jollans wrote: On 06/16/2010 10:10 PM, Stuart McGraw wrote: Note that the exceptions may be anything (I just used IOError as an example) and are generated in bowels of an API that I can't/won't mess with. Yeah, well, you'd have to special-case every single

exceptions and unicode

2010-06-16 Thread Stuart McGraw
I am having a problem with exceptions and unicode. try: open ('file.txt') except IOError, e: pass str (e) = [Errno 2] No such file or directory: 'file.txt' which is fine but... try: open (u'フィイル.txt') except IOError, e: pass str (e) = [Errno 2] No such file or directory:

[issue4972] let's equip ftplib.FTP with __enter__ and __exit__

2010-05-09 Thread Stuart Axon
Stuart Axon stu.a...@gmail.com added the comment: It would be good for consistency, yes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4972

[issue8080] os.uname failing in windows

2010-03-06 Thread Stuart Axon
New submission from Stuart Axon stu.a...@gmail.com: I'm not sure why this is happening, but os.uname() is failing on my computer in XP Home 32bit. Tested in the normal shell and MSys The code in platform.py looks like it should work to me. [C:\usr\Python26\Lib]python Python 2.6.4 (r264

[issue7718] Build shared libpythonX.Y.so on IRIX

2010-01-18 Thread Stuart Shelton
Stuart Shelton srcshel...@gmail.com added the comment: I've no objection to signing the relevant paperwork if that's what's needed to get this committed - if someone could point me in the direction of what I needed to do in order to do so? -- nosy: +srcshelton

[issue7717] Compilation fixes for IRIX

2010-01-18 Thread Stuart Shelton
Stuart Shelton srcshel...@gmail.com added the comment: As-per 7718 I'm happy to complete any relevant paperwork: these patches (which are by now of my own creation: Frank Everdij helped sort out the N32.s fixes, but these were no longer required by 2.6.4 and 2.7) are already posted

Re: Python books, literature etc

2010-01-07 Thread Stuart Murray-Smith
2010/1/6 J dreadpiratej...@gmail.com: A good point was brought up to me privately, and I agree completely, that the OP should re-state the request with a bit more specifics... Since the OP says he is at least familiar with Python, does he need info on beginner level books that are general

Re: Python books, literature etc

2010-01-07 Thread Stuart Murray-Smith
Have a look at the Getting Started section of the wiki: http://wiki.python.org/moin/ specially the PythonBooks section Perfect! Exactly what I'm looking for :) Thanks Gabriel! -- http://mail.python.org/mailman/listinfo/python-list

Python books, literature etc

2010-01-06 Thread Stuart Murray-Smith
Greetings list I can code in Python (strong beginner), and would like to read more books and/or online resources. Could someone please point out any good books, websites, tutorials etc to help me get to the next level. Your help insight highly appreciated :) Stuart -- http://mail.python.org

[issue4972] let's equip ftplib.FTP with __enter__ and __exit__

2009-10-12 Thread Stuart Axon
Stuart Axon stu.a...@gmail.com added the comment: zipfile also would make a good target for a contextmanager (as noted here - http://tarekziade.wordpress.com/2009/01/20/python-standard-lib-give-me-more-withs/ ) -- nosy: +stuaxo ___ Python tracker rep

PYTHONPATH issue with sibling package names

2009-09-10 Thread Stuart Moffatt
Environment: Eclipse 3.4.2, Windows XP Pro SP2, Pydev 1.4.4, python 2.6 When I work in eclipse with java, I like to break up my client and server packages, like this: client-project/src/org/me/client server-project/src/org/me/api server-project/src/org/me/dao server-project/src/org/me/entity

Re: PYTHONPATH issue with sibling package names

2009-09-10 Thread Stuart Moffatt
On Sep 10, 10:12 am, Diez B. Roggisch de...@nospam.web.de wrote: Stuart Moffatt wrote: Environment: Eclipse 3.4.2, Windows XP Pro SP2, Pydev 1.4.4, python 2.6 When I work in eclipse with java, I like to break up my client and server packages, like this: client-project/src/org/me

[issue6461] multiprocessing: freezing apps on Windows

2009-08-07 Thread Stuart Mentzer
Stuart Mentzer s...@objexx.com added the comment: Further experimentation revealed that freeze_support() works properly and the proposed patch is not necessary or desirable for the general freeze case. In the case of an embedded app that calls set_executable() it seems that the else block

[issue6461] multiprocessing: freezing apps on Windows

2009-07-18 Thread Stuart Mentzer
Stuart Mentzer s...@objexx.com added the comment: Thanks Jesse. If you make broader changes that my patch I am happy to test on Windows and with py2exe if that is helpful. I will try to get the py2exe folks to look at the broader multiprocessing issues I describe as well. If multiprocessing

[issue6461] multiprocessing: freezing apps on Windows

2009-07-11 Thread Stuart Mentzer
New submission from Stuart Mentzer s...@objexx.com: Freezing apps with multiprocessing on Windows seems to be broken. First, in get_command_line in multiprocessing/forking.py I find that this code: if getattr(sys, 'frozen', False): return [sys.executable, '--multiprocessing

Re: How to create a virtual serial port?

2009-04-12 Thread Stuart Davenport
On Apr 11, 6:56 pm, Grant Edwards gra...@visi.com wrote: On 2009-04-11, Grant Edwards gra...@visi.com wrote: You can write a port redirector in user-space in MS-Windows, but you can't in Linux/Unix.  On Unix systems you have to write a kernel module that sits below the tty layer. Perhaps

Re: How to create a virtual serial port?

2009-04-11 Thread Stuart Davenport
On 11 Apr, 08:52, Scott David Daniels scott.dani...@acm.org wrote: Stuart Davenport wrote: ... I'm on a OS X, python 2.5. Basically I will have a remote application pushing data (GPS) over the network to a python application I have running on my Mac, I want this python application to again

How to create a virtual serial port?

2009-04-10 Thread Stuart Davenport
Hi, I am trying to work out if its possible, to create a virtual serial port with Python? Would anyone know how to go about this in code? Any help would be greatly appreciated! :) I have a had a google and the topics returned only seem to reflect reading serial port data, particularly pySerial

Re: How to create a virtual serial port?

2009-04-10 Thread Stuart Davenport
On 10 Apr, 20:45, Scott David Daniels scott.dani...@acm.org wrote: Stuart Davenport wrote: Hi, I am trying to work out if its possible, to create a virtual serial port with Python? Would anyone know how to go about this in code? Any help would be greatly appreciated! :) I have a had

ANN: AsciiDoc 8.4.1 released

2009-03-13 Thread Stuart Rackham
is at http://hg.sharesource.org/asciidoc/ Regards, Stuart -- Stuart Rackham -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations.html

Re: HTTPError... read the response body?

2009-03-03 Thread Stuart Davenport
On Mar 2, 11:50 pm, Wojtek Walczak gmin...@bzt.bzt wrote: On Mon, 2 Mar 2009 14:29:12 -0800 (PST), Stuart Davenport wrote: Hi, I am trying to connect to a web service but I am getting HTTP 400, I am not too concerned about the HTTP error - but what I'd like to know if there is anyway I

HTTPError... read the response body?

2009-03-02 Thread Stuart Davenport
Hi There, I am trying to connect to a web service but I am getting HTTP 400, I am not too concerned about the HTTP error - but what I'd like to know if there is anyway I can read the response body in the HTTP 400 or 500 case? Does the HTTPError allow this? or the urllib2 in anyway? This is what

[issue5098] Environ doesn't escape spaces properly

2009-01-29 Thread Stuart Axon
New submission from Stuart Axon stu.a...@gmail.com: os.environ doesn't escape spaces, but does backslashes and others In the windows python interpreter I echo'd the variable 'ProgramFiles', then in the commandprompt. from os import environ environ['ProgramFiles'] 'C:\\Program Files' ^Z [C

ANN: AsciiDoc 8.3.1 released

2008-12-15 Thread Stuart Rackham
://sourceforge.net/projects/asciidoc/ The online Mercurial repository is at http://hg.sharesource.org/asciidoc/ Regards, Stuart -- Stuart Rackham -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf

[issue2173] Python fails silently on bad locale

2008-12-11 Thread Stuart Woodward
Stuart Woodward [EMAIL PROTECTED] added the comment: I'm running on Mac OS X. I applied the patch issue2173.patch and it solved the make: *** [sharedmods] Error 1 problem. A cursory test of /usr/local/bin/python3.0 was successful. -- nosy: +stuartcw

[issue4567] Registry key not set if unattended installation used

2008-12-06 Thread Stuart Axon
New submission from Stuart Axon [EMAIL PROTECTED]: If the msi is installed with /quiet it installs to the default location, but the registry key is not set, making it harder for other programs to find the installation. - in my case I had to make a batch file that installed it, then read

[issue4567] Registry key not set if unattended installation used

2008-12-06 Thread Stuart Axon
Stuart Axon [EMAIL PROTECTED] added the comment: Sure, no problem - sorry for the lack of detail... The windows installer (tested on 2.5.2) normally puts some values in the windows registry at: HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\version (where version is the python version

[issue4567] Registry key not set if unattended installation used

2008-12-06 Thread Stuart Axon
Stuart Axon [EMAIL PROTECTED] added the comment: If you type msiexec /? it pops a window with this text in it: Windows (R) Installer. V 3.01.4001.5512 msiexec /Option Required Parameter [Optional Parameter] Install Options /package | /i Product.msi Installs

Installing python 2.6 on Vista

2008-11-23 Thread GALLOWAY Stuart J (SVHM)
, Stuart Disclaimer : The contents of this e-mail including any attachments are intended only for the person or entity to which this e-mail is addressed and may contain confidential, privileged and/or commercially sensitive material. If you are not, or believe you may not be, the intended

ANN: AsciiDoc 8.2.7 released

2008-07-06 Thread Stuart Rackham
, examples and online documentation can be downloaded from http://www.methods.co.nz/asciidoc/ AsciiDoc can also be downloaded from the SourceForge at http://sourceforge.net/projects/asciidoc/ The online Mercurial repository is at http://hg.sharesource.org/asciidoc/ Regards, Stuart --· Stuart

[issue1025395] email.Utils.parseaddr fails to parse valid addresses

2008-01-11 Thread Stuart D Gathman
Stuart D Gathman added the comment: Test cases so far: parseaddr('[EMAIL PROTECTED]') ('', '[EMAIL PROTECTED]') parseaddr('Full Name [EMAIL PROTECTED]') ('Full Name', '[EMAIL PROTECTED]') parseaddr('[EMAIL PROTECTED] [EMAIL PROTECTED]') ('[EMAIL PROTECTED]', '[EMAIL PROTECTED

[issue1221] email.Utils.parseaddr(a(WRONG)@b)

2008-01-11 Thread Stuart D Gathman
Stuart D Gathman added the comment: See Issue1025395 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1221 __ ___ Python-bugs-list mailing list Unsubscribe: http

[issue1025395] email.Utils.parseaddr fails to parse valid addresses

2008-01-11 Thread Stuart D Gathman
Stuart D Gathman added the comment: Same or related issues: Issue1221, Issue1409460 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1025395 _ ___ Python-bugs-list mailing

[issue1025395] email.Utils.parseaddr fails to parse valid addresses

2008-01-11 Thread Stuart D Gathman
Stuart D Gathman added the comment: tiran: yes, but that is the wrong answer, and that example is already in the testcase list (with what I believe is the right answer). _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1025395

[issue1025395] email.Utils.parseaddr fails to parse valid addresses

2008-01-10 Thread Stuart D Gathman
Changes by Stuart D Gathman: -- type: - behavior _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1025395 _ ___ Python-bugs-list mailing list Unsubscribe: http

[issue1025395] email.Utils.parseaddr fails to parse valid addresses

2008-01-10 Thread Stuart D Gathman
Stuart D Gathman added the comment: # A quick and very dirty fix for common broken cases, with test cases. import rfc822 def parseaddr(t): Split email into Fullname and address. parseaddr('[EMAIL PROTECTED]') ('', '[EMAIL PROTECTED]') parseaddr('Full Name [EMAIL PROTECTED

[issue1025395] email.Utils.parseaddr fails to parse valid addresses

2008-01-10 Thread Stuart D Gathman
Stuart D Gathman added the comment: Ok, I see the '@' is technically not allowed in an atom. But it either needs to throw an invalid syntax exception, or heuristically return something reasonable. _ Tracker [EMAIL PROTECTED] http://bugs.python.org

[issue1025395] email.Utils.parseaddr fails to parse valid addresses

2008-01-10 Thread Stuart D Gathman
Stuart D Gathman added the comment: Repeating because previous real life test case was rejected as 'spam': It also fails to parse: from email.Utils import parseaddr parseaddr('[EMAIL PROTECTED] [EMAIL PROTECTED]') ('', '[EMAIL PROTECTED]') Getting the wrong part as the actual email to boot

ANN: DocIndexer 0.9.1.0 released

2007-11-04 Thread Stuart Rackham
-- Win32: None (compiled binary distribution). Linux: Python 2.5, PyLucene 2, antiword and poppler-utils. License --- MIT URLs Homepage:http://www.methods.co.nz/docindexer/ SourceForge: http://sourceforge.net/projects/docindexer/ Cheers, Stuart --- Stuart Rackham -- http

PyRun_String using my module in a def

2007-07-04 Thread Stuart
I've written my own python modules with the C API, called dlfl. I've now embedded a python interpreter into my Qt application. I am able to execute multiline/singleline blocks and it has no problems remembering definitions from one execute to the next. The problem arises when i try and use a dlfl

need a variation algorithm for Lists in Dictionaries

2007-07-04 Thread Marc Stuart
Hi, I am trying to create a function, where I pass a dictionary with a lits of strings, and try to return a a list of strings, for all variations, any ideas ? Thanks def getAllVariants(someDict): keys = someDict.keys() for x in keys: print len(someDict[x])

Re: PyRun_String using my module in a def

2007-07-04 Thread Stuart
'execfile' is not defined Thanks for your help! :) On Jul 4, 10:23 pm, [EMAIL PROTECTED] (Alex Martelli) wrote: Stuart [EMAIL PROTECTED] wrote: ... PyObject *rstring = PyRun_String( cmd, Py_file_input, main_dict, dlfl_dict ); You're passing difl_dict as the locals to PyRun_String

Re: pydoc with METH_VARGS

2007-06-24 Thread Stuart
I'm asking if there's some sort of commenting or input file or something to customize the output pydoc generates. Thanks. On Jun 23, 11:00 pm, 7stud [EMAIL PROTECTED] wrote: On Jun 23, 2:13 pm, Stuart [EMAIL PROTECTED] wrote: With my Python extension module all the function definitions

pydoc with METH_VARGS

2007-06-23 Thread Stuart
With my Python extension module all the function definitions are with METH_VARGS. The result being that pydoc, just puts (...) for the argument list. Can I hand edit this to put the specific variable names I want? With optional arguments in brackets or something? Thanks. --

ANN: AsciiDoc 8.2.1 released

2007-04-07 Thread Stuart Rackham
version, examples and online documentation can be downloaded from http://www.methods.co.nz/asciidoc/ AsciiDoc is also hosted at the SourceForge at http://sourceforge.net/projects/asciidoc/ Regards, Stuart -- Stuart Rackham -- http://mail.python.org/mailman/listinfo/python-announce-list

RE: Readline()

2007-03-16 Thread Taylor, Stuart
) From: Taylor, Stuart [mailto:[EMAIL PROTECTED] Sent: 13 March 2007 09:50 To: Sick Monkey; Taylor, Stuart Cc: python-list@python.org Subject: RE: Readline() i have a thread class which should read the output from the procedure line by line and finish when the thread is set to kill: class

RE: Readline()

2007-03-13 Thread Taylor, Stuart
PROTECTED] Sent: 13 March 2007 01:51 To: Taylor, Stuart Cc: python-list@python.org Subject: Re: Readline() Maybe if you show us your code we can better assist you. But maybe you can use a global variable or a try-catch method to keep threads from staying alive and help better control your code

Readline()

2007-03-12 Thread Taylor, Stuart
point me in the correct implementation of this problem I would be gratefull. Thank you Stuart -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >